From 70c12f32f5741af1f4fe6bb2490ebbe2e6ece953 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 31 五月 2024 10:09:59 +0800
Subject: [PATCH] 1.修改工单下达时的bug
---
src/views/basicSettings/meterPrice.vue | 22 +++++++++++++++++++++-
src/views/workOrder/produceOrderList.vue | 2 +-
src/views/workOrder/workOrderList.vue | 10 +++++++++-
3 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/src/views/basicSettings/meterPrice.vue b/src/views/basicSettings/meterPrice.vue
index cbd0587..d1ee3d0 100644
--- a/src/views/basicSettings/meterPrice.vue
+++ b/src/views/basicSettings/meterPrice.vue
@@ -433,7 +433,27 @@
width: false,
prop: 'unprice',
label: '璁′欢鍗曚环',
- id: 17,
+ id: 12,
+ show: true,
+ fixed: false,
+ sortable: true
+ },
+ {
+ minWidth: false,
+ width: 110,
+ prop: 'lm_user',
+ label: '鍒涘缓浜哄憳',
+ id: 13,
+ show: true,
+ fixed: false,
+ sortable: true
+ },
+ {
+ minWidth: false,
+ width: 160,
+ prop: 'lm_date',
+ label: '鍒涘缓鏃堕棿',
+ id: 14,
show: true,
fixed: false,
sortable: true
diff --git a/src/views/workOrder/produceOrderList.vue b/src/views/workOrder/produceOrderList.vue
index 42f8aa0..82cf048 100644
--- a/src/views/workOrder/produceOrderList.vue
+++ b/src/views/workOrder/produceOrderList.vue
@@ -823,7 +823,7 @@
this.form.paystartdate = ''
this.form.payenddate = ''
this.form.creatuser = ''
- this.form.erpordercode = ''
+ this.form.saleordercode = ''
this.form.createdate = ''
this.form.timeValue = []
diff --git a/src/views/workOrder/workOrderList.vue b/src/views/workOrder/workOrderList.vue
index c4d46f8..dc528c5 100644
--- a/src/views/workOrder/workOrderList.vue
+++ b/src/views/workOrder/workOrderList.vue
@@ -2067,7 +2067,8 @@
deliverydate: '', // 浜や粯鏃堕棿
data_sources: '', // 鏁版嵁鏉ユ簮
- mesmaxqty: 0// 宸ュ崟鐨勬渶澶у��
+ mesmaxqty: 0, // 宸ュ崟鐨勬渶澶у��
+ mesqtyinit: 0// 宸ュ崟鏁伴噺鍒濆鍊�
},
ordertypeArr: [// 宸ュ崟绫诲瀷
{ code: 'PO', name: '鏍囧噯宸ュ崟' },
@@ -2536,6 +2537,8 @@
this.dialogForm.deliverydate = row.saleOrderDeliveryDate.substring(0, 11)
this.dialogForm.mesqty = row.plan_qty
+ this.dialogForm.mesqtyinit = row.plan_qty
+
const data = {
sourceid: this.dialogForm.sourceorderid,
sourcewo: this.dialogForm.sourceorder,
@@ -2654,6 +2657,10 @@
return this.$message.info('婧愬崟鍗曞彿涓嶈兘涓虹┖锛�')
}
+ if (this.dialogForm.mesqty <= 0) {
+ return this.$message.info('宸ュ崟鏁伴噺涓嶈兘绛変簬闆讹紒')
+ }
+
if (this.dialogForm.data_sources === 'ERP' && this.dialogForm.mesmaxqty < this.dialogForm.mesqty) {
return this.$message.info('姝ゅ伐鍗曠殑鏈�澶т慨鏀规暟鍊间负锛�' + this.dialogForm.mesmaxqty)
}
@@ -2687,6 +2694,7 @@
deliverydate: this.dialogForm.deliverydate, // 浜や粯鏃堕棿
data_sources: this.dialogForm.data_sources, // 鏁版嵁鏉ユ簮
isstep: workListSub.length > 0 ? 'Y' : 'N', //
+ difference: this.dialogForm.mesqty - this.dialogForm.mesqtyinit, // 鏁版嵁宸��
workListSub
}
--
Gitblit v1.9.3