|
|
@@ -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) => {
|