diff --git a/components/orderCard.vue b/components/orderCard.vue
index 876a358..6d2aac3 100644
--- a/components/orderCard.vue
+++ b/components/orderCard.vue
@@ -11,6 +11,7 @@
{{ order.carNum }}
+ {{order.repairTypeText}}
{{ order.carModel }}
@@ -40,6 +41,15 @@
服务顾问:{{ order.counselorName }}
+
+ 业务来源:{{ order.busiFrom }}
+
+
+ 支付方式:{{ order.payTypeText }}
+
+
+ 支付方式:未结算
+
+
+
+ 客户来源
+
+ {{ cusFromList[cusFromIndex].label}}
+
+
+
+ 业务来源
+
+ {{ busiFromList[busiFromIndex].label}}
+
+
+
保险名称
@@ -289,7 +303,6 @@
{{ repairTypes[repairTypeIndex].label}}
-
@@ -381,6 +394,10 @@ export default {
ticketType: '01',
repairTypes:[],
repairTypeIndex:0,
+ cusFromList:[],
+ cusFromIndex:0,
+ busiFromList:[],
+ busiFromIndex:0,
partDisposals:[],
partDisposalIndex:0,
formData:{
@@ -401,6 +418,8 @@ export default {
insuranceExpiryDate:null,
jiaoqiang:null,
shangye:null,
+ cusFrom:null,
+ busiFrom:null,
},
options: [
{label: 'A单', value: '01'},
@@ -440,6 +459,15 @@ export default {
if(!this.formData.handleMobile){
this.formData.handleMobile = newVal.phoneNumber
}
+ if(!this.formData.cusFrom){
+ for (let i = 0; i < this.cusFromList.length; i++) {
+ if(newVal.dataFrom==this.cusFromList[i].value){
+ this.cusFromIndex = i
+ this.formData.cusFrom = newVal.dataFrom
+ return
+ }
+ }
+ }
console.log('obj changed:', newVal, oldVal)
},
deep: true
@@ -457,8 +485,10 @@ export default {
this.phone = data.phone
this.listUserInfo()
}
+ this.initDict("repair_busi_from")
this.initDict("insurance_type")
this.initDict("repair_type")
+ this.initDict("cus_data_from")
this.initDict("repair_part_disposal")
},
onShow() {
@@ -492,10 +522,20 @@ export default {
this.repairTypeIndex = newIndex;
this.formData.repairType = this.repairTypes[newIndex].value;
},
+ cusFromChange(event){
+ const newIndex = event.detail.value;
+ this.cusFromIndex = newIndex;
+ this.formData.cusFrom = this.cusFromList[newIndex].value;
+ },
+ busiFromChange(event){
+ const newIndex = event.detail.value;
+ this.busiFromIndex = newIndex;
+ this.formData.busiFrom = this.busiFromList[newIndex].value;
+ },
partDisposalChange(event){
const newIndex = event.detail.value;
this.partDisposalIndex = newIndex;
- this.formData.partDisposal = this.repairTypes[newIndex].value;
+ this.formData.partDisposal = this.partDisposals[newIndex].value;
},
@@ -515,10 +555,14 @@ export default {
if("repair_type"==dictCode){
this.repairTypes = res.data
this.buildRepairType()
- }else if("repair_part_disposal"){
+ }else if("repair_part_disposal"==dictCode){
this.partDisposals = res.data
- }else if("insurance_type"){
+ }else if("insurance_type"==dictCode){
this.buildInsuranceTypeList()
+ }else if("cus_data_from"==dictCode){
+ this.cusFromList = res.data
+ }else if("repair_busi_from"==dictCode){
+ this.busiFromList = res.data
}
})
}
@@ -528,10 +572,14 @@ export default {
if("repair_type"==dictCode){
this.repairTypes = dictArray
this.buildRepairType()
- }else if("repair_part_disposal"){
+ }else if("repair_part_disposal"==dictCode){
this.partDisposals = dictArray
- }else if("insurance_type"){
+ }else if("insurance_type"==dictCode){
this.buildInsuranceTypeList()
+ }else if("cus_data_from"==dictCode){
+ this.cusFromList = dictArray
+ }else if("repair_busi_from"==dictCode){
+ this.busiFromList = dictArray
}
})
}
@@ -613,6 +661,12 @@ export default {
//新增工单
submit() {
let fileStr = this.fileList.map(item=>item.url.replace(config.baseImageUrl,"")).join(",")
+ if(!this.formData.busiFrom){
+ this.formData.busiFrom = this.busiFromList[this.busiFromIndex].value
+ }
+ if(!this.formData.cusFrom){
+ this.formData.cusFrom = this.cusFromList[this.cusFromIndex].value
+ }
const data = {
userId: this.userInfo.id,
ticketNo: this.ticketNo,
@@ -634,6 +688,7 @@ export default {
if(this.insuranceTypeArray.length>0){
data.insuranceType= this.insuranceTypeArray.join(",")
}
+
if(this.pageData && this.pageData.hasOwnProperty("bookingId")){
data.bookingId = this.pageData.bookingId
}
diff --git a/pages-order/addOrder/editOrder.vue b/pages-order/addOrder/editOrder.vue
index 30df259..9231d5a 100644
--- a/pages-order/addOrder/editOrder.vue
+++ b/pages-order/addOrder/editOrder.vue
@@ -110,6 +110,20 @@
+
+
+ 客户来源
+
+ {{ cusFromList[cusFromIndex].label}}
+
+
+
+ 业务来源
+
+ {{ busiFromList[busiFromIndex].label}}
+
+
+
保险名称
@@ -163,7 +177,6 @@
{{ repairTypes[repairTypeIndex].label}}
-
@@ -174,12 +187,23 @@
保存工单
+
+
+
+
diff --git a/pages-order/orderDetail/orderDetail.vue b/pages-order/orderDetail/orderDetail.vue
index cad20bd..f75f44e 100644
--- a/pages-order/orderDetail/orderDetail.vue
+++ b/pages-order/orderDetail/orderDetail.vue
@@ -66,6 +66,10 @@
联系方式
{{ ticketInfo.userMobile }}
+
+ 客户来源
+ {{ ticketInfo.customerInfo.dataFromText }}
+
性别
{{ ticketInfo.customerInfo.sex === '1' ? '女' : '男' }}
@@ -78,6 +82,10 @@
经办人电话
{{ ticketInfo.handleMobile }}
+
+ 业务来源
+ {{ ticketInfo.busiFrom }}
+
车架号
diff --git a/pages-order/orderList/orderList.vue b/pages-order/orderList/orderList.vue
index 930314d..3308639 100644
--- a/pages-order/orderList/orderList.vue
+++ b/pages-order/orderList/orderList.vue
@@ -11,7 +11,7 @@