From fbe87c8d043cb038d384df7721bc071676a0c24c Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期二, 03 三月 2026 14:38:49 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill.vue |  415 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 211 insertions(+), 204 deletions(-)

diff --git a/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill.vue b/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill.vue
index f669451..f46af33 100644
--- a/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill.vue
+++ b/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill.vue
@@ -13,9 +13,9 @@
                 overflow: 'auto'
             }">
 
-				<!-- 鍘熷唴瀹逛繚鎸佷笉鍙� -->
+                <!-- 鍘熷唴瀹逛繚鎸佷笉鍙� -->
                 <view class="form-item">
-                    <view class="title">鍣ㄥ叿鏉$爜:</view>
+                    <view class="title">妯″叿鏉$爜:</view>
                     <view :class="enableEdit?'right':'righton'">
                         <input v-model="hform.HBarCode" :disabled="!enableEdit"
                             @confirm="GetMessageByBarCode(hform.HBarCode)" placeholder="璇疯緭鍏�(鎴栨壂鎻�)鍣ㄥ叿鏉$爜" />
@@ -40,45 +40,45 @@
                         </uni-datetime-picker>
                     </view>
                 </view>
-				<!-- 鏂板婧愬崟绫诲瀷鍜屾晠闅滅櫥璁板崟閫夋嫨 -->
+                <!-- 鏂板婧愬崟绫诲瀷鍜屾晠闅滅櫥璁板崟閫夋嫨 -->
                 <view class="form-item">
-					<view class="title">婧愬崟绫诲瀷</view>
-					<view class="right" v-show="showHMainSourceBillType">
-						<picker :range="arrayHMainSourceBillType" @change="HMainSourceBillTypeChange">
+                    <view class="title">婧愬崟绫诲瀷</view>
+                    <view class="right" v-show="showHMainSourceBillType">
+                        <picker :range="arrayHMainSourceBillType" @change="HMainSourceBillTypeChange">
 
-							<input disabled name="HMainSourceBillType" v-model="HMainSourceBillType"
-								placeholder="璇烽�夋嫨婧愬崟绫诲瀷" />
-							<view class="picker-overlay"></view>
-						</picker>
+                            <input disabled name="HMainSourceBillType" v-model="HMainSourceBillType"
+                                placeholder="璇烽�夋嫨婧愬崟绫诲瀷" />
+                            <view class="picker-overlay"></view>
+                        </picker>
                     </view>
-					<view class="righton" v-show="!showHMainSourceBillType">
-						<input name="HMainSourceBillType" disabled v-model="HMainSourceBillType"
-							placeholder="璇烽�夋嫨婧愬崟绫诲瀷" />
-                </view>
-				</view>
-                <view class="form-item">
-					<view class="title required">鏁呴殰鐧昏鍗�</view>
-					<view class="right" v-show="hform.HMainSourceBillType != 1">
-						<input type="text" name="HBarCode" v-model="hform.HMainSourceBillNo" />
-                    </view>
-					<view class="icon-wrapper" v-show="hform.HMainSourceBillType != 1"
-						:disabled="hform.HMainSourceBillType == -1">
-						<uni-icons type="search" size="20" @click="showBillList"></uni-icons>
-                </view>
-					<view class="righton" v-show="hform.HMainSourceBillType == 1">
-						<input type="text" disabled name="HBarCode" v-model="hform.HMainSourceBillNo" />
-                </view>
-				</view>
-                <view class="form-item">
-					<view class="title">鍗曟嵁鍙�:</view>
-					<view class="righton">
-						<input disabled v-model="hform.HBillNo" />
+                    <view class="righton" v-show="!showHMainSourceBillType">
+                        <input name="HMainSourceBillType" disabled v-model="HMainSourceBillType"
+                            placeholder="璇烽�夋嫨婧愬崟绫诲瀷" />
                     </view>
                 </view>
                 <view class="form-item">
-					<view class="title">鍗曟嵁鏃ユ湡:</view>
-					<view class="righton">
-						<input disabled v-model="hform.HDate" />
+                    <view class="title required">鏁呴殰鐧昏鍗�</view>
+                    <view class="right" v-show="hform.HMainSourceBillType != 1">
+                        <input type="text" name="HBarCode" v-model="hform.HMainSourceBillNo" />
+                    </view>
+                    <view class="icon-wrapper" v-show="hform.HMainSourceBillType != 1"
+                        :disabled="hform.HMainSourceBillType == -1">
+                        <uni-icons type="search" size="20" @click="showBillList"></uni-icons>
+                    </view>
+                    <view class="righton" v-show="hform.HMainSourceBillType == 1">
+                        <input type="text" disabled name="HBarCode" v-model="hform.HMainSourceBillNo" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍗曟嵁鍙�:</view>
+                    <view class="righton">
+                        <input disabled v-model="hform.HBillNo" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍗曟嵁鏃ユ湡:</view>
+                    <view class="righton">
+                        <input disabled v-model="hform.HDate" />
                     </view>
                 </view>
 
@@ -97,11 +97,17 @@
                     </zxz-uni-data-select>
                 </view>
                 <view class="form-item">
-                    <view class="title required">缁翠慨椤圭洰:</view>
-                    <zxz-uni-data-select required class="right" :localdata="HRepairList" dataKey="缁翠慨椤圭洰"
-                        dataValue="hitemid" v-model="hform.HRepairID">
+                    <view class="title">缁翠慨椤圭洰:</view>
+                    <zxz-uni-data-select class="right" :localdata="HRepairList" dataKey="缁翠慨椤圭洰" dataValue="hitemid"
+                        v-model="hform.HRepairID">
 
                     </zxz-uni-data-select>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨鍐呭:</view>
+                    <view class="right">
+                        <textarea v-model="hform.HRepairContent" placeholder="璇疯緭鍏ョ淮淇唴瀹�" />
+                    </view>
                 </view>
                 <view class="form-item">
                     <view class="title required">涓荤:</view>
@@ -111,19 +117,19 @@
                     </zxz-uni-data-select>
                 </view>
                 <view class="form-item">
-                    <view class="title">鍣ㄥ叿鍚嶇О:</view>
+                    <view class="title">妯″叿鍚嶇О:</view>
                     <view class="righton">
                         <input v-model="hform.HMouldName" disabled />
                     </view>
                 </view>
                 <view class="form-item">
-                    <view class="title">鍣ㄥ叿瑙勬牸:</view>
+                    <view class="title">妯″叿瑙勬牸:</view>
                     <view class="righton">
                         <input v-model="hform.HMouldModel" disabled />
                     </view>
                 </view>
                 <view class="form-item">
-                    <view class="title">鍣ㄥ叿鍨嬪彿:</view>
+                    <view class="title">妯″叿鍨嬪彿:</view>
                     <view class="righton">
                         <input v-model="hform.HMouldSpec" disabled />
                     </view>
@@ -137,27 +143,27 @@
                 overflow: 'auto'
             }">
                 <view class="form-item">
-					<view class="title">鏃堕棿鍗曚綅:</view>
-					<zxz-uni-data-select class="right" :localdata="[
+                    <view class="title">鏃堕棿鍗曚綅:</view>
+                    <zxz-uni-data-select class="right" :localdata="[
                			        {key: '灏忔椂', value: '灏忔椂'},
                			        {key: '澶�', value: '澶�'},
                			        {key: '鏈�', value: '鏈�'},
                			    ]" dataKey="key" dataValue="value" v-model="hform.HCycleUnit">
-					</zxz-uni-data-select>
-				</view>
-				<view class="form-item">
-					<view class="title">璁″垝缁翠慨宸ユ椂:</view>
-					<view class="right">
-						<input type="number" v-model="hform.HPlanTimes" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">瀹為檯缁翠慨宸ユ椂:</view>
-					<view class="right">
-						<input type="number" v-model="hform.HTimes" />
-					</view>
-				</view>
-				<view class="form-item">
+                    </zxz-uni-data-select>
+                </view>
+                <view class="form-item">
+                    <view class="title">璁″垝缁翠慨宸ユ椂:</view>
+                    <view class="right">
+                        <input type="number" v-model="hform.HPlanTimes" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">瀹為檯缁翠慨宸ユ椂:</view>
+                    <view class="right">
+                        <input type="number" v-model="hform.HTimes" />
+                    </view>
+                </view>
+                <view class="form-item">
                     <view class="title">渚涘簲鍟�:</view>
                     <view class="right">
                         <input v-model="hform.HSupIDName" placeholder="" />
@@ -193,12 +199,6 @@
                     <view class="title">缁翠慨璐圭敤:</view>
                     <view class="right">
                         <input type="number" v-model="HDetailList[0].HMoney" placeholder="" />
-                    </view>
-                </view>
-                <view class="form-item">
-                    <view class="title">缁翠慨鍐呭:</view>
-                    <view class="right">
-                        <textarea v-model="hform.HRepairContent" placeholder="璇疯緭鍏ョ淮淇唴瀹�" />
                     </view>
                 </view>
                 <view class="form-item">
@@ -270,7 +270,7 @@
                     </view>
                 </view>
             </view>
-		</template>
+        </template>
 
         <!-- 鎿嶄綔鎸夐挳 -->
         <view class="buttons" id="buttons">
@@ -280,10 +280,10 @@
             <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
         </view>
 
-		<!-- 鏂板寮圭獥缁勪欢 -->
-		<BillListPopupMouldConkBookBillVue ref="billList" :HBillType="hform.HBillType"
-			:HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID">
-		</BillListPopupMouldConkBookBillVue>
+        <!-- 鏂板寮圭獥缁勪欢 -->
+        <BillListPopupMouldConkBookBillVue ref="billList" :HBillType="hform.HBillType"
+            :HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID">
+        </BillListPopupMouldConkBookBillVue>
     </view>
 </template>
 
@@ -298,22 +298,22 @@
     import {
         getUserInfo
     } from "../../../utils/auth";
-	// 鏂板寮曞叆缁勪欢
-	import BillListPopupMouldConkBookBillVue from '../../../components/BillListPopup/BillListPopupMouldConkBookBill.vue';
+    // 鏂板寮曞叆缁勪欢
+    import BillListPopupMouldConkBookBillVue from '../../../components/BillListPopup/BillListPopupMouldConkBookBill.vue';
 
     export default {
         // 鍣ㄥ叿缁翠慨娲惧伐鍗�
         name: 'Sc_MouldRepairSendWorkBill',
-		components: {
-			BillListPopupMouldConkBookBillVue,
-		},
+        components: {
+            BillListPopupMouldConkBookBillVue,
+        },
         data() {
             return {
                 tabs: 0,
-				HMainSourceBillType: '妯″叿鏁呴殰鐧昏鍗�', // 鏂板
-				showHMainSourceBillType: true, // 鏂板
-				arrayHMainSourceBillType: ['妯″叿鏁呴殰鐧昏鍗�'], // 鏂板
-				arrayHMainSourceBillTypeID: ['3815'], // 鏂板
+                HMainSourceBillType: '妯″叿鏁呴殰鐧昏鍗�', // 鏂板
+                showHMainSourceBillType: true, // 鏂板
+                arrayHMainSourceBillType: ['妯″叿鏁呴殰鐧昏鍗�'], // 鏂板
+                arrayHMainSourceBillTypeID: ['3815'], // 鏂板
                 btnTop: 0,
                 tabsBottom: 0,
                 HModName: "Sc_MouldRepairSendWorkBill",
@@ -328,7 +328,7 @@
                 HRepairList: [],
 
                 hform: {
-					"HBillType":"3843",
+                    "HBillType": "3843",
                     "HBarCode": "",
                     "HBillNo": "",
                     "HInterID": "0",
@@ -348,13 +348,13 @@
                     "HManagerName": getUserInfo().HSecManager,
                     "HManagerID": getUserInfo().HSecManagerID,
                     "HRepairBeginDate": dayjs(new Date()).format('YYYY-MM-DD'),
-					"HMainSourceBillType": 3815, // 鏂板锛氶粯璁ゆā鍏锋晠闅滅櫥璁板崟
-					"HMainSourceInterID": "0", // 鏂板
-					"HMainSourceEntryID": "0", // 鏂板
+                    "HMainSourceBillType": 3815, // 鏂板锛氶粯璁ゆā鍏锋晠闅滅櫥璁板崟
+                    "HMainSourceInterID": "0", // 鏂板
+                    "HMainSourceEntryID": "0", // 鏂板
                     "HPlanTimes": "0",
                     "HTimes": "0",
                     "HRepairEndDate": dayjs(new Date()).format('YYYY-MM-DD'),
-					"HMainSourceBillNo": "", // 鏂板
+                    "HMainSourceBillNo": "", // 鏂板
                     "HSupIDName": "",
                     "HSupID": "0",
                     "HRepairType": "鍐呴儴缁翠慨",
@@ -379,7 +379,7 @@
                     "HMouldName": "",
                     "HMouldSpec": "",
                     "HMouldModel": "",
-					"HStockOrgID": uni.getStorageSync("OrganizationID") || "0" // 鏂板
+                    "HStockOrgID": uni.getStorageSync("OrganizationID") || "0" // 鏂板
                 },
                 HDetailList: [{ // 鍚庣鎺ュ彛鎻愪氦闇�瑕� 鏄庣粏淇℃伅
                     "瀛愮淮淇」鐩�": "",
@@ -402,42 +402,42 @@
             },
         },
         methods: {
-			// 鏂板锛氶�夋嫨婧愬崟绫诲瀷
-			HMainSourceBillTypeChange(e) {
-				if (e.detail.value == -1 || e.detail.value == NaN) {
-					this.HMainSourceBillType = '鎵嬪伐褰曞叆'
-					this.hform.HMainSourceBillType = -1
-					return
-				}
-				console.log(e.detail.value)
-				console.log(e)
-				this.HMainSourceBillType = this.arrayHMainSourceBillType[e.detail.value]
-				this.hform.HMainSourceBillType = this.arrayHMainSourceBillTypeID[e.detail.value]
+            // 鏂板锛氶�夋嫨婧愬崟绫诲瀷
+            HMainSourceBillTypeChange(e) {
+                if (e.detail.value == -1 || e.detail.value == NaN) {
+                    this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                    this.hform.HMainSourceBillType = -1
+                    return
+                }
+                console.log(e.detail.value)
+                console.log(e)
+                this.HMainSourceBillType = this.arrayHMainSourceBillType[e.detail.value]
+                this.hform.HMainSourceBillType = this.arrayHMainSourceBillTypeID[e.detail.value]
 
-				// 缂撳瓨褰撳墠椤甸潰閫夋嫨
-				const pages = getCurrentPages()
-				const currentPage = pages[pages.length - 1]
-				uni.setStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`, {
-					HSourceBillTypeName: this.HMainSourceBillType,
-					HSourceBillType: this.hform.HMainSourceBillType
-				})
-			},
+                // 缂撳瓨褰撳墠椤甸潰閫夋嫨
+                const pages = getCurrentPages()
+                const currentPage = pages[pages.length - 1]
+                uni.setStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`, {
+                    HSourceBillTypeName: this.HMainSourceBillType,
+                    HSourceBillType: this.hform.HMainSourceBillType
+                })
+            },
 
-			// 鏂板锛氭樉绀哄崟鎹垪琛ㄥ脊绐�
-			showBillList() {
-				this.$refs.billList.showPopup()
-			},
+            // 鏂板锛氭樉绀哄崟鎹垪琛ㄥ脊绐�
+            showBillList() {
+                this.$refs.billList.showPopup()
+            },
 
-			// 鏂板锛氳鍙栫紦瀛�
-			loadCache() {
-				const pages = getCurrentPages()
-				const currentPage = pages[pages.length - 1]
-				let HBillTypeCache = uni.getStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`)
-				if (HBillTypeCache) {
-					this.HMainSourceBillType = HBillTypeCache.HSourceBillTypeName
-					this.hform.HMainSourceBillType = HBillTypeCache.HSourceBillType
-				}
-			},
+            // 鏂板锛氳鍙栫紦瀛�
+            loadCache() {
+                const pages = getCurrentPages()
+                const currentPage = pages[pages.length - 1]
+                let HBillTypeCache = uni.getStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`)
+                if (HBillTypeCache) {
+                    this.HMainSourceBillType = HBillTypeCache.HSourceBillTypeName
+                    this.hform.HMainSourceBillType = HBillTypeCache.HSourceBillType
+                }
+            },
 
             // 缁翠慨椤圭洰
             async getRepairList() {
@@ -476,13 +476,13 @@
             },
             // 鎻愪氦鏁版嵁鏈夋晥鎬ф牎楠�
             ValidCheck() {
-				// 鏂板锛氭鏌ユ晠闅滅櫥璁板崟
-				if (this.hform.HMainSourceBillType != 1 && !this.hform.HMainSourceBillNo) {
-					return {
-						Message: "鏁呴殰鐧昏鍗曚笉寰椾负绌�!",
-						state: false
-					}
-				}
+                // 鏂板锛氭鏌ユ晠闅滅櫥璁板崟
+                if (this.hform.HMainSourceBillType != 1 && !this.hform.HMainSourceBillNo) {
+                    return {
+                        Message: "鏁呴殰鐧昏鍗曚笉寰椾负绌�!",
+                        state: false
+                    }
+                }
 
                 if (this.hform.HMouldID == 0) {
                     return {
@@ -498,19 +498,19 @@
                 }
                 if (this.hform.HEmpID == 0) {
                     return {
-						Message: "缁翠慨浜轰笉寰椾负绌�!",
+                        Message: "缁翠慨浜轰笉寰椾负绌�!",
                         state: false
                     }
                 }
-				if (this.hform.HRepairID == 0) {
-                    return {
-						Message: "缁翠慨椤圭洰涓嶅緱涓虹┖!",
-                        state: false
-                    }
-                }
+                // if (this.hform.HRepairID == 0) {
+                //                 return {
+                // 		Message: "缁翠慨椤圭洰涓嶅緱涓虹┖!",
+                //                     state: false
+                //                 }
+                //             }
                 if (this.hform.HManagerID == 0) {
                     return {
-						Message: "涓荤涓嶅緱涓虹┖!",
+                        Message: "涓荤涓嶅緱涓虹┖!",
                         state: false
                     }
                 }
@@ -583,8 +583,8 @@
             // 鑾峰彇鑱屽憳鏁版嵁
             async getEmpList() {
                 try {
-                    let sWhere=  " where 1=1 "
-                    if(this.hform.HDeptName && uni.getStorageSync("Organization") == '瀹佹尝甯傚崕鑸熷寘瑁呮湁闄愬叕鍙�'){
+                    let sWhere = " where 1=1 "
+                    if (this.hform.HDeptName && uni.getStorageSync("Organization") == '瀹佹尝甯傚崕鑸熷寘瑁呮湁闄愬叕鍙�') {
                         sWhere += ` and HDeptName = '${this.hform.HDeptName}'`
                     }
                     let res = await CommonUtils.doRequest2Async({
@@ -798,7 +798,7 @@
                     this.HDetailList[0].HRepairID = this.hform.HRepairID
                     let sSubStr = JSON.stringify(this.HDetailList);
                     let oprType = this.operationType
-                    if(oprType == 4) {
+                    if (oprType == 4) {
                         // 涓嬫帹鐨勬搷浣滅被鍨嬩篃瑙嗕负鏂板
                         oprType = 1
                     }
@@ -828,7 +828,7 @@
                                 if (res.confirm) {
                                     console.log('鐢ㄦ埛鐐瑰嚮纭畾');
                                     uni.redirectTo({
-										// url: './Sc_MouldRepairSendWorkBill?operationType=1'
+                                        // url: './Sc_MouldRepairSendWorkBill?operationType=1'
                                     })
                                 } else if (res.cancel) {
                                     console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
@@ -854,18 +854,23 @@
             },
             async getSourceBillInfo(HSourceBillType, HInterID, HBillNo) {
                 // 涓嬫帹鍗曟嵁绫诲瀷涓鸿澶囨晠闅滅櫥璁板崟
-                if(HSourceBillType == 3815) {
+                if (HSourceBillType == 3815) {
                     let res = await CommonUtils.doRequest2Async({
                         url: "/Sc_MouldConkBookBill/Sb_MouldConkBookBillListCheckDetai",
                         data: {
                             HID: HInterID
                         }
                     })
-                    
-                    let {data,code, count, Message} = res.data
-                    console.log('data: ',data);
-                    if(code == 1) {
-                        console.log('data: ',data.h_v_Sc_MouldConkBookBillList_Edit);
+
+                    let {
+                        data,
+                        code,
+                        count,
+                        Message
+                    } = res.data
+                    console.log('data: ', data);
+                    if (code == 1) {
+                        console.log('data: ', data.h_v_Sc_MouldConkBookBillList_Edit);
                         let data1 = data.h_v_Sc_MouldConkBookBillList_Edit[0]
                         this.hform.HMainSourceBillType = HSourceBillType
                         this.HMainSourceBillType = '鍣ㄥ叿鏁呴殰鐧昏鍗�'
@@ -878,12 +883,10 @@
                         this.hform.HMouldName = data1.浜у搧妯″叿
                         this.hform.HMouldModel = data1.浜у搧妯″叿鍨嬪彿
                         this.hform.HMouldSpec = data1.浜у搧妯″叿瑙勬牸
-                        this.hform.HRepairContent = data1.鏁呴殰鍘熷洜
-                        
+
                         this.enableEdit = false
                         this.showHMainSourceBillType = false
-                    }
-                    else {
+                    } else {
                         CommonUtils.showTips({
                             title: '娓╅Θ鎻愮ず',
                             message: `鑾峰彇婧愬崟澶辫触: ${Message}`
@@ -910,7 +913,11 @@
 
             } else if (this.operationType == 4) {
                 // 涓嬫帹
-                let {HSourceBillType, HInterID, HBillNo} = e
+                let {
+                    HSourceBillType,
+                    HInterID,
+                    HBillNo
+                } = e
                 // 涓嬫帹
                 // this.enableEdit = false;
                 // this.enableSourceBillEdit = false;
@@ -924,28 +931,28 @@
             this.getEmpList()
             this.getCheckProjList()
             this.getRepairList()
-			this.loadCache() // 鏂板锛氬姞杞界紦瀛�
+            this.loadCache() // 鏂板锛氬姞杞界紦瀛�
 
-			// 鏂板锛氱洃鍚崟鎹�夋嫨瀹屾垚浜嬩欢
-			uni.$on('BillSelectComplete', (e) => {
-				console.log("鎺ユ敹鍒扮殑娑堟伅: ", e)
-				this.hform.HMainSourceInterID = e.HInterID
-				this.hform.HMainSourceBillNo = e.HBillNo
-				this.hform.HMainSourceEntryID = e.HEntryID
-				this.hform.HMouldID = e.HMouldID
-				this.hform.HMouldName = e.HMouldName
-				this.hform.HMouldSpec = e.HMouldSpec
-				this.hform.HMouldModel = e.HMouldModel
-				// 濡傛灉閫夋嫨鍗曟嵁鏃跺甫浜嗘潯鐮侊紝涔熻缃潯鐮�
-				if (e.HBarCode) {
-					this.hform.HBarCode = e.HBarCode
-				}
-				this.$refs.billList.exit()
-			})
+            // 鏂板锛氱洃鍚崟鎹�夋嫨瀹屾垚浜嬩欢
+            uni.$on('BillSelectComplete', (e) => {
+                console.log("鎺ユ敹鍒扮殑娑堟伅: ", e)
+                this.hform.HMainSourceInterID = e.HInterID
+                this.hform.HMainSourceBillNo = e.HBillNo
+                this.hform.HMainSourceEntryID = e.HEntryID
+                this.hform.HMouldID = e.HMouldID
+                this.hform.HMouldName = e.HMouldName
+                this.hform.HMouldSpec = e.HMouldSpec
+                this.hform.HMouldModel = e.HMouldModel
+                // 濡傛灉閫夋嫨鍗曟嵁鏃跺甫浜嗘潯鐮侊紝涔熻缃潯鐮�
+                if (e.HBarCode) {
+                    this.hform.HBarCode = e.HBarCode
+                }
+                this.$refs.billList.exit()
+            })
         },
-		onUnload() {
-			uni.$off('BillSelectComplete') // 鏂板锛氱Щ闄や簨浠剁洃鍚�
-		},
+        onUnload() {
+            uni.$off('BillSelectComplete') // 鏂板锛氱Щ闄や簨浠剁洃鍚�
+        },
         onReady() {
             const query = uni.createSelectorQuery().in(this)
             query.select("#buttons")
@@ -961,47 +968,47 @@
 </script>
 
 <style lang="scss" scoped>
-	@import "@/pages/MJGL/style/MJBillStyle.scss";
+    @import "@/pages/MJGL/style/MJBillStyle.scss";
 
-	.picker-overlay {
-		position: absolute;
-		top: 0;
-		left: 0;
-		right: 0;
-		bottom: 0;
-		z-index: 1;
-	}
+    .picker-overlay {
+        position: absolute;
+        top: 0;
+        left: 0;
+        right: 0;
+        bottom: 0;
+        z-index: 1;
+    }
 
-	.icon-wrapper {
-		background-color: #3A78FF;
-		width: 52rpx;
-		height: 52rpx;
-		border-radius: 100%;
-		display: flex;
-		justify-content: center;
-		align-items: center;
+    .icon-wrapper {
+        background-color: #3A78FF;
+        width: 52rpx;
+        height: 52rpx;
+        border-radius: 100%;
+        display: flex;
+        justify-content: center;
+        align-items: center;
 
-		.uni-icons {
-			color: #fff !important;
-		}
-	}
+        .uni-icons {
+            color: #fff !important;
+        }
+    }
 
-	.icon-wrapper[disabled] {
-		background-color: rgba(228, 228, 228, 1);
-		pointer-events: none;
-		touch-action: none;
-	}
+    .icon-wrapper[disabled] {
+        background-color: rgba(228, 228, 228, 1);
+        pointer-events: none;
+        touch-action: none;
+    }
 
-	.required {
-		position: relative;
-	}
+    .required {
+        position: relative;
+    }
 
-	.required::after {
-		content: "*";
-		position: relative;
-		color: red;
-		left: 0;
-		top: 0;
-		font-size: inherit;
-	}
+    .required::after {
+        content: "*";
+        position: relative;
+        color: red;
+        left: 0;
+        top: 0;
+        font-size: inherit;
+    }
 </style>
\ No newline at end of file

--
Gitblit v1.9.1