From 76486524892abdfd3039eedc28d83cbbfb56d042 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 18 六月 2025 16:17:05 +0800
Subject: [PATCH] 取消报工/车间订单下发/车间订单取消下发/功能点逻辑编写
---
pages/product/cancelReport/index.vue | 47 ++++++++++++++++++++++++-----------------------
1 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/pages/product/cancelReport/index.vue b/pages/product/cancelReport/index.vue
index 5e68b36..5fcb8b5 100644
--- a/pages/product/cancelReport/index.vue
+++ b/pages/product/cancelReport/index.vue
@@ -101,7 +101,7 @@
<text class="item-one">鎵瑰彿</text>
</view>
<view class="packing-registration-param-item-right">
- <text class="item-one item-two">{{ detailedList.value1 }}</text>
+ <text class="item-one item-two">{{ detailedList.moNo }}</text>
</view>
</view>
<view class="packing-registration-param-item param-extra">
@@ -109,7 +109,7 @@
<text class="item-one">闆朵欢鍙�</text>
</view>
<view class="packing-registration-param-item-right">
- <text class="item-one item-two">{{ detailedList.value2 }}</text>
+ <text class="item-one item-two">{{ detailedList.partNo }}</text>
</view>
</view>
<view class="packing-registration-param-item param-extra">
@@ -117,7 +117,9 @@
<text class="item-one">闆朵欢鎻忚堪</text>
</view>
<view class="packing-registration-param-item-right">
- <text class="item-one item-two">{{ detailedList.value3 }}</text>
+ <text class="item-one item-two">{{
+ detailedList.partName
+ }}</text>
</view>
</view>
<view class="packing-registration-param-item param-extra">
@@ -127,7 +129,7 @@
<view class="packing-registration-param-item-right">
<u-input
class="item-one item-two"
- v-model="detailedList.value4"
+ v-model="detailedList.qtyRequired"
/>
</view>
</view>
@@ -159,10 +161,10 @@
moNo: "",
},
detailedList: {
- value1: "",
- value2: "",
- value3: "",
- value4: "",
+ moNo: "",
+ partNo: "",
+ partName: "",
+ qtyRequired: "",
},
list: [
{
@@ -182,18 +184,10 @@
onShow() {
let that = this;
uni.$off("scan"); // 姣忔杩涙潵鍏� 绉婚櫎鍏ㄥ眬鑷畾涔変簨浠剁洃鍚櫒
- if ((that.form.moNO = null)) {
+ if ((that.form.moNO == null)) {
uni.showToast({
icon: "none",
title: "璇峰厛閫夋嫨璁㈠崟鍙凤紒",
- duration: 2 * 1000,
- });
- return;
- }
- if ((that.form.moNO = null)) {
- uni.showToast({
- icon: "none",
- title: "鎵弿鐨勪簩缁寸爜涓庤璁㈠崟涓嶄竴鑷�",
duration: 2 * 1000,
});
return;
@@ -204,8 +198,15 @@
console.log("椤甸潰鎵爜缁撴灉锛�", data.code);
if (data.code) {
let codeInfo = JSON.parse(data.code);
- if (codeInfo.WorkNo) {
- (this.detailedList = {}),
+ if (codeInfo.moNO) {
+ if ((that.form.moNO != codeInfo.moNO)) {
+ uni.showToast({
+ icon: "none",
+ title: "鎵弿鐨勪簩缁寸爜涓庤璁㈠崟涓嶄竴鑷�",
+ duration: 2 * 1000,
+ });
+ return;
+ }
// 鎵弿鎶ュ伐鍗曚簩缁寸爜
that.saveForm(codeInfo);
}
@@ -235,10 +236,10 @@
},
// 鍥炴樉鎵爜鐨勪俊鎭�-鎶ュ伐鍗�
saveForm(val) {
- let { WorkNo, ProcessName, ORDER_NO } = val;
- this.detailedList.value1 = WorkNo;
- this.detailedList.value2 = ProcessName;
- this.detailedList.value3 = ORDER_NO;
+ let { moNo, partNo, partName } = val;
+ this.detailedList.moNo = moNo;
+ this.detailedList.partNo = partNo;
+ this.detailedList.partName = partName;
this.showModal = true;
},
},
--
Gitblit v1.9.3