仓库-毛坯仓库功能

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

@@ -19,7 +19,7 @@
<el-option v-for="item in typeOptions" :key="item.dictValue" :label="item.dictLabel" :value="parseInt(item.dictValue)"></el-option>
</el-select>
</el-form-item>
<el-form-item label="状态" prop="status" >
<el-form-item label="状态" prop="status">
<el-radio-group v-model="queryParams.status" @change="handleQuery">
<el-radio-button v-for="item in statusOptions" :key="item.dictValue" :label="parseInt(item.dictValue)">{{item.dictLabel}}</el-radio-button>
</el-radio-group>
@@ -30,7 +30,7 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</div>
</el-form>
<!-- 工具区域 -->
<el-row :gutter="10" class="mb8">
@@ -156,6 +156,7 @@
delWmBlankInventory,
updateWmBlankInventory,
getWmBlankInventory,
synchronousMaterial,
} from '@/api/wmsManagement/wmBlankInventory.js';
export default {
@@ -346,11 +347,27 @@
},
// 毛坯数据同步
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(){
handleDetail() {
},
// 类别字典翻译
typeFormat(row, column) {