story#7552 潜在服务商,服务类型修改
This commit is contained in:
@ -111,7 +111,7 @@
|
||||
<script>
|
||||
import {leftCopy} from "@/utils/common"
|
||||
import QRCode from 'qrcode'
|
||||
import { uploadImage, supplierServicePartTree, ocrHandler, unifiedOCRWithCompress, getArea, saveSupplier, getSupplierInfo, getOrCodeInfo, getContactQrCodeResult } from "@/api/mine"
|
||||
import { uploadImage, ocrHandler, unifiedOCRWithCompress, getArea, saveSupplier, getSupplierInfo, getOrCodeInfo, getContactQrCodeResult } from "@/api/mine"
|
||||
import {myMixins} from "@/utils/myMixins"
|
||||
import {Dialog} from "vant";
|
||||
export default {
|
||||
@ -144,7 +144,16 @@
|
||||
areaShow: false,
|
||||
areaList: [],
|
||||
supplierServiceList: [],
|
||||
bigServiceList: [],
|
||||
bigServiceList: [{
|
||||
id: 1002,
|
||||
title: '拖车服务'
|
||||
}, {
|
||||
id: 1003,
|
||||
title: '抢修服务'
|
||||
}, {
|
||||
id: 1004,
|
||||
title: '困境救援'
|
||||
}],
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'title',
|
||||
@ -162,7 +171,7 @@
|
||||
await this.getInfoHandler();
|
||||
}
|
||||
|
||||
await this.getSupplierServiceTree();
|
||||
// await this.getSupplierServiceTree();
|
||||
},
|
||||
methods: {
|
||||
async QrCodeHandler() {
|
||||
@ -253,7 +262,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) || [] // 获取对应的大类
|
||||
@ -261,14 +270,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,
|
||||
serviceType: allArr.join(',') ,
|
||||
service: this.$refs.tree.getCheckedKeys().join(',') ,
|
||||
serviceAreaCode: checkArr.join(','),
|
||||
wechatId: this.wechatId,
|
||||
});
|
||||
@ -288,7 +297,7 @@
|
||||
let res = await getArea();
|
||||
this.areaList = res?.data;
|
||||
},
|
||||
async getSupplierServiceTree(){
|
||||
/*async getSupplierServiceTree(){
|
||||
let res = await supplierServicePartTree({
|
||||
serviceTypes: '1002,1003,1004',
|
||||
treeType: 2
|
||||
@ -299,7 +308,7 @@
|
||||
let obj = {...item, children: null}
|
||||
this.bigServiceList.push(obj)
|
||||
})
|
||||
},
|
||||
},*/
|
||||
confirmHandle(val){
|
||||
this.region=[]
|
||||
val?.forEach(item => this.region.push(item.name))
|
||||
|
||||
Reference in New Issue
Block a user