扣数维护逻辑调整

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>
</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="数量">
<template #header>
@ -74,9 +74,9 @@
</template>
</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="备注">
<template #default="scope">
@ -93,7 +93,7 @@
<template #footer>
<span class="dialog-footer">
<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>
</template>
</el-dialog>
@ -112,6 +112,7 @@ export default {
},
data() {
return {
saveLoading:false,
batchLoading:false,
openShow: false,
wcData: [],
@ -154,9 +155,7 @@ export default {
this.openShow = this.showDialog;
this.getWorkCenterList();
//
if (this.moldAddMore && this.form.tableData.length === 0) {
this.addTable();
}
},
methods: {
//
@ -165,6 +164,8 @@ export default {
queryBatch({partCode: this.form.partCode}).then(res=>{
this.form.tableData = res.data.data || [];
this.batchLoading = false;
}).catch(err=>{
this.batchLoading = false;
})
},
getWorkCenterList() {
@ -220,11 +221,16 @@ export default {
});
return;
}
this.saveLoading = true
//
saveDeclare(this.form.tableData).then(res=>{
this.$message.success('操作成功');
this.saveLoading = false
this.closeDialog();
}).catch(err=>{
this.saveLoading = false
})
// try {
// const res = saveDeclare(this.form.tableData);

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

Loading…
Cancel
Save