weieryang лет назад: 2
Родитель
Сommit
a288f7faec

+ 2 - 1
CallCenterWeb.UI/RMYYAPP/pages/components/orderSelect/orderSelect.vue

@@ -58,7 +58,8 @@
58 58
 				console.log(this.orderList)
59 59
 				this.identification = this.$mHelper.getIdentification(this.orderList,data.value)
60 60
 				console.log(this.identification )
61
-				this.$emit('post-select-data',data.value,data.id,data.orderType,this.identification)
61
+				console.log(data, 'data')
62
+				this.$emit('post-select-data',data.value,data.id,data.orderType,this.identification, data.text)
62 63
 			},
63 64
 			popupclosed() {
64 65
 				this.WorkOrderCategory = this.order

+ 3 - 2
CallCenterWeb.UI/RMYYAPP/pages/managemtnt/managemtnt.vue

@@ -23,7 +23,7 @@
23 23
 								<view class="uni-title-sub uni-ellipsis-1"
24 24
 									style="width: 78%; white-space: normal;margin-bottom: 13px; ">
25 25
 									<view class="textLeft" style="width: 100%;">
26
-										工单号:{{item.F_WorkOrderId}}
26
+										工单号:{{item.F_WorkOrderCode}}
27 27
 									</view>
28 28
 
29 29
 								</view>
@@ -63,7 +63,8 @@
63 63
 					0: '业务咨询',
64 64
 					1: '故障报修',
65 65
 					2: '车辆调度',
66
-					3: '综合调度'
66
+					3: '综合调度',
67
+					4: '车辆调度',
67 68
 				}
68 69
 				return str[state]
69 70
 			}

+ 13 - 10
CallCenterWeb.UI/RMYYAPP/pages/myTask/vehicleSchedulList/applicantsList/addVehicle/addVehicle.vue

@@ -28,7 +28,7 @@
28 28
 				<uni-forms-item label="调度内容" name="content">
29 29
 					<uni-easyinput type="textarea" v-model="valiFormData.content" placeholder="请输入调度内容" />
30 30
 				</uni-forms-item>
31
-				<uni-forms-item label="出发地" required name="startplace">
31
+				<uni-forms-item label="出发地" required name="startplace">
32 32
 					<uni-easyinput v-model="valiFormData.startplace" placeholder="请输入出发地点" />
33 33
 				</uni-forms-item>
34 34
 				<uni-forms-item label="目的地" required name="endplace">
@@ -37,10 +37,10 @@
37 37
 				<uni-forms-item label="发车时间" required name="usertime">
38 38
 					<uni-datetime-picker v-model="valiFormData.usertime" />
39 39
 				</uni-forms-item>
40
-				<uni-forms-item label="是否新生儿转运" required name="birth">
40
+				<uni-forms-item label="是否新生儿转运" required name="birth" v-if="typeName.indexOf('新生儿')>=0">
41 41
 					<uni-data-checkbox v-model="valiFormData.birth" :localdata="birthData" />
42 42
 				</uni-forms-item>
43
-				<uni-forms-item label="备注" required name="remark">
43
+				<uni-forms-item label="备注" name="remark">
44 44
 					<uni-easyinput type="textarea" v-model="valiFormData.remark" placeholder="请输入备注" />
45 45
 				</uni-forms-item>
46 46
 				<uni-forms-item label="紧急程度" name="EmergencyTypes">
@@ -73,6 +73,7 @@
73 73
 				getFontSizeValue:'1rem',
74 74
 				showSearch: true,
75 75
 				readonly: false,
76
+				typeName: '',
76 77
 				disabledButton:false,
77 78
 				// 校验表单数据
78 79
 				valiFormData: {
@@ -172,12 +173,12 @@
172 173
 							errorMessage: '请选择是否新生儿转运'
173 174
 						}]
174 175
 					},
175
-					remark: {
176
-						rules: [{
177
-							required: true,
178
-							errorMessage: '请输入备注'
179
-						}]
180
-					}
176
+					// remark: {
177
+					// 	rules: [{
178
+					// 		required: true,
179
+					// 		errorMessage: '请输入备注'
180
+					// 	}]
181
+					// }
181 182
 				},
182 183
 			}
183 184
 		},
@@ -251,8 +252,10 @@
251 252
 					}
252 253
 				})
253 254
 			},
254
-			postSelectData(e){
255
+			postSelectData(e, id, type, identification, text){
255 256
 				this.valiFormData.WorkOrderCategory = e
257
+				this.typeName = text
258
+				console.log(text, 'e')
256 259
 			},
257 260
 			//申请人
258 261
 			changeApplicant(res) {

+ 23 - 11
CallCenterWeb.UI/RMYYAPP/pages/myTask/vehicleSchedulList/components/vehiccleDetail/vehiccleDetail.vue

@@ -46,11 +46,11 @@
46 46
 					<text class="contentText" style="margin-top: -5px;">{{ detailContentData.F_DriverPhon }} <uni-icons @click="callHandle(detailContentData.F_DriverPhon)" class="frContentText" type="phone" size="30" v-if="detailContentData.F_DriverPhon"></uni-icons></text>
47 47
 				</view>
48 48
 				<view class="contentTable">
49
-					<text class="contentTitle">出发地:</text>
49
+					<text class="contentTitle">出发地:</text>
50 50
 					<text class="contentText">{{ detailContentData.F_DepartPlace }}</text>
51 51
 				</view>
52 52
 				<view class="contentTable">
53
-					<text class="contentTitle">出发地点:</text>
53
+					<text class="contentTitle">目的地:</text>
54 54
 					<text class="contentText">{{ detailContentData.F_Destination }}</text>
55 55
 				</view>
56 56
 		
@@ -62,7 +62,7 @@
62 62
 					<text class="contentTitle">用车时间:</text>
63 63
 					<text class="contentText">{{ detailContentData.F_UseTime }}</text>
64 64
 				</view>
65
-				<view class="contentTable">
65
+				<view class="contentTable" v-if="typeName.indexOf('新生儿')>=0">
66 66
 					<text class="contentTitle">是否出生:</text>
67 67
 					<text class="contentText">{{ detailContentData.F_Birth }}</text>
68 68
 				</view>
@@ -88,6 +88,7 @@
88 88
 		},
89 89
 		data() {
90 90
 			return {
91
+				typeName: '',
91 92
 				getFontSizeValue:'1rem',
92 93
 				active: 0,
93 94
 				listFlag:false,
@@ -106,11 +107,11 @@
106 107
 				orderTypeList: [], // 工单状态
107 108
 			}
108 109
 		},
109
-		onLoad(optioin) {
110
+		async onLoad(optioin) {
110 111
 			pageData.getDet((res, data) => {
111 112
 				this.departList = data
112 113
 			})
113
-			this.getGongDanType()
114
+			await this.getGongDanType()
114 115
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem' 
115 116
 			this.workorderid = optioin.wid 
116 117
 			if( optioin.orderId ) {
@@ -130,17 +131,20 @@
130 131
 			} 
131 132
 		},
132 133
 		methods: {
133
-			getGongDanType(){
134
+			async getGongDanType(){
134 135
 				let dataOrderType = []
135 136
 				const params = {
136 137
 					pid:0,
137 138
 					flag:1
138 139
 				}
139
-				this.$http.get("GongDanType/GetList",params).then((res)=>{
140
-					if(res.state.toLowerCase() ==="success"){
141
-						this.orderTypeList = res.data
142
-					}
143
-				})
140
+				// this.$http.get("GongDanType/GetList",params).then((res)=>{
141
+				// 	if(res.state.toLowerCase() ==="success"){
142
+				// 		this.orderTypeList = res.data
143
+				// 	}
144
+				// })
145
+				const res = await this.$http.get("GongDanType/GetList",params)
146
+				if (res.state.toLowerCase() ==="success") this.orderTypeList = res.data
147
+				console.log(this.orderTypeList, 'this.orderTypeList')
144 148
 			},
145 149
 			callHandle(phone){
146 150
 				if(!phone) {
@@ -163,6 +167,7 @@
163 167
 					// alert(response.state)
164 168
 					if (response.state.toLowerCase() === "success") {
165 169
 						let btnData
170
+						
166 171
 						if (type == 0) {
167 172
 							this.detailContentData = response.model
168 173
 							this.detailContentData.F_Birth?this.detailContentData.F_Birth ='是':this.detailContentData.F_Birth ='否'
@@ -203,10 +208,17 @@
203 208
 							})
204 209
 							this.detailContentData = response.Carlist[this.active]
205 210
 							btnData = this.detailContentData.Buttons;
211
+							// console.log(this.orderTypeList, 'this.typeName')
212
+							// this.typeName = this.$mHelper.findParents(this.orderTypeList, this.detailContentData.F_Type) || '';
213
+							
214
+							
206 215
 							this.workorderid = this.detailContentData.F_WorkOrderCode
207 216
 							this.detailContentData.F_Birth?this.detailContentData.F_Birth ='是':this.detailContentData.F_Birth ='否'
208 217
 						}
209 218
 						
219
+						// console.log(this.orderTypeList, 'this.typeName')
220
+						this.typeName = this.$mHelper.findParents(this.orderTypeList, this.detailContentData.F_Type) || '';
221
+						console.log(this.typeName, 'this.typeName')
210 222
 						
211 223
 						if (btnData.length > 0) {
212 224
 							btnData.forEach((element, index) => {