From 557f02072fa311eefe3123aa44afebac22adc465 Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期五, 24 四月 2026 17:24:43 +0800
Subject: [PATCH] 4-24

---
 项目代码/PDA/pages/Outbound/OutboundCall_New.vue |  162 +++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 118 insertions(+), 44 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCall_New.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCall_New.vue"
index 4669c19..bf28f10 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCall_New.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCall_New.vue"
@@ -20,37 +20,41 @@
 					<u-td width="30%">杞鏉$爜</u-td>
 					<u-td>
 						<u-input v-model="barcode" :focus="qrcodeFocus" :border="true" placeholder="璇锋壂鎻忚疆瀵规潯鐮�"
-							/>
+							@input="barcodeChange" />
 					</u-td>
 				</u-tr>
 				<u-tr>
 					<u-td width="30%">杞﹀瀷</u-td>
 					<u-td>
-						<u-input v-model="materiel" :border="true" placeholder="璇锋墜鍔ㄨ緭鍏ヨ溅鍨�" />
+						<!-- <u-input v-model="materiel" :border="true" placeholder="璇锋墜鍔ㄨ緭鍏ヨ溅鍨�" /> -->
+						<xfl-select :list="CxTypes" :initValue="stateInitValueCarmodel" :clearable="false" @change="Get_VehicleType_Alls"
+							ref="Get_VehicleType_All" :key="CarmodelKey">
+						</xfl-select>
 					</u-td>
+					
 				</u-tr>
 				<u-tr>
-					<u-td width="30%">宸﹂槻灏樻澘骞冲潎鍊�</u-td>
+					<u-td width="30%">杞村彿绔槻灏樻澘骞冲潎鍊�</u-td>
 					<u-td>
 						<u-input v-model="zfcbAVG" :border="true" placeholder="璇疯緭鍏�..." />
 					</u-td>
-					<u-td width="30%">鍙抽槻灏樻澘骞冲潎鍊�</u-td>
+					<u-td width="30%">闈炶酱鍙风闃插皹鏉垮钩鍧囧��</u-td>
 					<u-td>
 						<u-input v-model="yfcbAVG" :border="true" placeholder="璇疯緭鍏�..." />
 					</u-td>
 				</u-tr>
 				<u-tr>
-					<u-td width="30%" height="50px;">宸﹁酱棰堝钩鍧囧��</u-td>
+					<u-td width="30%" height="50px;">杞村彿绔酱棰堝钩鍧囧��</u-td>
 					<u-td>
 						<u-input v-model="zzjAVG" :border="true" placeholder="璇疯緭鍏�..." />
 					</u-td>
-					<u-td width="30%">鍙宠酱棰堝钩鍧囧��</u-td>
+					<u-td width="30%">闈炶酱鍙风杞撮骞冲潎鍊�</u-td>
 					<u-td>
 						<u-input v-model="yzjAVG" :border="true" placeholder="璇疯緭鍏�..." />
 					</u-td>
 				</u-tr>
 
-				<u-tr>
+				<!-- <u-tr>
 					<u-td width="30%">宸︽尅娌圭幆骞冲潎鍊�</u-td>
 					<u-td>
 						<u-input v-model="zydAVG" :border="true" placeholder="璇疯緭鍏�..." />
@@ -59,7 +63,7 @@
 					<u-td>
 						<u-input v-model="yydAVG" :border="true" placeholder="璇疯緭鍏�..." />
 					</u-td>
-				</u-tr>
+				</u-tr> -->
 				<u-tr>
 					<u-td width="30%">杞存壙绫诲埆:</u-td>
 					<u-td>
@@ -69,14 +73,14 @@
 					</u-td>
 				</u-tr>
 				<u-tr>
-					<u-td width="30%">鍘傚:</u-td>
+					<u-td width="30%">杞存壙鍝佺墝:</u-td>
 					<u-td>
-						<!-- <xfl-select :list="ManufacturerArray" :initValue="'璇烽�夋嫨'" :clearable="false"
+						<xfl-select :list="ManufacturerArray" :initValue="'璇烽�夋嫨'" :clearable="false"
 							@change="ManufacturerChange" ref="ManufacturerSelect">
-						</xfl-select> -->
-						<u-td>
-							<u-input v-model="Manufacturer" :border="true" placeholder="璇疯緭鍏ュ巶瀹�" />
-						</u-td>
+						</xfl-select>
+						<!-- <u-td>
+							<u-input v-model="Manufacturer" :border="true" placeholder="璇疯緭鍏ヨ酱鎵垮搧鐗�" />
+						</u-td> -->
 					</u-td>
 				</u-tr>
 				<u-tr>
@@ -91,6 +95,14 @@
 					<u-td>
 						<xfl-select :list="ZCdirectionArray" :initValue="'璇烽�夋嫨'" :clearable="false"
 							@change="ZCdirectionChange">
+						</xfl-select>
+					</u-td>
+				</u-tr>
+				<u-tr>
+					<u-td width="30%">浜у湴</u-td>
+					<u-td>
+						<xfl-select :key="PlaceoforiginKey" :list="PlaceoforiginArray" :initValue="PlaceoforiginValue" :clearable="false" @change="PlaceoforiginChange"
+							ref="StateSelect">
 						</xfl-select>
 					</u-td>
 				</u-tr>
@@ -114,6 +126,10 @@
 	export default {
 		data() {
 			return {
+				CxTypes:[],      //鎵�鏈夎溅鍨�
+				stateInitValueCarmodel:'璇烽�夋嫨', // 銆愯溅鍨嬨��
+				CarmodelKey: 0, //銆愯溅鍨嬨��
+				
 				date: '',
 				CurrentUser: '', //褰撳墠鐢ㄦ埛
 				barcode: '',
@@ -131,9 +147,19 @@
 						value: '妫�淇�'
 					}],
 				ManufacturerArray: [{
-						label: '1鍙峰巶瀹�',
-						value: '1鍙峰巶瀹�'
-					}],
+						label: 'FAG',
+						value: 'FAG'
+					},{
+						label: 'SKF',
+						value: 'SKF'
+					},{
+						label: 'NTN',
+						value: 'NTN'
+					},{
+						label: 'NSK',
+						value: 'NSK'
+					},
+					],
 				StationArray: [{
 						label: '1鍙峰帇瑁呬綅',
 						value: '2绾垮簱鍘嬭鍙�'
@@ -145,14 +171,14 @@
 				],
 				ZCdirectionArray: [{
 						label: 'all',
-						value: '涓や晶'
+						value: '涓ょ'
 					}, {
 						label: 'left',
-						value: '宸︿晶'
+						value: '杞寸'
 					},
 					{
 						label: 'right',
-						value: '鍙充晶'
+						value: '闈炶酱绔�'
 					}
 				],
 				zcState: '',
@@ -164,12 +190,25 @@
 				//杞存壙鍙�
 				ldCode: '',
 				ortherData: '',
-				qrcodeFocus: false
+				qrcodeFocus: false,
+				PlaceoforiginArray: [{
+						label: '鍥戒骇',
+						value: '鍥戒骇'
+					},{
+						label: '杩涘彛',
+						value: '杩涘彛'
+					}],
+				Placeoforigin:'', // 浜у湴(鍥戒骇/杩涘彛)
+				PlaceoforiginKey: 0, // 鏂板锛氭帶鍒剁粍浠堕噸寤� 銆愪骇鍦般��
+				PlaceoforiginValue: '璇烽�夋嫨', // 鍒濆鍊硷紝鍚庣画鍔ㄦ�佷慨鏀广�愪骇鍦般��
 			}
 		},
 		methods: {
 			UserChange(value) {
 
+			},
+			PlaceoforiginChange(value) { // 閫夋嫨浜у湴(鍥戒骇/杩涘彛)
+				_this.Placeoforigin = value.orignItem.label;
 			},
 			setTimer() {
 				if (this.timer == null) {
@@ -184,6 +223,7 @@
 			},
 			StateChange(value) {
 				this.zcState = value.orignItem.label;
+				console.log(this.zcState)
 			},
 			StationChange(value) {
 				this.targetStation = value.orignItem.label;
@@ -201,30 +241,32 @@
 						barcode: _this.barcode
 					},
 				};
+				
 				// let data = {
 				// 	barcode: _this.barcode
 				// };
 				_this.$AjaxRequest.Params('post', 'ToMes/Mes_GetBearingNeckSizeInfo',
 					data, _user.token);
 				_this.$AjaxRequest.Request().then(function(result) {
-					//console.log(result);
+					console.log('鑾峰彇鐨勬帴鍙f暟鎹�');
+					console.log(result);
 					if (result.data.status) {
 						let obj = JSON.parse(JSON.stringify(result.data.data));
 						_this.yfcbAVG = obj.yfcbAVG;
 						_this.zfcbAVG = obj.zfcbAVG;
-						_this.zydAVG = obj.zydAVG;
-						_this.yydAVG = obj.yydAVG;
+						//_this.zydAVG = obj.zydAVG;
+						// _this.yydAVG = obj.yydAVG;
 						_this.zzjAVG = obj.zzjAVG;
 						_this.yzjAVG = obj.yzjAVG;
-						_this.materiel = obj.materiel;
+						//_this.materiel = obj.materiel;
 						_this.ldCode = obj.ldCode;
 						_this.ortherData = obj.ortherData;
 						if (null != obj.manufacturerArray)
 							obj.manufacturerArray.forEach(function(item, index, arr) {
-								_this.ManufacturerArray.push({
-									label: item,
-									value: item
-								})
+								// _this.ManufacturerArray.push({
+								// 	label: item,
+								// 	value: item
+								// })
 							});
 						if (null != obj.neworold)
 							obj.neworold.forEach(function(item, index, arr) {
@@ -233,12 +275,12 @@
 									name = '鏂板搧';
 								}
 
-								if (null == _this.StateArray.find(r => r.value == name)) {
-									_this.StateArray.push({
-										label: item,
-										value: name
-									})
-								}
+								// if (null == _this.StateArray.find(r => r.value == name)) {
+								// 	_this.StateArray.push({
+								// 		label: item,
+								// 		value: name
+								// 	})
+								// }
 							});
 						//console.log(obj);
 					} else {
@@ -261,27 +303,29 @@
 			initAVG() {
 				_this.yfcbAVG = '';
 				_this.zfcbAVG = '';
-				_this.zydAVG = '';
-				_this.yydAVG = '';
+				// _this.zydAVG = '';
+				// _this.yydAVG = '';
 				_this.zzjAVG = '';
 				_this.yzjAVG = '';
 				_this.materiel = '';
 				_this.Manufacturer = '';
 				_this.zcState = '';
-				_this.StateArray = [];
+				//_this.StateArray = [];
 				_this.ldCode = '';
 				_this.ortherData = '';
-				_this.ManufacturerArray = [];
+				//_this.ManufacturerArray = [];
 				_this.$refs.StateSelect.setInput("璇烽�夋嫨");
 				_this.$refs.StateSelect.clearItemActive();
-				_this.$refs.ManufacturerSelect.setInput("璇烽�夋嫨");
-				_this.$refs.ManufacturerSelect.clearItemActive();
+				//_this.$refs.ManufacturerSelect.setInput("璇烽�夋嫨");
+				//_this.$refs.ManufacturerSelect.clearItemActive();
 			},
 			SaveInfomation() {
+				var _this = this;
 				if (_this.barcode == '' || _this.Manufacturer == '' ||
-					_this.zcState == '' || _this.targetStation == '') {
+					_this.zcState == '' || _this.targetStation == '' || 
+					_this.materiel == '' || _this.Placeoforigin == '') {
 					uni.showToast({
-						title: "璇烽�夋嫨鍘傚銆佸伐浣嶆垨鑰呴�夐厤鏍囧噯淇℃伅.",
+						title: "淇℃伅杈撳叆涓嶅畬鏁�",
 						duration: 2000
 					});
 					return;
@@ -316,7 +360,8 @@
 									targetStation: _this.targetStation,
 									ZCdirection: _this.ZCdirection,
 									ldCode: _this.ldCode,
-									ortherData: _this.ortherData
+									ortherData: _this.ortherData,
+									Placeoforigin:_this.Placeoforigin
 								},
 							};
 							console.log("閫夊ソ鐨勬暟鎹�",data)
@@ -348,6 +393,34 @@
 					}
 				});
 			},
+			VehicleType(){
+				let data = {};
+				_this.$AjaxRequest.Params('post', 'Dt_materielinfo/Get_VehicleType_All',
+					data, _user.token);
+				_this.$AjaxRequest.Request().then(function(result) {
+					if (result.data.status) {
+						_this.CxTypes = result.data.data
+					} else {
+						uni.showToast({
+							icon: 'none',
+							title: "璇锋眰閿欒:" + result.data.message,
+							duration: 2000
+						});
+					}
+					console.log("杞﹀瀷鐨勬墍鏈夋暟鎹�",result)
+				}).catch(function(err) {
+					uni.showToast({
+						icon: 'none',
+						title: "璇锋眰鍚庡彴寮傚父,閿欒淇℃伅." + err.errMsg,
+						duration: 2000
+					});
+				});
+			},
+			Get_VehicleType_Alls(value){
+				_this = this;
+				_this.materiel = value.orignItem; // 缁欒溅鍨嬭祴鍊�
+				console.log(_this.materiel)
+			},
 		},
 		created: function() {
 			// 姣忔杩涘叆鐣岄潰鏃讹紝鍏堟竻闄や箣鍓嶇殑鎵�鏈夊畾鏃跺櫒锛岀劧鍚庡惎鍔ㄦ柊鐨勫畾鏃跺櫒
@@ -367,6 +440,7 @@
 			_this = this;
 			_this.qrcodeFocus = true;
 			//_this.queryOrder();
+			this.VehicleType();
 		},
 
 

--
Gitblit v1.9.3