问题修改

dev-scheduling
zhangdi 2 weeks ago
parent bafe0f1097
commit fd97b4cb2c
  1. 2
      src/views/productionManagement/deductionPreserve/editDialog.vue
  2. 6
      src/views/productionManagement/deductionPreserve/index.vue

@ -37,7 +37,7 @@ export default {
column: [ column: [
{ {
label: '订单号', label: '订单号',
prop: 'woId', prop: 'woCode',
span: 12, span: 12,
disabled: true, disabled: true,
}, },

@ -215,10 +215,14 @@ export default {
this.loading = true; this.loading = true;
getWorkOrderByCardNo({ cardNo: this.cardNo }) getWorkOrderByCardNo({ cardNo: this.cardNo })
.then(res => { .then(res => {
if (res.data.data) { this.cardNo = '';
if (Object.keys(res.data.data).length != 0) {
this.rowItem = res.data.data; this.rowItem = res.data.data;
this.editOpen = true; this.editOpen = true;
this.loading = false; this.loading = false;
} else {
this.loading = false;
this.$message.error('未找到该流程卡号!');
} }
}) })
.catch(err => { .catch(err => {

Loading…
Cancel
Save