仓库-毛坯仓库功能

This commit is contained in:
2024-05-14 10:16:57 +08:00
parent 3595ca43dd
commit 2194f8bfc5
2 changed files with 35 additions and 5 deletions

View File

@@ -55,3 +55,16 @@ export function delWmBlankInventory(pid) {
method: 'delete'
})
}
/**
* 毛坯库存表同步清单数据
* @param data
*/
export function synchronousMaterial(data) {
return request({
url: '/mes/wm/WmBlankInventory/synchronousMaterial',
method: 'post',
data: data,
})
}

View File

@@ -156,6 +156,7 @@
delWmBlankInventory,
updateWmBlankInventory,
getWmBlankInventory,
synchronousMaterial,
} from '@/api/wmsManagement/wmBlankInventory.js';
export default {
@@ -346,7 +347,23 @@
},
// 毛坯数据同步
handleSynchronous() {
this.loading = true;
setTimeout(() => {
this.loading = false;
}, 30000)
const data = {};
synchronousMaterial(data).then(res => {
if (res.code === 200)
{
this.$message.success(res.msg);
this.handleQuery();
this.loading = false;
}else{
this.loading = false;
}
}).catch(() => {
this.loading = false;
})
},
// 毛坯数据详情
handleDetail() {