From 60f2ea175165dbeef48ae07e1d1fc7ceac51b906 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 23 十月 2025 16:55:47 +0800
Subject: [PATCH] 添加 器具故障登记单/器具维修记录单 列表/编辑 页面

---
 pages/qijvguzhangdengji/form.vue  | 1862 +++++++++++++++++++
 pages/weixiujilu/form.vue         | 1929 +++++++++++++++++++
 pages/jishikucunchaxun/table.vue  |  711 +++---
 pages.json                        |   37 
 pages/index/tab2.vue              |   30 
 pages/qijvguzhangdengji/table.vue |  585 ++++++
 pages/index/login.vue             |   64 
 .hbuilderx/launch.json            |    4 
 pages/weixiujilu/table.vue        |  576 +++++
 9 files changed, 5,454 insertions(+), 344 deletions(-)

diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 4dd14cd..a7d9080 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -21,11 +21,11 @@
             "type" : "uni-app:app-ios"
         },
         {
-            "customPlaygroundType" : "device",
+            "customPlaygroundType" : "local",
             "localRepoPath" : "D:/WorkBench/ZY_APP_Dev/STUWMS/unpackage/debug",
             "openVueDevtools" : true,
             "packageName" : "com.shebeiguanli.www",
-            "playground" : "standard",
+            "playground" : "custom",
             "type" : "uni-app:app-android"
         }
     ]
diff --git a/pages.json b/pages.json
index 8eda7a1..47e8ea9 100644
--- a/pages.json
+++ b/pages.json
@@ -849,6 +849,43 @@
             {
                 "navigationBarTitleText" : "鐢熶骇閫�鏂欏崟"
             }
+        },
+        {
+            "path" : "pages/weixiujilu/table",
+            "style" : 
+            {
+                "navigationBarTitleText" : "缁翠慨璁板綍",
+                "enablePullDownRefresh": true
+            }
+        },
+        {
+            "path" : "pages/weixiujilu/form",
+            "style" : 
+            {
+                "navigationBarTitleText" : "缁翠慨璁板綍鍗�"
+            }
+        },
+        {
+            "path" : "pages/qijvguzhangdengji/table",
+            "style" : 
+            {
+                "navigationBarTitleText" : "鍣ㄥ叿鏁呴殰鐧昏",
+                "enablePullDownRefresh": true
+            }
+        },
+        {
+            "path" : "pages/qijvguzhangdengji/form",
+            "style" : 
+            {
+                "navigationBarTitleText" : "鍣ㄥ叿鏁呴殰鐧昏鍗�"
+            }
+        },
+        {
+            "path": "pages/jishikucunchaxun/table",
+            "style" :
+            {
+                "navigationBarTitleText" : "ERP鍗虫椂搴撳瓨鏌ヨ"
+            }
         }
     ],
     "tabBar": {
diff --git a/pages/index/login.vue b/pages/index/login.vue
index 48a1309..5293b6e 100644
--- a/pages/index/login.vue
+++ b/pages/index/login.vue
@@ -85,8 +85,9 @@
                     "娓╁窞娴疯瘹鍏夊": 'http://122.228.39.234:7177/API/',
                     "瀹佹尝鎯犲悍宸ヤ笟": 'http://172.16.72.30:6699/API/',
                     "浣欏鍏磋揪璧峰姩鍣�": 'http://121.37.133.104/API/',
-					"缈佹稕娑涙湰鍦版祴璇�": 'http://localhost:81/API/',
 					"鑻忓窞鍗櫤绉戞妧": 'http://221.224.60.42:8082/API_WW/',
+					"缈佹稕娑涙湰鍦版祴璇�": 'http://localhost:81/API/',
+					"闄堥晲鍝叉湰鍦版祴璇�": 'http://localhost:81/API/',
                 },
                 serverUrlName: '娴欐睙鏅轰簯杩堟��',
 
@@ -108,8 +109,10 @@
                 logindata = JSON.parse(logindata)
                 this.HOrgName = logindata.HOrgName
                 this.Organization = logindata.Organization
-                this.UserName = logindata.UserName
-                this.PassWord = logindata.PassWord
+                this.UserName = logindata.HUserNumber
+                this.PassWord = logindata.HPassWord
+                // this.UserName = logindata.UserName
+                // this.PassWord = logindata.PassWord
             }
             this.getOrganization()
             this.getDataBases()
@@ -227,15 +230,22 @@
                         title: '鐧诲綍涓�...',
                         mask: true
                     })
-                    var data = {
-                        UserName: this.UserName,
-                        PassWord: this.PassWord,
-                        HOrgName: this.HOrgName,
-                        Organization: this.Organization
+                    var data = 
+                    {
+                        HUserNumber: this.UserName,
+                        HPassWord: this.PassWord,
+                        HStockOrgID: this.HOrgName,
+                        HStockOrgName: this.Organization
                     }
+                    
+                    //     UserName: this.UserName,
+                    //     PassWord: this.PassWord,
+                    //     HOrgName: this.HOrgName,
+                    //     Organization: this.Organization
+                    // }
                     uni.setStorageSync('loginData', JSON.stringify(data));
                     uni.request({
-                        url: this.serverUrl + '/Web/GetUser',
+                        url: this.serverUrl + 'WEBSController/GetUser_Json',
                         method: 'GET',
                         data: data,
                         success: (res) => {
@@ -269,6 +279,42 @@
                             })
                         },
                     });
+                    
+                    // uni.request({
+                    //     url: this.serverUrl + '/Web/GetUser',
+                    //     method: 'GET',
+                    //     data: data,
+                    //     success: (res) => {
+                    //         console.log(res)
+                    //         uni.hideLoading()
+                    //         uni.showToast({
+                    //             title: res.data.Message,
+                    //             icon: 'none'
+                    //         })
+                    //         if (res.data.count == 1) {
+                    //             setLoginData(data)
+                    //             setUserInfo(res.data.data[0])
+                    //             uni.setStorageSync('HUserName', res.data.data[0].Czymc);
+                    //             uni.setStorageSync('HBillerID', res.data.data[0].HK3UserID);
+                    //             uni.setStorageSync('SourceFlag', false);
+                    //             uni.setStorageSync('login', "login");
+                    //             uni.setStorageSync('Organization', this.Organization);
+                    //             uni.setStorageSync('OrganizationID', this.HOrgName);
+                    //             this.CommonUtils.setServerUrl(this.serverUrl)
+                    //             uni.reLaunch({
+                    //                 url: '/pages/index/index'
+                    //             })
+                    //         }
+                    //     },
+                    //     fail: (res) => {
+                    //         console.log(res);
+                    //         uni.hideLoading()
+                    //         uni.showToast({
+                    //             title: '鎺ュ彛璇锋眰澶辫触',
+                    //             icon: 'none'
+                    //         })
+                    //     },
+                    // });
                 }
             }
         }
diff --git a/pages/index/tab2.vue b/pages/index/tab2.vue
index 964dcee..55fc725 100644
--- a/pages/index/tab2.vue
+++ b/pages/index/tab2.vue
@@ -289,7 +289,35 @@
 					url: '/pages/MJGL/xiamodan/table',
 					id: 36,
 					hidden: false,
-				}
+				},
+                {
+                	img: '../../static/icon/icon13.png',
+                	text: '鍣ㄥ叿鏁呴殰鐧昏',
+                	url: '/pages/qijvguzhangdengji/table',
+                	id: 37,
+                	hidden: false,
+                },
+                {
+                	img: '../../static/icon/icon13.png',
+                	text: '鍣ㄥ叿鏁呴殰鐧昏鍗�',
+                	url: '/pages/qijvguzhangdengji/form?operationType=1',
+                	id: 38,
+                	hidden: false,
+                },
+                {
+                	img: '../../static/icon/icon13.png',
+                	text: '缁翠慨璁板綍',
+                	url: '/pages/weixiujilu/table',
+                	id: 39,
+                	hidden: false,
+                },
+                {
+                	img: '../../static/icon/icon13.png',
+                	text: '缁翠慨璁板綍鍗�',
+                	url: '/pages/weixiujilu/form',
+                	id: 40,
+                	hidden: false,
+                }
 				]
 			}
 		},
diff --git a/pages/jishikucunchaxun/table.vue b/pages/jishikucunchaxun/table.vue
index fc27cca..61a0534 100644
--- a/pages/jishikucunchaxun/table.vue
+++ b/pages/jishikucunchaxun/table.vue
@@ -1,362 +1,409 @@
 <template>
-	<view class="page" id="pageContent">
-		<view class="search-condition-zone">
-			<view class="form-item">
-				<view class="left">
-					鏉$爜:
-				</view>
-				<view class="right general">
-					<input type="text" v-model="hform.HBarCode" />
-				</view>
-			</view>
-			<view class="form-item">
-				<view class="left">
-					浠撳簱:
-				</view>
-				<view class="right general">
-					<uni-combox :candidates="arrayHWHName" placeholder="璇疯緭鍏�(鎴栨壂鎻�)浠撳簱" v-model="hform.HWHName"
-						@input="onArrayHWHNameChangeHandler"></uni-combox>
-				</view>
-			</view>
-			<view class="form-item">
-				<view class="left">
-					浠撲綅:
-				</view>
-				<view class="right general" v-show="HIsStockMgr">
-					<uni-combox :candidates="arrayHStockPlaceName" placeholder="璇疯緭鍏�(鎴栨壂鎻�)浠撲綅"
-						v-model="hform.HStockPlaceName" @input="onArrayHStockPlaceNameChangeHandler"></uni-combox>
-				</view>
-				<view class="right disabled" v-show="!HIsStockMgr">
-					<input v-model="hform.HStockPlaceName" :disabled="!HIsStockMgr" placeholder="涓嶅彲鎿嶄綔" />
-				</view>
-			</view>
-		</view>
-		<view class="button-zone">
-			<button type="default" class="btn-a" size="mini" @tap="cmdSearch">鏌ヨ</button>
-			<button type="default" class="btn-c" size="mini" @tap="exit">閫�鍑�</button>
-		</view>
-		<view class="info-list-zone">
-			<view class="card-item" v-for="(item, index) in listDataShow">
-				<uni-card :title="item['鐗╂枡浠g爜']" :extra="'鏁伴噺: ' + item['鏁伴噺']" note="Tips">
-					<view class="card-detail">
-						<view class="detail" v-if="item['浠撳簱']">
-							<text>浠撳簱锛�</text>{{item['浠撳簱']}}
-						</view>
-						<view class="detail" v-if="item['浠撲綅']">
-							<text>浠撲綅锛�</text>{{item['浠撲綅']}}
-						</view>
-						<view class="detail" v-if="item['鐗╂枡鍚嶇О']">
-							<text>鐗╂枡鍚嶇О锛�</text>{{item['鐗╂枡鍚嶇О']}}
-						</view>
-						<view class="detail" v-if="item['瑙勬牸鍨嬪彿']">
-							<text>瑙勬牸鍨嬪彿锛�</text>{{item['瑙勬牸鍨嬪彿']}}
-						</view>
-						<view class="detail" v-if="item['鎵规']">
-							<text>鎵规锛�</text>{{item['鎵规']}}
-						</view>
-						<view class="detail" v-if="item['杈呭姪灞炴��']">
-							<text>杈呭姪灞炴�э細</text>{{item['杈呭姪灞炴��']}}
-						</view>
-						<view class="detail" v-if="item['鐢熶骇鏃ユ湡']">
-							<text>鐢熶骇鏃ユ湡锛�</text>{{item['鐢熶骇鏃ユ湡']}}
-						</view>
-						<view class="detail" v-if="item['鏈夋晥鏈熻嚦']">
-							<text>鏈夋晥鏈熻嚦锛�</text>{{item['鏈夋晥鏈熻嚦']}}
-						</view>
-						<view class="detail" v-if="item['缁勭粐']">
-							<text>缁勭粐锛�</text>{{item['缁勭粐']}}
-						</view>
-					</view>
-				</uni-card>
-			</view>
-		</view>
-		<view class="pagination-zone">
-			<uni-pagination show-icon :page-size="paginationMeta.pageSize" :total="paginationMeta.total" :current="paginationMeta.current"
-				@change="onPaginationChangeHandler"></uni-pagination>
-		</view>
-	</view>
+    <view class="page" id="pageContent">
+        <view class="search-condition-zone">
+            <view class="form-item">
+                <view class="left">
+                    鏉$爜:
+                </view>
+                <view class="right general">
+                    <input type="text" v-model="hform.HBarCode" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    浠撳簱:
+                </view>
+                <view class="right general">
+                    <uni-combox :candidates="arrayHWHName" placeholder="璇疯緭鍏�(鎴栨壂鎻�)浠撳簱" v-model="hform.HWHName"
+                        @input="onArrayHWHNameChangeHandler"></uni-combox>
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    浠撲綅:
+                </view>
+                <view class="right general" v-show="HIsStockMgr">
+                    <uni-combox :candidates="arrayHStockPlaceName" placeholder="璇疯緭鍏�(鎴栨壂鎻�)浠撲綅"
+                        v-model="hform.HStockPlaceName" @input="onArrayHStockPlaceNameChangeHandler"></uni-combox>
+                </view>
+                <view class="right disabled" v-show="!HIsStockMgr">
+                    <input v-model="hform.HStockPlaceName" :disabled="!HIsStockMgr" placeholder="涓嶅彲鎿嶄綔" />
+                </view>
+            </view>
+        </view>
+        <view class="button-zone">
+            <button type="default" class="btn-a" size="mini" @tap="cmdSearch">鏌ヨ</button>
+            <button type="default" class="btn-c" size="mini" @tap="exit">閫�鍑�</button>
+        </view>
+        <view class="info-list-zone" id="scroll-content" :style="{height: scrollContentHeight + 'px'}">
+            <view class="card-item" v-for="(item, index) in listDataShow">
+                <uni-card :title="item['鐗╂枡浠g爜']" :extra="'鏁伴噺: ' + item['鏁伴噺']" note="Tips">
+                    <view class="card-detail">
+                        <view class="detail" v-if="item['浠撳簱']">
+                            <text>浠撳簱锛�</text>{{item['浠撳簱']}}
+                        </view>
+                        <view class="detail" v-if="item['浠撲綅']">
+                            <text>浠撲綅锛�</text>{{item['浠撲綅']}}
+                        </view>
+                        <view class="detail" v-if="item['鐗╂枡鍚嶇О']">
+                            <text>鐗╂枡鍚嶇О锛�</text>{{item['鐗╂枡鍚嶇О']}}
+                        </view>
+                        <view class="detail" v-if="item['瑙勬牸鍨嬪彿']">
+                            <text>瑙勬牸鍨嬪彿锛�</text>{{item['瑙勬牸鍨嬪彿']}}
+                        </view>
+                        <view class="detail" v-if="item['鎵规']">
+                            <text>鎵规锛�</text>{{item['鎵规']}}
+                        </view>
+                        <view class="detail" v-if="item['杈呭姪灞炴��']">
+                            <text>杈呭姪灞炴�э細</text>{{item['杈呭姪灞炴��']}}
+                        </view>
+                        <view class="detail" v-if="item['鐢熶骇鏃ユ湡']">
+                            <text>鐢熶骇鏃ユ湡锛�</text>{{item['鐢熶骇鏃ユ湡']}}
+                        </view>
+                        <view class="detail" v-if="item['鏈夋晥鏈熻嚦']">
+                            <text>鏈夋晥鏈熻嚦锛�</text>{{item['鏈夋晥鏈熻嚦']}}
+                        </view>
+                        <view class="detail" v-if="item['缁勭粐']">
+                            <text>缁勭粐锛�</text>{{item['缁勭粐']}}
+                        </view>
+                    </view>
+                </uni-card>
+            </view>
+        </view>
+        <view class="pagination-zone" id="pagination-zone">
+            <uni-pagination show-icon :page-size="paginationMeta.pageSize" :total="paginationMeta.total"
+                :current="paginationMeta.current" @change="onPaginationChangeHandler"></uni-pagination>
+        </view>
+    </view>
 </template>
 
 <script>
-	import {
-		CommonUtils
-	} from '../../utils/common'
-	import {
-		getUserInfo
-	} from '../../utils/auth'
-	export default {
-		data() {
-			return {
-				navHeight: 0,
-				HWHNameList: [],
-				arrayHWHName: [],
-				HStockPlaceNameList: [],
-				arrayHStockPlaceName: [],
-				HIsStockMgr: false,
-				scrollTop: 0,
-				
-				hform: {
-					HBarCode: '',
-					HWHName: '',
-					HWHID: 0,
-					HStockPlaceName: '',
-					HStockPlaceID: 0,
-				},
+    import {
+        CommonUtils
+    } from '../../utils/common'
+    import {
+        getUserInfo
+    } from '../../utils/auth'
+    export default {
+        data() {
+            return {
+                navHeight: 0,
+                HWHNameList: [],
+                arrayHWHName: [],
+                HStockPlaceNameList: [],
+                arrayHStockPlaceName: [],
+                HIsStockMgr: false,
+                scrollTop: 0,
 
-				paginationMeta: {
-					current: 1,
-					total: 0,
-					pageSize: 30,
-				},
+                hform: {
+                    HBarCode: '',
+                    HWHName: '',
+                    HWHID: 0,
+                    HStockPlaceName: '',
+                    HStockPlaceID: 0,
+                },
 
-				listData: [],
-				listDataShow: [],
-			}
-		},
-		methods: {
-			exit() {
-				uni.navigateBack()
-			},
-			onArrayHWHNameChangeHandler(e) {
-				let index = this.HWHNameList.findIndex(p => p.HName == e)
-				if (index != -1) {
-					this.hform.HWHID = this.HWHNameList[index].HItemID
-					this.HIsStockMgr = this.HWHNameList[index].HIsStockMgr
-				}
-			},
-			getWHInfo() {
-				CommonUtils.doRequest(
-					"/Web/GetWarehouseList_Json_New", {
-						Warehouse: "",
-						HOrgID: uni.getStorageSync('OrganizationID')
-					},
-					(res) => {
-						let res1 = res.data
-						let {
-							data,
-							count
-						} = res1
-						if (count == 1) {
-							this.HWHNameList = data
-							for (var i = 0; i < data.length; i++) {
-								this.arrayHWHName[i] = data[i]["HName"]
-							}
-						} else {
-							uni.showToast({
-								title: '浠撳簱鏁版嵁璇锋眰澶辫触',
-								icon: 'none'
-							})
-						}
-					},
-				)
-			},
-			onArrayHStockPlaceNameChangeHandler() {
-				let index = this.HStockPlaceNameList.findIndex(p => p.HName == e)
-				if (index != -1) {
-					this.hform.HStockPlaceID = this.HStockPlaceNameList[index].HItemID
-				}
-			},
-			getStockPlaceInfo() {
-				CommonUtils.doRequest(
-					"/WEBSController/GetStockPlaceList_Json", {
-						StockPlace: '',
-						HWhID: this.hform.HWHID,
-						HStockOrgID: uni.getStorageSync('OrganizationID')
-					},
-					(res) => {
-						let res1 = res.data
-						console.log(res1)
-						let {
-							data,
-							count
-						} = res1
-						if (count == 1) {
-							this.HStockPlaceNameList = data
-							for (var i = 0; i < data.length; i++) {
-								this.arrayHStockPlaceName[i] = data[i]["HWhName"]
-							}
-						} else {
-							uni.showToast({
-								title: '浠撲綅鏁版嵁璇锋眰澶辫触',
-								icon: 'none'
-							})
-						}
-					},
-				)
-			},
-			cmdSearch() {
-				if (this.hform.HWHName == '') {
-					this.hform.HWHID = 0
-				}
+                paginationMeta: {
+                    current: 1,
+                    total: 0,
+                    pageSize: 30,
+                },
 
-				if (this.hform.HStockPlaceName == '') {
-					this.hform.HStockPlaceID = 0
-				}
+                pageMeta: {
+                    scrollContentTop: 0,
+                    bottomBtnTop: 0,
+                },
 
-				CommonUtils.doRequest2({
-					url: '/KF_ICInventoryByMaterID/GetBillEntry_TmpList_Pack1',
-					data: {
-						"HBarCode": this.hform.HBarCode,
-						"sHWHID": this.hform.HWHID,
-						"sHSPID": this.hform.HStockPlaceID,
-						"HOWNERID": uni.getStorageSync('OrganizationID'),
-						"sWhere": ''
-					},
-					resFunction: (res) => {
-						let {
-							data,
-							count,
-							Message
-						} = res.data
-						if (count > 0) {
-							this.listData = data
-							this.paginationMeta.total = data.length
-							this.onPaginationChangeHandler({
-								current: 1
-							})
-						} else {
-							uni.showToast({
-								icon: 'none',
-								title: Message
-							})
-						}
-					}
-				})
-			},
-			async onPaginationChangeHandler({
-				current
-			}) {
-				this.listDataShow =
-					this.listData.slice((current - 1) * this.paginationMeta.pageSize,
-						current * this.paginationMeta.pageSize)
-				
-			}
-		},
-		onLoad() {
-			this.getWHInfo()
-			this.getStockPlaceInfo()
+                listData: [],
+                listDataShow: [],
+            }
+        },
+        computed: {
+            scrollContentHeight: {
+                get() {
+                    return this.pageMeta.bottomBtnTop - this.pageMeta.scrollContentTop
+                }
+            }
+        },
+        methods: {
+            exit() {
+                uni.navigateBack()
+            },
+            onArrayHWHNameChangeHandler(e) {
+                let index = this.HWHNameList.findIndex(p => p.HName == e)
+                if (index != -1) {
+                    this.hform.HWHID = this.HWHNameList[index].HItemID
+                    this.HIsStockMgr = this.HWHNameList[index].HIsStockMgr
+                }
+            },
+            getWHInfo() {
+                CommonUtils.doRequest(
+                    "/Web/GetWarehouseList_Json_New", {
+                        Warehouse: "",
+                        HOrgID: uni.getStorageSync('OrganizationID')
+                    },
+                    (res) => {
+                        let res1 = res.data
+                        let {
+                            data,
+                            count
+                        } = res1
+                        if (count == 1) {
+                            this.HWHNameList = data
+                            for (var i = 0; i < data.length; i++) {
+                                this.arrayHWHName[i] = data[i]["HName"]
+                            }
+                        } else {
+                            uni.showToast({
+                                title: '浠撳簱鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                )
+            },
+            onArrayHStockPlaceNameChangeHandler() {
+                let index = this.HStockPlaceNameList.findIndex(p => p.HName == e)
+                if (index != -1) {
+                    this.hform.HStockPlaceID = this.HStockPlaceNameList[index].HItemID
+                }
+            },
+            getStockPlaceInfo() {
+                CommonUtils.doRequest(
+                    "/WEBSController/GetStockPlaceList_Json", {
+                        StockPlace: '',
+                        HWhID: this.hform.HWHID,
+                        HStockOrgID: uni.getStorageSync('OrganizationID')
+                    },
+                    (res) => {
+                        let res1 = res.data
+                        console.log(res1)
+                        let {
+                            data,
+                            count
+                        } = res1
+                        if (count == 1) {
+                            this.HStockPlaceNameList = data
+                            for (var i = 0; i < data.length; i++) {
+                                this.arrayHStockPlaceName[i] = data[i]["HWhName"]
+                            }
+                        } else {
+                            uni.showToast({
+                                title: '浠撲綅鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                )
+            },
+            cmdSearch() {
+                if (this.hform.HWHName == '') {
+                    this.hform.HWHID = 0
+                }
 
-			this.$nextTick(() => {
-				this.cmdSearch()
-			})
-		}
-	}
+                if (this.hform.HStockPlaceName == '') {
+                    this.hform.HStockPlaceID = 0
+                }
+
+                CommonUtils.doRequest2({
+                    url: '/KF_ICInventoryByMaterID/GetBillEntry_TmpList_Pack1',
+                    data: {
+                        "HBarCode": this.hform.HBarCode,
+                        "sHWHID": this.hform.HWHID,
+                        "sHSPID": this.hform.HStockPlaceID,
+                        "HOWNERID": uni.getStorageSync('OrganizationID'),
+                        "sWhere": ''
+                    },
+                    resFunction: (res) => {
+                        let {
+                            data,
+                            count,
+                            Message
+                        } = res.data
+                        if (count > 0) {
+                            this.listData = data
+                            this.paginationMeta.total = data.length
+                            this.onPaginationChangeHandler({
+                                current: 1
+                            })
+                        } else {
+                            uni.showToast({
+                                icon: 'none',
+                                title: Message
+                            })
+                        }
+                    }
+                })
+            },
+            async onPaginationChangeHandler({
+                current
+            }) {
+                this.listDataShow =
+                    this.listData.slice((current - 1) * this.paginationMeta.pageSize,
+                        current * this.paginationMeta.pageSize)
+
+            }
+        },
+        onLoad() {
+            this.getWHInfo()
+            this.getStockPlaceInfo()
+
+            this.$nextTick(() => {
+                this.cmdSearch()
+            })
+        },
+        onReady() {
+            // #ifndef MP-WEIXIN
+            let query = uni.createSelectorQuery().in(this)
+            query.select("#scroll-content").boundingClientRect((data) => {
+                this.pageMeta.scrollContentTop = data.top
+                console.log("this.pageMeta.scrollContentTop: ", this.pageMeta.scrollContentTop)
+            }).exec()
+            query.select("#pagination-zone").boundingClientRect((data) => {
+                this.pageMeta.bottomBtnTop = data.top
+                console.log('this.pageMeta.bottomBtnTop: ',this.pageMeta.bottomBtnTop);
+            }).exec()
+            // #endif
+            // #ifdef MP-WEIXIN
+            // 寰俊涓嶆敮鎸� uni.createSelectorQuery().in(this)
+            // #endif
+
+        },
+    }
 </script>
 
 <style lang="scss" scoped>
-	.page {
-		height: calc(100vh - 44px);
-		box-sizing: border-box;
-		padding: 20rpx 10rpx;
-		display: flex;
-		flex-direction: column;
-		gap: 10rpx;
-		position: relative;
+    .page {
+        box-sizing: border-box;
+        display: flex;
+        flex-direction: column;
+        gap: 10rpx;
+        padding: 20rpx 0;
+        position: relative;
 
-		.button-zone {
-			height: auto;
-			box-sizing: border-box;
-			padding-top: 20rpx;
-			display: flex;
-			flex-direction: row;
-			justify-content: space-between;
-			flex-wrap: wrap;
+        .button-zone {
+            height: auto;
+            box-sizing: border-box;
+            padding-top: 20rpx;
+            display: flex;
+            flex-direction: row;
+            justify-content: space-between;
+            flex-wrap: wrap;
 
-			button {
-				border-radius: 50rpx;
-				width: 180rpx;
-				height: 66rpx;
-				line-height: 66rpx;
-				font-size: 28rpx;
-			}
+            button {
+                border-radius: 50rpx;
+                width: 180rpx;
+                height: 66rpx;
+                line-height: 66rpx;
+                font-size: 28rpx;
+            }
 
-			.btn-a {
-				background-color: #3a78ff;
-				color: #fff;
-			}
+            .btn-a {
+                background-color: #3a78ff;
+                color: #fff;
+            }
 
-			.btn-c {
-				background-color: #ff5722;
-				color: #fff;
-			}
-		}
+            .btn-c {
+                background-color: #ff5722;
+                color: #fff;
+            }
+        }
 
-		.search-condition-zone {
-			height: auto;
-			box-sizing: border-box;
-			padding: 0 60rpx;
-			display: flex;
-			flex-direction: column;
-			gap: 20rpx;
+        .search-condition-zone {
+            height: auto;
+            box-sizing: border-box;
+            padding: 0 60rpx;
+            display: flex;
+            flex-direction: column;
+            gap: 20rpx;
 
-			.form-item {
-				display: flex;
-				flex-direction: row;
-				gap: 20rpx;
-				align-items: center;
+            .form-item {
+                display: flex;
+                flex-direction: row;
+                gap: 20rpx;
+                align-items: center;
+                font-size: 28rpx;
 
-				.left {
-					width: 4rem;
-				}
+                .left {
+                    width: 4rem;
+                }
 
-				.right {
-					flex: 1;
-					padding: 8rpx 16rpx;
+                .right {
+                    flex: 1;
+                    padding: 8rpx 16rpx;
 
-					.search {
-						width: 32rpx;
-						height: 32rpx;
-					}
-				}
+                    .search {
+                        width: 28rpx;
+                        height: 28rpx;
+                    }
 
-				.general {
-					border-radius: 22rpx;
-					border: 1px solid #acacac;
-				}
+                    input {
+                        font-size: 28rpx;
+                    }
 
-				.disabled {
-					border-radius: 22rpx;
-					border: 1px solid #e4e4e4;
-					background-color: #e4e4e4;
-				}
+                    .uni-combox {
+                        padding: 0;
+                        margin: 0;
 
-				.uni-combox {
-					box-sizing: border-box;
-					padding: 0;
-				}
-			}
-		}
+                        ::v-deep .uni-combox__input {
+                            font-size: 28rpx;
+                            height: auto;
+                        }
+                    }
+                }
 
-		.info-list-zone {
-			flex: 1;
-			overflow-y: auto;
+                .general {
+                    border-radius: 22rpx;
+                    border: 1px solid #acacac;
+                }
 
-			.card-item {
-				.card-detail {
-					width: 100%;
-					display: flex;
-					flex-wrap: wrap;
-					justify-content: space-between;
-					line-height: 120%;
+                .disabled {
+                    border-radius: 22rpx;
+                    border: 1px solid #e4e4e4;
+                    background-color: #e4e4e4;
+                }
+            }
+        }
 
-					.detail {
-						// width: 50%;
-						font-size: 26rpx;
-						margin-bottom: 12rpx;
-						color: #555;
-						margin-right: 20rpx;
+        .info-list-zone {
+            overflow-y: auto;
 
-						text {
-							color: #999;
-							font-size: 26rpx;
-						}
-					}
-				}
-			}
-		}
+            .card-item {
+                .card-detail {
+                    width: 100%;
+                    display: flex;
+                    flex-wrap: wrap;
+                    justify-content: space-between;
+                    line-height: 120%;
 
-		.pagination-zone {
-			height: 80rpx;
-		}
-	}
+                    .detail {
+                        // width: 50%;
+                        font-size: 26rpx;
+                        margin-bottom: 12rpx;
+                        color: #555;
+                        margin-right: 20rpx;
+
+                        text {
+                            color: #999;
+                            font-size: 26rpx;
+                        }
+                    }
+                }
+            }
+        }
+
+        .pagination-zone {
+            position: fixed;
+            bottom: 0;
+            box-sizing: border-box;
+            background-color: #fff;
+            box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+            padding: 30rpx 40rpx 40rpx 40rpx;
+            display: flex;
+            flex-direction: column;
+            gap: 20rpx;
+            justify-content: space-between;
+            width: 100%;
+        }
+    }
 </style>
\ No newline at end of file
diff --git a/pages/qijvguzhangdengji/form.vue b/pages/qijvguzhangdengji/form.vue
new file mode 100644
index 0000000..6640e53
--- /dev/null
+++ b/pages/qijvguzhangdengji/form.vue
@@ -0,0 +1,1862 @@
+<template>
+    <view>
+        <view class="form">
+            <view class="tabs">
+                <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
+                <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
+            </view>
+
+            <view v-if="tabs == 0">
+                <view class="form-item">
+                    <view class="title">妯″叿鏉$爜</view>
+                    <view class="right">
+                        <input type="text" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鏁呴殰鍙戠敓鏃ユ湡</view>
+
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">2025-10-23</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">鏁呴殰绫诲埆</view>
+                    <view class="right">
+                        <input type="text" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">鏁呴殰鍘熷洜</view>
+                    <view class="right">
+                        <input type="text" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鏁呴殰鎻忚堪</view>
+                    <view class="right">
+                        <textarea value="" style="height: 6em;" maxlength="2000" placeholder="璇疯緭鍏ユ晠闅滄弿杩�..." />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍗曟嵁鍙�</view>
+                    <view class="righton">
+                        <input name="HInterID" disabled v-model="hform.HBillNo" />
+                    </view>
+                </view>
+
+                <view class="form-item">
+                    <view class="title required">閮ㄩ棬</view>
+                    <view class="righton">
+                        <input disabled type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">鍙戠幇浜�</view>
+                    <view class="righton">
+                        <input disabled type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">璐熻矗浜�</view>
+                    <view class="righton">
+                        <input disabled type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍣ㄥ叿鍚嶇О</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰悕绉�" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍣ㄥ叿瑙勬牸</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏疯鏍�" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍣ㄥ叿鍨嬪彿</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰瀷鍙�" />
+                    </view>
+                </view>
+            </view>
+
+            <view v-if="tabs == 1">
+                <view class="form-item">
+                    <view class="title">鍒涘缓浜�:</view>
+                    <view class="right">
+                        <input type="text" v-model="hform.HMaker" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍒涘缓鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">淇敼浜�:</view>
+                    <view class="right">
+                        <input type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">淇敼鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">瀹℃牳浜�:</view>
+                    <view class="right">
+                        <input type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">瀹℃牳鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">浣滃簾浜�:</view>
+                    <view class="right">
+                        <input type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">浣滃簾鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+            </view>
+
+            <view class="bottom-btn">
+                <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>
+        </view>
+        <BillSelectPopupXiaoWeiVue v-if="enableModule == 1" ref="billList" :HBillType="hform.HBillType"
+            :HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID"></BillSelectPopupXiaoWeiVue>
+        <BillListPopupVue v-else-if="enableModule == 2" ref="billList" :HBillType="hform.HBillType"
+            :HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID"></BillListPopupVue>
+        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
+    </view>
+</template>
+<script>
+    import getDateTime from '@/utils/getdateTime.js';
+    import {
+        getUserInfo
+    } from "@/utils/auth.js";
+    import {
+        CommonUtils
+    } from '../../utils/common';
+    import {
+        getUserStockRelation
+    } from '../../utils/userRelationManager';
+    import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue';
+    import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue";
+    import BillSelectPopupXiaoWeiVue from '../../components/BillSelectPopupXiaoWei/BillSelectPopupXiaoWei.vue';
+    export default {
+        components: {
+            BillListPopupVue,
+            BarCodePopupVue,
+            BillSelectPopupXiaoWeiVue
+        },
+
+        data() {
+            return {
+                HSourceBillNoFocus: false,
+                barCodeFocus: false,
+
+                userInfo: getUserInfo(),
+                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+                HModName: 'Kf_POStockInBackBill_PDA',
+                ModRightName: 'CE_POStockInBack',
+                OperationType: 1,
+                HInterID_Temp: '',
+
+                showHStockPlaceName: false,
+                showHMainSourceBillType: true,
+                showHSourceBillNo: true,
+                reHSourceBillNo: true,
+                showHSupName: true,
+                barCodeFocus: false,
+
+                tabs: 0,
+                HMainSourceBillType: '閫�鏂欓�氱煡鍗�',
+                arrayHMainSourceBillType: ['閫�鏂欓�氱煡鍗�', '閲囪喘璁㈠崟', '閲囪喘鍏ュ簱鍗�',
+                    '鎵嬪伐褰曞叆'
+                ],
+
+                linterid: '',
+                HBillNo: '',
+                btnType: 0, //0鏂板锛�1淇敼锛�2瀹℃牳锛�3鍙嶅鏍�
+                showmore: false,
+
+
+                materMeta: [],
+                arrayHWHName: [], //浠撳簱
+                HWHNameList: [],
+                arrayHStockPlaceName: [], //浠撲綅
+                HStockPlaceNameList: [],
+                arrayHSourceBillNo: [], //婧愬崟鍗曞彿
+                HSourceBillNoList: [],
+
+                arrayHEmpName: [], //鎿嶄綔鍛�
+                HEmpNameList: [],
+                arrayHDeptName: [], //閮ㄩ棬
+                HDeptNameList: [],
+                arrayHSupName: [], //渚涘簲鍟�
+                HSupNameList: [],
+
+                Materlist: [],
+                hform: {
+                    HBillType: 1239,
+                    HBillerID: uni.getStorageSync('HBillerID'),
+                    HRedBlueFlag: false,
+
+                    HBarCode: '',
+                    HQty: '',
+                    HWHName: getUserInfo().HWHName,
+                    HWHID: getUserInfo().HWhID,
+                    HStockPlaceName: getUserInfo().HSPName,
+                    HStockPlaceID: getUserInfo().HSPID,
+
+                    HMainSourceBillType: 1105,
+                    HSourceBillNo: '', //CGDD000200
+                    HDate: getDateTime.dateTimeStr('y-m-d'),
+                    HMaker: uni.getStorageSync('HUserName'),
+                    HBillNo: '',
+                    HInterID: '',
+
+                    HKeeperName: getUserInfo().HKeeper,
+                    HKeeperID: getUserInfo().HKeeperID,
+                    HSecManagerName: getUserInfo().HSecManager,
+                    HSecManagerID: getUserInfo().HSecManagerID,
+                    HDeptName: getUserInfo().HDept,
+                    HDeptID: getUserInfo().HDeptID,
+                    HSupName: '',
+                    HSupID: '',
+                    HStockOrgName: uni.getStorageSync('Organization'),
+                    HStockOrgID: uni.getStorageSync('OrganizationID'),
+
+                    HBarCode_B: '',
+                    HMaterName_B: '',
+                    HMaterModel_B: '',
+                    HBatchNo_B: '',
+                    HUnitName_B: '',
+                    HQty_B: '',
+                    HTMQty_B: '',
+                    HWHName_B: '',
+                    HSPName_B: '',
+                }
+            }
+        },
+        computed: {
+            enableModule: {
+                get() {
+                    if (this.hform.HMainSourceBillType == 1201 &&
+                        /灏忓崼|鏅轰簯/.test(uni.getStorageSync('Organization'))
+                    ) {
+
+                        return 1
+                    } else {
+                        return 2
+                    }
+                }
+
+                // 鍏朵粬鏉′欢
+            },
+            HStockPlaceNameListComputed: {
+                get() {
+                    // 鍔ㄦ�佽绠楀搴斾粨搴撶殑浠撲綅
+                    return this.HStockPlaceNameList
+                        .filter(e => e['鎵�灞炰粨搴�'] == this.hform.HWHName)
+                        .map(e => e['浠撲綅鍚嶇О'])
+                }
+            }
+        },
+        onLoad(e) {
+            console.log(e, this.userInfo)
+            this.OperationType = e.OperationType
+            if (e.HInterID) {
+                this.HInterID_Temp = e.HInterID
+                // this.btnType = 1
+                this.RoadBillMain(e.HInterID)
+                this.barCodeFocus = true
+            } else {
+                this.getNewData()
+                this.HSourceBillNoFocus = true
+            }
+            this.getRelationStore()
+            // this.getHBaseList()
+            // this.getHSupList()
+            this.getHEmpList()
+            this.getHDeptList()
+
+            uni.$on('BillSelectComplete', (e) => {
+                console.log("鎺ユ敹鍒扮殑娑堟伅: ", e.HBillNo)
+                this.getHBarCodeData(e.HBillNo)
+                this.$refs.billList.exit()
+            })
+        },
+        onUnload() {
+            uni.$off('BillSelectComplete')
+        },
+        methods: {
+            async HWHNameScan(e) {
+                // 鎵弿浠撳簱鐮�
+                console.log('浠撳簱鐮�: ', e);
+                let index = this.HWHNameList.findIndex(elem => elem['鏉$爜缂栧彿'] == e)
+                if (index == -1) {
+                    uni.showToast({
+                        icon: 'none',
+                        title: '鎵弿浠撳簱鏉$爜瀵瑰簲鐨勪粨搴撲笉瀛樺湪...'
+                    })
+                } else {
+                    this.HWHNameChange(this.HWHNameList[index]['浠撳簱鍚嶇О'])
+                }
+            },
+            async HStockPlaceNameScan(e) {
+                // 鎵弿浠撲綅鐮�
+                console.log('浠撲綅鐮�: ', e);
+                let index = this.HStockPlaceNameList.findIndex(elem => elem['鏉$爜缂栧彿'] == e)
+                console.log('index: ', index);
+                if (index == -1) {
+                    uni.showToast({
+                        icon: 'none',
+                        title: '鎵弿浠撲綅鏉$爜瀵瑰簲鐨勪粨浣嶄笉瀛樺湪...'
+                    })
+                } else {
+                    this.HStockPlaceNameChange(this.HStockPlaceNameList[index]['浠撲綅鍚嶇О'])
+                }
+            },
+            async qrCodeDisplay() {
+                try {
+                    this.$refs.barcodePopup.setCodeInfo(this.hform.HBillNo)
+                    await this.$nextTick()
+                    this.$refs.barcodePopup.open()
+                } catch (err) {
+                    uni.showToast({
+                        icon: 'none',
+                        title: err
+                    })
+                }
+            },
+            async getRelationStore() {
+                let {
+                    data,
+                    count
+                } = await getUserStockRelation()
+                if (count == 1) {
+                    let WHIDList = []
+
+                    Array.from(data).forEach(elem => {
+                        WHIDList.push(elem.HItemID)
+                    })
+
+                    let sWhere = ` and HItemID in (${WHIDList.join(",")})`
+                    this.getHBaseList({
+                        sWhere: sWhere
+                    })
+
+                } else {
+                    this.getHBaseList()
+                }
+            },
+            showBillList() {
+                this.$refs.billList.showPopup()
+            },
+            async refreshHSourceBillState() {
+                this.HSourceBillNoFocus = false
+                await this.$nextTick(() => {
+                    this.hform.HSourceBillNo = ""
+                    this.HSourceBillNoFocus = true
+
+                })
+            },
+            async refreshBarCodeState() {
+                this.barCodeFocus = false
+                await this.$nextTick(() => {
+                    this.hform.HBarCode = ""
+                    this.barCodeFocus = true
+                })
+            },
+            playSound(e) {
+                const innerAudioContext = uni.createInnerAudioContext();
+                if (e == 1) {
+                    innerAudioContext.src = '/static/success.wav';
+                } else {
+                    innerAudioContext.src = '/static/jingbao.wav';
+                }
+                innerAudioContext.play(); // 鎾斁闊抽
+            },
+            onSourceBillBlurHandler() {
+                if (this.hform.HMainSourceBillType == -1) {
+                    this.playSound(1)
+                    this.barCodeFocus = true
+                    return
+                }
+                let inputVal = ''
+                if (this.$refs.uniComboxSourceBill) {
+                    inputVal = this.$refs.uniComboxSourceBill.inputVal || this.hform.HSourceBillNo
+                } else {
+                    inputVal = this.hform.HSourceBillNo
+                }
+                if (inputVal == '') {
+                    CommonUtils.playSound(0)
+                    return uni.showToast({
+                        icon: 'none',
+                        Message: '婧愬崟鍗曞彿涓嶅緱涓虹┖...'
+                    })
+                }
+                this.getHBarCodeData(inputVal)
+            },
+            //鎵爜
+            toScanCode() {
+                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+                mpaasScanModule.mpaasScan({
+                    'hideAlbum': true,
+                    'timeoutInterval': '10', //瓒呮椂鏃堕棿
+                    'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋            
+                }, (ret) => {
+                    console.log(ret.resp_result)
+                    if (this.hform.HBarCode == '*') {
+                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
+                    } else {
+                        this.hform.HBarCode = ret.resp_result
+                    }
+
+                    this.getCode(this.hform.HBarCode)
+                })
+            },
+            //鎵叾浠�(浠撳簱锛屼粨浣�)
+            // toScanData(e){
+            // 	uni.scanCode({
+            // 	    onlyFromCamera: true,
+            // 	    success: (res) => {
+            // 	        console.log('鏉$爜鍐呭锛�' + res.result);
+            // 			var code = res.result
+            // 			if(e == 1){
+            // 				uni.request({
+            // 					url: this.serverUrl + '/WEBSController/GetWarehouse_Json', 
+            // 					data: {HBarCode:code,HStockOrgID:uni.getStorageSync('OrganizationID')},
+            // 					success: (res) => {
+            // 						this.hform.HStockPlaceID = 0
+            // 						this.hform.HStockPlaceName = ''
+            // 						this.showHStockPlaceName = true
+            // 						if(res.data.count == 1){
+            // 							var data = res.data.data[0]
+            // 							this.hform.HWHID = data.HItemID
+            // 							this.hform.HWHName = data.HName
+            // 							if (data.HSPFlag == 0) {
+            // 							    this.showHStockPlaceName = false
+            // 							}
+            // 						}else{
+            // 							this.hform.HWHID = 0
+            // 							this.hform.HWHName = ''
+            // 							uni.showToast({
+            // 								title:res.data.Message,
+            // 								icon:'none'
+            // 							})
+            // 						}
+            // 					},
+            // 					fail: (res) => {
+            // 						console.log(res);
+            // 						uni.showToast({
+            // 							title:'浠撳簱鏁版嵁璇锋眰澶辫触',
+            // 							icon:'none'
+            // 						})
+            // 					},
+            // 				});
+            // 			}else if(e == 2){
+            // 				uni.request({
+            // 					url: this.serverUrl + '/WEBSController/GetStockPlace_Json', 
+            // 					data: {HBarCode:code,HStockOrgID:uni.getStorageSync('OrganizationID'),HWhID: this.hform.HWHID},
+            // 					success: (res) => {
+            // 						if(res.data.count == 1){
+            // 							var data = res.data.data[0]
+            // 							this.hform.HWHID = data.HWHID
+            // 							this.hform.HWHName = data.HWhName
+            // 							this.hform.HStockPlaceID = data.HItemID
+            // 							this.hform.HStockPlaceName = data.HName
+            // 						}else{
+            // 							this.hform.HWHID = 0
+            // 							this.hform.HWHName = ''
+            // 							this.hform.HStockPlaceID = 0
+            // 							this.hform.HStockPlaceName = ''
+            // 							uni.showToast({
+            // 								title:res.data.Message,
+            // 								icon:'none'
+            // 							})
+            // 						}
+            // 					},
+            // 					fail: (res) => {
+            // 						console.log(res);
+            // 						uni.showToast({
+            // 							title:'浠撳簱鏁版嵁璇锋眰澶辫触',
+            // 							icon:'none'
+            // 						})
+            // 					},
+            // 				});
+            // 			}
+            // 	    }
+            // 	});
+            // },
+            //鏃ユ湡
+            HDateChange(e) {
+                console.log(e.detail.value)
+                this.hform.HDate = e.detail.value
+            },
+            //鍩虹浠撳簱璧勬枡
+            getHBaseList({
+                sWhere = ""
+            } = {}) {
+                uni.request({
+                    url: this.serverUrl + '/Gy_Warehouse/list',
+                    data: {
+                        sWhere: sWhere,
+                        user: uni.getStorageSync('HUserName'),
+                        Organization: uni.getStorageSync('Organization')
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HWHNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHWHName[i] = res.data.data[i].浠撳簱鍚嶇О
+                            }
+                        } else {
+                            uni.showToast({
+                                title: '浠撳簱鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+
+                uni.request({
+                    url: this.serverUrl + '/Gy_StockPlace/list',
+                    data: {
+                        sWhere: "",
+                        user: uni.getStorageSync('HUserName'),
+                        Organization: uni.getStorageSync('Organization')
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HStockPlaceNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHStockPlaceName[i] = res.data.data[i].浠撲綅鍚嶇О
+                            }
+                        } else {
+                            uni.showToast({
+                                title: '浠撲綅鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+
+                // this.getHYDList()
+            },
+            //婧愬崟璧勬枡
+            getHYDList() {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetSourceBillList_Json',
+                    data: {
+                        HBillType: this.hform.HBillType,
+                        HSourceBillType: this.hform.HMainSourceBillType,
+                        HStockOrgID: this.hform.HStockOrgID,
+                        HSourceBillNo: "",
+                        HMater: "",
+                        HCustom: ""
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HSourceBillNoList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHSourceBillNo[i] = res.data.data[i].鍗曟嵁鍙�
+                            }
+                            this.reHSourceBillNo = false
+                            this.$nextTick(() => {
+                                this.reHSourceBillNo = true
+                            })
+                        } else {
+                            uni.showToast({
+                                title: '婧愬崟鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //閫夋嫨浠撳簱
+            HWHNameChange(e) {
+                // var name = e.split("(")
+                for (var i = 0; i < this.HWHNameList.length; i++) {
+                    if (this.HWHNameList[i].浠撳簱鍚嶇О == e) {
+                        this.hform.HWHName = this.HWHNameList[i].浠撳簱鍚嶇О
+                        this.hform.HWHID = this.HWHNameList[i].HItemID
+
+                        if (this.HWHNameList[i]['鍚敤浠撲綅'] == 'Y') {
+                            this.showHStockPlaceName = true
+                        } else {
+                            this.hform.HStockPlaceName = ''
+                            this.showHStockPlaceName = false
+                        }
+                    }
+                }
+            },
+            //閫夋嫨浠撲綅
+            HStockPlaceNameChange(e) {
+                let index = this.HStockPlaceNameList.findIndex(elem => elem['浠撲綅鍚嶇О'] == e)
+                if (index != -1) {
+                    this.hform.HStockPlaceName = this.HStockPlaceNameList[index].浠撲綅鍚嶇О
+                    this.hform.HStockPlaceID = this.HStockPlaceNameList[index].HMainID
+                } else {
+                    this.hform.HStockPlaceName = ''
+                    this.hform.HStockPlaceID = 0
+                }
+                // for (var i = 0; i < this.HStockPlaceNameList.length; i++) {
+                //     if (this.HStockPlaceNameList[i].浠撲綅鍚嶇О == e) {
+                //         this.hform.HStockPlaceName = this.HStockPlaceNameList[i].浠撲綅鍚嶇О
+                //         this.hform.HStockPlaceID = this.HStockPlaceNameList[i].HMainID
+                //     }
+                // }
+            },
+            //閫夋嫨婧愬崟
+            HSourceBillNoChange(e) {
+                this.hform.HSourceBillNo = e
+                this.getHBarCodeData(e)
+                // for(var i=0;i<this.HSourceBillNoList.length;i++){
+                // 	if(this.HSourceBillNoList[i].鍗曟嵁鍙� == e){
+                // 		this.hform.HSourceBillNo = this.HSourceBillNoList[i].鍗曟嵁鍙�
+                // 	}
+                // }
+            },
+            //閫夋嫨婧愬崟绫诲瀷
+            HMainSourceBillTypeChange(e) {
+                this.HMainSourceBillType = this.arrayHMainSourceBillType[e.detail.value]
+                if (this.HMainSourceBillType == '閫�鏂欓�氱煡鍗�') {
+                    this.hform.HMainSourceBillType = 1105
+                    // this.getHYDList()
+                } else if (this.HMainSourceBillType == '閲囪喘璁㈠崟') {
+                    this.hform.HMainSourceBillType = 1102
+                    // this.getHYDList()
+                } else if (this.HMainSourceBillType == '閲囪喘鍏ュ簱鍗�') {
+                    this.hform.HMainSourceBillType = 1201
+
+                } else {
+                    this.hform.HMainSourceBillType = -1
+                    // this.getHYDList()
+                }
+            },
+
+            //鑾峰彇渚涘簲鍟嗘暟鎹�
+            getHSupList() {
+                if (!this.hform.HStockOrgID) {
+                    var HOtherOrgID = 0;
+                } else {
+                    var HOtherOrgID = this.hform.HStockOrgID
+                }
+                uni.request({
+                    url: this.serverUrl + '/Web/GetSupplierList_Json',
+                    data: {
+                        Supplier: '',
+                        HOrgID: HOtherOrgID
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HSupNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHSupName[i] = res.data.data[i].HName
+                            }
+                            this.$forceUpdate();
+                        } else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '渚涘簲鍟嗘暟鎹姹傚け璐�',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //閫夋嫨渚涘簲鍟�
+            HSupNameChange(e) {
+                for (var i = 0; i < this.HSupNameList.length; i++) {
+                    if (this.HSupNameList[i].HName == e) {
+                        this.hform.HSupID = this.HSupNameList[i].HItemID
+                        this.hform.HSupName = this.HSupNameList[i].HName
+                    }
+                }
+            },
+            //鑾峰彇浣跨敤閮ㄩ棬鏁版嵁
+            getHDeptList() {
+                uni.request({
+                    url: this.serverUrl + '/Gy_Department/list',
+                    data: {
+                        sWhere: "",
+                        user: uni.getStorageSync('HUserName'),
+                        Organization: uni.getStorageSync('Organization')
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HDeptNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHDeptName[i] = res.data.data[i].閮ㄩ棬鍚嶇О
+                            }
+                            this.$forceUpdate();
+                        } else {
+                            uni.showToast({
+                                title: '閮ㄩ棬鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //閫夋嫨浣跨敤閮ㄩ棬
+            HDeptNameChange(e) {
+                for (var i = 0; i < this.HDeptNameList.length; i++) {
+                    if (this.HDeptNameList[i].閮ㄩ棬鍚嶇О == e) {
+                        this.hform.HDeptID = this.HDeptNameList[i].HItemID
+                        this.hform.HDeptName = this.HDeptNameList[i].閮ㄩ棬鍚嶇О
+                    }
+                }
+            },
+            //鎿嶄綔鍛�
+            getHEmpList() {
+                uni.request({
+                    url: this.serverUrl + '/Web/GetEmployeeList_Json',
+                    data: {
+                        Employee: '',
+                        HGroupID: 0
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HEmpNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHEmpName[i] = res.data.data[i].HName
+                            }
+                            this.$forceUpdate();
+                        } else {
+                            uni.showToast({
+                                title: '浜哄憳鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //淇濈
+            HKeeperNameChange(e) {
+                for (var i = 0; i < this.HEmpNameList.length; i++) {
+                    if (this.HEmpNameList[i].HName == e) {
+                        console.log(this.HEmpNameList[i])
+                        this.hform.HKeeperID = this.HEmpNameList[i].HItemID
+                        this.hform.HKeeperName = this.HEmpNameList[i].HName
+                    }
+                }
+            },
+            //楠屾敹
+            HSecManagerNameChange(e) {
+                for (var i = 0; i < this.HEmpNameList.length; i++) {
+                    if (this.HEmpNameList[i].HName == e) {
+                        this.hform.HSecManagerID = this.HEmpNameList[i].HItemID
+                        this.hform.HSecManagerName = this.HEmpNameList[i].HName
+                    }
+                }
+            },
+            //閫変腑婧愬崟
+            getHBarCodeData(HBarCode) {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/Get_SourceBarCode_POStockInBack_Json',
+                    data: {
+                        HInterID: this.hform.HInterID,
+                        HBillNo: this.hform.HBillNo,
+                        HBillType: this.hform.HBillType,
+                        HSourceBillNo: HBarCode,
+                        HSourceBillType: this.hform.HMainSourceBillType,
+                        HMaker: this.hform.HMaker,
+                        HStockOrgID: this.hform.HStockOrgID
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            var data = res.data.data
+                            console.log(2, data);
+                            this.hform.HSupName = data.hSupNameField
+                            this.hform.HSupID = data.hSupIDField
+                            if (data.hDeptIDField != 0) {
+                                this.hform.HDeptID = data.hDeptIDField
+                                this.hform.HDeptName = data.hDeptNameField
+                            }
+                            this.hform.HSourceBillNo = data.hSourceBillNoField
+                            this.showHMainSourceBillType = false
+                            if (data.hMulSourceFlagField == 0) {
+                                this.showHSourceBillNo = false
+                            }
+                            this.tabs = 2
+                            this.showHSupName = false
+                            this.barCodeFocus = true
+                            CommonUtils.playSound(1)
+                            this.DisBillEntryList()
+                        } else {
+                            CommonUtils.playSound(0)
+                            this.refreshHSourceBillState()
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        CommonUtils.playSound(0)
+                        this.refreshHSourceBillState()
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //鎵潯鐮佸鐞�
+            async getCode(HBarCode) {
+                //浠撳簱銆佷粨浣嶆枃鏈涓虹┖鏃讹紝娓呯┖瀵瑰簲ID
+                if (!this.hform.HWHName) {
+                    this.hform.HWHID = 0
+                }
+                if (!this.hform.HStockPlaceName) {
+                    this.hform.HStockPlaceID = 0
+                }
+                var sOldBarCode = HBarCode
+                var HDeleteFlag = sOldBarCode.substring(0, 1);
+                var sBarCode = sOldBarCode.slice(1);
+
+                var sHWHID = this.hform.HWHID
+                var sHSPID = this.hform.HStockPlaceID
+                var sHQty = this.hform.HQty
+                var sSourceBillNo = this.hform.HSourceBillNo
+                var sSourceBillType = this.hform.HMainSourceBillType
+                var HSourceFlag = this.hform.HSourceBillNo == '' ? false : true
+                console.log(this.hform.HSourceBillNo, HSourceFlag)
+                if (HDeleteFlag == "*") {
+                    if (sBarCode == "") {
+                        this.playSound(0)
+                        this.refreshBarCodeState()
+                        uni.showToast({
+                            title: '璇锋壂鎻忚鍒犻櫎鐨勬潯鐮�',
+                            icon: 'none'
+                        })
+                    } else {
+                        try {
+                            let res = await CommonUtils.doRequest2Sync({
+                                url: '/WEBSController/set_DelPonderationBillMain_Temp_BarCode_Json',
+                                data: {
+                                    HInterID: this.hform.HInterID,
+                                    HBillType: this.hform.HBillType,
+                                    HBarCode: sBarCode
+                                }
+                            })
+
+                            if (!res) {
+                                return
+                            }
+
+                            console.log('鍒犻櫎鏉$爜', res.data);
+                            this.hform.HBarCode = ''
+                            if (res.data.count == 1) {
+                                this.playSound(1)
+                                this.hform.HQty = ''
+                                this.DisBillEntryList()
+                            } else {
+                                this.playSound(0)
+                                this.refreshBarCodeState()
+                                uni.showToast({
+                                    title: res.data.Message,
+                                    icon: 'none'
+                                })
+                            }
+                        } catch (err) {
+                            this.refreshBarCodeState()
+                            this.playSound(0)
+                            uni.showToast({
+                                title: '鎺ュ彛璇锋眰澶辫触: ' + err,
+                                icon: 'none'
+                            })
+                        }
+
+                        // uni.request({
+                        //     url: this.serverUrl +
+                        //         '/WEBSController/set_DelPonderationBillMain_Temp_BarCode_Json',
+                        //     data: {
+                        //         HInterID: this.hform.HInterID,
+                        //         HBillType: this.hform.HBillType,
+                        //         HBarCode: sBarCode
+                        //     },
+                        //     success: (res) => {
+                        //         console.log('鍒犻櫎鏉$爜', res.data);
+                        //         this.hform.HBarCode = ''
+                        //         if (res.data.count == 1) {
+                        //             this.playSound(1)
+                        //             this.hform.HQty = ''
+                        //             CommonUtils.playSound(1)
+                        //             this.DisBillEntryList()
+                        //         } else {
+                        //             this.playSound(0)
+                        //             this.refreshBarCodeState()
+                        //             uni.showToast({
+                        //                 title: res.data.Message,
+                        //                 icon: 'none'
+                        //             })
+                        //         }
+                        //     },
+                        //     fail: (res) => {
+                        //         this.playSound(0)
+                        //         this.refreshBarCodeState()
+                        //         console.log(res);
+                        //         uni.showToast({
+                        //             title: '鎺ュ彛璇锋眰澶辫触',
+                        //             icon: 'none'
+                        //         })
+                        //     },
+                        // });
+                    }
+                } else {
+                    var sBarCode = this.hform.HBarCode
+                    if (sHQty == "") {
+                        sHQty = 0;
+                    }
+
+                    try {
+                        let res = await CommonUtils.doRequest2Sync({
+                            url: '/WEBSController/Get_BarCode_Json',
+                            data: {
+                                sBarCode: sBarCode,
+                                HInterID: this.hform.HInterID,
+                                HBillType: this.hform.HBillType,
+                                HBillNo: this.hform.HBillNo,
+                                HMaker: this.hform.HMaker,
+                                HWhID: sHWHID,
+                                HSPID: sHSPID,
+                                HQty: sHQty,
+                                HRedBlueFlag: this.hform.HRedBlueFlag,
+                                SourceFlag: HSourceFlag,
+                                HSourceBillNo: sSourceBillNo,
+                                HSourceBillType: sSourceBillType,
+                                HStockOrgID: this.hform.HStockOrgID,
+                                HScanStyle: "",
+                                HCustom1: "",
+                                HCustom2: ""
+                            },
+                        })
+                        if (!res) {
+                            return
+                        }
+                        console.log('鎵爜杩斿洖', res.data);
+                        this.hform.HBarCode = ''
+                        if (res.data.count == 1) {
+                            this.playSound(1)
+                            var data = res.data.data
+                            if (data.hBarTypeField == '浠撳簱鏉$爜') {
+                                this.hform.HWHName = data.hWhNameField
+                                this.hform.HWHID = data.hWhIDField
+                                this.hform.HStockPlaceName = ''
+                                this.hform.HStockPlaceID = 0
+                                if (data.hSPFlagField == 0) {
+                                    this.showHStockPlaceName = false
+                                } else {
+                                    this.showHStockPlaceName = true
+                                }
+                            } else if (data.hBarTypeField == '浠撲綅鏉$爜') {
+                                this.hform.HWHName = data.hWhNameField
+                                this.hform.HWHID = data.hWhIDField
+                                this.hform.HStockPlaceName = data.hSPNameField
+                                this.hform.HStockPlaceID = data.hSPIDField
+                            } else if (data.hBarTypeField == '閮ㄩ棬鏉$爜') {
+                                this.hform.HDeptName = data.hDeptNameField
+                                this.hform.HDeptID = data.hDeptIDField
+                                this.tabs = 1
+                            } else if (data.hBarTypeField == '婧愬崟鏉$爜') {
+                                this.hform.HSupName = data.hSupNameField
+                                this.hform.HSupID = data.hSupIDField
+                                if (data.hDeptIDField != 0) {
+                                    this.hform.HDeptID = data.hDeptIDField
+                                    this.hform.HDeptName = data.hDeptNameField
+                                }
+                                this.hform.HSourceBillNo = data.hSourceBillNoField
+                                //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                                this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                                if (data.hSourceBillTypeField == "1105") {
+                                    this.HMainSourceBillType = '閫�鏂欓�氱煡鍗�'
+                                    this.hform.HMainSourceBillType = 1105
+                                    this.showHMainSourceBillType = false
+                                } else if (data.hSourceBillTypeField == "1102") {
+                                    this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                                    this.hform.HMainSourceBillType = 1102
+                                    this.showHMainSourceBillType = false
+                                } else if (data.hSourceBillType == 1201) {
+                                    this.HMainSourceBillType = '閲囪喘鍏ュ簱鍗�'
+                                    this.hform.HMainSourceBillType = 1201
+                                    this.showHMainSourceBillType = false
+                                } else {
+                                    this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                                    this.hform.HMainSourceBillType = -1
+                                    this.showHMainSourceBillType = false
+                                }
+                                if (data.hMulSourceFlagField == 0) {
+                                    this.showHSourceBillNo = false
+                                }
+                                //渚涘簲鍟嗕笉鍙紪杈�
+                                this.showHSupName = false
+                                this.tabs = 2
+                            } else { //鐗╂枡鏉$爜
+                                this.tabs = 2
+                                if (!this.hform.HSourceBillNo) {
+                                    this.hform.HSupName = data.hSupNameField
+                                    this.hform.HSupID = data.hSupIDField
+                                    this.hform.HSourceBillNo = data.hSourceBillNoField
+                                    if (data.hDeptIDField != 0) {
+                                        this.hform.HDeptID = data.hDeptIDField
+                                        this.hform.HDeptName = data.hDeptNameField
+                                    }
+                                    console.log(data)
+                                    //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                                    this.hform.HMainSourceBillType = data.hSourceBillTypeField
+
+                                    let index = this.arrayHMainSourceBillValue.findIndex(e => e ==
+                                        data
+                                        .hSourceBillTypeField)
+                                    if (index != -1) {
+                                        this.HMainSourceBillType = this.arrayHMainSourceBillType[
+                                            index]
+                                        this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                                        this.showHMainSourceBillType = false
+                                    }
+                                    // if (data.hSourceBillTypeField == "1103") {
+                                    // 	this.HMainSourceBillType = '鏀舵枡閫氱煡鍗�'
+                                    // 	this.hform.HMainSourceBillType = 1103
+                                    // 	this.showHMainSourceBillType = false
+                                    // } else if (data.hSourceBillTypeField == "1102") {
+                                    // 	this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                                    // 	this.hform.HMainSourceBillType = 1102
+                                    // 	this.showHMainSourceBillType = false
+                                    // } else {
+                                    // 	this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                                    // 	this.hform.HMainSourceBillType = -1
+                                    // 	this.showHMainSourceBillType = false
+                                    // }
+                                    if (data.hMulSourceFlagField == 0) {
+                                        this.showHSourceBillNo = false
+                                    }
+                                    //渚涘簲鍟嗕笉鍙紪杈�
+                                    this.showHSupName = false
+                                }
+                            }
+                            //鏄剧ず琛ㄤ綋鏄庣粏
+                            this.DisBillEntryList()
+                            //娓呯┖鏁伴噺
+                            this.hform.HQty = ''
+                        } else {
+                            this.playSound(0)
+                            this.refreshBarCodeState()
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    } catch (err) {
+                        this.playSound(0)
+                        this.refreshBarCodeState()
+                        console.log(err);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触: ' + err,
+                            icon: 'none'
+                        })
+                    }
+
+                    // uni.request({
+                    //     url: this.serverUrl + '/WEBSController/Get_BarCode_Json',
+                    //     data: {
+                    //         sBarCode: sBarCode,
+                    //         HInterID: this.hform.HInterID,
+                    //         HBillType: this.hform.HBillType,
+                    //         HBillNo: this.hform.HBillNo,
+                    //         HMaker: this.hform.HMaker,
+                    //         HWhID: sHWHID,
+                    //         HSPID: sHSPID,
+                    //         HQty: sHQty,
+                    //         HRedBlueFlag: this.hform.HRedBlueFlag,
+                    //         SourceFlag: HSourceFlag,
+                    //         HSourceBillNo: sSourceBillNo,
+                    //         HSourceBillType: sSourceBillType,
+                    //         HStockOrgID: this.hform.HStockOrgID,
+                    //         HScanStyle: "",
+                    //         HCustom1: "",
+                    //         HCustom2: ""
+                    //     },
+                    //     success: (res) => {
+                    //         console.log('鎵爜杩斿洖', res.data);
+                    //         this.hform.HBarCode = ''
+                    //         if (res.data.count == 1) {
+                    //             this.playSound(1)
+                    //             var data = res.data.data
+                    //             if (data.hBarTypeField == '浠撳簱鏉$爜') {
+                    //                 this.hform.HWHName = data.hWhNameField
+                    //                 this.hform.HWHID = data.hWhIDField
+                    //                 this.hform.HStockPlaceName = ''
+                    //                 this.hform.HStockPlaceID = 0
+                    //                 if (data.hSPFlagField == 0) {
+                    //                     this.showHStockPlaceName = false
+                    //                 } else {
+                    //                     this.showHStockPlaceName = true
+                    //                 }
+                    //             } else if (data.hBarTypeField == '浠撲綅鏉$爜') {
+                    //                 this.hform.HWHName = data.hWhNameField
+                    //                 this.hform.HWHID = data.hWhIDField
+                    //                 this.hform.HStockPlaceName = data.hSPNameField
+                    //                 this.hform.HStockPlaceID = data.hSPIDField
+                    //             } else if (data.hBarTypeField == '閮ㄩ棬鏉$爜') {
+                    //                 this.hform.HDeptName = data.hDeptNameField
+                    //                 this.hform.HDeptID = data.hDeptIDField
+                    //                 this.tabs = 1
+                    //             } else if (data.hBarTypeField == '婧愬崟鏉$爜') {
+                    //                 this.hform.HSupName = data.hSupNameField
+                    //                 this.hform.HSupID = data.hSupIDField
+                    //                 if (data.hDeptIDField != 0) {
+                    //                     this.hform.HDeptID = data.hDeptIDField
+                    //                     this.hform.HDeptName = data.hDeptNameField
+                    //                 }
+                    //                 this.hform.HSourceBillNo = data.hSourceBillNoField
+                    //                 //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                    //                 this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                    //                 if (data.hSourceBillTypeField == "1105") {
+                    //                     this.HMainSourceBillType = '閫�鏂欓�氱煡鍗�'
+                    //                     this.hform.HMainSourceBillType = 1105
+                    //                     this.showHMainSourceBillType = false
+                    //                 } else if (data.hSourceBillTypeField == "1102") {
+                    //                     this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                    //                     this.hform.HMainSourceBillType = 1102
+                    //                     this.showHMainSourceBillType = false
+                    //                 } else if (data.hSourceBillType == 1201) {
+                    //                     this.HMainSourceBillType = '閲囪喘鍏ュ簱鍗�'
+                    //                     this.hform.HMainSourceBillType = 1201
+                    //                     this.showHMainSourceBillType = false
+                    //                 } else {
+                    //                     this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                    //                     this.hform.HMainSourceBillType = -1
+                    //                     this.showHMainSourceBillType = false
+                    //                 }
+                    //                 if (data.hMulSourceFlagField == 0) {
+                    //                     this.showHSourceBillNo = false
+                    //                 }
+                    //                 //渚涘簲鍟嗕笉鍙紪杈�
+                    //                 this.showHSupName = false
+                    //                 this.tabs = 2
+                    //             } else { //鐗╂枡鏉$爜
+                    //                 this.tabs = 2
+                    //                 if (!this.hform.HSourceBillNo) {
+                    //                     this.hform.HSupName = data.hSupNameField
+                    //                     this.hform.HSupID = data.hSupIDField
+                    //                     this.hform.HSourceBillNo = data.hSourceBillNoField
+                    //                     if (data.hDeptIDField != 0) {
+                    //                         this.hform.HDeptID = data.hDeptIDField
+                    //                         this.hform.HDeptName = data.hDeptNameField
+                    //                     }
+                    //                     console.log(data)
+                    //                     //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                    //                     this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                    // 
+                    //                     let index = this.arrayHMainSourceBillValue.findIndex(e => e ==
+                    //                         data
+                    //                         .hSourceBillTypeField)
+                    //                     if (index != -1) {
+                    //                         this.HMainSourceBillType = this.arrayHMainSourceBillType[
+                    //                             index]
+                    //                         this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                    //                         this.showHMainSourceBillType = false
+                    //                     }
+                    //                     // if (data.hSourceBillTypeField == "1103") {
+                    //                     // 	this.HMainSourceBillType = '鏀舵枡閫氱煡鍗�'
+                    //                     // 	this.hform.HMainSourceBillType = 1103
+                    //                     // 	this.showHMainSourceBillType = false
+                    //                     // } else if (data.hSourceBillTypeField == "1102") {
+                    //                     // 	this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                    //                     // 	this.hform.HMainSourceBillType = 1102
+                    //                     // 	this.showHMainSourceBillType = false
+                    //                     // } else {
+                    //                     // 	this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                    //                     // 	this.hform.HMainSourceBillType = -1
+                    //                     // 	this.showHMainSourceBillType = false
+                    //                     // }
+                    //                     if (data.hMulSourceFlagField == 0) {
+                    //                         this.showHSourceBillNo = false
+                    //                     }
+                    //                     //渚涘簲鍟嗕笉鍙紪杈�
+                    //                     this.showHSupName = false
+                    //                 }
+                    //             }
+                    //             //鏄剧ず琛ㄤ綋鏄庣粏
+                    //             this.DisBillEntryList()
+                    //             //娓呯┖鏁伴噺
+                    //             this.hform.HQty = ''
+                    //         } else {
+                    //             this.playSound(0)
+                    //             this.refreshBarCodeState()
+                    //             uni.showToast({
+                    //                 title: res.data.Message,
+                    //                 icon: 'none'
+                    //             })
+                    //         }
+                    //     },
+                    //     fail: (res) => {
+                    //         this.playSound(0)
+                    //         this.refreshBarCodeState()
+                    //         console.log(res);
+                    //         uni.showToast({
+                    //             title: '鎺ュ彛璇锋眰澶辫触',
+                    //             icon: 'none'
+                    //         })
+                    //     },
+                    // });
+                }
+            },
+            //鐗╂枡淇℃伅
+            DisBillEntryList() {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetBillEntryTmpList_Json',
+                    data: {
+                        HInterID: this.hform.HInterID,
+                        HBillNo: this.hform.HBillNo,
+                        HBillType: this.hform.HBillType,
+                        HStockOrgID: this.hform.HStockOrgID
+                    },
+                    success: (res) => {
+                        console.log('鐗╂枡', res.data)
+                        if (res.data.count == 1) {
+                            var data = res.data.data
+                            this.materMeta = data.BarCodeDetailslist
+                            this.Materlist = data.Materlist
+                            if (/鍏磋揪/.test(uni.getStorageSync("Organization"))) {
+                                // 鍏磋揪瀹㈡埛 甯﹀嚭 浠撳簱
+                                console.log("鍏磋揪甯﹀嚭榛樿浠撳簱")
+                                this.HWHNameChange(data.BarCodeDetailslist[0].HWHName)
+                            }
+
+
+                            if (!data.BarCodeDetailslist[0].HBarCode) {
+                                this.hform.HMaterName_B = ''
+                                this.hform.HMaterModel_B = ''
+                                this.hform.HBatchNo_B = ''
+                                this.hform.HUnitName_B = ''
+                                this.hform.HQty_B = ''
+                                this.hform.HTMQty_B = ''
+                                this.hform.HWHName_B = ''
+                                this.hform.HSPName_B = ''
+                            } else {
+                                this.hform.HMaterName_B = data.BarCodeDetailslist[0].HMaterName
+                                this.hform.HMaterModel_B = data.BarCodeDetailslist[0].HMaterModel
+                                this.hform.HBatchNo_B = data.BarCodeDetailslist[0].HBatchNo
+                                this.hform.HUnitName_B = data.BarCodeDetailslist[0].HUnitName
+                                this.hform.HQty_B = data.BarCodeDetailslist[0].HQty
+                                this.hform.HTMQty_B = data.BarCodeDetailslist[0].HTMQty
+                                this.hform.HWHName_B = data.BarCodeDetailslist[0].HWHName
+                                this.hform.HSPName_B = data.BarCodeDetailslist[0].HSPName
+                            }
+                        } else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //鍒犻櫎鐗╂枡鐮�
+            delMater(item) {
+                uni.showModal({
+                    title: '鎻愮ず',
+                    content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+                    success: (res) => {
+                        if (res.confirm) {
+                            uni.request({
+                                url: this.serverUrl +
+                                    '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+                                data: {
+                                    HInterID: this.hform.HInterID,
+                                    HMaterID: item.HMaterID,
+                                    HAuxPropID: item.HAuxPropID,
+                                    HMTONo: item.HMTONo,
+                                    HSourceInterID: item.HSourceInterID,
+                                    HSourceEntryID: item.HSourceEntryID,
+                                    HBillType: this.hform.HBillType
+                                },
+                                success: (res) => {
+                                    if (res.data.count == 1) {
+                                        this.DisBillEntryList()
+                                    } else {
+                                        uni.showToast({
+                                            title: res.data.Message,
+                                            icon: 'none'
+                                        })
+                                    }
+                                },
+                                fail: (res) => {
+                                    console.log(res);
+                                    uni.showToast({
+                                        title: '鎺ュ彛璇锋眰澶辫触',
+                                        icon: 'none'
+                                    })
+                                },
+                            });
+                        }
+                    }
+                });
+            },
+            // 鏂板鍥炶皟
+            addNew() {
+                uni.redirectTo({
+                    url: '/pages/caigoutuiliao/form?OperationType=1'
+                })
+            },
+            //鏂板
+            getNewData() {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetMaxBillNoAndID_Json',
+                    data: {
+                        HBillType: this.hform.HBillType
+                    },
+                    success: (res) => {
+                        // console.log(res.data)
+                        if (res.data.count == 1) {
+                            this.hform.HInterID = res.data.data[0].HInterID
+                            this.hform.HBillNo = res.data.data[0].HBillNo
+                        } else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //淇敼鍥炲~鏁版嵁
+            RoadBillMain(HInterID) {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetSourceBill_Temp_Json',
+                    data: {
+                        HInterID: HInterID,
+                        HBillType: this.hform.HBillType
+                    },
+                    success: (res) => {
+                        console.log(33, res.data.data[0]);
+                        if (res.data.count == 1) {
+                            var data = res.data.data[0]
+                            this.hform.HInterID = data.HInterID
+                            this.hform.HBillNo = data.HBillNo
+                            this.hform.HMainSourceBillType = data.HSourceBillType
+                            this.hform.HSourceBillNo = data.HSourceBillNo
+                            if (data.HSourceBillType == 1105) {
+                                this.hform.HMainSourceBillType = 1105
+                                this.HMainSourceBillType = '閫�鏂欓�氱煡鍗�'
+                                this.showHSupName = false
+                            } else if (data.HSourceBillType == 1102) {
+                                this.hform.HMainSourceBillType = 1102
+                                this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                                this.showHSupName = false
+                            } else if (data.HSourceBillType == 1201) {
+                                this.hform.HMainSourceBillType = 1201
+                                this.HMainSourceBillType = '閲囪喘鍏ュ簱鍗�'
+                                this.showHSupName = false
+                            } else {
+                                this.hform.HMainSourceBillType = -1
+                                this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                            }
+                            this.showHMainSourceBillType = false
+
+                            //闈炲婧愬崟妯″紡
+                            if (data.HMulSourceBill == 0) {
+                                this.showHSourceBillNo = false
+                            }
+                            this.hform.HDeptID = data.HDeptID
+                            this.hform.HDeptName = data.HDeptName
+                            this.hform.HSupID = data.HCusID
+                            this.hform.HSupName = data.HSupName
+                            this.DisBillEntryList()
+                            this.tabs = 2
+                        } else {
+                            uni.showToast({
+                                title: '鑾峰彇鏁版嵁鍥炲~澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            async submit() {
+                //浠撳簱銆佷粨浣嶃�佷繚绠°�侀獙鏀躲�侀儴闂ㄣ�佷緵搴斿晢鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
+                if (!this.hform.HWHName) {
+                    this.hform.HWHID = 0
+                }
+                if (!this.hform.HStockPlaceName) {
+                    this.hform.HStockPlaceID = 0
+                }
+                if (!this.hform.HKeeperName) {
+                    this.hform.HKeeperID = 0
+                }
+                if (!this.hform.HSecManagerName) {
+                    this.hform.HSecManagerID = 0
+                }
+                if (!this.hform.HDeptName) {
+                    this.hform.HDeptID = 0
+                }
+                if (!this.hform.HSupName) {
+                    this.hform.HSupID = 0
+                }
+                if (this.hform.HInterID == 0 || !this.hform.HInterID) {
+                    uni.showToast({
+                        title: '鍗曟嵁鍐呯爜鑾峰彇澶辫触锛岄敊璇殑鍗曟嵁鍐呯爜锛�',
+                        icon: 'none'
+                    })
+                } else if (!this.hform.HBillNo) {
+                    uni.showToast({
+                        title: '鍗曟嵁鍙疯幏鍙栧け璐ワ紝閿欒鐨勫崟鎹彿锛�',
+                        icon: 'none'
+                    })
+                } else if (!this.Materlist || this.Materlist.length == 0) {
+                    uni.showToast({
+                        title: '娌℃湁鎵爜淇℃伅锛岃鍏堟壂鎻忔潯鐮侊紝纭鏃犺鍚庡啀鎻愪氦锛�',
+                        icon: 'none'
+                    })
+                } else {
+                    var s = 0;
+                    for (var i = 0; i < this.Materlist.length; i++) {
+                        if (this.Materlist[i].鏁伴噺 > 0) {
+                            s = 1;
+                        }
+                    }
+                    if (s == 0) {
+                        uni.showToast({
+                            title: '娌℃湁鎵弿鐗╂枡鏉$爜锛岃鍏堟壂鎻忕墿鏂欐潯鐮侊紝纭鏃犺鍚庡啀鎻愪氦锛�',
+                            icon: 'none'
+                        })
+                    } else {
+                        // uni.showLoading({
+                        //     title: '璇风◢鍊�'
+                        // })
+                        var sMainStr = JSON.stringify(this.hform);
+
+                        try {
+                            let res = await CommonUtils.doRequest2Sync({
+                                url: '/WEBSController/set_SavePOStockInBackBill_Json',
+                                method: 'POST',
+                                data: {
+                                    oMain: sMainStr
+                                },
+                            })
+
+                            if (!res) {
+                                return
+                            }
+
+                            console.log(1, res);
+                            uni.hideLoading()
+                            if (res.data.count == 1) {
+                                // let sMain = JSON.stringify(this.materMeta) + ';' + this.hform
+                                //     .HBillType + ';' + this.hform.HSourceBillNo
+                                // 涓烘潯鐮佽缃嚭搴撳崟鍙峰拰鍑哄簱娆℃暟
+                                // await this.Set_BarCodeBill(sMain)
+                                uni.showModal({
+                                    title: '鎻愮ず',
+                                    content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵',
+                                    success: (res) => {
+                                        if (res.confirm) {
+                                            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                                            uni.redirectTo({
+                                                url: '/pages/caigoutuiliao/form?OperationType=1'
+                                            })
+                                        } else if (res.cancel) {
+                                            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                                            // setTimeout(() => {
+                                            // 	uni.navigateBack();
+                                            // }, 50)
+                                        }
+                                    }
+                                });
+                            } else {
+                                uni.showToast({
+                                    title: res.data.Message,
+                                    icon: 'none'
+                                })
+                            }
+                        } catch (err) {
+                            console.warn(err);
+                            uni.showToast({
+                                title: '鎺ュ彛璇锋眰澶辫触:' + err,
+                                icon: 'none'
+                            })
+                        }
+
+                        // uni.request({
+                        //     url: this.serverUrl + '/WEBSController/set_SavePOStockInBackBill_Json',
+                        //     method: 'POST',
+                        //     dataType: "json",
+                        //     data: {
+                        //         oMain: sMainStr
+                        //     },
+                        //     success: (res) => {
+                        //         console.log(1, res);
+                        //         uni.hideLoading()
+                        //         if (res.data.count == 1) {
+                        //             uni.showModal({
+                        //                 title: '鎻愮ず',
+                        //                 content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+                        //                 success: (res) => {
+                        //                     if (res.confirm) {
+                        //                         console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                        //                         uni.redirectTo({
+                        //                             url: '/pages/caigoutuiliao/form?OperationType=1'
+                        //                         })
+                        //                     } else if (res.cancel) {
+                        //                         console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                        //                         // setTimeout(() => {
+                        //                         //     uni.navigateBack();
+                        //                         // }, 50)
+                        //                     }
+                        //                 }
+                        //             });
+                        //         } else {
+                        //             uni.showToast({
+                        //                 title: res.data.Message,
+                        //                 icon: 'none'
+                        //             })
+                        //         }
+                        //     },
+                        //     fail: (res) => {
+                        //         console.log(res);
+                        //         uni.showToast({
+                        //             title: '鎺ュ彛璇锋眰澶辫触',
+                        //             icon: 'none'
+                        //         })
+                        //     },
+                        // });
+                    }
+                }
+            },
+
+            goBack() {
+                uni.showModal({
+                    title: '鎻愮ず',
+                    content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
+                    success: (res) => {
+                        if (res.confirm) {
+                            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                            uni.redirectTo({
+                                url: '/pages/caigoutuiliao/table'
+                            })
+                        } else if (res.cancel) {
+                            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                        }
+                    }
+                });
+            }
+        }
+    }
+</script>
+
+<style lang="scss" scoped>
+    .form {
+        width: 668rpx;
+        margin: 20rpx auto;
+        padding-bottom: 240rpx;
+    }
+
+    .tab_area {
+        width: 100%;
+        height: 50rpx;
+    }
+
+    .other {
+        margin-top: 8rpx;
+        text-align: center;
+        font-size: 28rpx;
+        padding: 4rpx 18rpx;
+        color: #1890FF;
+    }
+
+    .tabs {
+        width: 100%;
+        display: flex;
+        border-bottom: 1px solid #ddd;
+        margin: 20rpx 0;
+
+        view {
+            width: 25%;
+            font-size: 30rpx;
+            color: #555;
+            text-align: center;
+            padding: 16rpx 0;
+        }
+
+        .on {
+            color: #3a78ff;
+            font-weight: bold;
+            border-bottom: 3px solid #3a78ff;
+        }
+    }
+
+    .form-item {
+        display: flex;
+        align-items: center;
+        font-size: inherit;
+        padding: 6rpx 0;
+        gap: 12rpx;
+
+        .title {
+            width: 200rpx;
+            font-size: 30rpx;
+
+            text {
+                color: red;
+                font-weight: bold;
+            }
+        }
+
+        .right {
+            flex: 1;
+            border-radius: 22rpx;
+            border: 1px solid #acacac;
+            position: relative;
+            padding: 8rpx 16rpx;
+            display: flex;
+
+            picker {
+                width: 100%;
+            }
+
+            .uni-combox {
+                width: 100%;
+                padding: 0;
+
+                ::v-deep .uni-combox__input {
+                    font-size: 30rpx;
+                    height: auto;
+                }
+            }
+        }
+
+        .righton {
+            flex: 1;
+            border-radius: 22rpx;
+            border: 1px solid #e4e4e4;
+            background-color: #e4e4e4;
+            padding: 8rpx 16rpx;
+        }
+
+        input {
+            width: 100%;
+            font-size: 30rpx;
+        }
+
+        textarea {
+            width: 98%;
+            font-size: 30rpx;
+        }
+
+    }
+
+    .bottom-btn {
+        width: 100%;
+        box-sizing: border-box;
+        // height: 120rpx;
+        position: fixed;
+        bottom: 0;
+        left: 0;
+        background-color: #fff;
+        box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+        padding: 30rpx 40rpx 40rpx 40rpx;
+        display: flex;
+        flex-direction: row;
+        gap: 10rpx;
+
+        button {
+            border-radius: 50rpx;
+            width: 180rpx;
+            height: 66rpx;
+            line-height: 66rpx;
+            font-size: 28rpx;
+        }
+
+        .btn-a {
+            background-color: #3A78FF;
+            color: #fff;
+        }
+
+        .btn-b {
+            background-color: #41a863;
+            color: #fff;
+        }
+
+        .btn-c {
+            background-color: #acacac;
+            color: #fff;
+            // position: absolute;
+            // right: 120rpx;
+        }
+
+        .btn-d {
+            background-color: #ff8901;
+            color: #fff;
+        }
+    }
+
+    .list {
+        width: 100%;
+
+        .card-detail {
+            width: 100%;
+            display: flex;
+            flex-wrap: wrap;
+            justify-content: space-between;
+            line-height: 120%;
+
+            .detail {
+                // width: 50%;
+                font-size: 26rpx;
+                margin-bottom: 12rpx;
+                color: #555;
+                margin-right: 20rpx;
+
+                text {
+                    color: #999;
+                    font-size: 26rpx;
+                }
+            }
+        }
+
+        .more {
+            color: #888;
+            font-size: 24rpx;
+            display: flex;
+            border-top: 1px solid #eee;
+            padding-top: 20rpx;
+
+            .part {
+                width: 50%;
+                text-align: 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;
+        }
+    }
+
+    .required {
+        position: relative;
+
+    }
+
+    .required::after {
+        content: "*";
+        position: relative;
+        color: red;
+        left: 0;
+        top: 0;
+        font-size: inherit;
+    }
+
+    .icon-wrapper[disabled] {
+        background-color: rgba(228, 228, 228, 1);
+        pointer-events: none;
+        touch-action: none;
+    }
+</style>
\ No newline at end of file
diff --git a/pages/qijvguzhangdengji/table.vue b/pages/qijvguzhangdengji/table.vue
new file mode 100644
index 0000000..40a9eb6
--- /dev/null
+++ b/pages/qijvguzhangdengji/table.vue
@@ -0,0 +1,585 @@
+<template>
+    <view class="page" id="pageContent">
+        <view class="search-condition-zone">
+            <view class="form-item">
+                <view class="left">
+                    鏃ユ湡:
+                </view>
+                <view class="daterange" style="flex: 1;">
+                    <view class="right general">
+                        <uni-datetime-picker type="date" :clear-icon="false" v-model="hform.HBeginDate">
+                            <view>{{hform.HBeginDate}}</view>
+                        </uni-datetime-picker>
+                    </view>
+                    <view>鈥�</view>
+                    <view class="right general">
+                        <uni-datetime-picker type="date" :clear-icon="false" v-model="hform.HEndDate">
+                            <view>{{hform.HEndDate}}</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    鍣ㄥ叿缂栫爜:
+                </view>
+                <view class="right general">
+                    <input type="text" v-model="hform.HMoNumber" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    鍣ㄥ叿鍚嶇О:
+                </view>
+                <view class="right general">
+                    <input type="text" v-model="hform.HMoName" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    鍗曟嵁鍙�:
+                </view>
+                <view class="right general">
+                    <input type="text" v-model="hform.HBillNo" />
+                </view>
+            </view>
+        </view>
+        <view class="button-zone">
+            <button type="default" class="btn-a" size="mini" @tap="cmdAdd">鏂板</button>
+            <button type="default" class="btn-a" size="mini" @tap="cmdSearch">鏌ヨ</button>
+            <button type="default" class="btn-c" size="mini" @tap="exit">閫�鍑�</button>
+        </view>
+        <view class="info-list-zone" id="scroll-content" :style="{height: scrollContentHeight + 'px'}">
+            <view class="card-item" v-for="(item, index) in listDataShow">
+                <uni-card :title="item['鍗曟嵁鍙�']" :extra="'鏃ユ湡:' + item['鏃ユ湡'].split('T')[0]"
+                    @tap="showDetail = showDetail==index?-1:index">
+                    <view class="card-detail">
+                        <view class="detail" v-if="item['鍙戠幇浜轰唬鐮�']">
+                            <text>鍙戠幇浜轰唬鐮侊細</text>{{item['鍙戠幇浜轰唬鐮�']}}
+                        </view>
+                        <view class="detail" v-if="item['鍙戠幇浜�']">
+                            <text>鍙戠幇浜猴細</text>{{item['鍙戠幇浜�']}}
+                        </view>
+                        <view class="detail" v-if="item['鏁呴殰绫诲埆浠g爜']">
+                            <text>鏁呴殰绫诲埆浠g爜锛�</text>{{item['鏁呴殰绫诲埆浠g爜']}}
+                        </view>
+                        <view class="detail" v-if="item['鏁呴殰绫诲埆']">
+                            <text>鏁呴殰绫诲埆锛�</text>{{item['鏁呴殰绫诲埆']}}
+                        </view>
+                        <view class="detail" v-if="item['璐熻矗浜轰唬鐮�']">
+                            <text>璐熻矗浜轰唬鐮侊細</text>{{item['璐熻矗浜轰唬鐮�']}}
+                        </view>
+                        <view class="detail" v-if="item['璐熻矗浜�']">
+                            <text>璐熻矗浜猴細</text>{{item['璐熻矗浜�']}}
+                        </view>
+                    </view>
+                    <view class="card-detail" v-if="showDetail == index">
+                        <view class="detail" v-if="item.浣跨敤閮ㄩ棬浠g爜">
+                            <text>浣跨敤閮ㄩ棬浠g爜锛�</text>{{item.浣跨敤閮ㄩ棬浠g爜}}
+                        </view>
+                        <view class="detail" v-if="item.浣跨敤閮ㄩ棬">
+                            <text>浣跨敤閮ㄩ棬锛�</text>{{item.浣跨敤閮ㄩ棬}}
+                        </view>
+                        <view class="detail" v-if="item.浜у搧妯″叿浠g爜">
+                            <text>鍣ㄥ叿缂栫爜锛�</text>{{item.浜у搧妯″叿浠g爜}}
+                        </view>
+                        <view class="detail" v-if="item.浜у搧妯″叿">
+                            <text>浜у搧鍣ㄥ叿锛�</text>{{item.浜у搧妯″叿}}
+                        </view>
+                        <view class="detail" v-if="item.妯″叿瑙勬牸">
+                            <text>鍣ㄥ叿瑙勬牸锛�</text>{{item.妯″叿瑙勬牸}}
+                        </view>
+                        <view class="detail" v-if="item.妯″叿鍨嬪彿">
+                            <text>鍣ㄥ叿鍨嬪彿锛�</text>{{item.妯″叿鍨嬪彿}}
+                        </view>
+                        <view class="detail" v-if="item.鏁呴殰鍙戠敓鏃ユ湡">
+                            <text>鏁呴殰鍙戠敓鏃ユ湡锛�</text>{{item.鏁呴殰鍙戠敓鏃ユ湡.split("T")[0]}}
+                        </view>
+                        <view class="detail" v-if="item.瑕佹眰瀹屽杽鏃ユ湡">
+                            <text>瑕佹眰瀹屽杽鏃ユ湡锛�</text>{{item.瑕佹眰瀹屽杽鏃ユ湡.split("T")[0]}}
+                        </view>
+                        <view class="detail" v-if="item.鎽樿">
+                            <text>鎽樿锛�</text>{{item.鎽樿}}
+                        </view>
+                        <view class="detail" v-if="item.鍐呴儴鍗曟嵁鍙�">
+                            <text>鍐呴儴鍗曟嵁鍙凤細</text>{{item.鍐呴儴鍗曟嵁鍙穧}
+                        </view>
+                        <view class="detail" v-if="item.鏁呴殰鎻忚堪">
+                            <text>鏁呴殰鎻忚堪锛�</text>{{item.鏁呴殰鎻忚堪}}
+                        </view>
+                        <view class="detail" v-if="item.澶囨敞">
+                            <text>澶囨敞锛�</text>{{item.澶囨敞}}
+                        </view>
+                        <view class="detail" v-if="item.鏁呴殰鍘熷洜浠g爜">
+                            <text>鏁呴殰鍘熷洜浠g爜锛�</text>{{item.鏁呴殰鍘熷洜浠g爜}}
+                        </view>
+                        <view class="detail" v-if="item.鏁呴殰鍘熷洜">
+                            <text>鏁呴殰鍘熷洜锛�</text>{{item.鏁呴殰鍘熷洜}}
+                        </view>
+                        <view class="detail" v-if="item.鏁呴殰鍘熷洜鎻忚堪">
+                            <text>鏁呴殰鍘熷洜鎻忚堪锛�</text>{{item.鏁呴殰鍘熷洜鎻忚堪}}
+                        </view>
+                        <view class="detail" v-if="item.瀛愯礋璐d汉浠g爜">
+                            <text>瀛愯礋璐d汉浠g爜锛�</text>{{item.瀛愯礋璐d汉浠g爜}}
+                        </view>
+                        <view class="detail" v-if="item.瀛愯礋璐d汉">
+                            <text>瀛愯礋璐d汉锛�</text>{{item.瀛愯礋璐d汉}}
+                        </view>
+                        <view class="detail" v-if="item.鍏宠仈鏁伴噺">
+                            <text>鍏宠仈鏁伴噺锛�</text>{{item.鍏宠仈鏁伴噺}}
+                        </view>
+                        <view class="detail" v-if="item.琛屽叧闂汉">
+                            <text>琛屽叧闂汉锛�</text>{{item.琛屽叧闂汉}}
+                        </view>
+                        <view class="detail" v-if="item.鍏抽棴绫诲瀷">
+                            <text>鍏抽棴绫诲瀷锛�</text>{{item.鍏抽棴绫诲瀷}}
+                        </view>
+                        <view class="detail" v-if="item.鍒跺崟浜�">
+                            <text>鍒跺崟浜猴細</text>{{item.鍒跺崟浜簘}
+                        </view>
+                        <view class="detail" v-if="item.鍒跺崟鏃ユ湡">
+                            <text>鍒跺崟鏃ユ湡锛�</text>{{item.鍒跺崟鏃ユ湡.split('T')[0]}}
+                        </view>
+                        <view class="detail" v-if="item.淇敼浜�">
+                            <text>淇敼浜猴細</text>{{item.淇敼浜簘}
+                        </view>
+                        <view class="detail" v-if="item.淇敼鏃ユ湡">
+                            <text>淇敼鏃ユ湡锛�</text>{{item.淇敼鏃ユ湡.split('T')[0]}}
+                        </view>
+                        <view class="detail" v-if="item.鍏抽棴浜�">
+                            <text>鍏抽棴浜猴細</text>{{item.鍏抽棴浜簘}
+                        </view>
+                        <view class="detail" v-if="item.鍏抽棴鏃ユ湡">
+                            <text>鍏抽棴鏃ユ湡锛�</text>{{item.鍏抽棴鏃ユ湡.split('T')[0]}}
+                        </view>
+                        <view class="detail" v-if="item.浣滃簾浜�">
+                            <text>浣滃簾浜猴細</text>{{item.浣滃簾浜簘}
+                        </view>
+                        <view class="detail" v-if="item.浣滃簾鏃ユ湡">
+                            <text>浣滃簾鏃ユ湡锛�</text>{{item.浣滃簾鏃ユ湡.split('T')[0]}}
+                        </view>
+                        <view class="detail" v-if="item.婧愬崟鍗曞彿">
+                            <text>婧愬崟鍗曞彿锛�</text>{{item.婧愬崟鍗曞彿}}
+                        </view>
+                        <view class="detail" v-if="item.婧愬崟绫诲瀷">
+                            <text>婧愬崟绫诲瀷锛�</text>{{item.婧愬崟绫诲瀷}}
+                        </view>
+                    </view>
+                    <view class="more" v-if="showDetail == index && operations != index">
+                        <view class="part" style="border-right: 1px solid #eee;">
+                            <uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
+                        </view>
+                        <view class="part" @tap.stop="operations = operations==index?-1:index">
+                            <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                                size="14"></uni-icons>鎿嶄綔
+                        </view>
+                    </view>
+                    <view class="more" v-if="showDetail != index && operations != index">
+                        <view class="part" style="border-right: 1px solid #eee;">
+                            <uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏇村淇℃伅
+                        </view>
+                        <view class="part" @tap.stop="operations = operations==index?-1:index">
+                            <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                                size="14"></uni-icons>鎿嶄綔
+                        </view>
+                    </view>
+                    <view class="op" v-if="operations == index">
+                        <button class="op3" size="mini" plain @tap.stop="edit(item)">缂栬緫</button>
+                        <button class="op4" size="mini" plain @tap.stop="del(item)">鍒犻櫎</button>
+                        <button class="op5" size="mini" plain @tap.stop="operations = -1">鍙栨秷鎿嶄綔</button>
+                    </view>
+                </uni-card>
+            </view>
+            <view class="over" v-if="listDataShow.length == 0">鏆傛棤鏁版嵁</view>
+        </view>
+
+        <view class="pagination-zone" id="pagination-zone">
+            <uni-pagination show-icon :page-size="paginationMeta.pageSize" :total="paginationMeta.total"
+                :current="paginationMeta.current" @change="onPaginationChangeHandler"></uni-pagination>
+        </view>
+    </view>
+</template>
+
+<script>
+    import {
+        CommonUtils
+    } from '../../utils/common'
+    import {
+        getUserInfo
+    } from '../../utils/auth'
+    import dayjs, {
+        Dayjs
+    } from 'dayjs'
+    export default {
+        data() {
+            return {
+
+                navHeight: 0,
+                scrollTop: 0,
+
+                showDetail: -1,
+                operations: -1,
+
+                hform: {
+                    HBeginDate: dayjs(new Date).subtract(30, 'd').format('YYYY-MM-DD'),
+                    HEndDate: dayjs(new Date).format('YYYY-MM-DD'),
+                    HMoNumber: '',
+                    HMoName: '',
+                    HBillNo: ''
+                },
+
+                paginationMeta: {
+                    current: 1,
+                    total: 0,
+                    pageSize: 30,
+                },
+
+                pageMeta: {
+                    scrollContentTop: 0,
+                    bottomBtnTop: 0,
+                },
+
+                listData: [],
+                listDataShow: [],
+            }
+        },
+        computed: {
+            scrollContentHeight: {
+                get() {
+                    return this.pageMeta.bottomBtnTop - this.pageMeta.scrollContentTop
+                }
+            }
+        },
+        methods: {
+            exit() {
+                uni.navigateBack()
+            },
+            cmdAdd(){
+              uni.navigateTo({
+                  url:"/pages/qijvguzhangdengji/form?operationType=1"
+              })  
+            },
+            async cmdSearch() {
+                let sWhere = ''
+                if (this.hform.HBeginDate != "" && this.hform.HEndDate != "") {
+                    sWhere += " and  CONVERT(varchar(100),鏃ユ湡, 23) between '" + this.hform.HBeginDate + "' and '" +
+                        this.hform.HEndDate + "' ";
+                }
+                if (this.hform.HMoNumber != "") {
+                    sWhere += " and 浜у搧妯″叿浠g爜 like '%" + this.hform.HMoNumber + "%'"
+                }
+                if (this.hform.HMoName != "") {
+                    sWhere += " and 浜у搧妯″叿 like '%" + this.hform.HMoName + "%'"
+                }
+                if (this.hform.HBillNo != "") {
+                    sWhere += " and 鍗曟嵁鍙� like '%" + this.hform.HBillNo + "%'"
+                }
+                try {
+                    let res = await CommonUtils.doRequest2Sync({
+                        url: '/Sc_MouldConkBookBill/GetMouldConkBookBillList_PDA',
+                        data: {
+                            "sWhere": sWhere,
+                            "user": getUserInfo()["Czymc"]
+                        },
+                    })
+
+                    if (!res) {
+                        return
+                    }
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data
+                    if (count > 0) {
+                        this.listData = data
+                        this.paginationMeta.total = data.length
+                        this.onPaginationChangeHandler({
+                            current: 1
+                        })
+                    } else {
+                        uni.showToast({
+                            icon: 'none',
+                            title: Message
+                        })
+                    }
+                } catch (err) {
+                    console.warn(err);
+                    uni.showToast({
+                        title: '鎺ュ彛璇锋眰澶辫触:' + err,
+                        icon: 'none'
+                    })
+                }
+            },
+            async onPaginationChangeHandler({
+                current
+            }) {
+                this.listDataShow =
+                    this.listData.slice((current - 1) * this.paginationMeta.pageSize,
+                        current * this.paginationMeta.pageSize)
+
+            },
+            async del(item) {
+                console.log("delItem: ", item);
+
+                try {
+                    let res = await CommonUtils.doRequest2Sync({
+                        url: '/Sc_MouldConkBookBill/DeltetMouldConkBookBill',
+                        data: {
+                            "HInterID": item.hmainid,
+                            "user": getUserInfo()["Czymc"]
+                        }
+                    })
+
+                    if (!res) {
+                        return
+                    }
+
+                    let {
+                        count,
+                        code,
+                        Message
+                    } = res
+                    if (count == 0 && code == 0) {
+                        return uni.showModal({
+                            title: '閿欒鎻愮ず',
+                            content: `鍒犻櫎閿欒: ${Message}`,
+                            showCancel: false
+                        })
+                    }
+                    uni.showToast({
+                        title:'鍒犻櫎鎴愬姛',
+                        icon: 'none'
+                    })
+                } catch (err) {
+                    uni.showModal({
+                        title: '閿欒鎻愮ず',
+                        content: `鎺ュ彛璇锋眰澶辫触: ${err}`,
+                        showCancel: false
+                    })
+                }
+            },
+            edit(item) {
+                console.log("editItem:", item)
+                uni.navigateTo({
+                    url: `/pages/qijvguzhangdengji/form?operationType=2&linterid=${item.hmainid}&hsubid=${item.hsubid}`
+                })
+            }
+        },
+        onLoad() {
+
+            this.$nextTick(() => {
+                this.cmdSearch()
+            })
+        },
+        onReady() {
+            // #ifndef MP-WEIXIN
+            let query = uni.createSelectorQuery().in(this)
+            query.select("#scroll-content").boundingClientRect((data) => {
+                this.pageMeta.scrollContentTop = data.top
+            }).exec()
+            query.select("#pagination-zone").boundingClientRect((data) => {
+                this.pageMeta.bottomBtnTop = data.top
+            }).exec()
+            // #endif
+            // #ifdef MP-WEIXIN
+            // 寰俊涓嶆敮鎸� uni.createSelectorQuery().in(this)
+            // #endif
+
+        },
+    }
+</script>
+
+<style lang="scss" scoped>
+    .page {
+        box-sizing: border-box;
+        display: flex;
+        flex-direction: column;
+        gap: 20rpx;
+        padding: 20rpx 0;
+        position: relative;
+
+        .button-zone {
+            height: auto;
+            box-sizing: border-box;
+            padding-top: 20rpx;
+            display: flex;
+            flex-direction: row;
+            justify-content: space-between;
+            flex-wrap: wrap;
+
+            button {
+                border-radius: 50rpx;
+                width: 180rpx;
+                height: 66rpx;
+                line-height: 66rpx;
+                font-size: 28rpx;
+            }
+
+            .btn-a {
+                background-color: #3a78ff;
+                color: #fff;
+            }
+
+            .btn-c {
+                background-color: #ff5722;
+                color: #fff;
+            }
+        }
+
+        .search-condition-zone {
+            height: auto;
+            box-sizing: border-box;
+            padding: 0 60rpx;
+            display: flex;
+            flex-direction: column;
+            gap: 20rpx;
+
+            .form-item {
+                display: flex;
+                flex-direction: row;
+                gap: 20rpx;
+                align-items: center;
+                font-size: 28rpx;
+
+                .left {
+                    width: 4rem;
+                }
+
+                .right {
+                    flex: 1;
+                    padding: 8rpx 16rpx;
+
+                    .search {
+                        width: 28rpx;
+                        height: 28rpx;
+                    }
+
+                    input {
+                        font-size: 28rpx;
+                    }
+
+                    .uni-combox {
+                        padding: 0;
+                        margin: 0;
+
+                        ::v-deep .uni-combox__input {
+                            font-size: 28rpx;
+                            height: auto;
+                        }
+                    }
+                }
+
+                .general {
+                    border-radius: 22rpx;
+                    border: 1px solid #acacac;
+                }
+
+                .disabled {
+                    border-radius: 22rpx;
+                    border: 1px solid #e4e4e4;
+                    background-color: #e4e4e4;
+                }
+            }
+        }
+
+        .info-list-zone {
+            overflow-y: auto;
+
+            .card-item {
+                .card-detail {
+                    width: 100%;
+                    display: flex;
+                    flex-wrap: wrap;
+                    justify-content: space-between;
+                    line-height: 120%;
+
+                    .detail {
+                        // width: 50%;
+                        font-size: 26rpx;
+                        margin-bottom: 12rpx;
+                        color: #555;
+                        margin-right: 20rpx;
+
+                        text {
+                            color: #999;
+                            font-size: 26rpx;
+                        }
+                    }
+                }
+            }
+        }
+
+        .daterange {
+            display: flex;
+            flex-direction: row;
+            gap: 10rpx;
+            justify-content: center;
+            align-items: center;
+        }
+
+        .more {
+            color: #888;
+            font-size: 24rpx;
+            display: flex;
+            border-top: 1px solid #eee;
+            padding-top: 20rpx;
+
+            .part {
+                width: 50%;
+                text-align: center;
+            }
+        }
+
+        .op {
+            display: flex;
+            justify-content: space-around;
+            margin-top: 20rpx;
+
+            button {
+                padding: 0;
+                width: 150rpx;
+                font-size: 25rpx;
+            }
+
+            .op1 {
+                border: 1px solid #41a863;
+                color: #41a863;
+            }
+
+            .op2 {
+                border: 1px solid #d98d00;
+                color: #d98d00;
+            }
+
+            .op3 {
+                border: 1px solid #3a78ff;
+                color: #3a78ff;
+            }
+
+            .op4 {
+                border: 1px solid #da0000;
+                color: #da0000;
+            }
+
+            .op5 {
+                border: 1px solid #888;
+                color: #888;
+            }
+        }
+
+        .pagination-zone {
+            position: fixed;
+            bottom: 0;
+            box-sizing: border-box;
+            background-color: #fff;
+            box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+            padding: 20rpx 40rpx 20rpx 40rpx;
+            display: flex;
+            flex-direction: column;
+            gap: 20rpx;
+            justify-content: space-between;
+            width: 100%;
+        }
+    }
+</style>
\ No newline at end of file
diff --git a/pages/weixiujilu/form.vue b/pages/weixiujilu/form.vue
new file mode 100644
index 0000000..22cf17a
--- /dev/null
+++ b/pages/weixiujilu/form.vue
@@ -0,0 +1,1929 @@
+<template>
+    <view>
+        <view class="form">
+            <view class="tabs">
+                <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
+                <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
+            </view>
+
+            <view v-if="tabs == 0">
+                <view class="form-item">
+                    <view class="title">妯″叿鏉$爜</view>
+                    <view class="right">
+                        <input type="text" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">婧愬崟绫诲瀷</view>
+                    <view class="right">
+                        <input type="text" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">鏁呴殰鐧昏鍗�</view>
+                    <view class="right">
+                        <input type="text" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨寮�濮�</view>
+                    <view class="right">
+                        <uni-datetime-picker type="datetime">
+                            <view style="font-size: 30rpx;">2025-10-23 00:00:00</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨缁撴潫</view>
+                    <view class="right">
+                        <uni-datetime-picker type="datetime">
+                            <view style="font-size: 30rpx;">2025-10-23 00:00:00</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨鍙楃悊鏃ユ湡</view>
+                    <view class="right">
+                        <uni-datetime-picker type="datetime">
+                            <view style="font-size: 30rpx;">2025-10-23 00:00:00</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨鍐呭</view>
+                    <view class="right">
+                        <textarea value="" style="height: 6em;" maxlength="2000" placeholder="璇疯緭鍏ョ淮淇唴瀹�..." />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">璁″垝缁翠慨宸ユ椂</view>
+                    <view class="right">
+                        <input type="number" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">瀹為檯缁翠慨宸ユ椂</view>
+                    <view class="right">
+                        <input type="number" value="" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍗曟嵁鍙�</view>
+                    <view class="righton">
+                        <input name="HInterID" disabled v-model="hform.HBillNo" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍗曟嵁鏃ユ湡</view>
+                    <view class="right">
+                        <uni-datetime-picker type="datetime">
+                            <view style="font-size: 30rpx;">2025-10-23 00:00:00</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">閮ㄩ棬</view>
+                    <view class="righton">
+                        <input disabled type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">缁翠慨浜�</view>
+                    <view class="righton">
+                        <input disabled type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title required">璐熻矗浜�</view>
+                    <view class="righton">
+                        <input disabled type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨瑕佹眰</view>
+                    <view class="right">
+                        <textarea value="" style="height: 6em;" maxlength="2000" placeholder="璇疯緭鍏ョ淮淇姹�..." />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">渚涘簲鍟�</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇烽�夋嫨渚涘簲鍟�" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨绫诲瀷</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇烽�夋嫨缁翠慨绫诲瀷" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">缁翠慨鍚庢柊瑙�</view>
+                    <view class="right">
+                        <textarea value="" style="height: 6em;" maxlength="2000" placeholder="璇疯緭鍏ョ淮淇悗鏂拌..." />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鏂拌璁″鍛�</view>
+                    <view class="right">
+                        <textarea value="" style="height: 6em;" maxlength="2000" placeholder="璇疯緭鍏ユ柊璁捐瀵垮懡..." />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍣ㄥ叿鍚嶇О</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰悕绉�" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍣ㄥ叿瑙勬牸</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏疯鏍�" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍣ㄥ叿鍨嬪彿</view>
+                    <view class="righton">
+                        <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰瀷鍙�" />
+                    </view>
+                </view>
+            </view>
+
+            <view v-if="tabs == 1">
+                <view class="form-item">
+                    <view class="title">鍒涘缓浜�:</view>
+                    <view class="right">
+                        <input type="text" v-model="hform.HMaker" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">鍒涘缓鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">淇敼浜�:</view>
+                    <view class="right">
+                        <input type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">淇敼鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">瀹℃牳浜�:</view>
+                    <view class="right">
+                        <input type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">瀹℃牳鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">浣滃簾浜�:</view>
+                    <view class="right">
+                        <input type="text" />
+                    </view>
+                </view>
+                <view class="form-item">
+                    <view class="title">浣滃簾鏃ユ湡:</view>
+                    <view class="right">
+                        <uni-datetime-picker type="date">
+                            <view style="font-size: 30rpx;">1234</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+            </view>
+
+            <view class="bottom-btn">
+                <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>
+        </view>
+        <BillSelectPopupXiaoWeiVue v-if="enableModule == 1" ref="billList" :HBillType="hform.HBillType"
+            :HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID"></BillSelectPopupXiaoWeiVue>
+        <BillListPopupVue v-else-if="enableModule == 2" ref="billList" :HBillType="hform.HBillType"
+            :HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID"></BillListPopupVue>
+        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
+    </view>
+</template>
+<script>
+    import getDateTime from '@/utils/getdateTime.js';
+    import {
+        getUserInfo
+    } from "@/utils/auth.js";
+    import {
+        CommonUtils
+    } from '../../utils/common';
+    import {
+        getUserStockRelation
+    } from '../../utils/userRelationManager';
+    import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue';
+    import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue";
+    import BillSelectPopupXiaoWeiVue from '../../components/BillSelectPopupXiaoWei/BillSelectPopupXiaoWei.vue';
+    export default {
+        components: {
+            BillListPopupVue,
+            BarCodePopupVue,
+            BillSelectPopupXiaoWeiVue
+        },
+
+        data() {
+            return {
+                HSourceBillNoFocus: false,
+                barCodeFocus: false,
+
+                userInfo: getUserInfo(),
+                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+                HModName: 'Kf_POStockInBackBill_PDA',
+                ModRightName: 'CE_POStockInBack',
+                OperationType: 1,
+                HInterID_Temp: '',
+
+                showHStockPlaceName: false,
+                showHMainSourceBillType: true,
+                showHSourceBillNo: true,
+                reHSourceBillNo: true,
+                showHSupName: true,
+                barCodeFocus: false,
+
+                tabs: 0,
+                HMainSourceBillType: '閫�鏂欓�氱煡鍗�',
+                arrayHMainSourceBillType: ['閫�鏂欓�氱煡鍗�', '閲囪喘璁㈠崟', '閲囪喘鍏ュ簱鍗�',
+                    '鎵嬪伐褰曞叆'
+                ],
+
+                linterid: '',
+                HBillNo: '',
+                btnType: 0, //0鏂板锛�1淇敼锛�2瀹℃牳锛�3鍙嶅鏍�
+                showmore: false,
+
+
+                materMeta: [],
+                arrayHWHName: [], //浠撳簱
+                HWHNameList: [],
+                arrayHStockPlaceName: [], //浠撲綅
+                HStockPlaceNameList: [],
+                arrayHSourceBillNo: [], //婧愬崟鍗曞彿
+                HSourceBillNoList: [],
+
+                arrayHEmpName: [], //鎿嶄綔鍛�
+                HEmpNameList: [],
+                arrayHDeptName: [], //閮ㄩ棬
+                HDeptNameList: [],
+                arrayHSupName: [], //渚涘簲鍟�
+                HSupNameList: [],
+
+                Materlist: [],
+                hform: {
+                    HBillType: 1239,
+                    HBillerID: uni.getStorageSync('HBillerID'),
+                    HRedBlueFlag: false,
+
+                    HBarCode: '',
+                    HQty: '',
+                    HWHName: getUserInfo().HWHName,
+                    HWHID: getUserInfo().HWhID,
+                    HStockPlaceName: getUserInfo().HSPName,
+                    HStockPlaceID: getUserInfo().HSPID,
+
+                    HMainSourceBillType: 1105,
+                    HSourceBillNo: '', //CGDD000200
+                    HDate: getDateTime.dateTimeStr('y-m-d'),
+                    HMaker: uni.getStorageSync('HUserName'),
+                    HBillNo: '',
+                    HInterID: '',
+
+                    HKeeperName: getUserInfo().HKeeper,
+                    HKeeperID: getUserInfo().HKeeperID,
+                    HSecManagerName: getUserInfo().HSecManager,
+                    HSecManagerID: getUserInfo().HSecManagerID,
+                    HDeptName: getUserInfo().HDept,
+                    HDeptID: getUserInfo().HDeptID,
+                    HSupName: '',
+                    HSupID: '',
+                    HStockOrgName: uni.getStorageSync('Organization'),
+                    HStockOrgID: uni.getStorageSync('OrganizationID'),
+
+                    HBarCode_B: '',
+                    HMaterName_B: '',
+                    HMaterModel_B: '',
+                    HBatchNo_B: '',
+                    HUnitName_B: '',
+                    HQty_B: '',
+                    HTMQty_B: '',
+                    HWHName_B: '',
+                    HSPName_B: '',
+                }
+            }
+        },
+        computed: {
+            enableModule: {
+                get() {
+                    if (this.hform.HMainSourceBillType == 1201 &&
+                        /灏忓崼|鏅轰簯/.test(uni.getStorageSync('Organization'))
+                    ) {
+
+                        return 1
+                    } else {
+                        return 2
+                    }
+                }
+
+                // 鍏朵粬鏉′欢
+            },
+            HStockPlaceNameListComputed: {
+                get() {
+                    // 鍔ㄦ�佽绠楀搴斾粨搴撶殑浠撲綅
+                    return this.HStockPlaceNameList
+                        .filter(e => e['鎵�灞炰粨搴�'] == this.hform.HWHName)
+                        .map(e => e['浠撲綅鍚嶇О'])
+                }
+            }
+        },
+        onLoad(e) {
+            console.log(e, this.userInfo)
+            this.OperationType = e.OperationType
+            if (e.HInterID) {
+                this.HInterID_Temp = e.HInterID
+                // this.btnType = 1
+                this.RoadBillMain(e.HInterID)
+                this.barCodeFocus = true
+            } else {
+                this.getNewData()
+                this.HSourceBillNoFocus = true
+            }
+            this.getRelationStore()
+            // this.getHBaseList()
+            // this.getHSupList()
+            this.getHEmpList()
+            this.getHDeptList()
+
+            uni.$on('BillSelectComplete', (e) => {
+                console.log("鎺ユ敹鍒扮殑娑堟伅: ", e.HBillNo)
+                this.getHBarCodeData(e.HBillNo)
+                this.$refs.billList.exit()
+            })
+        },
+        onUnload() {
+            uni.$off('BillSelectComplete')
+        },
+        methods: {
+            async HWHNameScan(e) {
+                // 鎵弿浠撳簱鐮�
+                console.log('浠撳簱鐮�: ', e);
+                let index = this.HWHNameList.findIndex(elem => elem['鏉$爜缂栧彿'] == e)
+                if (index == -1) {
+                    uni.showToast({
+                        icon: 'none',
+                        title: '鎵弿浠撳簱鏉$爜瀵瑰簲鐨勪粨搴撲笉瀛樺湪...'
+                    })
+                } else {
+                    this.HWHNameChange(this.HWHNameList[index]['浠撳簱鍚嶇О'])
+                }
+            },
+            async HStockPlaceNameScan(e) {
+                // 鎵弿浠撲綅鐮�
+                console.log('浠撲綅鐮�: ', e);
+                let index = this.HStockPlaceNameList.findIndex(elem => elem['鏉$爜缂栧彿'] == e)
+                console.log('index: ', index);
+                if (index == -1) {
+                    uni.showToast({
+                        icon: 'none',
+                        title: '鎵弿浠撲綅鏉$爜瀵瑰簲鐨勪粨浣嶄笉瀛樺湪...'
+                    })
+                } else {
+                    this.HStockPlaceNameChange(this.HStockPlaceNameList[index]['浠撲綅鍚嶇О'])
+                }
+            },
+            async qrCodeDisplay() {
+                try {
+                    this.$refs.barcodePopup.setCodeInfo(this.hform.HBillNo)
+                    await this.$nextTick()
+                    this.$refs.barcodePopup.open()
+                } catch (err) {
+                    uni.showToast({
+                        icon: 'none',
+                        title: err
+                    })
+                }
+            },
+            async getRelationStore() {
+                let {
+                    data,
+                    count
+                } = await getUserStockRelation()
+                if (count == 1) {
+                    let WHIDList = []
+
+                    Array.from(data).forEach(elem => {
+                        WHIDList.push(elem.HItemID)
+                    })
+
+                    let sWhere = ` and HItemID in (${WHIDList.join(",")})`
+                    this.getHBaseList({
+                        sWhere: sWhere
+                    })
+
+                } else {
+                    this.getHBaseList()
+                }
+            },
+            showBillList() {
+                this.$refs.billList.showPopup()
+            },
+            async refreshHSourceBillState() {
+                this.HSourceBillNoFocus = false
+                await this.$nextTick(() => {
+                    this.hform.HSourceBillNo = ""
+                    this.HSourceBillNoFocus = true
+
+                })
+            },
+            async refreshBarCodeState() {
+                this.barCodeFocus = false
+                await this.$nextTick(() => {
+                    this.hform.HBarCode = ""
+                    this.barCodeFocus = true
+                })
+            },
+            playSound(e) {
+                const innerAudioContext = uni.createInnerAudioContext();
+                if (e == 1) {
+                    innerAudioContext.src = '/static/success.wav';
+                } else {
+                    innerAudioContext.src = '/static/jingbao.wav';
+                }
+                innerAudioContext.play(); // 鎾斁闊抽
+            },
+            onSourceBillBlurHandler() {
+                if (this.hform.HMainSourceBillType == -1) {
+                    this.playSound(1)
+                    this.barCodeFocus = true
+                    return
+                }
+                let inputVal = ''
+                if (this.$refs.uniComboxSourceBill) {
+                    inputVal = this.$refs.uniComboxSourceBill.inputVal || this.hform.HSourceBillNo
+                } else {
+                    inputVal = this.hform.HSourceBillNo
+                }
+                if (inputVal == '') {
+                    CommonUtils.playSound(0)
+                    return uni.showToast({
+                        icon: 'none',
+                        Message: '婧愬崟鍗曞彿涓嶅緱涓虹┖...'
+                    })
+                }
+                this.getHBarCodeData(inputVal)
+            },
+            //鎵爜
+            toScanCode() {
+                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+                mpaasScanModule.mpaasScan({
+                    'hideAlbum': true,
+                    'timeoutInterval': '10', //瓒呮椂鏃堕棿
+                    'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋            
+                }, (ret) => {
+                    console.log(ret.resp_result)
+                    if (this.hform.HBarCode == '*') {
+                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
+                    } else {
+                        this.hform.HBarCode = ret.resp_result
+                    }
+
+                    this.getCode(this.hform.HBarCode)
+                })
+            },
+            //鎵叾浠�(浠撳簱锛屼粨浣�)
+            // toScanData(e){
+            // 	uni.scanCode({
+            // 	    onlyFromCamera: true,
+            // 	    success: (res) => {
+            // 	        console.log('鏉$爜鍐呭锛�' + res.result);
+            // 			var code = res.result
+            // 			if(e == 1){
+            // 				uni.request({
+            // 					url: this.serverUrl + '/WEBSController/GetWarehouse_Json', 
+            // 					data: {HBarCode:code,HStockOrgID:uni.getStorageSync('OrganizationID')},
+            // 					success: (res) => {
+            // 						this.hform.HStockPlaceID = 0
+            // 						this.hform.HStockPlaceName = ''
+            // 						this.showHStockPlaceName = true
+            // 						if(res.data.count == 1){
+            // 							var data = res.data.data[0]
+            // 							this.hform.HWHID = data.HItemID
+            // 							this.hform.HWHName = data.HName
+            // 							if (data.HSPFlag == 0) {
+            // 							    this.showHStockPlaceName = false
+            // 							}
+            // 						}else{
+            // 							this.hform.HWHID = 0
+            // 							this.hform.HWHName = ''
+            // 							uni.showToast({
+            // 								title:res.data.Message,
+            // 								icon:'none'
+            // 							})
+            // 						}
+            // 					},
+            // 					fail: (res) => {
+            // 						console.log(res);
+            // 						uni.showToast({
+            // 							title:'浠撳簱鏁版嵁璇锋眰澶辫触',
+            // 							icon:'none'
+            // 						})
+            // 					},
+            // 				});
+            // 			}else if(e == 2){
+            // 				uni.request({
+            // 					url: this.serverUrl + '/WEBSController/GetStockPlace_Json', 
+            // 					data: {HBarCode:code,HStockOrgID:uni.getStorageSync('OrganizationID'),HWhID: this.hform.HWHID},
+            // 					success: (res) => {
+            // 						if(res.data.count == 1){
+            // 							var data = res.data.data[0]
+            // 							this.hform.HWHID = data.HWHID
+            // 							this.hform.HWHName = data.HWhName
+            // 							this.hform.HStockPlaceID = data.HItemID
+            // 							this.hform.HStockPlaceName = data.HName
+            // 						}else{
+            // 							this.hform.HWHID = 0
+            // 							this.hform.HWHName = ''
+            // 							this.hform.HStockPlaceID = 0
+            // 							this.hform.HStockPlaceName = ''
+            // 							uni.showToast({
+            // 								title:res.data.Message,
+            // 								icon:'none'
+            // 							})
+            // 						}
+            // 					},
+            // 					fail: (res) => {
+            // 						console.log(res);
+            // 						uni.showToast({
+            // 							title:'浠撳簱鏁版嵁璇锋眰澶辫触',
+            // 							icon:'none'
+            // 						})
+            // 					},
+            // 				});
+            // 			}
+            // 	    }
+            // 	});
+            // },
+            //鏃ユ湡
+            HDateChange(e) {
+                console.log(e.detail.value)
+                this.hform.HDate = e.detail.value
+            },
+            //鍩虹浠撳簱璧勬枡
+            getHBaseList({
+                sWhere = ""
+            } = {}) {
+                uni.request({
+                    url: this.serverUrl + '/Gy_Warehouse/list',
+                    data: {
+                        sWhere: sWhere,
+                        user: uni.getStorageSync('HUserName'),
+                        Organization: uni.getStorageSync('Organization')
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HWHNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHWHName[i] = res.data.data[i].浠撳簱鍚嶇О
+                            }
+                        } else {
+                            uni.showToast({
+                                title: '浠撳簱鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+
+                uni.request({
+                    url: this.serverUrl + '/Gy_StockPlace/list',
+                    data: {
+                        sWhere: "",
+                        user: uni.getStorageSync('HUserName'),
+                        Organization: uni.getStorageSync('Organization')
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HStockPlaceNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHStockPlaceName[i] = res.data.data[i].浠撲綅鍚嶇О
+                            }
+                        } else {
+                            uni.showToast({
+                                title: '浠撲綅鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+
+                // this.getHYDList()
+            },
+            //婧愬崟璧勬枡
+            getHYDList() {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetSourceBillList_Json',
+                    data: {
+                        HBillType: this.hform.HBillType,
+                        HSourceBillType: this.hform.HMainSourceBillType,
+                        HStockOrgID: this.hform.HStockOrgID,
+                        HSourceBillNo: "",
+                        HMater: "",
+                        HCustom: ""
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HSourceBillNoList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHSourceBillNo[i] = res.data.data[i].鍗曟嵁鍙�
+                            }
+                            this.reHSourceBillNo = false
+                            this.$nextTick(() => {
+                                this.reHSourceBillNo = true
+                            })
+                        } else {
+                            uni.showToast({
+                                title: '婧愬崟鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //閫夋嫨浠撳簱
+            HWHNameChange(e) {
+                // var name = e.split("(")
+                for (var i = 0; i < this.HWHNameList.length; i++) {
+                    if (this.HWHNameList[i].浠撳簱鍚嶇О == e) {
+                        this.hform.HWHName = this.HWHNameList[i].浠撳簱鍚嶇О
+                        this.hform.HWHID = this.HWHNameList[i].HItemID
+
+                        if (this.HWHNameList[i]['鍚敤浠撲綅'] == 'Y') {
+                            this.showHStockPlaceName = true
+                        } else {
+                            this.hform.HStockPlaceName = ''
+                            this.showHStockPlaceName = false
+                        }
+                    }
+                }
+            },
+            //閫夋嫨浠撲綅
+            HStockPlaceNameChange(e) {
+                let index = this.HStockPlaceNameList.findIndex(elem => elem['浠撲綅鍚嶇О'] == e)
+                if (index != -1) {
+                    this.hform.HStockPlaceName = this.HStockPlaceNameList[index].浠撲綅鍚嶇О
+                    this.hform.HStockPlaceID = this.HStockPlaceNameList[index].HMainID
+                } else {
+                    this.hform.HStockPlaceName = ''
+                    this.hform.HStockPlaceID = 0
+                }
+                // for (var i = 0; i < this.HStockPlaceNameList.length; i++) {
+                //     if (this.HStockPlaceNameList[i].浠撲綅鍚嶇О == e) {
+                //         this.hform.HStockPlaceName = this.HStockPlaceNameList[i].浠撲綅鍚嶇О
+                //         this.hform.HStockPlaceID = this.HStockPlaceNameList[i].HMainID
+                //     }
+                // }
+            },
+            //閫夋嫨婧愬崟
+            HSourceBillNoChange(e) {
+                this.hform.HSourceBillNo = e
+                this.getHBarCodeData(e)
+                // for(var i=0;i<this.HSourceBillNoList.length;i++){
+                // 	if(this.HSourceBillNoList[i].鍗曟嵁鍙� == e){
+                // 		this.hform.HSourceBillNo = this.HSourceBillNoList[i].鍗曟嵁鍙�
+                // 	}
+                // }
+            },
+            //閫夋嫨婧愬崟绫诲瀷
+            HMainSourceBillTypeChange(e) {
+                this.HMainSourceBillType = this.arrayHMainSourceBillType[e.detail.value]
+                if (this.HMainSourceBillType == '閫�鏂欓�氱煡鍗�') {
+                    this.hform.HMainSourceBillType = 1105
+                    // this.getHYDList()
+                } else if (this.HMainSourceBillType == '閲囪喘璁㈠崟') {
+                    this.hform.HMainSourceBillType = 1102
+                    // this.getHYDList()
+                } else if (this.HMainSourceBillType == '閲囪喘鍏ュ簱鍗�') {
+                    this.hform.HMainSourceBillType = 1201
+
+                } else {
+                    this.hform.HMainSourceBillType = -1
+                    // this.getHYDList()
+                }
+            },
+
+            //鑾峰彇渚涘簲鍟嗘暟鎹�
+            getHSupList() {
+                if (!this.hform.HStockOrgID) {
+                    var HOtherOrgID = 0;
+                } else {
+                    var HOtherOrgID = this.hform.HStockOrgID
+                }
+                uni.request({
+                    url: this.serverUrl + '/Web/GetSupplierList_Json',
+                    data: {
+                        Supplier: '',
+                        HOrgID: HOtherOrgID
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HSupNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHSupName[i] = res.data.data[i].HName
+                            }
+                            this.$forceUpdate();
+                        } else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '渚涘簲鍟嗘暟鎹姹傚け璐�',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //閫夋嫨渚涘簲鍟�
+            HSupNameChange(e) {
+                for (var i = 0; i < this.HSupNameList.length; i++) {
+                    if (this.HSupNameList[i].HName == e) {
+                        this.hform.HSupID = this.HSupNameList[i].HItemID
+                        this.hform.HSupName = this.HSupNameList[i].HName
+                    }
+                }
+            },
+            //鑾峰彇浣跨敤閮ㄩ棬鏁版嵁
+            getHDeptList() {
+                uni.request({
+                    url: this.serverUrl + '/Gy_Department/list',
+                    data: {
+                        sWhere: "",
+                        user: uni.getStorageSync('HUserName'),
+                        Organization: uni.getStorageSync('Organization')
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HDeptNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHDeptName[i] = res.data.data[i].閮ㄩ棬鍚嶇О
+                            }
+                            this.$forceUpdate();
+                        } else {
+                            uni.showToast({
+                                title: '閮ㄩ棬鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //閫夋嫨浣跨敤閮ㄩ棬
+            HDeptNameChange(e) {
+                for (var i = 0; i < this.HDeptNameList.length; i++) {
+                    if (this.HDeptNameList[i].閮ㄩ棬鍚嶇О == e) {
+                        this.hform.HDeptID = this.HDeptNameList[i].HItemID
+                        this.hform.HDeptName = this.HDeptNameList[i].閮ㄩ棬鍚嶇О
+                    }
+                }
+            },
+            //鎿嶄綔鍛�
+            getHEmpList() {
+                uni.request({
+                    url: this.serverUrl + '/Web/GetEmployeeList_Json',
+                    data: {
+                        Employee: '',
+                        HGroupID: 0
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            this.HEmpNameList = res.data.data
+                            for (var i = 0; i < res.data.data.length; i++) {
+                                this.arrayHEmpName[i] = res.data.data[i].HName
+                            }
+                            this.$forceUpdate();
+                        } else {
+                            uni.showToast({
+                                title: '浜哄憳鏁版嵁璇锋眰澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //淇濈
+            HKeeperNameChange(e) {
+                for (var i = 0; i < this.HEmpNameList.length; i++) {
+                    if (this.HEmpNameList[i].HName == e) {
+                        console.log(this.HEmpNameList[i])
+                        this.hform.HKeeperID = this.HEmpNameList[i].HItemID
+                        this.hform.HKeeperName = this.HEmpNameList[i].HName
+                    }
+                }
+            },
+            //楠屾敹
+            HSecManagerNameChange(e) {
+                for (var i = 0; i < this.HEmpNameList.length; i++) {
+                    if (this.HEmpNameList[i].HName == e) {
+                        this.hform.HSecManagerID = this.HEmpNameList[i].HItemID
+                        this.hform.HSecManagerName = this.HEmpNameList[i].HName
+                    }
+                }
+            },
+            //閫変腑婧愬崟
+            getHBarCodeData(HBarCode) {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/Get_SourceBarCode_POStockInBack_Json',
+                    data: {
+                        HInterID: this.hform.HInterID,
+                        HBillNo: this.hform.HBillNo,
+                        HBillType: this.hform.HBillType,
+                        HSourceBillNo: HBarCode,
+                        HSourceBillType: this.hform.HMainSourceBillType,
+                        HMaker: this.hform.HMaker,
+                        HStockOrgID: this.hform.HStockOrgID
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {
+                            var data = res.data.data
+                            console.log(2, data);
+                            this.hform.HSupName = data.hSupNameField
+                            this.hform.HSupID = data.hSupIDField
+                            if (data.hDeptIDField != 0) {
+                                this.hform.HDeptID = data.hDeptIDField
+                                this.hform.HDeptName = data.hDeptNameField
+                            }
+                            this.hform.HSourceBillNo = data.hSourceBillNoField
+                            this.showHMainSourceBillType = false
+                            if (data.hMulSourceFlagField == 0) {
+                                this.showHSourceBillNo = false
+                            }
+                            this.tabs = 2
+                            this.showHSupName = false
+                            this.barCodeFocus = true
+                            CommonUtils.playSound(1)
+                            this.DisBillEntryList()
+                        } else {
+                            CommonUtils.playSound(0)
+                            this.refreshHSourceBillState()
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        CommonUtils.playSound(0)
+                        this.refreshHSourceBillState()
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //鎵潯鐮佸鐞�
+            async getCode(HBarCode) {
+                //浠撳簱銆佷粨浣嶆枃鏈涓虹┖鏃讹紝娓呯┖瀵瑰簲ID
+                if (!this.hform.HWHName) {
+                    this.hform.HWHID = 0
+                }
+                if (!this.hform.HStockPlaceName) {
+                    this.hform.HStockPlaceID = 0
+                }
+                var sOldBarCode = HBarCode
+                var HDeleteFlag = sOldBarCode.substring(0, 1);
+                var sBarCode = sOldBarCode.slice(1);
+
+                var sHWHID = this.hform.HWHID
+                var sHSPID = this.hform.HStockPlaceID
+                var sHQty = this.hform.HQty
+                var sSourceBillNo = this.hform.HSourceBillNo
+                var sSourceBillType = this.hform.HMainSourceBillType
+                var HSourceFlag = this.hform.HSourceBillNo == '' ? false : true
+                console.log(this.hform.HSourceBillNo, HSourceFlag)
+                if (HDeleteFlag == "*") {
+                    if (sBarCode == "") {
+                        this.playSound(0)
+                        this.refreshBarCodeState()
+                        uni.showToast({
+                            title: '璇锋壂鎻忚鍒犻櫎鐨勬潯鐮�',
+                            icon: 'none'
+                        })
+                    } else {
+                        try {
+                            let res = await CommonUtils.doRequest2Sync({
+                                url: '/WEBSController/set_DelPonderationBillMain_Temp_BarCode_Json',
+                                data: {
+                                    HInterID: this.hform.HInterID,
+                                    HBillType: this.hform.HBillType,
+                                    HBarCode: sBarCode
+                                }
+                            })
+
+                            if (!res) {
+                                return
+                            }
+
+                            console.log('鍒犻櫎鏉$爜', res.data);
+                            this.hform.HBarCode = ''
+                            if (res.data.count == 1) {
+                                this.playSound(1)
+                                this.hform.HQty = ''
+                                this.DisBillEntryList()
+                            } else {
+                                this.playSound(0)
+                                this.refreshBarCodeState()
+                                uni.showToast({
+                                    title: res.data.Message,
+                                    icon: 'none'
+                                })
+                            }
+                        } catch (err) {
+                            this.refreshBarCodeState()
+                            this.playSound(0)
+                            uni.showToast({
+                                title: '鎺ュ彛璇锋眰澶辫触: ' + err,
+                                icon: 'none'
+                            })
+                        }
+
+                        // uni.request({
+                        //     url: this.serverUrl +
+                        //         '/WEBSController/set_DelPonderationBillMain_Temp_BarCode_Json',
+                        //     data: {
+                        //         HInterID: this.hform.HInterID,
+                        //         HBillType: this.hform.HBillType,
+                        //         HBarCode: sBarCode
+                        //     },
+                        //     success: (res) => {
+                        //         console.log('鍒犻櫎鏉$爜', res.data);
+                        //         this.hform.HBarCode = ''
+                        //         if (res.data.count == 1) {
+                        //             this.playSound(1)
+                        //             this.hform.HQty = ''
+                        //             CommonUtils.playSound(1)
+                        //             this.DisBillEntryList()
+                        //         } else {
+                        //             this.playSound(0)
+                        //             this.refreshBarCodeState()
+                        //             uni.showToast({
+                        //                 title: res.data.Message,
+                        //                 icon: 'none'
+                        //             })
+                        //         }
+                        //     },
+                        //     fail: (res) => {
+                        //         this.playSound(0)
+                        //         this.refreshBarCodeState()
+                        //         console.log(res);
+                        //         uni.showToast({
+                        //             title: '鎺ュ彛璇锋眰澶辫触',
+                        //             icon: 'none'
+                        //         })
+                        //     },
+                        // });
+                    }
+                } else {
+                    var sBarCode = this.hform.HBarCode
+                    if (sHQty == "") {
+                        sHQty = 0;
+                    }
+
+                    try {
+                        let res = await CommonUtils.doRequest2Sync({
+                            url: '/WEBSController/Get_BarCode_Json',
+                            data: {
+                                sBarCode: sBarCode,
+                                HInterID: this.hform.HInterID,
+                                HBillType: this.hform.HBillType,
+                                HBillNo: this.hform.HBillNo,
+                                HMaker: this.hform.HMaker,
+                                HWhID: sHWHID,
+                                HSPID: sHSPID,
+                                HQty: sHQty,
+                                HRedBlueFlag: this.hform.HRedBlueFlag,
+                                SourceFlag: HSourceFlag,
+                                HSourceBillNo: sSourceBillNo,
+                                HSourceBillType: sSourceBillType,
+                                HStockOrgID: this.hform.HStockOrgID,
+                                HScanStyle: "",
+                                HCustom1: "",
+                                HCustom2: ""
+                            },
+                        })
+                        if (!res) {
+                            return
+                        }
+                        console.log('鎵爜杩斿洖', res.data);
+                        this.hform.HBarCode = ''
+                        if (res.data.count == 1) {
+                            this.playSound(1)
+                            var data = res.data.data
+                            if (data.hBarTypeField == '浠撳簱鏉$爜') {
+                                this.hform.HWHName = data.hWhNameField
+                                this.hform.HWHID = data.hWhIDField
+                                this.hform.HStockPlaceName = ''
+                                this.hform.HStockPlaceID = 0
+                                if (data.hSPFlagField == 0) {
+                                    this.showHStockPlaceName = false
+                                } else {
+                                    this.showHStockPlaceName = true
+                                }
+                            } else if (data.hBarTypeField == '浠撲綅鏉$爜') {
+                                this.hform.HWHName = data.hWhNameField
+                                this.hform.HWHID = data.hWhIDField
+                                this.hform.HStockPlaceName = data.hSPNameField
+                                this.hform.HStockPlaceID = data.hSPIDField
+                            } else if (data.hBarTypeField == '閮ㄩ棬鏉$爜') {
+                                this.hform.HDeptName = data.hDeptNameField
+                                this.hform.HDeptID = data.hDeptIDField
+                                this.tabs = 1
+                            } else if (data.hBarTypeField == '婧愬崟鏉$爜') {
+                                this.hform.HSupName = data.hSupNameField
+                                this.hform.HSupID = data.hSupIDField
+                                if (data.hDeptIDField != 0) {
+                                    this.hform.HDeptID = data.hDeptIDField
+                                    this.hform.HDeptName = data.hDeptNameField
+                                }
+                                this.hform.HSourceBillNo = data.hSourceBillNoField
+                                //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                                this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                                if (data.hSourceBillTypeField == "1105") {
+                                    this.HMainSourceBillType = '閫�鏂欓�氱煡鍗�'
+                                    this.hform.HMainSourceBillType = 1105
+                                    this.showHMainSourceBillType = false
+                                } else if (data.hSourceBillTypeField == "1102") {
+                                    this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                                    this.hform.HMainSourceBillType = 1102
+                                    this.showHMainSourceBillType = false
+                                } else if (data.hSourceBillType == 1201) {
+                                    this.HMainSourceBillType = '閲囪喘鍏ュ簱鍗�'
+                                    this.hform.HMainSourceBillType = 1201
+                                    this.showHMainSourceBillType = false
+                                } else {
+                                    this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                                    this.hform.HMainSourceBillType = -1
+                                    this.showHMainSourceBillType = false
+                                }
+                                if (data.hMulSourceFlagField == 0) {
+                                    this.showHSourceBillNo = false
+                                }
+                                //渚涘簲鍟嗕笉鍙紪杈�
+                                this.showHSupName = false
+                                this.tabs = 2
+                            } else { //鐗╂枡鏉$爜
+                                this.tabs = 2
+                                if (!this.hform.HSourceBillNo) {
+                                    this.hform.HSupName = data.hSupNameField
+                                    this.hform.HSupID = data.hSupIDField
+                                    this.hform.HSourceBillNo = data.hSourceBillNoField
+                                    if (data.hDeptIDField != 0) {
+                                        this.hform.HDeptID = data.hDeptIDField
+                                        this.hform.HDeptName = data.hDeptNameField
+                                    }
+                                    console.log(data)
+                                    //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                                    this.hform.HMainSourceBillType = data.hSourceBillTypeField
+
+                                    let index = this.arrayHMainSourceBillValue.findIndex(e => e ==
+                                        data
+                                        .hSourceBillTypeField)
+                                    if (index != -1) {
+                                        this.HMainSourceBillType = this.arrayHMainSourceBillType[
+                                            index]
+                                        this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                                        this.showHMainSourceBillType = false
+                                    }
+                                    // if (data.hSourceBillTypeField == "1103") {
+                                    // 	this.HMainSourceBillType = '鏀舵枡閫氱煡鍗�'
+                                    // 	this.hform.HMainSourceBillType = 1103
+                                    // 	this.showHMainSourceBillType = false
+                                    // } else if (data.hSourceBillTypeField == "1102") {
+                                    // 	this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                                    // 	this.hform.HMainSourceBillType = 1102
+                                    // 	this.showHMainSourceBillType = false
+                                    // } else {
+                                    // 	this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                                    // 	this.hform.HMainSourceBillType = -1
+                                    // 	this.showHMainSourceBillType = false
+                                    // }
+                                    if (data.hMulSourceFlagField == 0) {
+                                        this.showHSourceBillNo = false
+                                    }
+                                    //渚涘簲鍟嗕笉鍙紪杈�
+                                    this.showHSupName = false
+                                }
+                            }
+                            //鏄剧ず琛ㄤ綋鏄庣粏
+                            this.DisBillEntryList()
+                            //娓呯┖鏁伴噺
+                            this.hform.HQty = ''
+                        } else {
+                            this.playSound(0)
+                            this.refreshBarCodeState()
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    } catch (err) {
+                        this.playSound(0)
+                        this.refreshBarCodeState()
+                        console.log(err);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触: ' + err,
+                            icon: 'none'
+                        })
+                    }
+
+                    // uni.request({
+                    //     url: this.serverUrl + '/WEBSController/Get_BarCode_Json',
+                    //     data: {
+                    //         sBarCode: sBarCode,
+                    //         HInterID: this.hform.HInterID,
+                    //         HBillType: this.hform.HBillType,
+                    //         HBillNo: this.hform.HBillNo,
+                    //         HMaker: this.hform.HMaker,
+                    //         HWhID: sHWHID,
+                    //         HSPID: sHSPID,
+                    //         HQty: sHQty,
+                    //         HRedBlueFlag: this.hform.HRedBlueFlag,
+                    //         SourceFlag: HSourceFlag,
+                    //         HSourceBillNo: sSourceBillNo,
+                    //         HSourceBillType: sSourceBillType,
+                    //         HStockOrgID: this.hform.HStockOrgID,
+                    //         HScanStyle: "",
+                    //         HCustom1: "",
+                    //         HCustom2: ""
+                    //     },
+                    //     success: (res) => {
+                    //         console.log('鎵爜杩斿洖', res.data);
+                    //         this.hform.HBarCode = ''
+                    //         if (res.data.count == 1) {
+                    //             this.playSound(1)
+                    //             var data = res.data.data
+                    //             if (data.hBarTypeField == '浠撳簱鏉$爜') {
+                    //                 this.hform.HWHName = data.hWhNameField
+                    //                 this.hform.HWHID = data.hWhIDField
+                    //                 this.hform.HStockPlaceName = ''
+                    //                 this.hform.HStockPlaceID = 0
+                    //                 if (data.hSPFlagField == 0) {
+                    //                     this.showHStockPlaceName = false
+                    //                 } else {
+                    //                     this.showHStockPlaceName = true
+                    //                 }
+                    //             } else if (data.hBarTypeField == '浠撲綅鏉$爜') {
+                    //                 this.hform.HWHName = data.hWhNameField
+                    //                 this.hform.HWHID = data.hWhIDField
+                    //                 this.hform.HStockPlaceName = data.hSPNameField
+                    //                 this.hform.HStockPlaceID = data.hSPIDField
+                    //             } else if (data.hBarTypeField == '閮ㄩ棬鏉$爜') {
+                    //                 this.hform.HDeptName = data.hDeptNameField
+                    //                 this.hform.HDeptID = data.hDeptIDField
+                    //                 this.tabs = 1
+                    //             } else if (data.hBarTypeField == '婧愬崟鏉$爜') {
+                    //                 this.hform.HSupName = data.hSupNameField
+                    //                 this.hform.HSupID = data.hSupIDField
+                    //                 if (data.hDeptIDField != 0) {
+                    //                     this.hform.HDeptID = data.hDeptIDField
+                    //                     this.hform.HDeptName = data.hDeptNameField
+                    //                 }
+                    //                 this.hform.HSourceBillNo = data.hSourceBillNoField
+                    //                 //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                    //                 this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                    //                 if (data.hSourceBillTypeField == "1105") {
+                    //                     this.HMainSourceBillType = '閫�鏂欓�氱煡鍗�'
+                    //                     this.hform.HMainSourceBillType = 1105
+                    //                     this.showHMainSourceBillType = false
+                    //                 } else if (data.hSourceBillTypeField == "1102") {
+                    //                     this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                    //                     this.hform.HMainSourceBillType = 1102
+                    //                     this.showHMainSourceBillType = false
+                    //                 } else if (data.hSourceBillType == 1201) {
+                    //                     this.HMainSourceBillType = '閲囪喘鍏ュ簱鍗�'
+                    //                     this.hform.HMainSourceBillType = 1201
+                    //                     this.showHMainSourceBillType = false
+                    //                 } else {
+                    //                     this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                    //                     this.hform.HMainSourceBillType = -1
+                    //                     this.showHMainSourceBillType = false
+                    //                 }
+                    //                 if (data.hMulSourceFlagField == 0) {
+                    //                     this.showHSourceBillNo = false
+                    //                 }
+                    //                 //渚涘簲鍟嗕笉鍙紪杈�
+                    //                 this.showHSupName = false
+                    //                 this.tabs = 2
+                    //             } else { //鐗╂枡鏉$爜
+                    //                 this.tabs = 2
+                    //                 if (!this.hform.HSourceBillNo) {
+                    //                     this.hform.HSupName = data.hSupNameField
+                    //                     this.hform.HSupID = data.hSupIDField
+                    //                     this.hform.HSourceBillNo = data.hSourceBillNoField
+                    //                     if (data.hDeptIDField != 0) {
+                    //                         this.hform.HDeptID = data.hDeptIDField
+                    //                         this.hform.HDeptName = data.hDeptNameField
+                    //                     }
+                    //                     console.log(data)
+                    //                     //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                    //                     this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                    // 
+                    //                     let index = this.arrayHMainSourceBillValue.findIndex(e => e ==
+                    //                         data
+                    //                         .hSourceBillTypeField)
+                    //                     if (index != -1) {
+                    //                         this.HMainSourceBillType = this.arrayHMainSourceBillType[
+                    //                             index]
+                    //                         this.hform.HMainSourceBillType = data.hSourceBillTypeField
+                    //                         this.showHMainSourceBillType = false
+                    //                     }
+                    //                     // if (data.hSourceBillTypeField == "1103") {
+                    //                     // 	this.HMainSourceBillType = '鏀舵枡閫氱煡鍗�'
+                    //                     // 	this.hform.HMainSourceBillType = 1103
+                    //                     // 	this.showHMainSourceBillType = false
+                    //                     // } else if (data.hSourceBillTypeField == "1102") {
+                    //                     // 	this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                    //                     // 	this.hform.HMainSourceBillType = 1102
+                    //                     // 	this.showHMainSourceBillType = false
+                    //                     // } else {
+                    //                     // 	this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                    //                     // 	this.hform.HMainSourceBillType = -1
+                    //                     // 	this.showHMainSourceBillType = false
+                    //                     // }
+                    //                     if (data.hMulSourceFlagField == 0) {
+                    //                         this.showHSourceBillNo = false
+                    //                     }
+                    //                     //渚涘簲鍟嗕笉鍙紪杈�
+                    //                     this.showHSupName = false
+                    //                 }
+                    //             }
+                    //             //鏄剧ず琛ㄤ綋鏄庣粏
+                    //             this.DisBillEntryList()
+                    //             //娓呯┖鏁伴噺
+                    //             this.hform.HQty = ''
+                    //         } else {
+                    //             this.playSound(0)
+                    //             this.refreshBarCodeState()
+                    //             uni.showToast({
+                    //                 title: res.data.Message,
+                    //                 icon: 'none'
+                    //             })
+                    //         }
+                    //     },
+                    //     fail: (res) => {
+                    //         this.playSound(0)
+                    //         this.refreshBarCodeState()
+                    //         console.log(res);
+                    //         uni.showToast({
+                    //             title: '鎺ュ彛璇锋眰澶辫触',
+                    //             icon: 'none'
+                    //         })
+                    //     },
+                    // });
+                }
+            },
+            //鐗╂枡淇℃伅
+            DisBillEntryList() {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetBillEntryTmpList_Json',
+                    data: {
+                        HInterID: this.hform.HInterID,
+                        HBillNo: this.hform.HBillNo,
+                        HBillType: this.hform.HBillType,
+                        HStockOrgID: this.hform.HStockOrgID
+                    },
+                    success: (res) => {
+                        console.log('鐗╂枡', res.data)
+                        if (res.data.count == 1) {
+                            var data = res.data.data
+                            this.materMeta = data.BarCodeDetailslist
+                            this.Materlist = data.Materlist
+                            if (/鍏磋揪/.test(uni.getStorageSync("Organization"))) {
+                                // 鍏磋揪瀹㈡埛 甯﹀嚭 浠撳簱
+                                console.log("鍏磋揪甯﹀嚭榛樿浠撳簱")
+                                this.HWHNameChange(data.BarCodeDetailslist[0].HWHName)
+                            }
+
+
+                            if (!data.BarCodeDetailslist[0].HBarCode) {
+                                this.hform.HMaterName_B = ''
+                                this.hform.HMaterModel_B = ''
+                                this.hform.HBatchNo_B = ''
+                                this.hform.HUnitName_B = ''
+                                this.hform.HQty_B = ''
+                                this.hform.HTMQty_B = ''
+                                this.hform.HWHName_B = ''
+                                this.hform.HSPName_B = ''
+                            } else {
+                                this.hform.HMaterName_B = data.BarCodeDetailslist[0].HMaterName
+                                this.hform.HMaterModel_B = data.BarCodeDetailslist[0].HMaterModel
+                                this.hform.HBatchNo_B = data.BarCodeDetailslist[0].HBatchNo
+                                this.hform.HUnitName_B = data.BarCodeDetailslist[0].HUnitName
+                                this.hform.HQty_B = data.BarCodeDetailslist[0].HQty
+                                this.hform.HTMQty_B = data.BarCodeDetailslist[0].HTMQty
+                                this.hform.HWHName_B = data.BarCodeDetailslist[0].HWHName
+                                this.hform.HSPName_B = data.BarCodeDetailslist[0].HSPName
+                            }
+                        } else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //鍒犻櫎鐗╂枡鐮�
+            delMater(item) {
+                uni.showModal({
+                    title: '鎻愮ず',
+                    content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+                    success: (res) => {
+                        if (res.confirm) {
+                            uni.request({
+                                url: this.serverUrl +
+                                    '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+                                data: {
+                                    HInterID: this.hform.HInterID,
+                                    HMaterID: item.HMaterID,
+                                    HAuxPropID: item.HAuxPropID,
+                                    HMTONo: item.HMTONo,
+                                    HSourceInterID: item.HSourceInterID,
+                                    HSourceEntryID: item.HSourceEntryID,
+                                    HBillType: this.hform.HBillType
+                                },
+                                success: (res) => {
+                                    if (res.data.count == 1) {
+                                        this.DisBillEntryList()
+                                    } else {
+                                        uni.showToast({
+                                            title: res.data.Message,
+                                            icon: 'none'
+                                        })
+                                    }
+                                },
+                                fail: (res) => {
+                                    console.log(res);
+                                    uni.showToast({
+                                        title: '鎺ュ彛璇锋眰澶辫触',
+                                        icon: 'none'
+                                    })
+                                },
+                            });
+                        }
+                    }
+                });
+            },
+            // 鏂板鍥炶皟
+            addNew() {
+                uni.redirectTo({
+                    url: '/pages/caigoutuiliao/form?OperationType=1'
+                })
+            },
+            //鏂板
+            getNewData() {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetMaxBillNoAndID_Json',
+                    data: {
+                        HBillType: this.hform.HBillType
+                    },
+                    success: (res) => {
+                        // console.log(res.data)
+                        if (res.data.count == 1) {
+                            this.hform.HInterID = res.data.data[0].HInterID
+                            this.hform.HBillNo = res.data.data[0].HBillNo
+                        } else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            //淇敼鍥炲~鏁版嵁
+            RoadBillMain(HInterID) {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/GetSourceBill_Temp_Json',
+                    data: {
+                        HInterID: HInterID,
+                        HBillType: this.hform.HBillType
+                    },
+                    success: (res) => {
+                        console.log(33, res.data.data[0]);
+                        if (res.data.count == 1) {
+                            var data = res.data.data[0]
+                            this.hform.HInterID = data.HInterID
+                            this.hform.HBillNo = data.HBillNo
+                            this.hform.HMainSourceBillType = data.HSourceBillType
+                            this.hform.HSourceBillNo = data.HSourceBillNo
+                            if (data.HSourceBillType == 1105) {
+                                this.hform.HMainSourceBillType = 1105
+                                this.HMainSourceBillType = '閫�鏂欓�氱煡鍗�'
+                                this.showHSupName = false
+                            } else if (data.HSourceBillType == 1102) {
+                                this.hform.HMainSourceBillType = 1102
+                                this.HMainSourceBillType = '閲囪喘璁㈠崟'
+                                this.showHSupName = false
+                            } else if (data.HSourceBillType == 1201) {
+                                this.hform.HMainSourceBillType = 1201
+                                this.HMainSourceBillType = '閲囪喘鍏ュ簱鍗�'
+                                this.showHSupName = false
+                            } else {
+                                this.hform.HMainSourceBillType = -1
+                                this.HMainSourceBillType = '鎵嬪伐褰曞叆'
+                            }
+                            this.showHMainSourceBillType = false
+
+                            //闈炲婧愬崟妯″紡
+                            if (data.HMulSourceBill == 0) {
+                                this.showHSourceBillNo = false
+                            }
+                            this.hform.HDeptID = data.HDeptID
+                            this.hform.HDeptName = data.HDeptName
+                            this.hform.HSupID = data.HCusID
+                            this.hform.HSupName = data.HSupName
+                            this.DisBillEntryList()
+                            this.tabs = 2
+                        } else {
+                            uni.showToast({
+                                title: '鑾峰彇鏁版嵁鍥炲~澶辫触',
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            async submit() {
+                //浠撳簱銆佷粨浣嶃�佷繚绠°�侀獙鏀躲�侀儴闂ㄣ�佷緵搴斿晢鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
+                if (!this.hform.HWHName) {
+                    this.hform.HWHID = 0
+                }
+                if (!this.hform.HStockPlaceName) {
+                    this.hform.HStockPlaceID = 0
+                }
+                if (!this.hform.HKeeperName) {
+                    this.hform.HKeeperID = 0
+                }
+                if (!this.hform.HSecManagerName) {
+                    this.hform.HSecManagerID = 0
+                }
+                if (!this.hform.HDeptName) {
+                    this.hform.HDeptID = 0
+                }
+                if (!this.hform.HSupName) {
+                    this.hform.HSupID = 0
+                }
+                if (this.hform.HInterID == 0 || !this.hform.HInterID) {
+                    uni.showToast({
+                        title: '鍗曟嵁鍐呯爜鑾峰彇澶辫触锛岄敊璇殑鍗曟嵁鍐呯爜锛�',
+                        icon: 'none'
+                    })
+                } else if (!this.hform.HBillNo) {
+                    uni.showToast({
+                        title: '鍗曟嵁鍙疯幏鍙栧け璐ワ紝閿欒鐨勫崟鎹彿锛�',
+                        icon: 'none'
+                    })
+                } else if (!this.Materlist || this.Materlist.length == 0) {
+                    uni.showToast({
+                        title: '娌℃湁鎵爜淇℃伅锛岃鍏堟壂鎻忔潯鐮侊紝纭鏃犺鍚庡啀鎻愪氦锛�',
+                        icon: 'none'
+                    })
+                } else {
+                    var s = 0;
+                    for (var i = 0; i < this.Materlist.length; i++) {
+                        if (this.Materlist[i].鏁伴噺 > 0) {
+                            s = 1;
+                        }
+                    }
+                    if (s == 0) {
+                        uni.showToast({
+                            title: '娌℃湁鎵弿鐗╂枡鏉$爜锛岃鍏堟壂鎻忕墿鏂欐潯鐮侊紝纭鏃犺鍚庡啀鎻愪氦锛�',
+                            icon: 'none'
+                        })
+                    } else {
+                        // uni.showLoading({
+                        //     title: '璇风◢鍊�'
+                        // })
+                        var sMainStr = JSON.stringify(this.hform);
+
+                        try {
+                            let res = await CommonUtils.doRequest2Sync({
+                                url: '/WEBSController/set_SavePOStockInBackBill_Json',
+                                method: 'POST',
+                                data: {
+                                    oMain: sMainStr
+                                },
+                            })
+
+                            if (!res) {
+                                return
+                            }
+
+                            console.log(1, res);
+                            uni.hideLoading()
+                            if (res.data.count == 1) {
+                                // let sMain = JSON.stringify(this.materMeta) + ';' + this.hform
+                                //     .HBillType + ';' + this.hform.HSourceBillNo
+                                // 涓烘潯鐮佽缃嚭搴撳崟鍙峰拰鍑哄簱娆℃暟
+                                // await this.Set_BarCodeBill(sMain)
+                                uni.showModal({
+                                    title: '鎻愮ず',
+                                    content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵',
+                                    success: (res) => {
+                                        if (res.confirm) {
+                                            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                                            uni.redirectTo({
+                                                url: '/pages/caigoutuiliao/form?OperationType=1'
+                                            })
+                                        } else if (res.cancel) {
+                                            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                                            // setTimeout(() => {
+                                            // 	uni.navigateBack();
+                                            // }, 50)
+                                        }
+                                    }
+                                });
+                            } else {
+                                uni.showToast({
+                                    title: res.data.Message,
+                                    icon: 'none'
+                                })
+                            }
+                        } catch (err) {
+                            console.warn(err);
+                            uni.showToast({
+                                title: '鎺ュ彛璇锋眰澶辫触:' + err,
+                                icon: 'none'
+                            })
+                        }
+
+                        // uni.request({
+                        //     url: this.serverUrl + '/WEBSController/set_SavePOStockInBackBill_Json',
+                        //     method: 'POST',
+                        //     dataType: "json",
+                        //     data: {
+                        //         oMain: sMainStr
+                        //     },
+                        //     success: (res) => {
+                        //         console.log(1, res);
+                        //         uni.hideLoading()
+                        //         if (res.data.count == 1) {
+                        //             uni.showModal({
+                        //                 title: '鎻愮ず',
+                        //                 content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+                        //                 success: (res) => {
+                        //                     if (res.confirm) {
+                        //                         console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                        //                         uni.redirectTo({
+                        //                             url: '/pages/caigoutuiliao/form?OperationType=1'
+                        //                         })
+                        //                     } else if (res.cancel) {
+                        //                         console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                        //                         // setTimeout(() => {
+                        //                         //     uni.navigateBack();
+                        //                         // }, 50)
+                        //                     }
+                        //                 }
+                        //             });
+                        //         } else {
+                        //             uni.showToast({
+                        //                 title: res.data.Message,
+                        //                 icon: 'none'
+                        //             })
+                        //         }
+                        //     },
+                        //     fail: (res) => {
+                        //         console.log(res);
+                        //         uni.showToast({
+                        //             title: '鎺ュ彛璇锋眰澶辫触',
+                        //             icon: 'none'
+                        //         })
+                        //     },
+                        // });
+                    }
+                }
+            },
+
+            goBack() {
+                uni.showModal({
+                    title: '鎻愮ず',
+                    content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
+                    success: (res) => {
+                        if (res.confirm) {
+                            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                            uni.redirectTo({
+                                url: '/pages/caigoutuiliao/table'
+                            })
+                        } else if (res.cancel) {
+                            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                        }
+                    }
+                });
+            }
+        }
+    }
+</script>
+
+<style lang="scss" scoped>
+    .page{
+        height: auto;
+    }
+    .form {
+        width: 668rpx;
+        padding: 0rpx 20rpx;
+        padding-bottom: 240rpx;
+    }
+
+    .tab_area {
+        width: 100%;
+        height: 50rpx;
+    }
+
+    .other {
+        margin-top: 8rpx;
+        text-align: center;
+        font-size: 28rpx;
+        padding: 4rpx 18rpx;
+        color: #1890FF;
+    }
+
+    .tabs {
+        width: 100%;
+        display: flex;
+        border-bottom: 1px solid #ddd;
+        margin: 20rpx 0;
+
+        view {
+            width: 25%;
+            font-size: 30rpx;
+            color: #555;
+            text-align: center;
+            padding: 16rpx 0;
+        }
+
+        .on {
+            color: #3a78ff;
+            font-weight: bold;
+            border-bottom: 3px solid #3a78ff;
+        }
+    }
+
+    .form-item {
+        display: flex;
+        align-items: center;
+        font-size: inherit;
+        padding: 6rpx 0;
+        gap: 12rpx;
+
+        .title {
+            width: 200rpx;
+            font-size: 30rpx;
+
+            text {
+                color: red;
+                font-weight: bold;
+            }
+        }
+
+        .right {
+            flex: 1;
+            border-radius: 22rpx;
+            border: 1px solid #acacac;
+            position: relative;
+            padding: 8rpx 16rpx;
+            display: flex;
+
+            picker {
+                width: 100%;
+            }
+
+            .uni-combox {
+                width: 100%;
+                padding: 0;
+
+                ::v-deep .uni-combox__input {
+                    font-size: 30rpx;
+                    height: auto;
+                }
+            }
+        }
+
+        .righton {
+            flex: 1;
+            border-radius: 22rpx;
+            border: 1px solid #e4e4e4;
+            background-color: #e4e4e4;
+            padding: 8rpx 16rpx;
+        }
+
+        input {
+            width: 100%;
+            font-size: 30rpx;
+        }
+
+        textarea {
+            width: 98%;
+            font-size: 30rpx;
+        }
+
+    }
+
+    .bottom-btn {
+        width: 100%;
+        box-sizing: border-box;
+        // height: 120rpx;
+        position: fixed;
+        bottom: 0;
+        left: 0;
+        background-color: #fff;
+        box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+        padding: 30rpx 40rpx 40rpx 40rpx;
+        display: flex;
+        flex-direction: row;
+        gap: 10rpx;
+
+        button {
+            border-radius: 50rpx;
+            width: 180rpx;
+            height: 66rpx;
+            line-height: 66rpx;
+            font-size: 28rpx;
+        }
+
+        .btn-a {
+            background-color: #3A78FF;
+            color: #fff;
+        }
+
+        .btn-b {
+            background-color: #41a863;
+            color: #fff;
+        }
+
+        .btn-c {
+            background-color: #acacac;
+            color: #fff;
+            // position: absolute;
+            // right: 120rpx;
+        }
+
+        .btn-d {
+            background-color: #ff8901;
+            color: #fff;
+        }
+    }
+
+    .list {
+        width: 100%;
+
+        .card-detail {
+            width: 100%;
+            display: flex;
+            flex-wrap: wrap;
+            justify-content: space-between;
+            line-height: 120%;
+
+            .detail {
+                // width: 50%;
+                font-size: 26rpx;
+                margin-bottom: 12rpx;
+                color: #555;
+                margin-right: 20rpx;
+
+                text {
+                    color: #999;
+                    font-size: 26rpx;
+                }
+            }
+        }
+
+        .more {
+            color: #888;
+            font-size: 24rpx;
+            display: flex;
+            border-top: 1px solid #eee;
+            padding-top: 20rpx;
+
+            .part {
+                width: 50%;
+                text-align: 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;
+        }
+    }
+
+    .required {
+        position: relative;
+
+    }
+
+    .required::after {
+        content: "*";
+        position: relative;
+        color: red;
+        left: 0;
+        top: 0;
+        font-size: inherit;
+    }
+
+    .icon-wrapper[disabled] {
+        background-color: rgba(228, 228, 228, 1);
+        pointer-events: none;
+        touch-action: none;
+    }
+</style>
\ No newline at end of file
diff --git a/pages/weixiujilu/table.vue b/pages/weixiujilu/table.vue
new file mode 100644
index 0000000..48c9df3
--- /dev/null
+++ b/pages/weixiujilu/table.vue
@@ -0,0 +1,576 @@
+<template>
+    <view class="page" id="pageContent">
+        <view class="search-condition-zone">
+            <view class="form-item">
+                <view class="left">
+                    鏃ユ湡:
+                </view>
+                <view class="daterange" style="flex: 1;">
+                    <view class="right general">
+                        <uni-datetime-picker type="date" :clear-icon="false" v-model="hform.HBeginDate">
+                            <view>{{hform.HBeginDate}}</view>
+                        </uni-datetime-picker>
+                    </view>
+                    <view>鈥�</view>
+                    <view class="right general">
+                        <uni-datetime-picker type="date" :clear-icon="false" v-model="hform.HEndDate">
+                            <view>{{hform.HEndDate}}</view>
+                        </uni-datetime-picker>
+                    </view>
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    鍣ㄥ叿缂栫爜:
+                </view>
+                <view class="right general">
+                    <input type="text" v-model="hform.HMoNumber" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    鍣ㄥ叿鍚嶇О:
+                </view>
+                <view class="right general">
+                    <input type="text" v-model="hform.HMoName" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="left">
+                    鍗曟嵁鍙�:
+                </view>
+                <view class="right general">
+                    <input type="text" v-model="hform.HBillNo" />
+                </view>
+            </view>
+        </view>
+        <view class="button-zone">
+            <button type="default" class="btn-a" size="mini" @tap="cmdAdd">鏂板</button>
+            <button type="default" class="btn-a" size="mini" @tap="cmdSearch">鏌ヨ</button>
+            <button type="default" class="btn-c" size="mini" @tap="exit">閫�鍑�</button>
+        </view>
+        <view class="info-list-zone" id="scroll-content" :style="{height: scrollContentHeight + 'px'}">
+            <view class="card-item" v-for="(item, index) in listDataShow">
+                <uni-card :title="item['鍗曟嵁鍙�']" :extra="'鏃ユ湡:' + item['鏃ユ湡'].split('T')[0]"
+                    @tap="showDetail = showDetail==index?-1:index">
+                    <view class="card-detail">
+                        <view class="detail" v-if="item['浜у搧妯″叿浠g爜']">
+                            <text>浜у搧鍣ㄥ叿浠g爜锛�</text>{{item['浜у搧妯″叿浠g爜']}}
+                        </view>
+                        <view class="detail" v-if="item['浜у搧妯″叿']">
+                            <text>浜у搧鍣ㄥ叿锛�</text>{{item['浜у搧妯″叿']}}
+                        </view>
+                        <view class="detail" v-if="item['璁惧浠g爜']">
+                            <text>璁惧浠g爜锛�</text>{{item['璁惧浠g爜']}}
+                        </view>
+                        <view class="detail" v-if="item['璁惧']">
+                            <text>璁惧锛�</text>{{item['璁惧']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨椤圭洰浠g爜']">
+                            <text>缁翠慨椤圭洰浠g爜锛�</text>{{item['缁翠慨椤圭洰浠g爜']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨椤圭洰']">
+                            <text>缁翠慨椤圭洰锛�</text>{{item['缁翠慨椤圭洰']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨寮�濮嬫棩鏈�']">
+                            <text>缁翠慨寮�濮嬫棩鏈燂細</text>{{item['缁翠慨寮�濮嬫棩鏈�'].split("T")[0]}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨缁撴潫鏃ユ湡']">
+                            <text>缁翠慨缁撴潫鏃ユ湡锛�</text>{{item['缁翠慨缁撴潫鏃ユ湡'].split("T")[0]}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨鍐呭']">
+                            <text>缁翠慨鍐呭锛�</text>{{item['缁翠慨鍐呭']}}
+                        </view>
+
+                    </view>
+                    <view class="card-detail" v-if="showDetail == index">
+                        <view class="detail" v-if="item['鏃堕棿鍗曚綅']">
+                            <text>鏃堕棿鍗曚綅锛�</text>{{item['鏃堕棿鍗曚綅']}}
+                        </view>
+                        <view class="detail" v-if="item['璁″垝缁翠慨宸ユ椂']">
+                            <text>璁″垝缁翠慨宸ユ椂锛�</text>{{item['璁″垝缁翠慨宸ユ椂']}}
+                        </view>
+                        <view class="detail" v-if="item['瀹為檯缁翠慨宸ユ椂']">
+                            <text>瀹為檯缁翠慨宸ユ椂锛�</text>{{item['瀹為檯缁翠慨宸ユ椂']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨浜轰唬鐮�']">
+                            <text>缁翠慨浜轰唬鐮侊細</text>{{item['缁翠慨浜轰唬鐮�']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨浜�']">
+                            <text>缁翠慨浜猴細</text>{{item['缁翠慨浜�']}}
+                        </view>
+                        <view class="detail" v-if="item['璐熻矗浜轰唬鐮�']">
+                            <text>璐熻矗浜轰唬鐮侊細</text>{{item['璐熻矗浜轰唬鐮�']}}
+                        </view>
+                        <view class="detail" v-if="item['璐熻矗浜�']">
+                            <text>璐熻矗浜猴細</text>{{item['璐熻矗浜�']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨閮ㄩ棬浠g爜']">
+                            <text>缁翠慨閮ㄩ棬浠g爜锛�</text>{{item['缁翠慨閮ㄩ棬浠g爜']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨閮ㄩ棬']">
+                            <text>缁翠慨閮ㄩ棬锛�</text>{{item['缁翠慨閮ㄩ棬']}}
+                        </view>
+                        <view class="detail" v-if="item['渚涘簲鍟嗕唬鐮�']">
+                            <text>渚涘簲鍟嗕唬鐮侊細</text>{{item['渚涘簲鍟嗕唬鐮�']}}
+                        </view>
+                        <view class="detail" v-if="item['渚涘簲鍟�']">
+                            <text>渚涘簲鍟嗭細</text>{{item['渚涘簲鍟�']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨绫诲瀷']">
+                            <text>缁翠慨绫诲瀷锛�</text>{{item['缁翠慨绫诲瀷']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨鍚庢柊瑙勬牸']">
+                            <text>缁翠慨鍚庢柊瑙勬牸锛�</text>{{item['缁翠慨鍚庢柊瑙勬牸']}}
+                        </view>
+                        <view class="detail" v-if="item['鏂拌璁″鍛�']">
+                            <text>鏂拌璁″鍛斤細</text>{{item['鏂拌璁″鍛�']}}
+                        </view>
+                        <view class="detail" v-if="item['缁翠慨瑕佹眰']">
+                            <text>缁翠慨瑕佹眰锛�</text>{{item['缁翠慨瑕佹眰']}}
+                        </view>
+                        <view class="detail" v-if="item['鍐呴儴鍗曟嵁鍙�']">
+                            <text>鍐呴儴鍗曟嵁鍙凤細</text>{{item['鍐呴儴鍗曟嵁鍙�']}}
+                        </view>
+                        <view class="detail" v-if="item['鍒跺崟浜�']">
+                            <text>鍒跺崟浜猴細</text>{{item['鍒跺崟浜�']}}
+                        </view>
+                        <view class="detail" v-if="item['鍒跺崟鏃ユ湡']">
+                            <text>鍒跺崟鏃ユ湡锛�</text>{{item['鍒跺崟鏃ユ湡'].split("T")[0]}}
+                        </view>
+                        <view class="detail" v-if="item['瀹℃牳浜�']">
+                            <text>瀹℃牳浜猴細</text>{{item['瀹℃牳浜�']}}
+                        </view>
+                        <view class="detail" v-if="item['瀹℃牳鏃ユ湡']">
+                            <text>瀹℃牳鏃ユ湡锛�</text>{{item['瀹℃牳鏃ユ湡'].split("T")[0]}}
+                        </view>
+                        <view class="detail" v-if="item['淇敼浜�']">
+                            <text>淇敼浜猴細</text>{{item['淇敼浜�']}}
+                        </view>
+                        <view class="detail" v-if="item['淇敼鏃ユ湡']">
+                            <text>淇敼鏃ユ湡锛�</text>{{item['淇敼鏃ユ湡'].split("T")[0]}}
+                        </view>
+                        <view class="detail" v-if="item['婧愬崟鍗曞彿']">
+                            <text>婧愬崟鍗曞彿锛�</text>{{item['婧愬崟鍗曞彿']}}
+                        </view>
+                        <view class="detail" v-if="item['婧愬崟绫诲瀷']">
+                            <text>婧愬崟绫诲瀷锛�</text>{{item['婧愬崟绫诲瀷']}}
+                        </view>
+                    </view>
+                    <view class="more" v-if="showDetail == index && operations != index">
+                        <view class="part" style="border-right: 1px solid #eee;">
+                            <uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
+                        </view>
+                        <view class="part" @tap.stop="operations = operations==index?-1:index">
+                            <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                                size="14"></uni-icons>鎿嶄綔
+                        </view>
+                    </view>
+                    <view class="more" v-if="showDetail != index && operations != index">
+                        <view class="part" style="border-right: 1px solid #eee;">
+                            <uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏇村淇℃伅
+                        </view>
+                        <view class="part" @tap.stop="operations = operations==index?-1:index">
+                            <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                                size="14"></uni-icons>鎿嶄綔
+                        </view>
+                    </view>
+                    <view class="op" v-if="operations == index">
+                        <button class="op3" size="mini" plain @tap.stop="edit(item)">缂栬緫</button>
+                        <button class="op4" size="mini" plain @tap.stop="del(item)">鍒犻櫎</button>
+                        <button class="op5" size="mini" plain @tap.stop="operations = -1">鍙栨秷鎿嶄綔</button>
+                    </view>
+                </uni-card>
+            </view>
+            <view class="over" v-if="listDataShow.length == 0">鏆傛棤鏁版嵁</view>
+        </view>
+
+        <view class="pagination-zone" id="pagination-zone">
+            <uni-pagination show-icon :page-size="paginationMeta.pageSize" :total="paginationMeta.total"
+                :current="paginationMeta.current" @change="onPaginationChangeHandler"></uni-pagination>
+        </view>
+    </view>
+</template>
+
+<script>
+    import {
+        CommonUtils
+    } from '../../utils/common'
+    import {
+        getUserInfo
+    } from '../../utils/auth'
+    import dayjs, {
+        Dayjs
+    } from 'dayjs'
+    export default {
+        data() {
+            return {
+                navHeight: 0,
+                scrollTop: 0,
+
+                showDetail: -1,
+                operations: -1,
+
+                hform: {
+                    HBeginDate: dayjs(new Date).subtract(30, 'd').format('YYYY-MM-DD'),
+                    HEndDate: dayjs(new Date).format('YYYY-MM-DD'),
+                    HMoNumber: '',
+                    HMoName: '',
+                    HBillNo: ''
+                },
+
+                paginationMeta: {
+                    current: 1,
+                    total: 0,
+                    pageSize: 30,
+                },
+
+                pageMeta: {
+                    scrollContentTop: 0,
+                    bottomBtnTop: 0,
+                },
+
+                listData: [],
+                listDataShow: [],
+            }
+        },
+        computed: {
+            scrollContentHeight: {
+                get() {
+                    return this.pageMeta.bottomBtnTop - this.pageMeta.scrollContentTop
+                }
+            }
+        },
+        methods: {
+            exit() {
+                uni.navigateBack()
+            },
+            cmdAdd() {
+                uni.navigateTo({
+                    url: "/pages/weixiujilu/form?operationType=1"
+                })
+            },
+            async cmdSearch() {
+                let sWhere = ''
+                if (this.hform.HBeginDate != "" && this.hform.HEndDate != "") {
+                    sWhere += " and  CONVERT(varchar(100),鏃ユ湡, 23) between '" + this.hform.HBeginDate + "' and '" +
+                        this.hform.HEndDate + "' ";
+                }
+                if (this.hform.HMoNumber != "") {
+                    sWhere += " and 浜у搧妯″叿浠g爜 like '%" + this.hform.HMoNumber + "%'"
+                }
+                if (this.hform.HMoName != "") {
+                    sWhere += " and 浜у搧妯″叿 like '%" + this.hform.HMoName + "%'"
+                }
+                if (this.hform.HBillNo != "") {
+                    sWhere += " and 鍗曟嵁鍙� like '%" + this.hform.HBillNo + "%'"
+                }
+                try {
+                    let res = await CommonUtils.doRequest2Sync({
+                        url: '/Sb_MouldRepairWorkBill/GetMouldRepairWorkBill_PDA',
+                        data: {
+                            "sWhere": sWhere,
+                            "user": getUserInfo()["Czymc"]
+                        },
+                    })
+
+                    if (!res) {
+                        return
+                    }
+                    let {
+                        data,
+                        count,
+                        Message
+                    } = res.data
+                    if (count > 0) {
+                        this.listData = data
+                        this.paginationMeta.total = data.length
+                        this.onPaginationChangeHandler({
+                            current: 1
+                        })
+                    } else {
+                        uni.showToast({
+                            icon: 'none',
+                            title: Message
+                        })
+                    }
+                } catch (err) {
+                    console.warn(err);
+                    uni.showToast({
+                        title: '鎺ュ彛璇锋眰澶辫触:' + err,
+                        icon: 'none'
+                    })
+                }
+            },
+            async onPaginationChangeHandler({
+                current
+            }) {
+                this.listDataShow =
+                    this.listData.slice((current - 1) * this.paginationMeta.pageSize,
+                        current * this.paginationMeta.pageSize)
+
+            },
+            async del(item) {
+                console.log("delItem: ", item);
+
+                try {
+                    let res = await CommonUtils.doRequest2Sync({
+                        url: '/Sc_MouldConkBookBill/DeltetMouldConkBookBill',
+                        data: {
+                            "HInterID": item.hmainid,
+                            "user": getUserInfo()["Czymc"]
+                        }
+                    })
+
+                    if (!res) {
+                        return
+                    }
+
+                    let {
+                        count,
+                        code,
+                        Message
+                    } = res
+                    if (count == 0 && code == 0) {
+                        return uni.showModal({
+                            title: '閿欒鎻愮ず',
+                            content: `鍒犻櫎閿欒: ${Message}`,
+                            showCancel: false
+                        })
+                    }
+                    uni.showToast({
+                        title: '鍒犻櫎鎴愬姛',
+                        icon: 'none'
+                    })
+                } catch (err) {
+                    uni.showModal({
+                        title: '閿欒鎻愮ず',
+                        content: `鎺ュ彛璇锋眰澶辫触: ${err}`,
+                        showCancel: false
+                    })
+                }
+            },
+            edit(item) {
+                console.log("editItem:", item)
+                uni.navigateTo({
+                    url: `/pages/weixiujilu/form?operationType=2&linterid=${item.hmainid}&hsubid=${item.hsubid}`
+                })
+            }
+        },
+        onLoad() {
+
+            this.$nextTick(() => {
+                this.cmdSearch()
+            })
+        },
+        onReady() {
+            // #ifndef MP-WEIXIN
+            let query = uni.createSelectorQuery().in(this)
+            query.select("#scroll-content").boundingClientRect((data) => {
+                this.pageMeta.scrollContentTop = data.top
+            }).exec()
+            query.select("#pagination-zone").boundingClientRect((data) => {
+                this.pageMeta.bottomBtnTop = data.top
+            }).exec()
+            // #endif
+            // #ifdef MP-WEIXIN
+            // 寰俊涓嶆敮鎸� uni.createSelectorQuery().in(this)
+            // #endif
+
+        },
+    }
+</script>
+
+<style lang="scss" scoped>
+    .page {
+        box-sizing: border-box;
+        display: flex;
+        flex-direction: column;
+        gap: 20rpx;
+        padding: 20rpx 0;
+        position: relative;
+
+        .button-zone {
+            height: auto;
+            box-sizing: border-box;
+            padding-top: 20rpx;
+            display: flex;
+            flex-direction: row;
+            justify-content: space-between;
+            flex-wrap: wrap;
+
+            button {
+                border-radius: 50rpx;
+                width: 180rpx;
+                height: 66rpx;
+                line-height: 66rpx;
+                font-size: 28rpx;
+            }
+
+            .btn-a {
+                background-color: #3a78ff;
+                color: #fff;
+            }
+
+            .btn-c {
+                background-color: #ff5722;
+                color: #fff;
+            }
+        }
+
+        .search-condition-zone {
+            height: auto;
+            box-sizing: border-box;
+            padding: 0 60rpx;
+            display: flex;
+            flex-direction: column;
+            gap: 20rpx;
+
+            .form-item {
+                display: flex;
+                flex-direction: row;
+                gap: 20rpx;
+                align-items: center;
+                font-size: 28rpx;
+
+                .left {
+                    width: 4rem;
+                }
+
+                .right {
+                    flex: 1;
+                    padding: 8rpx 16rpx;
+
+                    .search {
+                        width: 28rpx;
+                        height: 28rpx;
+                    }
+
+                    input {
+                        font-size: 28rpx;
+                    }
+
+                    .uni-combox {
+                        padding: 0;
+                        margin: 0;
+
+                        ::v-deep .uni-combox__input {
+                            font-size: 28rpx;
+                            height: auto;
+                        }
+                    }
+                }
+
+                .general {
+                    border-radius: 22rpx;
+                    border: 1px solid #acacac;
+                }
+
+                .disabled {
+                    border-radius: 22rpx;
+                    border: 1px solid #e4e4e4;
+                    background-color: #e4e4e4;
+                }
+            }
+        }
+
+        .info-list-zone {
+            overflow-y: auto;
+
+            .card-item {
+                .card-detail {
+                    width: 100%;
+                    display: flex;
+                    flex-wrap: wrap;
+                    justify-content: space-between;
+                    line-height: 120%;
+
+                    .detail {
+                        // width: 50%;
+                        font-size: 26rpx;
+                        margin-bottom: 12rpx;
+                        color: #555;
+                        margin-right: 20rpx;
+
+                        text {
+                            color: #999;
+                            font-size: 26rpx;
+                        }
+                    }
+                }
+            }
+        }
+
+        .daterange {
+            display: flex;
+            flex-direction: row;
+            gap: 10rpx;
+            justify-content: center;
+            align-items: center;
+        }
+
+        .more {
+            color: #888;
+            font-size: 24rpx;
+            display: flex;
+            border-top: 1px solid #eee;
+            padding-top: 20rpx;
+
+            .part {
+                width: 50%;
+                text-align: center;
+            }
+        }
+
+        .op {
+            display: flex;
+            justify-content: space-around;
+            margin-top: 20rpx;
+
+            button {
+                padding: 0;
+                width: 150rpx;
+                font-size: 25rpx;
+            }
+
+            .op1 {
+                border: 1px solid #41a863;
+                color: #41a863;
+            }
+
+            .op2 {
+                border: 1px solid #d98d00;
+                color: #d98d00;
+            }
+
+            .op3 {
+                border: 1px solid #3a78ff;
+                color: #3a78ff;
+            }
+
+            .op4 {
+                border: 1px solid #da0000;
+                color: #da0000;
+            }
+
+            .op5 {
+                border: 1px solid #888;
+                color: #888;
+            }
+        }
+
+        .pagination-zone {
+            position: fixed;
+            bottom: 0;
+            box-sizing: border-box;
+            background-color: #fff;
+            box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+            padding: 20rpx 40rpx 20rpx 40rpx;
+            display: flex;
+            flex-direction: column;
+            gap: 20rpx;
+            justify-content: space-between;
+            width: 100%;
+        }
+    }
+</style>
\ No newline at end of file

--
Gitblit v1.9.1