生产管理接口联调

dev-scheduling
zhangdi 2 months ago
parent 4a622e5181
commit 0347ff275e
  1. 10
      src/views/productionManagement/reworkOrder.vue

@ -18,7 +18,7 @@
<template #menu="{ row }">
<!-- <el-button type="text">返工工艺</el-button> -->
<el-button type="text" @click="receiveData(row)" v-if="row.status == 0">接收</el-button>
<el-button type="text" @click="updateData(row)">改数接收</el-button>
<el-button type="text" @click="updateData(row)" v-if="row.status == 0">改数接收</el-button>
<el-button type="text" @click="finishData(row)">完成</el-button>
</template>
</avue-crud>
@ -240,6 +240,10 @@ export default {
},
mounted() {},
methods: {
updateMakeQtyClose(){
this.updateMakeQtyVisible = false;
this.onLoad(this.page,this.query)
},
updateData(row) {
this.itemData = row;
this.updateMakeQtyVisible = true;
@ -250,6 +254,7 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
this.loading=true
getReceiveOrder(row).then(res => {
this.$message({
message: '接收成功',
@ -265,9 +270,10 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
this.loading=true
completeOrder(row).then(() => {
this.$message({
message: '接收成功',
message: '操作成功',
type: 'success',
});
this.onLoad(this.page.this.query);

Loading…
Cancel
Save