From 46cc7a29dc1f9b3dffee5cdcb9b7f9dfdac3b16d Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期五, 05 九月 2025 20:44:14 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 pages/zhijiediaobo/table.vue | 1017 +++++++++++++++++++++++++++++++----------------------------
 1 files changed, 532 insertions(+), 485 deletions(-)

diff --git a/pages/zhijiediaobo/table.vue b/pages/zhijiediaobo/table.vue
index 36cc762..5319e1a 100644
--- a/pages/zhijiediaobo/table.vue
+++ b/pages/zhijiediaobo/table.vue
@@ -1,495 +1,542 @@
 <template>
-	<view class="content">
-		<view class="tabs">
-			<view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缂撳瓨鍒楄〃</view>
-			<view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">宸叉牎楠屽垪琛�</view>
-		</view>
-		
-		<view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
-		
-		<view class="form" v-if="tabs == 0">
-			<view class="buttons" @tap="add">
-				<uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>鏂板
-			</view>
-		</view>
-		<view class="form" v-if="tabs == 1">
-			<view class="form-item">
-				<view class="title">鍗曟嵁鍙�:</view>
-				<view class="right">
-					<input v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
-				</view>
-			</view>
-			<view class="form-item">
-				<view class="title">婧愬崟鍗曞彿:</view>
-				<view class="right">
-					<input v-model="hform.HSourceBillNo" placeholder="璇疯緭鍏ユ簮鍗曞崟鍙�" />
-				</view>
-			</view>
-			<view class="buttons">
-				<button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
-				<button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
-			</view>
-		</view>
-		
-		<view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
-		
-		<view class="list" v-for="(item,index) in showList" :key="index" v-if="tabs==0">
-			<uni-card :title="item.鍒跺崟鏃ユ湡.substr(0,10)" :extra="item.鍗曟嵁鍙�" style="margin: 10px;" @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.鏁伴噺">
-						<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="content">
+        <view class="tabs">
+            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缂撳瓨鍒楄〃</view>
+            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">宸叉牎楠屽垪琛�</view>
+        </view>
 
-				<view class="more">
-					<view class="part" style="border-right: 1px solid #eee;color: #3a78ff;" @tap.stop="edit(item)">
-						<uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>缂栬緫
+        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
+
+        <view class="form" v-if="tabs == 0">
+            <view class="buttons" @tap="add">
+                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>鏂板
+            </view>
+        </view>
+        <view class="form" v-if="tabs == 1">
+            <view class="form-item">
+                <view class="title">鍗曟嵁鍙�:</view>
+                <view class="right">
+                    <input v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="title">婧愬崟鍗曞彿:</view>
+                <view class="right">
+                    <input v-model="hform.HSourceBillNo" placeholder="璇疯緭鍏ユ簮鍗曞崟鍙�" />
+                </view>
+            </view>
+            <view class="buttons">
+                <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+                <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+            </view>
+        </view>
+
+        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
+
+        <view class="list" v-for="(item,index) in showList" :key="index" v-if="tabs==0">
+            <uni-card :title="item.鍒跺崟鏃ユ湡.substr(0,10)" :extra="item.鍗曟嵁鍙�" style="margin: 10px;"
+                @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.鏁伴噺">
+                        <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="more">
+                    <view class="part" style="border-right: 1px solid #eee;color: #3a78ff;" @tap.stop="edit(item)">
+                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>缂栬緫
+                    </view>
+                    <view class="part" style="color: #da0000;" @tap.stop="del(item)">
+                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>鍒犻櫎
+                    </view>
+                </view>
+            </uni-card>
+        </view>
+        <view class="list" v-for="(item,index) in showList" :key="index" v-if="tabs==1">
+            <uni-card :title="item.鏃ユ湡" :extra="item.鍗曟嵁鍙�" style="margin: 10px;"
+                @tap="showDetail = showDetail==index?-1:index">
+                <view class="card-detail">
+					<view class="detail" v-if="item.鐘舵��">
+						<text>鐘舵�侊細</text>{{item.鐘舵�亇}
 					</view>
-					<view class="part" style="color: #da0000;" @tap.stop="del(item)">
-						<uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>鍒犻櫎
-					</view>
-				</view>
-			</uni-card>
-		</view>
-		<view class="list" v-for="(item,index) in showList" :key="index" v-if="tabs==1">
-			<uni-card :title="item.鏃ユ湡" :extra="item.鍗曟嵁鍙�" style="margin: 10px;" @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.婧愬崟鍗曞彿">
-						<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="more">
-					<view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
-						<uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>鎾ら攢
-					</view>
-				</view>
-			</uni-card>
-		</view>
-		
-		<view class="over" v-if="!listData || listData.length == 0">鏆傛棤鏁版嵁</view>
-		<view class="over" v-if="listData.length != 0 && listData.length != showList.length">鍔犺浇涓�...</view>
-		<view class="over" v-if="listData.length != 0 && listData.length == showList.length">宸插埌搴�</view>
-	</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>
+
+                <view class="more">
+                    <view class="part" style="color: #3a78ff;width: 100%;" @tap.stop="qrCodeDisplay(item)">
+                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>鏄剧ず浜岀淮鐮�
+                    </view>
+                    <view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
+                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>鎾ら攢
+                    </view>
+                </view>
+            </uni-card>
+        </view>
+
+        <view class="over" v-if="!listData || listData.length == 0">鏆傛棤鏁版嵁</view>
+        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">鍔犺浇涓�...</view>
+        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">宸插埌搴�</view>
+        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
+    </view>
 </template>
 
 <script>
-	import { getUserInfo } from "@/utils/auth.js";
-	export default {
-	    data() {
-	        return {
-				userInfo:getUserInfo(),
-				serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
-				tabs:0,
-				urls:'/WEBSController/GetKf_PonderationBillMain_TempList_New_Json',
-				MvarReportTitle:'鐢熶骇棰嗘枡鍗曠紦瀛樺垪琛�',
-				hform:{
-					HBillNo:'',
-					HSourceBillNo:'',
-					HBillType: 1207,
-					HMaker: uni.getStorageSync('HUserName'),
-					HStockOrgID: uni.getStorageSync('OrganizationID'),
-				},
-				sWhere:'',
-				listData:[],
-				showList:[],
-				showDetail:-1,
-				
-				page:1,
-	        }
-	    },
-		onShow() {
-			//鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
-			this.CheckModRight()
-			this.changeTab(0)
-			console.log(this.userInfo,uni.getStorageSync('HUserName'))
-		},
-		onReachBottom: function() {
-			this.page++
-			setTimeout(() => {
-				this.showList = this.showList.concat(this.getPage(this.page,this.listData))
-			}, 100)
-		},
-		onPullDownRefresh: function() {
-			this.clear()
-			setTimeout(()=>{
-				uni.stopPullDownRefresh();
-			}, 1000);
-		},
-	    methods: {
-			CheckModRight(){
-				uni.request({
-				    url: this.serverUrl + '/WEBSController/CheckModRight_Json',
-					data:{ 
-						ModRightName: 'CE_MoveStock',
-						HUserName: uni.getStorageSync('HUserName')
-					},
-				    success: (res) => {
-						if(res.data.count == 1){}else{
-							uni.showToast({
-								title:res.data.Message,
-								icon:'none'
-							})
-						}
-					},
-					fail: (res) => {
-						console.log(res);
-						uni.showToast({
-							title:'鎺ュ彛璇锋眰澶辫触',
-							icon:'none'
-						})
-					},
-				});
-			},
-			getPage(page,list){
-				let sindex = (parseInt(page) - 1) * 20
-				let eindex = parseInt(page) * 20
-				let newList = list.slice(sindex,eindex)
-				return newList
-			},
-			changeTab(e){
-				this.tabs = e
-				this.page = 1
-				this.showList = []
-				
-				if(this.tabs == 0){
-					this.urls = '/WEBSController/GetKf_PonderationBillMain_TempList_New_Json'
-				}
-				if(this.tabs == 1){
-					this.urls = '/WEBSController/GetKf_ICStockBillQueryList_User_Json'
-				}
-				this.getList()
-			},
-			getList(){
-				uni.showLoading({
-					title:'鍔犺浇涓�...'
-				})
-				uni.request({
-				    url: this.serverUrl + this.urls,
-					data:this.hform,
-				    success: (res) => {
-				        console.log(1,res);
-						if(res.data.count == 1){
-							this.listData = res.data.data
-							this.showList = this.getPage(this.page,this.listData)
-							setTimeout(()=>{
-							     uni.hideLoading()
-							}, 1000)
-						}else{
-							uni.hideLoading()
-							this.listData = []
-							uni.showToast({
-								title:res.data.Message,
-								icon:'none'
-							})
-						}
-					},
-					fail: (res) => {
-						console.log(res);
-						uni.hideLoading()
-						uni.showToast({
-							title:'鎺ュ彛璇锋眰澶辫触',
-							icon:'none'
-						})
-					},
-				});
-			},
-			search(){
-				this.sWhere = ''
-				this.listData = []
-				this.page = 1
-				this.showList = []
-				
-				console.log(this.hform)
-				// if (this.hform.HBillNo) {
-				//     this.sWhere += " and 鍗曟嵁鍙� like '%" + this.hform.HBillNo + "%'";
-				// }
-				// if (this.hform.HSourceBillNo) {
-				//     this.sWhere += " and 璁惧绫诲瀷 like '%" + this.hform.HSourceBillNo + "%'";
-				// }
-				this.getList()
-			},
-			clear(){
-				this.listData = []
-				this.page = 1
-				this.showList = []
-				
-				this.sWhere = ''
-				this.hform = {
-					HBillNo:'',
-					HSourceBillNo:'',
-					HBillType: 1207,
-					HMaker: uni.getStorageSync('HUserName'),
-					HStockOrgID: uni.getStorageSync('OrganizationID'),
-				}
-				this.getList()
-			},
-			add(){
-				uni.navigateTo({
-					url:'./form?OperationType=1'
-				})
-			},
-			//缂栬緫
-			edit(item){
-				console.log(item)
-				uni.request({
-				    url: this.serverUrl + '/WEBSController/TempList_Modify_Json',
-					data:{ "HInterID": item.HInterID, "HBillNo": item.鍗曟嵁鍙�, "HBillType": this.hform.HBillType },
-				    success: (res) => {
-				        console.log(1,res);
-						if(res.data.count == 1){
-							uni.navigateTo({
-								url:'./form?OperationType=2&HInterID=' + item.HInterID
-							})
-						}else{
-							uni.showToast({
-								title:res.data.Message,
-								icon:'none'
-							})
-						}
-	
-					},
-					fail: (res) => {
-						console.log(res);
-						uni.hideLoading()
-						uni.showToast({
-							title:'鎺ュ彛璇锋眰澶辫触',
-							icon:'none'
-						})
-					},
-				})
-			},
-			//鍒犻櫎
-			del(item){
-				// console.log(item.hmainid,uni.getStorageSync('HUserName'))
-				uni.showModal({
-				    title: '鎻愮ず',
-				    content: '纭瑕佸垹闄よ褰曪紵鍒犻櫎鍚庝笉鑳芥仮澶�',
-				    success: (res) => {
-				        if (res.confirm) {
-				            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
-							uni.request({
-							    url: this.serverUrl + '/WEBSController/set_DelPonderationBillMain_Temp_New_Json',
-								data:{ 
-									HInterID: item.HInterID,
-									HBillNo: item.鍗曟嵁鍙�,
-									HBillType: this.hform.HBillType,
-									HMaker: uni.getStorageSync('HUserName'),
-									MvarReportTitle:this.MvarReportTitle,
-								},
-							    success: (res) => {
-							        console.log(1,res);
-									if(res.data.count == 1){
-										this.clear()
-									}
-									uni.showToast({
-										title:res.data.Message,
-										icon:'none'
-									})
-								},
-								fail: (res) => {
-									console.log(res);
-									uni.hideLoading()
-									uni.showToast({
-										title:'鎺ュ彛璇锋眰澶辫触',
-										icon:'none'
-									})
-								},
-							});
-				        } else if (res.cancel) {
-				            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
-				        }
-				    }
-				});
-			},
-			//鎾ら攢
-			revoke(item){
-				// console.log(item.hmainid,uni.getStorageSync('HUserName'))
-				uni.showModal({
-				    title: '鎻愮ず',
-				    content: '鏄惁纭鎾ら攢',
-				    success: (res) => {
-				        if (res.confirm) {
-				            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
-							uni.request({
-							    url: this.serverUrl + '/WEBSController/set_DeleteICStockBillAndWMS_Json',
-								data:{ 
-									HInterID: item.HInterID,
-									HBillNo: item.鍗曟嵁鍙�,
-									HBillType: this.hform.HBillType,
-									HMaker: uni.getStorageSync('HUserName'),
-									MvarReportTitle:this.MvarReportTitle,
-								},
-							    success: (res) => {
-							        console.log(1,res);
-									if(res.data.count == 1){
-										this.clear()
-									}
-									uni.showToast({
-										title:res.data.Message,
-										icon:'none'
-									})
-								},
-								fail: (res) => {
-									console.log(res);
-									uni.hideLoading()
-									uni.showToast({
-										title:'鎺ュ彛璇锋眰澶辫触',
-										icon:'none'
-									})
-								},
-							});
-				        } else if (res.cancel) {
-				            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
-				        }
-				    }
-				});
-			},
-	    }
-	}
+    import {
+        getUserInfo
+    } from "@/utils/auth.js";
+    import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue";
+    export default {
+        data() {
+            return {
+                userInfo: getUserInfo(),
+                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+                tabs: 0,
+                urls: '/WEBSController/GetKf_PonderationBillMain_TempList_New_Json',
+                MvarReportTitle: '鐢熶骇棰嗘枡鍗曠紦瀛樺垪琛�',
+                hform: {
+                    HBillNo: '',
+                    HSourceBillNo: '',
+                    HBillType: 1207,
+                    HMaker: uni.getStorageSync('HUserName'),
+                    HStockOrgID: uni.getStorageSync('OrganizationID'),
+                },
+                sWhere: '',
+                listData: [],
+                showList: [],
+                showDetail: -1,
+
+                page: 1,
+            }
+        },
+        components: {
+            BarCodePopupVue
+        },
+        onShow() {
+            //鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
+            this.CheckModRight()
+            this.changeTab(0)
+            console.log(this.userInfo, uni.getStorageSync('HUserName'))
+        },
+        onReachBottom: function() {
+            this.page++
+            setTimeout(() => {
+                this.showList = this.showList.concat(this.getPage(this.page, this.listData))
+            }, 100)
+        },
+        onPullDownRefresh: function() {
+            this.clear()
+            setTimeout(() => {
+                uni.stopPullDownRefresh();
+            }, 1000);
+        },
+        methods: {
+            async qrCodeDisplay(item) {
+              this.$refs.barcodePopup.setCodeInfo(item.HBillNo)
+              await this.$nextTick()
+              this.$refs.barcodePopup.open()
+            },
+            CheckModRight() {
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/CheckModRight_Json',
+                    data: {
+                        ModRightName: 'CE_MoveStock',
+                        HUserName: uni.getStorageSync('HUserName')
+                    },
+                    success: (res) => {
+                        if (res.data.count == 1) {} else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            getPage(page, list) {
+                let sindex = (parseInt(page) - 1) * 20
+                let eindex = parseInt(page) * 20
+                let newList = list.slice(sindex, eindex)
+                return newList
+            },
+            changeTab(e) {
+                this.tabs = e
+                this.page = 1
+                this.showList = []
+
+                if (this.tabs == 0) {
+                    this.urls = '/WEBSController/GetKf_PonderationBillMain_TempList_New_Json'
+                }
+                if (this.tabs == 1) {
+                    this.urls = '/WEBSController/GetKf_ICStockBillQueryList_User_Json'
+                }
+                this.getList()
+            },
+            getList() {
+                uni.showLoading({
+                    title: '鍔犺浇涓�...'
+                })
+                uni.request({
+                    url: this.serverUrl + this.urls,
+                    data: this.hform,
+                    success: (res) => {
+                        console.log(1, res);
+                        if (res.data.count == 1) {
+                            this.listData = res.data.data
+                            this.showList = this.getPage(this.page, this.listData)
+                            setTimeout(() => {
+                                uni.hideLoading()
+                            }, 1000)
+                        } else {
+                            uni.hideLoading()
+                            this.listData = []
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.hideLoading()
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+            },
+            search() {
+                this.sWhere = ''
+                this.listData = []
+                this.page = 1
+                this.showList = []
+
+                console.log(this.hform)
+                // if (this.hform.HBillNo) {
+                //     this.sWhere += " and 鍗曟嵁鍙� like '%" + this.hform.HBillNo + "%'";
+                // }
+                // if (this.hform.HSourceBillNo) {
+                //     this.sWhere += " and 璁惧绫诲瀷 like '%" + this.hform.HSourceBillNo + "%'";
+                // }
+                this.getList()
+            },
+            clear() {
+                this.listData = []
+                this.page = 1
+                this.showList = []
+
+                this.sWhere = ''
+                this.hform = {
+                    HBillNo: '',
+                    HSourceBillNo: '',
+                    HBillType: 1207,
+                    HMaker: uni.getStorageSync('HUserName'),
+                    HStockOrgID: uni.getStorageSync('OrganizationID'),
+                }
+                this.getList()
+            },
+            add() {
+                uni.navigateTo({
+                    url: './form?OperationType=1'
+                })
+            },
+            //缂栬緫
+            edit(item) {
+                console.log(item)
+                uni.request({
+                    url: this.serverUrl + '/WEBSController/TempList_Modify_Json',
+                    data: {
+                        "HInterID": item.HInterID,
+                        "HBillNo": item.鍗曟嵁鍙�,
+                        "HBillType": this.hform.HBillType
+                    },
+                    success: (res) => {
+                        console.log(1, res);
+                        if (res.data.count == 1) {
+                            uni.navigateTo({
+                                url: './form?OperationType=2&HInterID=' + item.HInterID
+                            })
+                        } else {
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.hideLoading()
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                })
+            },
+            //鍒犻櫎
+            del(item) {
+                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
+                uni.showModal({
+                    title: '鎻愮ず',
+                    content: '纭瑕佸垹闄よ褰曪紵鍒犻櫎鍚庝笉鑳芥仮澶�',
+                    success: (res) => {
+                        if (res.confirm) {
+                            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                            uni.request({
+                                url: this.serverUrl +
+                                    '/WEBSController/set_DelPonderationBillMain_Temp_New_Json',
+                                data: {
+                                    HInterID: item.HInterID,
+                                    HBillNo: item.鍗曟嵁鍙�,
+                                    HBillType: this.hform.HBillType,
+                                    HMaker: uni.getStorageSync('HUserName'),
+                                    MvarReportTitle: this.MvarReportTitle,
+                                },
+                                success: (res) => {
+                                    console.log(1, res);
+                                    if (res.data.count == 1) {
+                                        this.clear()
+                                    }
+                                    uni.showToast({
+                                        title: res.data.Message,
+                                        icon: 'none'
+                                    })
+                                },
+                                fail: (res) => {
+                                    console.log(res);
+                                    uni.hideLoading()
+                                    uni.showToast({
+                                        title: '鎺ュ彛璇锋眰澶辫触',
+                                        icon: 'none'
+                                    })
+                                },
+                            });
+                        } else if (res.cancel) {
+                            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                        }
+                    }
+                });
+            },
+            //鎾ら攢
+            revoke(item) {
+                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
+                uni.showModal({
+                    title: '鎻愮ず',
+                    content: '鏄惁纭鎾ら攢',
+                    success: (res) => {
+                        if (res.confirm) {
+                            console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+                            uni.request({
+                                url: this.serverUrl +
+                                    '/WEBSController/set_DeleteICStockBillAndWMS_Json',
+                                data: {
+                                    HInterID: item.HInterID,
+                                    HBillNo: item.鍗曟嵁鍙�,
+                                    HBillType: this.hform.HBillType,
+                                    HMaker: uni.getStorageSync('HUserName'),
+                                    MvarReportTitle: this.MvarReportTitle,
+                                },
+                                success: (res) => {
+                                    console.log(1, res);
+                                    if (res.data.count == 1) {
+                                        this.clear()
+                                    }
+                                    uni.showToast({
+                                        title: res.data.Message,
+                                        icon: 'none'
+                                    })
+                                },
+                                fail: (res) => {
+                                    console.log(res);
+                                    uni.hideLoading()
+                                    uni.showToast({
+                                        title: '鎺ュ彛璇锋眰澶辫触',
+                                        icon: 'none'
+                                    })
+                                },
+                            });
+                        } else if (res.cancel) {
+                            console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+                        }
+                    }
+                });
+            },
+        }
+    }
 </script>
 
 <style lang="scss" scoped>
-	.form{
-		width: 640rpx;
-		margin: 20rpx auto;
-		margin-top: 90rpx;
-	}
-	.tabs{
-		width: 100%;
-		position: fixed;
-		left: 0;
-		z-index: 9;
-		display: flex;
-		background-color: #e5e5e5;
-		view{
-			width: 50%;
-			font-size: 30rpx;
-			color: #333;
-			text-align: center;
-			padding: 16rpx 0;
-		}
-		.on{
-			color: #3a78ff;
-			font-weight: bold;
-			border-bottom: 3px solid #3a78ff;
-		}
-	}
-	.buttons{
-		width: 100%;
-		display: flex;
-		justify-content: center;
-		margin-top: 20rpx;
-		button{
-			border-radius: 50rpx;
-			width: 180rpx;
-			height: 66rpx;
-			line-height: 66rpx;
-			font-size: 28rpx;
-		}
-		.btn-a{
-			background-color: #acacac;
-			color: #fff;
-		}
-		.btn-b{
-			background-color: #41a863;
-			color: #fff;
-		}
-		.btn-c{
-			background-color: #3a78ff;
-			color: #fff;
-		}
-	}
-    .form-item{
-		display: flex;
-		align-items: center;
-		font-size: 28rpx;
-		padding: 6rpx 0;
-		.title{
-			width: 180rpx;
-			text{
-				color: red;
-				font-weight: bold;
-			}
-		}
-		.right{
-			width: 450rpx;
-			border-radius: 22rpx;
-			border: 1px solid #acacac;
-		}
-		.righton{
-			width: 450rpx;
-			border-radius: 22rpx;
-			border: 1px solid #e4e4e4;
-			background-color: #e4e4e4;
-		}
-		input{
-			width: 100%;
-			padding: 8rpx 20rpx;
-			font-size: 30rpx;
-		}
-	}
-	.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: 26rpx;
-			display: flex;
-			border-top: 1px solid #eee;
-			padding-top: 20rpx;
-			.part{
-				width: 50%;
-				display: flex;align-items: center;justify-content: center;
-			}
-		}
-	}
+    .form {
+        width: 640rpx;
+        margin: 20rpx auto;
+        margin-top: 90rpx;
+    }
 
-</style>
+    .tabs {
+        width: 100%;
+        position: fixed;
+        left: 0;
+        z-index: 9;
+        display: flex;
+        background-color: #e5e5e5;
+
+        view {
+            width: 50%;
+            font-size: 30rpx;
+            color: #333;
+            text-align: center;
+            padding: 16rpx 0;
+        }
+
+        .on {
+            color: #3a78ff;
+            font-weight: bold;
+            border-bottom: 3px solid #3a78ff;
+        }
+    }
+
+    .buttons {
+        width: 100%;
+        display: flex;
+        justify-content: center;
+        margin-top: 20rpx;
+
+        button {
+            border-radius: 50rpx;
+            width: 180rpx;
+            height: 66rpx;
+            line-height: 66rpx;
+            font-size: 28rpx;
+        }
+
+        .btn-a {
+            background-color: #acacac;
+            color: #fff;
+        }
+
+        .btn-b {
+            background-color: #41a863;
+            color: #fff;
+        }
+
+        .btn-c {
+            background-color: #3a78ff;
+            color: #fff;
+        }
+    }
+
+    .form-item {
+        display: flex;
+        align-items: center;
+        font-size: 28rpx;
+        padding: 6rpx 0;
+
+        .title {
+            width: 180rpx;
+
+            text {
+                color: red;
+                font-weight: bold;
+            }
+        }
+
+        .right {
+            width: 450rpx;
+            border-radius: 22rpx;
+            border: 1px solid #acacac;
+        }
+
+        .righton {
+            width: 450rpx;
+            border-radius: 22rpx;
+            border: 1px solid #e4e4e4;
+            background-color: #e4e4e4;
+        }
+
+        input {
+            width: 100%;
+            padding: 8rpx 20rpx;
+            font-size: 30rpx;
+        }
+    }
+
+    .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: 26rpx;
+            display: flex;
+            border-top: 1px solid #eee;
+            padding-top: 20rpx;
+
+            .part {
+                width: 50%;
+                display: flex;
+                align-items: center;
+                justify-content: center;
+            }
+        }
+    }
+</style>
\ No newline at end of file

--
Gitblit v1.9.1