mod(custom):
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-01 22:56:24 +08:00
parent 1bcd417c57
commit cadb47cd22

View File

@@ -76,7 +76,8 @@
<n-button ml-10 @click="clear">重置</n-button> <n-button ml-10 @click="clear">重置</n-button>
</n-gi> </n-gi>
<n-gi span="24" mt-10 flex items-center> <n-gi span="24" mt-10 flex items-center>
<n-button strong secondary type="primary" @click="changeGoodsType(0)"> <n-button strong secondary type="primary" @click="veeifys()">批量审核</n-button>
<n-button strong secondary ml-10 type="primary" @click="changeGoodsType(0)">
设为普通商品 设为普通商品
</n-button> </n-button>
<n-button strong secondary ml-10 type="warning" @click="changeGoodsType(1)"> <n-button strong secondary ml-10 type="warning" @click="changeGoodsType(1)">
@@ -624,7 +625,7 @@ const veeify = async () => {
let data = {} let data = {}
if (nowKey.value === 1 || nowKey.value === 2) { if (nowKey.value === 1 || nowKey.value === 2) {
data = { data = {
gid: nowRow.value.gid, gid: [nowRow.value.gid],
status: nowKey.value, status: nowKey.value,
notes: notesVal.value, notes: notesVal.value,
} }
@@ -644,6 +645,16 @@ const veeify = async () => {
}) })
} }
} }
const veeifys = async () => {
if (queryParams.value.checkedRowKeysRef.length === 0) return $message.info('没有选中商品')
await api.getHotStatus({
gid: queryParams.value.checkedRowKeysRef,
status: 1,
notes: '',
})
clear()
}
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped></style>