From 19756b3475d70b5758a12ff2383970ef3edcece7 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期一, 02 二月 2026 09:58:58 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill.vue | 1615 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 830 insertions(+), 785 deletions(-)

diff --git a/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill.vue b/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill.vue
index 46200f5..99ea259 100644
--- a/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill.vue
+++ b/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill.vue
@@ -1,834 +1,879 @@
 <template>
-	<view>
-		<view class="tabs" id="tabs">
-			<view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
-			<!-- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鏄庣粏淇℃伅</view> -->
-			<view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍏朵粬淇℃伅</view>
-			<!-- <view :class="tabs == 3 ? 'on':''" @tap="tabs = 3">闄勪欢淇℃伅</view> -->
-		</view>
-		<!-- 鍩烘湰淇℃伅 -->
-		<template v-if="tabs == 0">
-			<view class="form" :style="{
+    <view>
+        <view class="tabs" id="tabs">
+            <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
+            <!-- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鏄庣粏淇℃伅</view> -->
+            <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍏朵粬淇℃伅</view>
+            <!-- <view :class="tabs == 3 ? 'on':''" @tap="tabs = 3">闄勪欢淇℃伅</view> -->
+        </view>
+        <!-- 鍩烘湰淇℃伅 -->
+        <template v-if="tabs == 0">
+            <view class="form" :style="{
                 height: containerHeight + 'px',
                 overflow: 'auto'
             }">
-				<view class="form-item">
-					<view class="title">璁惧鏉$爜:</view>
-					<view :class="enableEdit?'right':'righton'">
-						<input v-model="hform.HBarCode" :disabled="!enableEdit"
-							@confirm="GetMessageByBarCode(hform.HBarCode)" placeholder="璇疯緭鍏�(鎴栨壂鎻�)璁惧鏉$爜" />
-					</view>
-					<view class="icon-wrapper">
-						<uni-icons type="scan" size="20" @click="toScanCode"></uni-icons>
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">鏈�缁堢粨璁�:</view>
-					<view class="right none-border">
-						<radio-group @change="radioChange" class="radio_Container">
-							<label>
-								<view>
-									<radio value="OK" :checked="hform.HCheckResult == 'OK'" />
-									<text>OK</text>
-								</view>
-							</label>
-							</label>
-							<view>
-								<radio value="NG" :checked="hform.HCheckResult == 'NG'" />
-								<text>NG</text>
-							</view>
-							</label>
-						</radio-group>
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">楠屾敹鍐呭:</view>
-					<view class="right">
-						<textarea v-model="HDetailList[0].HRepairCheckContent" placeholder="璇疯緭鍏ラ獙鏀跺唴瀹�" />
-					</view>
-				</view>
-				<!-- 缁翠慨璁板綍锛堟簮鍗曪級 -->
-				<view class="form-item">
-					<view class="title required">缁翠慨璁板綍:</view>
-					<view :class="enableSourceBillEdit?'right':'righton'">
-						<input v-model="hform.HMainSourceBillNo" :disabled="!enableSourceBillEdit"
-							@confirm="GetMessageByHMainSourceBillNo(hform.HMainSourceBillNo)"
-							placeholder="璇疯緭鍏�(鎴栨壂鎻�)缁翠慨璁板綍鍗曞彿" />
-					</view>
-					<!-- 鏀惧ぇ闀滃浘鏍� -->
-					<view class="icon-wrapper">
-						<uni-icons type="search" size="20" @click="showBillList"></uni-icons>
-					</view>
-					<!-- 鎵弿鍥炬爣 -->
-					<view class="icon-wrapper">
-						<uni-icons type="scan" size="20" @click="toScanHMainSourceBillNo"></uni-icons>
-					</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>
-				<view class="form-item">
-					<view class="title required">閮ㄩ棬:</view>
-					<zxz-uni-data-select required class="right" :localdata="HDeptList" dataKey="閮ㄩ棬鍚嶇О"
-						dataValue="HItemID" v-model="hform.HDeptID">
-					</zxz-uni-data-select>
-				</view>
-				<view class="form-item">
-					<view class="title required">楠屾敹浜�:</view>
-					<zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
-						dataValue="HItemID" v-model="hform.HEmpID">
-					</zxz-uni-data-select>
-				</view>
-				<view class="form-item">
-					<view class="title required">楠屾敹椤圭洰:</view>
-					<zxz-uni-data-select required class="right" :localdata="HRepairCheckList" dataKey="缁翠慨楠屾敹椤圭洰"
-						dataValue="hitemid" v-model="hform.HRepairCheckID">
-					</zxz-uni-data-select>
-				</view>
-				<view class="form-item">
-					<view class="title required">璐熻矗浜�:</view>
-					<zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
-						dataValue="HItemID" v-model="hform.HManagerID">
-					</zxz-uni-data-select>
-				</view>
-				<view class="form-item">
-					<view class="title">璁惧鍚嶇О:</view>
-					<view class="righton">
-						<input v-model="hform.HBarName" disabled />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">璁惧瑙勬牸:</view>
-					<view class="righton">
-						<input v-model="hform.HBarSpec" disabled />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">璁惧鍨嬪彿:</view>
-					<view class="righton">
-						<input v-model="hform.HBarModel" disabled />
-					</view>
-				</view>
-			</view>
-		</template>
-		<!-- 鍏朵粬淇℃伅 -->
-		<template v-if="tabs == 2">
-			<view class="form" :style="{
+                <view class="form-item">
+                    <view class="title">璁惧鏉$爜:</view>
+                    <view :class="enableEdit?'right':'righton'">
+                        <input v-model="hform.HBarCode" :disabled="!enableEdit"
+                            @confirm="GetMessageByBarCode(hform.HBarCode)" placeholder="璇疯緭鍏�(鎴栨壂鎻�)璁惧鏉$爜" />
+                    </view>
+                    <view class="icon-wrapper">
+                        <uni-icons type="scan" size="20" @click="toScanCode"></uni-icons>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鏈�缁堢粨璁�:</view>
+                    <view class="right none-border">
+                        <radio-group @change="radioChange" class="radio_Container">
+                            <label>
+                                <view>
+                                    <radio value="OK" :checked="hform.HCheckResult == 'OK'" />
+                                    <text>OK</text>
+                                </view>
+                            </label>
+                            </label>
+                            <view>
+                                <radio value="NG" :checked="hform.HCheckResult == 'NG'" />
+                                <text>NG</text>
+                            </view>
+                            </label>
+                        </radio-group>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">楠屾敹鍐呭:</view>
+                    <view class="right">
+                        <textarea v-model="HDetailList[0].HRepairCheckContent" placeholder="璇疯緭鍏ラ獙鏀跺唴瀹�" />
+                    </view>
+                </view>
+                <!-- 缁翠慨璁板綍锛堟簮鍗曪級 -->
+                <view class="form-item">
+                    <view class="title required">缁翠慨璁板綍:</view>
+                    <view :class="enableSourceBillEdit?'right':'righton'">
+                        <input v-model="hform.HMainSourceBillNo" :disabled="!enableSourceBillEdit"
+                            @confirm="GetMessageByHMainSourceBillNo(hform.HMainSourceBillNo)"
+                            placeholder="璇疯緭鍏�(鎴栨壂鎻�)缁翠慨璁板綍鍗曞彿" />
+                    </view>
+                    <!-- 鏀惧ぇ闀滃浘鏍� -->
+                    <view class="icon-wrapper">
+                        <uni-icons type="search" size="20" @click="showBillList"></uni-icons>
+                    </view>
+                    <!-- 鎵弿鍥炬爣 -->
+                    <view class="icon-wrapper">
+                        <uni-icons type="scan" size="20" @click="toScanHMainSourceBillNo"></uni-icons>
+                    </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>
+                <view class="form-item">
+                    <view class="title required">閮ㄩ棬:</view>
+                    <zxz-uni-data-select required class="right" :localdata="HDeptList" dataKey="閮ㄩ棬鍚嶇О"
+                        dataValue="HItemID" v-model="hform.HDeptID">
+                    </zxz-uni-data-select>
+                </view>
+                <view class="form-item">
+                    <view class="title required">楠屾敹浜�:</view>
+                    <zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
+                        dataValue="HItemID" v-model="hform.HEmpID">
+                    </zxz-uni-data-select>
+                </view>
+                <view class="form-item">
+                    <view class="title required">楠屾敹椤圭洰:</view>
+                    <zxz-uni-data-select required class="right" :localdata="HRepairCheckList" dataKey="缁翠慨楠屾敹椤圭洰"
+                        dataValue="hitemid" v-model="hform.HRepairCheckID">
+                    </zxz-uni-data-select>
+                </view>
+                <view class="form-item">
+                    <view class="title required">璐熻矗浜�:</view>
+                    <zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
+                        dataValue="HItemID" v-model="hform.HManagerID">
+                    </zxz-uni-data-select>
+                </view>
+                <view class="form-item">
+                    <view class="title">璁惧鍚嶇О:</view>
+                    <view class="righton">
+                        <input v-model="hform.HBarName" disabled />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">璁惧瑙勬牸:</view>
+                    <view class="righton">
+                        <input v-model="hform.HBarSpec" disabled />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">璁惧鍨嬪彿:</view>
+                    <view class="righton">
+                        <input v-model="hform.HBarModel" disabled />
+                    </view>
+                </view>
+            </view>
+        </template>
+        <!-- 鍏朵粬淇℃伅 -->
+        <template v-if="tabs == 2">
+            <view class="form" :style="{
                 height: containerHeight + 'px',
                 overflow: 'auto'
             }">
-				<view class="form-item">
-					<view class="title">鍒涘缓浜�:</view>
-					<view class="righton">
-						<input v-model="hform.HMaker" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">鍒涘缓鏃ユ湡:</view>
-					<view class="righton">
-						<input v-model="hform.HMakeDate" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">淇敼浜�:</view>
-					<view class="righton">
-						<input v-model="hform.HUpDater" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">淇敼鏃ユ湡:</view>
-					<view class="righton">
-						<input v-model="hform.HUpDateDate" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">瀹℃牳浜�:</view>
-					<view class="righton">
-						<input v-model="hform.HChecker" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">瀹℃牳鏃堕棿:</view>
-					<view class="righton">
-						<input v-model="hform.HCheckDate" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">浣滃簾浜�:</view>
-					<view class="righton">
-						<input v-model="hform.HDeleteMan" />
-					</view>
-				</view>
-				<view class="form-item">
-					<view class="title">浣滃簾鏃ユ湡:</view>
-					<view class="righton">
-						<input v-model="hform.HDeleteDate" />
-					</view>
-				</view>
-			</view>
+                <view class="form-item">
+                    <view class="title">鍒涘缓浜�:</view>
+                    <view class="righton">
+                        <input v-model="hform.HMaker" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍒涘缓鏃ユ湡:</view>
+                    <view class="righton">
+                        <input v-model="hform.HMakeDate" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">淇敼浜�:</view>
+                    <view class="righton">
+                        <input v-model="hform.HUpDater" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">淇敼鏃ユ湡:</view>
+                    <view class="righton">
+                        <input v-model="hform.HUpDateDate" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">瀹℃牳浜�:</view>
+                    <view class="righton">
+                        <input v-model="hform.HChecker" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">瀹℃牳鏃堕棿:</view>
+                    <view class="righton">
+                        <input v-model="hform.HCheckDate" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">浣滃簾浜�:</view>
+                    <view class="righton">
+                        <input v-model="hform.HDeleteMan" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">浣滃簾鏃ユ湡:</view>
+                    <view class="righton">
+                        <input v-model="hform.HDeleteDate" />
+                    </view>
+                </view>
+            </view>
 
-		</template>
-		<!-- 鎿嶄綔鎸夐挳 -->
-		<view class="buttons" id="buttons">
-			<button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
-			<view style="flex: 1;"></view>
-			<button class="btn-a" size="mini" @tap="addNew">鏂板</button>
-			<button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
-		</view>
-		<xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload>
+        </template>
+        <!-- 鎿嶄綔鎸夐挳 -->
+        <view class="buttons" id="buttons">
+            <button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+            <view style="flex: 1;"></view>
+            <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
+            <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+        </view>
+        <xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload>
 
-		<!-- 婧愬崟鍗曟嵁鍒楄〃寮圭獥 -->
-		<BillListPopupEquipConkBookBillVue ref="billList" :HBillType="hform.HBillType" :HSourceBillType="'璁惧缁翠慨璁板綍鍗�'"
-			:HStockOrgID="hform.HStockOrgID">
-		</BillListPopupEquipConkBookBillVue>
-	</view>
+        <!-- 婧愬崟鍗曟嵁鍒楄〃寮圭獥 -->
+        <BillListPopupEquipConkBookBillVue ref="billList" :HBillType="hform.HBillType" :HSourceBillType="'璁惧缁翠慨璁板綍鍗�'"
+            :HStockOrgID="hform.HStockOrgID">
+        </BillListPopupEquipConkBookBillVue>
+    </view>
 </template>
 
 <script>
-	import dayjs from "dayjs";
-	import {
-		CommonUtils
-	} from "@/utils/common";
-	import {
-		MpaasScan
-	} from "@/utils/mpaasScan.js"
-	import {
-		getUserInfo
-	} from "../../../utils/auth";
-	// 寮曞叆婧愬崟鍗曟嵁鍒楄〃寮圭獥缁勪欢
-	import BillListPopupEquipConkBookBillVue from '../../../components/BillListPopup/BillListPopupEquipConkBookBill.vue';
+    import dayjs from "dayjs";
+    import {
+        CommonUtils
+    } from "@/utils/common";
+    import {
+        MpaasScan
+    } from "@/utils/mpaasScan.js"
+    import {
+        getUserInfo
+    } from "../../../utils/auth";
+    // 寮曞叆婧愬崟鍗曟嵁鍒楄〃寮圭獥缁勪欢
+    import BillListPopupEquipConkBookBillVue from '../../../components/BillListPopup/BillListPopupEquipConkBookBill.vue';
 
-	export default {
-		name: 'sb_EquipRepairCheckBill',
-		components: {
-			BillListPopupEquipConkBookBillVue
-		},
-		data() {
-			return {
-				tabs: 0,
-				btnTop: 0,
-				tabsBottom: 0,
-				HModName: "sb_EquipRepairCheckBill",
-				HBillType: '3911',
-				operationType: 1,
-				uploadOptions: {},
-				enableEdit: true,
-				enableSourceBillEdit: true, // 鏂板锛氭帶鍒剁淮淇褰曠紪杈戠姸鎬�
+    export default {
+        name: 'sb_EquipRepairCheckBill',
+        components: {
+            BillListPopupEquipConkBookBillVue
+        },
+        data() {
+            return {
+                tabs: 0,
+                btnTop: 0,
+                tabsBottom: 0,
+                HModName: "sb_EquipRepairCheckBill",
+                HBillType: '3911',
+                operationType: 1,
+                uploadOptions: {},
+                enableEdit: true,
+                enableSourceBillEdit: true, // 鏂板锛氭帶鍒剁淮淇褰曠紪杈戠姸鎬�
 
-				HDeptList: [],
-				HRepairCheckList: [],
-				HEmpList: [],
+                HDeptList: [],
+                HRepairCheckList: [],
+                HEmpList: [],
 
-				hform: {
-					"HBillType": '3911',
-					"HBarCode": "",
-					"HCheckBeginDate": dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
-					"HCheckResult": "OK",
-					"HRepairCheckContent": "",
-					"HBillNo": "",
-					"HInterID": 0,
-					"HDate": dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
-					"HDeptName": getUserInfo().HDeptName,
-					"HDeptID": getUserInfo().HDeptID,
-					"HEmpName": getUserInfo().HEmpName,
-					"HEmpID": getUserInfo().HEmpID,
-					"HManagerName": getUserInfo().HManagerName,
-					"HManagerID": getUserInfo().HManagerID,
-					"HRepairCheckMainName": "",
-					"HRepairCheckID": 0,
-					"HBarName": "",
-					"HEquipID": 0,
-					"HBarSpec": "",
-					"HBarModel": "",
-					"HMaker": getUserInfo()["Czymc"],
-					"HMakeDate": dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
-					"HUpDater": "",
-					"HUpDateDate": "",
-					"HChecker": "",
-					"HCheckDate": "",
-					"HDeleteMan": "",
-					"HDeleteDate": "",
-					"lngBillKey": "",
-					"lngBillSubKey": "",
-					// 鏂板锛氱淮淇褰曪紙婧愬崟锛夌浉鍏冲瓧娈�
-					"HMainSourceBillNo": "",
-					"HMainSourceInterID": 0,
-					"HMainSourceEntryID": 0,
-					"HMouldRepairWorkName":"",
-					"HMouldRepairWorkID":0,
-					"HStockOrgID": uni.getStorageSync("OrganizationID"),
-				},
-				HDetailList: [{ // 鍚庣鎺ュ彛鎻愪氦闇�瑕� 鏄庣粏淇℃伅
-				  "HRepairCheckID": 0,
-				  "HRepairCode": "",
-				  "HRepairName": "",
-				  "HManagerID": 0,
-				  "HManagerCode": "",
-				  "HManagerName": "",
-				  "HRepairCheckContent": "",
-				  "HRemark": "",
-				  "LAY_TABLE_INDEX": 0
-				}]
-			};
-		},
-		computed: {
-			containerHeight: {
-				get() {
-					return this.btnTop - this.tabsBottom - 5
-				}
-			},
-		},
-		methods: {
-			// 鏄剧ず婧愬崟鍗曟嵁鍒楄〃寮圭獥
-			showBillList() {
-				this.$refs.billList.showPopup();
-			},
+                hform: {
+                    "HBillType": '3911',
+                    "HBarCode": "",
+                    "HCheckBeginDate": dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
+                    "HCheckResult": "OK",
+                    "HRepairCheckContent": "",
+                    "HBillNo": "",
+                    "HInterID": 0,
+                    "HDate": dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
+                    "HDeptName": getUserInfo().HDeptName,
+                    "HDeptID": getUserInfo().HDeptID,
+                    "HEmpName": getUserInfo().HEmpName,
+                    "HEmpID": getUserInfo().HEmpID,
+                    "HManagerName": getUserInfo().HManagerName,
+                    "HManagerID": getUserInfo().HManagerID,
+                    "HRepairCheckMainName": "",
+                    "HRepairCheckID": 0,
+                    "HBarName": "",
+                    "HEquipID": 0,
+                    "HBarSpec": "",
+                    "HBarModel": "",
+                    "HMaker": getUserInfo()["Czymc"],
+                    "HMakeDate": dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
+                    "HUpDater": "",
+                    "HUpDateDate": "",
+                    "HChecker": "",
+                    "HCheckDate": "",
+                    "HDeleteMan": "",
+                    "HDeleteDate": "",
+                    "lngBillKey": "",
+                    "lngBillSubKey": "",
+                    // 鏂板锛氱淮淇褰曪紙婧愬崟锛夌浉鍏冲瓧娈�
+                    "HMainSourceBillNo": "",
+                    "HMainSourceInterID": 0,
+                    "HMainSourceEntryID": 0,
+                    "HMouldRepairWorkName": "",
+                    "HMouldRepairWorkID": 0,
+                    "HStockOrgID": uni.getStorageSync("OrganizationID"),
+                },
+                HDetailList: [{ // 鍚庣鎺ュ彛鎻愪氦闇�瑕� 鏄庣粏淇℃伅
+                    "HRepairCheckID": 0,
+                    "HRepairCode": "",
+                    "HRepairName": "",
+                    "HManagerID": 0,
+                    "HManagerCode": "",
+                    "HManagerName": "",
+                    "HRepairCheckContent": "",
+                    "HRemark": "",
+                    "LAY_TABLE_INDEX": 0
+                }]
+            };
+        },
+        computed: {
+            containerHeight: {
+                get() {
+                    return this.btnTop - this.tabsBottom - 5
+                }
+            },
+        },
+        methods: {
+            // 鏄剧ず婧愬崟鍗曟嵁鍒楄〃寮圭獥
+            showBillList() {
+                this.$refs.billList.showPopup();
+            },
 
-			// 鎵弿缁翠慨璁板綍鍗曞彿
-			toScanHMainSourceBillNo() {
-				MpaasScan.scanCode(cb => {
-					this.hform.HMainSourceBillNo = cb;
-					this.GetMessageByHMainSourceBillNo(cb);
-				});
-			},
+            // 鎵弿缁翠慨璁板綍鍗曞彿
+            toScanHMainSourceBillNo() {
+                MpaasScan.scanCode(cb => {
+                    this.hform.HMainSourceBillNo = cb;
+                    this.GetMessageByHMainSourceBillNo(cb);
+                });
+            },
 
-			// 鏍规嵁缁翠慨璁板綍鍗曞彿鑾峰彇淇℃伅
-			async GetMessageByHMainSourceBillNo(HSouceBillNo) {
-				try {
-					let url = "/Sb_EqpRepairWorkBill/GetEqpRepairWorkBillListPage";
-					let dataField = {
-						sWhere: ` and 鍗曟嵁鍙� = '${HSouceBillNo}'`,
-						user: getUserInfo()["Czymc"],
-						page: 1,
-						size: 1,
-					};
+            // 鏍规嵁缁翠慨璁板綍鍗曞彿鑾峰彇淇℃伅
+            async GetMessageByHMainSourceBillNo(HSouceBillNo) {
+                try {
+                    let url = "/Sb_EqpRepairWorkBill/GetEqpRepairWorkBillListPage";
+                    let dataField = {
+                        sWhere: ` and 鍗曟嵁鍙� = '${HSouceBillNo}'`,
+                        user: getUserInfo()["Czymc"],
+                        page: 1,
+                        size: 1,
+                    };
 
-					let res = await CommonUtils.doRequest2Async({
-						url: url,
-						data: dataField
-					});
+                    let res = await CommonUtils.doRequest2Async({
+                        url: url,
+                        data: dataField
+                    });
 
-					let {
-						count,
-						Message,
-						data
-					} = res.data;
-					if (count == 1) {
-						this.hform.HMainSourceBillNo = data[0]["鍗曟嵁鍙�"];
-						this.hform.HMainSourceInterID = data[0]["hmainid"];
-						this.hform.HMainSourceEntryID = data[0]["hsubid"];
+                    let {
+                        count,
+                        Message,
+                        data
+                    } = res.data;
+                    if (count == 1) {
+                        this.hform.HMainSourceBillNo = data[0]["鍗曟嵁鍙�"];
+                        this.hform.HMainSourceInterID = data[0]["hmainid"];
+                        this.hform.HMainSourceEntryID = data[0]["hsubid"];
 
-						// 濡傛灉婧愬崟鏈夎澶囦俊鎭紝鍙互鑷姩濉厖
-						if (data[0].HEquipID) {
-							this.hform.HEquipID = data[0].HEquipID;
-							this.getEquipFileMain(data[0].HEquipID);
-						}
+                        // 濡傛灉婧愬崟鏈夎澶囦俊鎭紝鍙互鑷姩濉厖
+                        if (data[0].HEquipID) {
+                            this.hform.HEquipID = data[0].HEquipID;
+                            this.getEquipFileMain(data[0].HEquipID);
+                        }
 
-					} else {
-						CommonUtils.showTips({
-							title: "娓╅Θ鎻愮ず",
-							message: `鑾峰彇缁翠慨璁板綍鍗曞け璐�: ${Message}`
-						});
-					}
-				} catch (err) {
-					CommonUtils.showTips({
-						title: "娓╅Θ鎻愮ず",
-						message: `鑾峰彇缁翠慨璁板綍鍗曞け璐�: ${err}`
-					});
-				}
-			},
+                    } else {
+                        CommonUtils.showTips({
+                            title: "娓╅Θ鎻愮ず",
+                            message: `鑾峰彇缁翠慨璁板綍鍗曞け璐�: ${Message}`
+                        });
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: "娓╅Θ鎻愮ず",
+                        message: `鑾峰彇缁翠慨璁板綍鍗曞け璐�: ${err}`
+                    });
+                }
+            },
 
-			// 鏍规嵁璁惧ID鑾峰彇璁惧淇℃伅
-			async getEquipFileMain(HInterID) {
-				try {
-					let res = await CommonUtils.doRequest2Sync({
-						url: "/Sb_PDA_EquipDotCheckBill/txtHBarCode_KeyDown_ListByHEquipID",
-						data: {
-							HEquipID: HInterID,
-						},
-					});
+            // 鏍规嵁璁惧ID鑾峰彇璁惧淇℃伅
+            async getEquipFileMain(HInterID) {
+                try {
+                    let res = await CommonUtils.doRequest2Sync({
+                        url: "/Sb_PDA_EquipDotCheckBill/txtHBarCode_KeyDown_ListByHEquipID",
+                        data: {
+                            HEquipID: HInterID,
+                        },
+                    });
 
-					if (!res) {
-						return;
-					}
+                    if (!res) {
+                        return;
+                    }
 
-					let {
-						data,
-						count,
-						Message
-					} = res.data;
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data;
 
-					if (count == 1) {
-						this.hform.HEquipID = data[0].hmainid;
-						this.hform.HBarName = data[0].璁惧鍚嶇О;
-						this.hform.HBarSpec = data[0].璁惧瑙勬牸;
-						this.hform.HBarModel = data[0].璁惧鍨嬪彿;
-						this.hform.HBarCode = data[0].璁惧鏉$爜 || "";
-						this.enableEdit = false;
-					} else {
-						CommonUtils.showTips({
-							title: "娓╅Θ鎻愮ず",
-							message: Message
-						});
-					}
-				} catch (err) {
-					CommonUtils.showTips({
-						title: "娓╅Θ鎻愮ず",
-						message: err
-					});
-				}
-			},
+                    if (count == 1) {
+                        this.hform.HEquipID = data[0].hmainid;
+                        this.hform.HBarName = data[0].璁惧鍚嶇О;
+                        this.hform.HBarSpec = data[0].璁惧瑙勬牸;
+                        this.hform.HBarModel = data[0].璁惧鍨嬪彿;
+                        this.hform.HBarCode = data[0].璁惧鏉$爜 || "";
+                        this.enableEdit = false;
+                    } else {
+                        CommonUtils.showTips({
+                            title: "娓╅Θ鎻愮ず",
+                            message: Message
+                        });
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: "娓╅Θ鎻愮ず",
+                        message: err
+                    });
+                }
+            },
 
-			// 鎻愪氦鏁版嵁鏈夋晥鎬ф牎楠�
-			ValidCheck() {
-				if (this.hform.HEquipID == 0) {
-					return {
-						Message: "鏈綍鍏ヨ澶囦俊鎭紝璇峰厛褰曞叆璁惧淇℃伅!",
-						state: false
-					}
-				}
-				if (this.hform.HDeptID == 0) {
-					return {
-						Message: "閮ㄩ棬涓嶅緱涓虹┖!",
-						state: false
-					}
-				}
-				if (this.hform.HEmpID == 0) {
-					return {
-						Message: "楠屾敹浜轰笉寰椾负绌�!",
-						state: false
-					}
-				}
-				if (this.hform.HRepairCheckID == 0) {
-					return {
-						Message: "楠岃瘉椤圭洰涓嶅緱涓虹┖!",
-						state: false
-					}
-				}
-				if (this.hform.HManagerID == 0) {
-					return {
-						Message: "璐熻矗浜轰笉寰椾负绌�!",
-						state: false
-					}
-				}
-				// 鏂板锛氱淮淇褰曟牎楠�
-				if (!this.hform.HMainSourceBillNo || this.hform.HMainSourceBillNo.trim() === '') {
-					return {
-						Message: "缁翠慨璁板綍涓嶅緱涓虹┖!",
-						state: false
-					}
-				}
+            // 鎻愪氦鏁版嵁鏈夋晥鎬ф牎楠�
+            ValidCheck() {
+                if (this.hform.HEquipID == 0) {
+                    return {
+                        Message: "鏈綍鍏ヨ澶囦俊鎭紝璇峰厛褰曞叆璁惧淇℃伅!",
+                        state: false
+                    }
+                }
+                if (this.hform.HDeptID == 0) {
+                    return {
+                        Message: "閮ㄩ棬涓嶅緱涓虹┖!",
+                        state: false
+                    }
+                }
+                if (this.hform.HEmpID == 0) {
+                    return {
+                        Message: "楠屾敹浜轰笉寰椾负绌�!",
+                        state: false
+                    }
+                }
+                if (this.hform.HRepairCheckID == 0) {
+                    return {
+                        Message: "楠岃瘉椤圭洰涓嶅緱涓虹┖!",
+                        state: false
+                    }
+                }
+                if (this.hform.HManagerID == 0) {
+                    return {
+                        Message: "璐熻矗浜轰笉寰椾负绌�!",
+                        state: false
+                    }
+                }
+                // 鏂板锛氱淮淇褰曟牎楠�
+                if (!this.hform.HMainSourceBillNo || this.hform.HMainSourceBillNo.trim() === '') {
+                    return {
+                        Message: "缁翠慨璁板綍涓嶅緱涓虹┖!",
+                        state: false
+                    }
+                }
 
-				return {
-					Message: "",
-					state: true
-				}
-			},
-			addNew() {
-				uni.redirectTo({
-					url: './Sb_EquipRepairCheckBill?operationType=1'
-				})
-			},
-			goBack() {
-				uni.navigateBack()
-			},
-			checkBoxChangeHandler(index, e) {
-				let cr = e.detail.value
-				if (cr.length == 0) {
-					this.HCheckFileList[index]["HDotCheckResult"] = false
-				} else {
-					this.HCheckFileList[index]["HDotCheckResult"] = true
-				}
-			},
-			uploadFile(index) {
-				console.log('filePath: ', this.attachmentInfo[index].filePath);
-				// 閫氳繃涓存椂璺緞璇诲彇鏂囦欢
-				uni.uploadFile({
-					url: CommonUtils.getServerUrl() + "/Sb_EquipDotCheckBill/UploadFile",
-					filePath: this.attachmentInfo[index].filePath,
-					name: 'file',
-					formData: {
-						HBillNo: this.hform.HBillNo,
-						HRemark: "",
-						HUserName: getUserInfo()["Czymc"]
-					},
-					success: (uploadRes) => {
-						CommonUtils.showTips({
-							message: "涓婁紶鎴愬姛"
-						})
-						this.attachmentInfo[index].status = "涓婁紶鎴愬姛"
-					},
-					fail: (err) => {
-						CommonUtils.showTips({
-							title: '娓╅Θ鎻愮ず',
-							message: `涓婁紶澶辫触: ${err}`
-						})
-					}
-				})
-			},
-			delFile(index) {
-				console.log('attachmentInfo: ', this.attachmentInfo[index]);
-				uni.showModal({
-					title: '鎻愮ず',
-					content: '纭瑕佸垹闄� " ' + this.attachmentInfo[index].fileName + ' " 鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
-					success: (res) => {
-						if (res.confirm) {
-							this.attachmentInfo.splice(index, 1)
-						}
-					},
-				})
+                return {
+                    Message: "",
+                    state: true
+                }
+            },
+            addNew() {
+                uni.redirectTo({
+                    url: './Sb_EquipRepairCheckBill?operationType=1'
+                })
+            },
+            goBack() {
+                uni.navigateBack()
+            },
+            checkBoxChangeHandler(index, e) {
+                let cr = e.detail.value
+                if (cr.length == 0) {
+                    this.HCheckFileList[index]["HDotCheckResult"] = false
+                } else {
+                    this.HCheckFileList[index]["HDotCheckResult"] = true
+                }
+            },
+            uploadFile(index) {
+                console.log('filePath: ', this.attachmentInfo[index].filePath);
+                // 閫氳繃涓存椂璺緞璇诲彇鏂囦欢
+                uni.uploadFile({
+                    url: CommonUtils.getServerUrl() + "/Sb_EquipDotCheckBill/UploadFile",
+                    filePath: this.attachmentInfo[index].filePath,
+                    name: 'file',
+                    formData: {
+                        HBillNo: this.hform.HBillNo,
+                        HRemark: "",
+                        HUserName: getUserInfo()["Czymc"]
+                    },
+                    success: (uploadRes) => {
+                        CommonUtils.showTips({
+                            message: "涓婁紶鎴愬姛"
+                        })
+                        this.attachmentInfo[index].status = "涓婁紶鎴愬姛"
+                    },
+                    fail: (err) => {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: `涓婁紶澶辫触: ${err}`
+                        })
+                    }
+                })
+            },
+            delFile(index) {
+                console.log('attachmentInfo: ', this.attachmentInfo[index]);
+                uni.showModal({
+                    title: '鎻愮ず',
+                    content: '纭瑕佸垹闄� " ' + this.attachmentInfo[index].fileName + ' " 鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+                    success: (res) => {
+                        if (res.confirm) {
+                            this.attachmentInfo.splice(index, 1)
+                        }
+                    },
+                })
 
-			},
-			handleUploadCallback(res) { // 鏂囦欢涓婁紶鍥炶皟
-				console.log('file: ', res);
-				let fileInfo = res.data[0]
-				this.attachmentInfo.push({
-					fileName: fileInfo.name,
-					size: fileInfo.size,
-					status: '绛夊緟涓婁紶',
-					filePath: fileInfo.tempFilePath
-				})
-			},
-			// 涓婁紶鏂囦欢
-			fileUpload() {
-				this.$refs.XeUpload.upload('file', {});
-			},
-			//鑾峰彇鐝鏁版嵁
-			async getShiftList() {
-				try {
-					let res = await CommonUtils.doRequest2Async({
-						url: '/Web/GetGy_ShiftsList_Json',
-						data: {
-							Shifts: "",
-						}
-					})
+            },
+            handleUploadCallback(res) { // 鏂囦欢涓婁紶鍥炶皟
+                console.log('file: ', res);
+                let fileInfo = res.data[0]
+                this.attachmentInfo.push({
+                    fileName: fileInfo.name,
+                    size: fileInfo.size,
+                    status: '绛夊緟涓婁紶',
+                    filePath: fileInfo.tempFilePath
+                })
+            },
+            // 涓婁紶鏂囦欢
+            fileUpload() {
+                this.$refs.XeUpload.upload('file', {});
+            },
+            //鑾峰彇鐝鏁版嵁
+            async getShiftList() {
+                try {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: '/Web/GetGy_ShiftsList_Json',
+                        data: {
+                            Shifts: "",
+                        }
+                    })
 
-					let {
-						data,
-						count,
-						Message
-					} = res.data
-					if (count == 1) {
-						this.HShiftsList = data
-					} else {
-						CommonUtils.showTips({
-							title: '娓╅Θ鎻愮ず',
-							message: Message
-						})
-					}
-				} catch (err) {
-					CommonUtils.showTips({
-						title: '娓╅Θ鎻愮ず',
-						message: err
-					})
-				}
-			},
-			//鑾峰彇浣跨敤閮ㄩ棬鏁版嵁
-			async getHDeptList() {
-				try {
-					let res = await CommonUtils.doRequest2Async({
-						url: '/Gy_Department/list',
-						data: {
-							sWhere: ` and HUSEORGID = ${uni.getStorageSync('OrganizationID')}`,
-							user: uni.getStorageSync('HUserName'),
-							Organization: uni.getStorageSync('Organization')
-						}
-					})
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data
+                    if (count == 1) {
+                        this.HShiftsList = data
+                    } else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: Message
+                        })
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: '娓╅Θ鎻愮ず',
+                        message: err
+                    })
+                }
+            },
+            //鑾峰彇浣跨敤閮ㄩ棬鏁版嵁
+            async getHDeptList() {
+                try {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: '/Gy_Department/list',
+                        data: {
+                            sWhere: ` and HUSEORGID = ${uni.getStorageSync('OrganizationID')}`,
+                            user: uni.getStorageSync('HUserName'),
+                            Organization: uni.getStorageSync('Organization')
+                        }
+                    })
 
-					let {
-						data,
-						count,
-						Message
-					} = res.data
-					if (count == 1) {
-						this.HDeptList = data
-					} else {
-						CommonUtils.showTips({
-							title: '娓╅Θ鎻愮ず',
-							message: Message
-						})
-					}
-				} catch (err) {
-					CommonUtils.showTips({
-						title: '娓╅Θ鎻愮ず',
-						message: err
-					})
-				}
-			},
-			// 鑾峰彇鑱屽憳鏁版嵁
-			async getEmpList() {
-				try {
-					let res = await CommonUtils.doRequest2Async({
-						url: '/PublicPageMethod/UserList',
-						data: {
-							sWhere: " where 1=1",
-						}
-					})
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data
+                    if (count == 1) {
+                        this.HDeptList = data
+                    } else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: Message
+                        })
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: '娓╅Θ鎻愮ず',
+                        message: err
+                    })
+                }
+            },
+            // 鑾峰彇鑱屽憳鏁版嵁
+            async getEmpList() {
+                try {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: '/PublicPageMethod/UserList',
+                        data: {
+                            sWhere: " where 1=1",
+                        }
+                    })
 
-					let {
-						data,
-						count,
-						Message
-					} = res.data
-					if (count == 1) {
-						this.HEmpList = data
-					} else {
-						CommonUtils.showTips({
-							title: '娓╅Θ鎻愮ず',
-							message: Message
-						})
-					}
-				} catch (err) {
-					CommonUtils.showTips({
-						title: '娓╅Θ鎻愮ず',
-						message: err
-					})
-				}
-			},
-			// 鑾峰彇楠岃瘉椤圭洰鏁版嵁
-			async getCheckProjList() {
-				try {
-					let res = await CommonUtils.doRequest2Async({
-						url: '/Gy_RepairCheck/GetRepairCheckList',
-						data: {
-							sWhere: "",
-							user: uni.getStorageSync('HUserName'),
-						}
-					})
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data
+                    if (count == 1) {
+                        this.HEmpList = data
+                    } else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: Message
+                        })
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: '娓╅Θ鎻愮ず',
+                        message: err
+                    })
+                }
+            },
+            // 鑾峰彇楠岃瘉椤圭洰鏁版嵁
+            async getCheckProjList() {
+                try {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: '/Gy_RepairCheck/GetRepairCheckList',
+                        data: {
+                            sWhere: "",
+                            user: uni.getStorageSync('HUserName'),
+                        }
+                    })
 
-					let {
-						data,
-						count,
-						Message
-					} = res.data
-					if (count == 1) {
-						this.HRepairCheckList = data
-					} else {
-						CommonUtils.showTips({
-							title: '娓╅Θ鎻愮ず',
-							message: Message
-						})
-					}
-				} catch (err) {
-					CommonUtils.showTips({
-						title: '娓╅Θ鎻愮ず',
-						message: err
-					})
-				}
-			},
-			toScanCode() {
-				MpaasScan.scanCode(cb => {
-					this.hform.HBarCode = cb; // 淇锛氬師鏉ユ槸 hfrom 搴旇鏄� hform
-					this.GetMessageByBarCode(cb)
-				})
-			},
-			async GetMessageByBarCode(HBarCode) {
-				try {
-					let res = await CommonUtils.doRequest2Sync({
-						url: "/Sb_PDA_EquipDotCheckBill/txtHBarCode_KeyDown_List",
-						data: {
-							HBarCode: HBarCode,
-						},
-					})
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data
+                    if (count == 1) {
+                        this.HRepairCheckList = data
+                    } else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: Message
+                        })
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: '娓╅Θ鎻愮ず',
+                        message: err
+                    })
+                }
+            },
+            toScanCode() {
+                MpaasScan.scanCode(cb => {
+                    this.hform.HBarCode = cb; // 淇锛氬師鏉ユ槸 hfrom 搴旇鏄� hform
+                    this.GetMessageByBarCode(cb)
+                })
+            },
+            async GetMessageByBarCode(HBarCode) {
+                try {
+                    let res = await CommonUtils.doRequest2Sync({
+                        url: "/Sb_PDA_EquipDotCheckBill/txtHBarCode_KeyDown_List",
+                        data: {
+                            HBarCode: HBarCode,
+                        },
+                    })
 
-					if (!res) {
-						return
-					}
+                    if (!res) {
+                        return
+                    }
 
-					let {
-						data,
-						count,
-						Message
-					} = res.data
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data
 
-					if (count == 1) {
-						console.log('data: ', data);
-						this.hform.HEquipID = data[0].hmainid
-						this.hform.HBarName = data[0].璁惧鍚嶇О
-						this.hform.HBarSpec = data[0].璁惧瑙勬牸
-						this.hform.HBarModel = data[0].璁惧鍨嬪彿
-						this.hform.HBarCode = HBarCode;
-						this.hform.HQty = 1
+                    if (count == 1) {
+                        console.log('data: ', data);
+                        this.hform.HEquipID = data[0].hmainid
+                        this.hform.HBarName = data[0].璁惧鍚嶇О
+                        this.hform.HBarSpec = data[0].璁惧瑙勬牸
+                        this.hform.HBarModel = data[0].璁惧鍨嬪彿
+                        this.hform.HBarCode = HBarCode;
+                        this.hform.HQty = 1
 
-						this.enableEdit = false
-					} else {
-						CommonUtils.showTips({
-							title: "娓╅Θ鎻愮ず",
-							message: Message
-						})
-					}
+                        this.enableEdit = false
+                    } else {
+                        CommonUtils.showTips({
+                            title: "娓╅Θ鎻愮ず",
+                            message: Message
+                        })
+                    }
 
-				} catch (err) {
-					CommonUtils.showTips({
-						title: "娓╅Θ鎻愮ず",
-						message: err
-					})
-				}
-			},
-			radioChange({
-				detail: {
-					value
-				}
-			}) {
-				this.hform.HCheckResult = value
-			},
-			async getMaxNum() {
-				try {
-					let res = await CommonUtils.doRequest2Async({
-						url: "/Web/GetMAXNum",
-						data: {
-							"HBillType": this.HBillType
-						}
-					})
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: "娓╅Θ鎻愮ず",
+                        message: err
+                    })
+                }
+            },
+            radioChange({
+                detail: {
+                    value
+                }
+            }) {
+                this.hform.HCheckResult = value
+            },
+            async getMaxNum() {
+                try {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: "/Web/GetMAXNum",
+                        data: {
+                            "HBillType": this.HBillType
+                        }
+                    })
 
-					let {
-						count,
-						data,
-						Message
-					} = res.data
-					console.log('data: ', data);
-					this.hform.HInterID = 0
-					this.hform.HBillNo = data[0]["HBillNo"]
-				} catch (err) {
-					CommonUtils.showTips({
-						title: "娓╅Θ鎻愮ず",
-						message: "鑾峰彇鍗曟嵁淇℃伅寮傚父: " + err
-					})
-				}
-			},
-			async submit() {
-				let valid = this.ValidCheck()
-				if (!valid.state) {
-					CommonUtils.showTips({
-						message: valid.Message
-					})
-					return
-				}
+                    let {
+                        count,
+                        data,
+                        Message
+                    } = res.data
+                    console.log('data: ', data);
+                    this.hform.HInterID = 0
+                    this.hform.HBillNo = data[0]["HBillNo"]
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: "娓╅Θ鎻愮ず",
+                        message: "鑾峰彇鍗曟嵁淇℃伅寮傚父: " + err
+                    })
+                }
+            },
+            async getSourceBillInfo(HSourceBillType, HInterID, HBillNo) {
+                // 涓嬫帹鍗曟嵁绫诲瀷涓鸿澶囨晠闅滅櫥璁板崟
+                if (HSourceBillType == 3907) {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: "/Sb_EqpRepairWorkBill/GetEquipMatainanceBillBySourceInterID",
+                        data: {
+                            user: getUserInfo()["Czymc"],
+                            HSourceInterID: HInterID
+                        }
+                    })
 
-				try {
-					let oMain = JSON.stringify(this.hform);
-					this.HDetailList[0].HManagerID = this.hform.HManagerID
-					this.HDetailList[0].HRepairCheckID = this.hform.HRepairCheckID
-					let sSubStr = JSON.stringify(this.HDetailList);
-					let sMainSub = oMain + ';' + sSubStr + ';' + getUserInfo()['Czymc'];
-					let res = await CommonUtils.doRequest2Sync({
-						url: "/Sb_EqpRepairWorkBill/SaveGetEqpRepairCheckBillList",
-						data: {
-							"msg": sMainSub
-						},
-						method: "POST"
-					})
+                    let {
+                        data,
+                        code,
+                        count,
+                        Message
+                    } = res.data
 
-					if (!res) {
-						return
-					}
+                    if (count == 1) {
+                        console.log('data: ', data);
+                        let data1 = data[0]
+                        this.hform.HEquipID = data[0].HEquipID
+                        this.hform.HBarName = data[0].璁惧鍚嶇О
+                        this.hform.HBarModel = data[0].璁惧瑙勬牸
+                        this.hform.HBarSpec = data[0].璁惧瑙勬牸
+                        
+                        this.hform.HMainSourceBillNo = data[0]["璁惧缁翠慨璁板綍鍗�"];
+                        this.hform.HMainSourceInterID = data[0]["HEquipRepairCheckBillInterID"];
+                        this.hform.HMainSourceEntryID = data[0]["HEquipRepairCheckBillEntryID"];
+                        
+                        
+                    } else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: `鑾峰彇婧愬崟澶辫触: ${Message}`
+                        })
+                    }
+                }
+            },
+            async submit() {
+                let valid = this.ValidCheck()
+                if (!valid.state) {
+                    CommonUtils.showTips({
+                        message: valid.Message
+                    })
+                    return
+                }
 
-					let {
-						count,
-						Message
-					} = res.data
-					if (count == 1) {
-						uni.showModal({
-							title: '鎻愮ず',
-							content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
-							success: (res) => {
-								if (res.confirm) {
-									console.log('鐢ㄦ埛鐐瑰嚮纭畾');
-									uni.redirectTo({
-										url: '/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill?operationType=1'
-									})
-								} else if (res.cancel) {
-									console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
-									setTimeout(() => {
-										uni.navigateBack();
-									}, 50)
-								}
-							}
-						});
-					} else {
-						CommonUtils.showTips({
-							title: "娓╅Θ鎻愮ず",
-							message: "鎻愪氦鍗曟嵁澶辫触: " + Message
-						})
-					}
+                try {
+                    let oMain = JSON.stringify(this.hform);
+                    this.HDetailList[0].HManagerID = this.hform.HManagerID
+                    this.HDetailList[0].HRepairCheckID = this.hform.HRepairCheckID
+                    let sSubStr = JSON.stringify(this.HDetailList);
+                    let sMainSub = oMain + ';' + sSubStr + ';' + getUserInfo()['Czymc'];
+                    let res = await CommonUtils.doRequest2Sync({
+                        url: "/Sb_EqpRepairWorkBill/SaveGetEqpRepairCheckBillList",
+                        data: {
+                            "msg": sMainSub
+                        },
+                        method: "POST"
+                    })
 
-				} catch (err) {
-					CommonUtils.showTips({
-						title: "娓╅Θ鎻愮ず",
-						message: "鎻愪氦鍗曟嵁澶辫触: " + err
-					})
-				}
-			}
-		},
-		onLoad(e) {
-			console.log('e: ', e);
-			if (!e.operationType) {
-				this.operationType = 1
-			} else {
-				this.operationType = e.operationType
-			}
+                    if (!res) {
+                        return
+                    }
 
-			if (this.operationType == 1) {
-				// 鏂板
-				this.getMaxNum()
-				this.enableEdit = true;
-				this.enableSourceBillEdit = true;
-			} else if (this.operationType == 2) {
-				// 澶嶅埗
-			} else if (this.operationType == 3) {
-				// 缂栬緫
-			} else if (this.operationType == 4) {
-				// 娴忚
-				this.enableEdit = false;
-				this.enableSourceBillEdit = false;
-			}
+                    let {
+                        count,
+                        Message
+                    } = res.data
+                    if (count == 1) {
+                        uni.showModal({
+                            title: '鎻愮ず',
+                            content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+                            success: (res) => {
+                                if (res.confirm) {
+                                    console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                                    uni.redirectTo({
+                                        url: '/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill?operationType=1'
+                                    })
+                                } else if (res.cancel) {
+                                    console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                                    setTimeout(() => {
+                                        uni.navigateBack();
+                                    }, 50)
+                                }
+                            }
+                        });
+                    } else {
+                        CommonUtils.showTips({
+                            title: "娓╅Θ鎻愮ず",
+                            message: "鎻愪氦鍗曟嵁澶辫触: " + Message
+                        })
+                    }
 
-			this.getHDeptList()
-			this.getEmpList()
-			this.getCheckProjList()
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: "娓╅Θ鎻愮ず",
+                        message: "鎻愪氦鍗曟嵁澶辫触: " + err
+                    })
+                }
+            }
+        },
+        onLoad(e) {
+            console.log('e: ', e);
+            if (!e.operationType) {
+                this.operationType = 1
+            } else {
+                this.operationType = e.operationType
+            }
 
-			// 鐩戝惉鍗曟嵁閫夋嫨瀹屾垚浜嬩欢
-			uni.$on('BillSelectComplete', (e) => {
-				console.log("鎺ユ敹鍒扮殑娑堟伅: ", e)
-				this.hform.HMainSourceInterID = e.HInterID
-				this.hform.HMainSourceBillNo = e.HBillNo
-				this.hform.HMainSourceEntryID = e.HEntryID
-				this.hform.HMouldRepairWorkID = e.HInterID
-				this.hform.HMouldRepairWorkName = e.HBillNo
-				this.hform.HEquipID = e.HEquipID
-				this.hform.HBarName = e.HEquipName
-				this.hform.HBarSpec = e.HEquipSpec
-				this.hform.HBarModel = e.HEquipModel
-				this.hform.HBarCode = e.HEquipBarCode || ""
-				this.$refs.billList.exit()
-			})
-		},
-		onUnload() {
-			uni.$off('BillSelectComplete')
-		},
-		onReady() {
-			const query = uni.createSelectorQuery().in(this)
-			query.select("#buttons")
-				.boundingClientRect()
-				.select("#tabs")
-				.boundingClientRect()
-				.exec(res => {
-					this.btnTop = Math.floor(res[0].top)
-					this.tabsBottom = Math.ceil(res[1].bottom)
-				})
-		}
-	}
+            if (this.operationType == 1) {
+                // 鏂板
+                this.getMaxNum()
+                this.enableEdit = true;
+                this.enableSourceBillEdit = true;
+            } else if (this.operationType == 2) {
+                // 澶嶅埗
+            } else if (this.operationType == 3) {
+                // 缂栬緫
+            } else if (this.operationType == 4) {
+                // 涓嬫帹
+                let {
+                    HSourceBillType,
+                    HInterID,
+                    HBillNo
+                } = e
+                // 涓嬫帹
+                this.getMaxNum()
+                this.getSourceBillInfo(HSourceBillType, HInterID, HBillNo)
+            }
+
+            this.getHDeptList()
+            this.getEmpList()
+            this.getCheckProjList()
+
+            // 鐩戝惉鍗曟嵁閫夋嫨瀹屾垚浜嬩欢
+            uni.$on('BillSelectComplete', (e) => {
+                console.log("鎺ユ敹鍒扮殑娑堟伅: ", e)
+                this.hform.HMainSourceInterID = e.HInterID
+                this.hform.HMainSourceBillNo = e.HBillNo
+                this.hform.HMainSourceEntryID = e.HEntryID
+                this.hform.HMouldRepairWorkID = e.HInterID
+                this.hform.HMouldRepairWorkName = e.HBillNo
+                this.hform.HEquipID = e.HEquipID
+                this.hform.HBarName = e.HEquipName
+                this.hform.HBarSpec = e.HEquipSpec
+                this.hform.HBarModel = e.HEquipModel
+                this.hform.HBarCode = e.HEquipBarCode || ""
+                this.$refs.billList.exit()
+            })
+        },
+        onUnload() {
+            uni.$off('BillSelectComplete')
+        },
+        onReady() {
+            const query = uni.createSelectorQuery().in(this)
+            query.select("#buttons")
+                .boundingClientRect()
+                .select("#tabs")
+                .boundingClientRect()
+                .exec(res => {
+                    this.btnTop = Math.floor(res[0].top)
+                    this.tabsBottom = Math.ceil(res[1].bottom)
+                })
+        }
+    }
 </script>
 
 <style lang="scss" scoped>
-	@import "@/pages/MJGL/style/MJBillStyle.scss"
+    @import "@/pages/MJGL/style/MJBillStyle.scss"
 </style>
\ No newline at end of file

--
Gitblit v1.9.1