11
This commit is contained in:
1 parent
d188c10079
commit
d8a06f2e25
2 files changed
+19
No files matched your search
@@ -13,6 +13,14 @@ export function getByCabinetNo(query?: { hardId: any; cabinetNo: any }) {
|
||||
})
|
||||
}
|
||||
|
||||
export function asyncAll(query?: Object) {
|
||||
return request({
|
||||
url: "/hard/hard-spu/async-all",
|
||||
method: "get",
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
export function select(query?: Object) {
|
||||
return request({
|
||||
url: "/hard/hard-spu/select",
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
</el-form>
|
||||
<el-row>
|
||||
<div class="mb8" style="width: 100%">
|
||||
<el-button icon="Refresh" type="primary" class="ml10" @click="syncAll" v-auth="'hard_hardSpu_add'"> 拉取商品 </el-button>
|
||||
<el-button icon="folder-add" type="primary" class="ml10" @click="formDialogRef.openDialog()" v-auth="'hard_hardSpu_add'">
|
||||
新 增
|
||||
</el-button>
|
||||
@@ -159,6 +160,16 @@ const selectionChangHandle = (objs: { id: string }[]) => {
|
||||
multiple.value = !objs.length
|
||||
}
|
||||
|
||||
// 同步全部
|
||||
const syncAll = async () => {
|
||||
try {
|
||||
await useMessageBox().confirm("是否同步全部商品")
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
hardSpu.asyncAll()
|
||||
}
|
||||
|
||||
// 删除操作
|
||||
const handleDelete = async (ids: string[]) => {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user