Compare commits
2 Commits
dev-2025
...
prod-25-11
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e55ba01c8 | |||
| 7f6d1823c4 |
@ -111,6 +111,7 @@ export function getOrCodeInfo(data){
|
||||
return request({
|
||||
url:'/agg-api/wxcp/createContactQrCode',
|
||||
method:'POST',
|
||||
contentType:'application/json',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@
|
||||
<script>
|
||||
import {leftCopy} from "@/utils/common"
|
||||
import QRCode from 'qrcode'
|
||||
import { uploadImage, ocrHandler, unifiedOCRWithCompress, getArea, saveSupplier, getSupplierInfo, getOrCodeInfo, getContactQrCodeResult } from "@/api/mine"
|
||||
import { uploadImage, supplierServicePartTree, ocrHandler, unifiedOCRWithCompress, getArea, saveSupplier, getSupplierInfo, getOrCodeInfo, getContactQrCodeResult } from "@/api/mine"
|
||||
import {myMixins} from "@/utils/myMixins"
|
||||
import {Dialog} from "vant";
|
||||
export default {
|
||||
@ -144,23 +144,14 @@
|
||||
areaShow: false,
|
||||
areaList: [],
|
||||
supplierServiceList: [],
|
||||
bigServiceList: [{
|
||||
id: 1002,
|
||||
title: '拖车服务'
|
||||
}, {
|
||||
id: 1003,
|
||||
title: '抢修服务'
|
||||
}, {
|
||||
id: 1004,
|
||||
title: '困境救援'
|
||||
}],
|
||||
bigServiceList: [],
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'title',
|
||||
},
|
||||
areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', emitPath: false, },
|
||||
configId: '',
|
||||
wechatId: '',
|
||||
wechatId: 'test',
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
@ -171,7 +162,7 @@
|
||||
await this.getInfoHandler();
|
||||
}
|
||||
|
||||
// await this.getSupplierServiceTree();
|
||||
await this.getSupplierServiceTree();
|
||||
},
|
||||
methods: {
|
||||
async QrCodeHandler() {
|
||||
@ -205,8 +196,8 @@
|
||||
if(this.companyPhoto) {
|
||||
this.companyPhotoList = [{ url : this.companyPhoto }];
|
||||
}
|
||||
if( _data.service ) {
|
||||
this.$refs.tree.setCheckedKeys(_data.service.split(','))
|
||||
if( _data.serviceType ) {
|
||||
this.$refs.tree.setCheckedKeys(_data.serviceType.split(','))
|
||||
}
|
||||
if(_data?.serviceAreaCode) {
|
||||
this.$set(this.form, 'serviceAreaCode', _data?.serviceAreaCode.split(',').map(item => Number(item)));
|
||||
@ -262,7 +253,7 @@
|
||||
checkArr.push(item.data.id)
|
||||
})
|
||||
|
||||
/* let treeArr = this.$refs.tree.getCheckedKeys();
|
||||
let treeArr = this.$refs.tree.getCheckedKeys();
|
||||
let childrenTreeArr = [];
|
||||
treeArr.map(item => {
|
||||
let _arr = this.supplierServiceList.filter(_item => _item.id == item) || [] // 获取对应的大类
|
||||
@ -270,14 +261,14 @@
|
||||
childrenTreeArr?.push(childItem?.id)
|
||||
})
|
||||
})
|
||||
let allArr = [...treeArr, ...childrenTreeArr]*/
|
||||
let allArr = [...treeArr, ...childrenTreeArr]
|
||||
let res = await saveSupplier({
|
||||
id: this.id,
|
||||
...this.form,
|
||||
idCardFrontUrl: this.idFrontPhoto,
|
||||
idCardBackUrl: this.idBackPhoto,
|
||||
businessLicense: this.companyPhoto,
|
||||
service: this.$refs.tree.getCheckedKeys().join(',') ,
|
||||
serviceType: allArr.join(',') ,
|
||||
serviceAreaCode: checkArr.join(','),
|
||||
wechatId: this.wechatId,
|
||||
});
|
||||
@ -297,9 +288,9 @@
|
||||
let res = await getArea();
|
||||
this.areaList = res?.data;
|
||||
},
|
||||
/*async getSupplierServiceTree(){
|
||||
async getSupplierServiceTree(){
|
||||
let res = await supplierServicePartTree({
|
||||
serviceTypes: '1002,1003,1004',
|
||||
serviceTypes: '1002,1003',
|
||||
treeType: 2
|
||||
});
|
||||
this.supplierServiceList=res.data
|
||||
@ -308,7 +299,7 @@
|
||||
let obj = {...item, children: null}
|
||||
this.bigServiceList.push(obj)
|
||||
})
|
||||
},*/
|
||||
},
|
||||
confirmHandle(val){
|
||||
this.region=[]
|
||||
val?.forEach(item => this.region.push(item.name))
|
||||
|
||||
@ -74,7 +74,7 @@
|
||||
</div>
|
||||
<div class="info_item">
|
||||
<div class="label">服务能力:</div>
|
||||
<div class="content service_color">{{supplierInfo?.serviceCategoryName}}</div>
|
||||
<div class="content service_color">{{supplierInfo?.serviceName}}</div>
|
||||
</div>
|
||||
<div class="info_item">
|
||||
<div class="label">拖车数量:</div>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<div class="item">
|
||||
<span class="leftTitle fontColor">服务类型:</span><span class="rightContent">{{ orderDetailInfo.taskServiceName }}</span>
|
||||
</div>
|
||||
<div class="item" v-if="orderDetailInfo?.userVehicleTypeString">
|
||||
<div class="item">
|
||||
<span class="leftTitle fontColor">车辆类型:</span><span class="rightContent">{{ orderDetailInfo.userVehicleTypeString }}<van-icon class="icon" name="question" @click="showCarTypeShow = true" /></span>
|
||||
</div>
|
||||
<div class="item">
|
||||
|
||||
Reference in New Issue
Block a user