扣数维护逻辑调整

dev-scheduling
zhangdi 2 months ago
parent 0f1406997e
commit 61074f587c
  1. 24
      src/views/procurementManagement/components/declareAdd.vue
  2. 11
      src/views/procurementManagement/shortageApplication.vue

@ -53,11 +53,11 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 零件号 --> <!-- 零件号 -->
<el-table-column align="center" prop="partCode" label="零件号"> </el-table-column> <el-table-column align="center" prop="prtno" label="零件号"> </el-table-column>
<!-- 批次号 --> <!-- 批次号 -->
<el-table-column align="center" prop="batchNo" label="批次号"> </el-table-column> <el-table-column align="center" prop="splcode" label="批次号"> </el-table-column>
<!--生产标识 --> <!--生产标识 -->
<el-table-column align="center" prop="quaLevel" label="生产标识"> </el-table-column> <el-table-column align="center" prop="prtlotno" label="生产标识"> </el-table-column>
<!--数量 --> <!--数量 -->
<el-table-column align="center" prop="quantity" label="数量"> <el-table-column align="center" prop="quantity" label="数量">
<template #header> <template #header>
@ -74,9 +74,9 @@
</template> </template>
</el-table-column> </el-table-column>
<!--保管员 --> <!--保管员 -->
<el-table-column align="center" prop="keeper" label="保管员"> </el-table-column> <el-table-column align="center" prop="warctlr" label="保管员"> </el-table-column>
<!--计划员 --> <!--计划员 -->
<el-table-column align="center" prop="planMan" label="计划员"> </el-table-column> <el-table-column align="center" prop="schemer" label="计划员"> </el-table-column>
<!--备注 --> <!--备注 -->
<el-table-column align="center" prop="remark" label="备注"> <el-table-column align="center" prop="remark" label="备注">
<template #default="scope"> <template #default="scope">
@ -93,7 +93,7 @@
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="closeDialog"> </el-button> <el-button @click="closeDialog"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm" :loading="saveLoading"> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
@ -112,6 +112,7 @@ export default {
}, },
data() { data() {
return { return {
saveLoading:false,
batchLoading:false, batchLoading:false,
openShow: false, openShow: false,
wcData: [], wcData: [],
@ -154,9 +155,7 @@ export default {
this.openShow = this.showDialog; this.openShow = this.showDialog;
this.getWorkCenterList(); this.getWorkCenterList();
// //
if (this.moldAddMore && this.form.tableData.length === 0) {
this.addTable();
}
}, },
methods: { methods: {
// //
@ -165,6 +164,8 @@ export default {
queryBatch({partCode: this.form.partCode}).then(res=>{ queryBatch({partCode: this.form.partCode}).then(res=>{
this.form.tableData = res.data.data || []; this.form.tableData = res.data.data || [];
this.batchLoading = false; this.batchLoading = false;
}).catch(err=>{
this.batchLoading = false;
}) })
}, },
getWorkCenterList() { getWorkCenterList() {
@ -220,11 +221,16 @@ export default {
}); });
return; return;
} }
this.saveLoading = true
// //
saveDeclare(this.form.tableData).then(res=>{ saveDeclare(this.form.tableData).then(res=>{
this.$message.success('操作成功'); this.$message.success('操作成功');
this.saveLoading = false
this.closeDialog(); this.closeDialog();
}).catch(err=>{
this.saveLoading = false
}) })
// try { // try {
// const res = saveDeclare(this.form.tableData); // const res = saveDeclare(this.form.tableData);

@ -20,8 +20,8 @@
<el-button type="primary" @click="handleAdd">申报 </el-button> <el-button type="primary" @click="handleAdd">申报 </el-button>
</template> </template>
<template #menu-right> <template #menu-right>
<el-button type="primary" plain @click="handleImport">已申报 </el-button> <el-button type="primary" plain @click="statusOnLoad(1)">已申报 </el-button>
<el-button type="primary" plain @click="handleImport">已完成 </el-button> <el-button type="primary" plain @click="statusOnLoad(2)">已完成 </el-button>
</template> </template>
<template #menu="scope"> <template #menu="scope">
<el-button type="text" @click="handleImport">打印 </el-button> <el-button type="text" @click="handleImport">打印 </el-button>
@ -218,9 +218,16 @@ export default {
currentPage: 1, currentPage: 1,
total: 0, total: 0,
}, },
query:{
podStatus:''
}
}; };
}, },
methods: { methods: {
statusOnLoad(status){
this.query.podStatus = status;
this.onLoad(this.page,this.query)
},
// //
handleImport() { handleImport() {
this.isShowImport = true; this.isShowImport = true;

Loading…
Cancel
Save