From 61035151876686cd80bbe26fd3737a2952701e4c Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 24 七月 2025 16:38:40 +0800
Subject: [PATCH] 修改样式

---
 pages/qitachuku_v2/form.vue              |   20 +++---
 pages/shengchanrukushengdan/form.vue     |    8 +-
 pages/index/tab2.vue                     |   15 +++--
 pages/weiwailingliao/form.vue            |   21 +++---
 pages/qitaruku_v2/form.vue               |   77 ++++++++++++++++++++++---
 pages/shengchanbuliao/form.vue           |    4 
 pages/shengchanlingliaoshengdan/form.vue |    4 
 7 files changed, 102 insertions(+), 47 deletions(-)

diff --git a/pages/index/tab2.vue b/pages/index/tab2.vue
index 3d0894c..c379842 100644
--- a/pages/index/tab2.vue
+++ b/pages/index/tab2.vue
@@ -30,12 +30,12 @@
 					},{
 						img:'../../static/icon/icon_a17.png',
 						text:'鍏朵粬鍏ュ簱鏆傚瓨鍒楄〃',
-						url:'/pages/qitaruku/qitaruku',
+						url:'/pages/qitaruku_v2/table',
 						id:3,
 					},{
 						img:'../../static/icon/icon_a18.png',
 						text:'鍏朵粬鍑哄簱鏆傚瓨鍒楄〃',
-						url:'/pages/qitachuku/qitachuku',
+						url:'/pages/qitachuku_v2/table',
 						id:4,
 					},{
 						img:'../../static/icon/icon_a32.png',
@@ -50,17 +50,20 @@
 					},{
 						img:'../../static/icon/icon_a31.png',
 						text:'鐢熶骇琛ユ枡鏆傚瓨鍒楄〃',
-						url:'',
+						url: '/pages/shengchanbuliao/table' ,
+						// url: '',
 						id:7,
 					},{
 						img:'../../static/icon/icon_a17.png',
 						text:'鐢熶骇鍏ュ簱鏆傚瓨鍒楄〃',
-						url:'',
+						url:'/pages/shengchanrukushengdan/table',
+						// url:'',
 						id:8,
 					},{
 						img:'../../static/icon/icon_a30.png',
 						text:'濮斿棰嗘枡鏆傚瓨鍒楄〃',
-						url:'',
+						// url:'',
+						url:'/pages/weiwailingliao/table',
 						id:9,
 					},{
 						img:'../../static/icon/icon_a18.png',
@@ -151,7 +154,7 @@
 	        }
 	    },
 		onLoad() {
-
+		
 		},
 	    methods: {
 			toUrl(item){
diff --git a/pages/qitachuku_v2/form.vue b/pages/qitachuku_v2/form.vue
index ba7dae2..3ad1fd3 100644
--- a/pages/qitachuku_v2/form.vue
+++ b/pages/qitachuku_v2/form.vue
@@ -85,10 +85,6 @@
 							<view class="picker-overlay"></view>
 						</picker>
 					</view>
-					<!-- 					<view class="righton" v-show="!showHMainSourceBillType">
-						<input name="HMainSourceBillType" disabled v-model="HMainSourceBillType"
-							placeholder="璇烽�夋嫨婧愬崟绫诲瀷" />
-					</view> -->
 				</view>
 
 				<view class="form-item">
@@ -320,7 +316,7 @@
 
 				tabs: 0,
 				HMainSourceBillType: '鎵嬪伐褰曞叆',
-				arrayHMainSourceBillType: ['鍑哄彛鐢宠鍗�', '鎵嬪伐褰曞叆'],
+				arrayHMainSourceBillType: ['鍑哄簱鐢宠鍗�', '鎵嬪伐褰曞叆'],
 
 				linterid: '',
 				HBillNo: '',
@@ -432,7 +428,9 @@
 				innerAudioContext.play(); // 鎾斁闊抽
 			},
 			HBillSubTypeChange(e) {
-				console.log(e)
+				let index = e.target.value
+				this.HBillSubType = this.arrayHBillSubType[index]
+				this.hform.HBillSubType = this.arrayHBillSubTypeValue[index]
 			},
 			//鎵爜
 			toScanCode() {
@@ -857,7 +855,7 @@
 					this.hform.HFIFOWHID = 0
 				}
 				uni.request({
-					url: this.serverUrl + '/WEBSController/Get_SourceBarCode_OtherIn_Json',
+					url: this.serverUrl + '/WEBSController/get_SourceBarCode_OtherOut_Json',
 					data: {
 						HInterID: this.hform.HInterID,
 						HBillNo: this.hform.HBillNo,
@@ -865,10 +863,10 @@
 						HSourceBillNo: HBarCode,
 						HSourceBillType: this.hform.HMainSourceBillType,
 						HMaker: this.hform.HMaker,
-						HStockOrgID: this.hform.HStockOrgID,
+						HOWNERID: this.hform.HStockOrgID,
 						HFIFOWHID: this.hform.HFIFOWHID,
-						HPTQty: this.hform.HPTQty || 0,
-						HPlanMode: this.hform.HPlanMode || 0
+						// HPTQty: this.hform.HPTQty || 0,
+						// HPlanMode: this.hform.HPlanMode || 0
 					},
 					success: (res) => {
 						if (res.data.count == 1) {
@@ -1301,7 +1299,7 @@
 						})
 						var sMainStr = JSON.stringify(this.hform);
 						uni.request({
-							url: this.serverUrl + '/WEBSController/set_SaveOtherInBill_Json',
+							url: this.serverUrl + '/WEBSController/set_SaveOtherOutBill_Json',
 							method: 'POST',
 							dataType: "json",
 							data: {
diff --git a/pages/qitaruku_v2/form.vue b/pages/qitaruku_v2/form.vue
index 8993208..287e558 100644
--- a/pages/qitaruku_v2/form.vue
+++ b/pages/qitaruku_v2/form.vue
@@ -75,6 +75,18 @@
 						<input name="HSourceBillNo" disabled v-model="hform.HSourceBillNo" placeholder="璇疯緭鍏ユ簮鍗曞崟鍙�" />
 					</view>
 				</view>
+				
+				<view class="form-item">
+					<view class="title">鍗曟嵁瀛愮被鍨�:</view>
+					<view class="right">
+						<picker :range="arrayHBillSubType" v-model="hform.HBillSubType" @change="HBillSubTypeChange">
+				
+							<input disabled name="HMainSourceBillType" v-model="HBillSubType" placeholder="璇烽�夋嫨鍗曟嵁瀛愮被鍨�" />
+							<view class="picker-overlay"></view>
+						</picker>
+					</view>
+				</view>
+				
 				<view class="form-item">
 					<view class="title">鍏堣繘鍏堝嚭浠�:</view>
 					<view class="right">
@@ -134,13 +146,13 @@
 					</view>
 				</view>
 				<view class="form-item">
-					<view class="title">瀹㈡埛:</view>
+					<view class="title">渚涘簲鍟�:</view>
 					<view class="right" v-show="showHSupName">
-						<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨瀹㈡埛" v-model="hform.HSupName"
+						<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨渚涘簲鍟�" v-model="hform.HSupName"
 							@input="HSupNameChange"></uni-combox>
 					</view>
 					<view class="righton" v-show="!showHSupName">
-						<input name="HSupName" disabled v-model="hform.HSupName" placeholder="璇烽�夋嫨瀹㈡埛" />
+						<input name="HSupName" disabled v-model="hform.HSupName" placeholder="璇烽�夋嫨渚涘簲鍟�" />
 					</view>
 				</view>
 				<view class="form-item">
@@ -282,6 +294,7 @@
 	import {
 		getUserInfo
 	} from "@/utils/auth.js";
+	import { CommonUtils } from '../../utils/common';
 	import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue';
 	export default {
 		data() {
@@ -314,18 +327,23 @@
 				HStockPlaceNameList: [],
 				arrayHSourceBillNo: [], //婧愬崟鍗曞彿
 				HSourceBillNoList: [],
+				
+				arrayHBillSubType: [],
+				arrayHBillSubTypeValue: [],
+				HBillSubType: '',
 
 				arrayHEmpName: [], //鎿嶄綔鍛�
 				HEmpNameList: [],
 				arrayHDeptName: [], //閮ㄩ棬
 				HDeptNameList: [],
-				arrayHSupName: [], //瀹㈡埛
+				arrayHSupName: [], //渚涘簲鍟�
 				HSupNameList: [],
 
 				Materlist: [],
 				FIFOlist: [],
 				hform: {
 					HBillType: 1203,
+					HBillSubType: '',
 					HBillerID: uni.getStorageSync('HBillerID'),
 					HRedBlueFlag: false,
 
@@ -385,6 +403,7 @@
 			this.getHSupList()
 			this.getHEmpList()
 			this.getHDeptList()
+			this.set_InitBillSubType();
 
 			uni.$on('BillSelectComplete', (e) => {
 				console.log("鎺ユ敹鍒扮殑娑堟伅: ", e.HBillNo)
@@ -404,6 +423,37 @@
 					innerAudioContext.src = '/static/jingbao.wav';
 				}
 				innerAudioContext.play(); // 鎾斁闊抽
+			},
+			set_InitBillSubType(){
+				this.arrayHBillSubType = []
+				this.arrayHBillSubTypeValue = []
+				CommonUtils.doRequest(
+					"/WEBSController/GetBillSubType_Json", {
+						HBillType: this.hform.HBillType,
+						HStockOrgID: this.hform.HStockOrgID
+					},
+					(res) => {
+						let {
+							data,
+							count,
+							Message
+						} = res.data
+						if (count == 1) {
+							Array.from(data).forEach(item => {
+								this.arrayHBillSubType.push(item['HName'])
+								this.arrayHBillSubTypeValue.push(item['HNumber'])
+							})
+							
+							this.HBillSubType = this.arrayHBillSubType[0]
+							this.hform.HBillSubType = this.arrayHBillSubTypeValue[0]
+						} else {
+							uni.showToast({
+								icon: 'none',
+								title: Message
+							})
+						}
+					}
+				)
 			},
 			//鎵爜
 			toScanCode() {
@@ -497,6 +547,11 @@
 			// 	    }
 			// 	});
 			// },
+			HBillSubTypeChange(e) {
+				let index = e.target.value
+				this.HBillSubType = this.arrayHBillSubType[index]
+				this.hform.HBillSubType = this.arrayHBillSubTypeValue[index]
+			},
 			//鏃ユ湡
 			HDateChange(e) {
 				console.log(e.detail.value)
@@ -662,17 +717,17 @@
 			//鑾峰彇瀹㈡埛鏁版嵁
 			getHSupList() {
 				uni.request({
-					url: this.serverUrl + '/Gy_Customer/list',
+					url: this.serverUrl + '/WEBSController/GetSupplierList_Json',
 					data: {
-						sWhere: "",
-						user: uni.getStorageSync('HUserName'),
-						Organization: uni.getStorageSync('Organization')
+						Supplier: '',
+						HStockOrgID: this.hform.HStockOrgID
 					},
 					success: (res) => {
+						console.log(res.data)
 						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].瀹㈡埛鍚嶇О
+								this.arrayHSupName[i] = res.data.data[i]['HName']
 							}
 							this.$forceUpdate();
 						} else {
@@ -694,9 +749,9 @@
 			//閫夋嫨瀹㈡埛
 			HSupNameChange(e) {
 				for (var i = 0; i < this.HSupNameList.length; i++) {
-					if (this.HSupNameList[i].瀹㈡埛鍚嶇О == e) {
+					if (this.HSupNameList[i]['HName'] == e) {
 						this.hform.HSupID = this.HSupNameList[i].HItemID
-						this.hform.HSupName = this.HSupNameList[i].瀹㈡埛鍚嶇О
+						this.hform.HSupName = this.HSupNameList[i]['HName']
 					}
 				}
 			},
diff --git a/pages/shengchanbuliao/form.vue b/pages/shengchanbuliao/form.vue
index f28df48..8ecaf10 100644
--- a/pages/shengchanbuliao/form.vue
+++ b/pages/shengchanbuliao/form.vue
@@ -132,7 +132,7 @@
 							@input="HDeptNameChange"></uni-combox>
 					</view>
 				</view>
-				<view class="form-item">
+				<!-- <view class="form-item">
 					<view class="title">瀹㈡埛:</view>
 					<view class="right" v-show="showHSupName">
 						<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨瀹㈡埛" v-model="hform.HSupName"
@@ -141,7 +141,7 @@
 					<view class="righton" v-show="!showHSupName">
 						<input name="HSupName" disabled v-model="hform.HSupName" placeholder="璇烽�夋嫨瀹㈡埛" />
 					</view>
-				</view>
+				</view> -->
 				<view class="form-item">
 					<view class="title">缁勭粐:</view>
 					<view class="righton">
diff --git a/pages/shengchanlingliaoshengdan/form.vue b/pages/shengchanlingliaoshengdan/form.vue
index 1532d3d..3b9af30 100644
--- a/pages/shengchanlingliaoshengdan/form.vue
+++ b/pages/shengchanlingliaoshengdan/form.vue
@@ -132,7 +132,7 @@
 							@input="HDeptNameChange"></uni-combox>
 					</view>
 				</view>
-				<view class="form-item">
+				<!-- <view class="form-item">
 					<view class="title">瀹㈡埛:</view>
 					<view class="right" v-show="showHSupName">
 						<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨瀹㈡埛" v-model="hform.HSupName"
@@ -141,7 +141,7 @@
 					<view class="righton" v-show="!showHSupName">
 						<input name="HSupName" disabled v-model="hform.HSupName" placeholder="璇烽�夋嫨瀹㈡埛" />
 					</view>
-				</view>
+				</view> -->
 				<view class="form-item">
 					<view class="title">缁勭粐:</view>
 					<view class="righton">
diff --git a/pages/shengchanrukushengdan/form.vue b/pages/shengchanrukushengdan/form.vue
index ac796d1..c5dcbd6 100644
--- a/pages/shengchanrukushengdan/form.vue
+++ b/pages/shengchanrukushengdan/form.vue
@@ -75,13 +75,13 @@
 						<input name="HSourceBillNo" disabled v-model="hform.HSourceBillNo" placeholder="璇疯緭鍏ユ簮鍗曞崟鍙�" />
 					</view>
 				</view>
-				<view class="form-item">
+				<!-- <view class="form-item">
 					<view class="title">鍏堣繘鍏堝嚭浠�:</view>
 					<view class="right">
 						<uni-combox :candidates="arrayHWHName" placeholder="璇烽�夋嫨" v-model="hform.HFIFOWHName"
 							@input="HFIFOWHNameChange"></uni-combox>
 					</view>
-				</view>
+				</view> -->
 				<view class="form-item">
 					<view class="title">鏃ユ湡:</view>
 					<view class="right">
@@ -133,7 +133,7 @@
 							@input="HDeptNameChange"></uni-combox>
 					</view>
 				</view>
-				<view class="form-item">
+				<!-- <view class="form-item">
 					<view class="title">瀹㈡埛:</view>
 					<view class="right" v-show="showHSupName">
 						<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨瀹㈡埛" v-model="hform.HSupName"
@@ -142,7 +142,7 @@
 					<view class="righton" v-show="!showHSupName">
 						<input name="HSupName" disabled v-model="hform.HSupName" placeholder="璇烽�夋嫨瀹㈡埛" />
 					</view>
-				</view>
+				</view> -->
 				<view class="form-item">
 					<view class="title">缁勭粐:</view>
 					<view class="righton">
diff --git a/pages/weiwailingliao/form.vue b/pages/weiwailingliao/form.vue
index f0df39b..4e3c0ba 100644
--- a/pages/weiwailingliao/form.vue
+++ b/pages/weiwailingliao/form.vue
@@ -133,13 +133,13 @@
 					</view>
 				</view>
 				<view class="form-item">
-					<view class="title">瀹㈡埛:</view>
+					<view class="title">渚涘簲鍟�:</view>
 					<view class="right" v-show="showHSupName">
-						<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨瀹㈡埛" v-model="hform.HSupName"
+						<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨渚涘簲鍟�" v-model="hform.HSupName"
 							@input="HSupNameChange"></uni-combox>
 					</view>
 					<view class="righton" v-show="!showHSupName">
-						<input name="HSupName" disabled v-model="hform.HSupName" placeholder="璇烽�夋嫨瀹㈡埛" />
+						<input name="HSupName" disabled v-model="hform.HSupName" placeholder="璇烽�夋嫨渚涘簲鍟�" />
 					</view>
 				</view>
 				<view class="form-item">
@@ -661,17 +661,16 @@
 			//鑾峰彇瀹㈡埛鏁版嵁
 			getHSupList() {
 				uni.request({
-					url: this.serverUrl + '/Gy_Customer/list',
+					url: this.serverUrl + '/WEBSController/GetSupplierList_Json',
 					data: {
-						sWhere: "",
-						user: uni.getStorageSync('HUserName'),
-						Organization: uni.getStorageSync('Organization')
+						Supplier: '',
+						HStockOrgID: this.hform.HStockOrgID
 					},
 					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].瀹㈡埛鍚嶇О
+								this.arrayHSupName[i] = res.data.data[i]['HName']
 							}
 							this.$forceUpdate();
 						} else {
@@ -690,12 +689,12 @@
 					},
 				});
 			},
-			//閫夋嫨瀹㈡埛
+			//閫夋嫨
 			HSupNameChange(e) {
 				for (var i = 0; i < this.HSupNameList.length; i++) {
-					if (this.HSupNameList[i].瀹㈡埛鍚嶇О == e) {
+					if (this.HSupNameList[i]['HName'] == e) {
 						this.hform.HSupID = this.HSupNameList[i].HItemID
-						this.hform.HSupName = this.HSupNameList[i].瀹㈡埛鍚嶇О
+						this.hform.HSupName = this.HSupNameList[i]['HName']
 					}
 				}
 			},

--
Gitblit v1.9.1