|
@@ -26,6 +26,12 @@
|
|
|
@click="corpTypeVisible = true"></i>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <!--<template slot="brandDesc">-->
|
|
|
+ <!-- <div>-->
|
|
|
+ <!-- <avue-input-tree v-model="brandlist" :disabled="false" :dic="brandDescData" :props="propsBrand" multiple placeholder="请选品牌">-->
|
|
|
+ <!-- </avue-input-tree>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!--</template>-->
|
|
|
<template slot="deliveryWarehouseId">
|
|
|
<div style="display:flex;">
|
|
|
<avue-input-tree v-model="form.deliveryWarehouseId" :disabled="option.disabled" placeholder="请选择发货仓库" :dic="corpTypeListCk"
|
|
@@ -148,7 +154,7 @@ import {
|
|
|
customerList,
|
|
|
itemDel,
|
|
|
corpsattn,
|
|
|
- editenable, getUserByRole
|
|
|
+ editenable, getUserByRole,getBrandDesc
|
|
|
} from "@/api/tirePartsMall/basicData/customerInformation"
|
|
|
import corpType from './components/index'
|
|
|
import { creatingUsersTwo } from "@/api/basicData/customerInformation";
|
|
@@ -475,7 +481,10 @@ export default {
|
|
|
{
|
|
|
label: "商城价格",
|
|
|
prop: "priceSystem",
|
|
|
- span: 8, filterable: true, type: "select", dicUrl: "/api/blade-system/dict-biz/dictionary?code=mall_price",
|
|
|
+ span: 8,
|
|
|
+ filterable: true,
|
|
|
+ type: "select",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=mall_price",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictKey"
|
|
@@ -507,6 +516,27 @@ export default {
|
|
|
controls: false,
|
|
|
precision: 2,
|
|
|
},
|
|
|
+
|
|
|
+ {
|
|
|
+ label:"品牌",
|
|
|
+ prop:"brandId",
|
|
|
+ props:{
|
|
|
+ label:'cname',
|
|
|
+ value:'id'
|
|
|
+ },
|
|
|
+ span:24,
|
|
|
+ search:true,
|
|
|
+ dicDate:[],
|
|
|
+ multiple:true,
|
|
|
+ dicUrl: '/api/blade-sales-part/brandDesc/listAllV1?type=PP',
|
|
|
+ type:"tree",
|
|
|
+ rules: [{
|
|
|
+ message: "请选择品牌",
|
|
|
+ trigger: "click"
|
|
|
+ }]
|
|
|
+ }
|
|
|
+
|
|
|
+ ,
|
|
|
// {
|
|
|
// label: "使用信用额度",
|
|
|
// prop: "useCreditLimit",
|
|
@@ -638,8 +668,10 @@ export default {
|
|
|
this.getCorpType()
|
|
|
this.getAllWorkDicts()
|
|
|
this.getCorpTypeCk()
|
|
|
+
|
|
|
},
|
|
|
activated() {
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.crud.doLayout()
|
|
@@ -714,6 +746,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
initData(tenantId) {
|
|
|
+ getBrandDesc().then(res =>{
|
|
|
+ const column = this.findObject(this.option.column,'brandId')
|
|
|
+ column.dicData = res.data.data
|
|
|
+ this.form.brandId = '';
|
|
|
+ })
|
|
|
getRoleTree(tenantId).then(res => {
|
|
|
const column = this.findObject(this.optionData.column, "roleId");
|
|
|
column.dicData = res.data.data;
|
|
@@ -807,6 +844,9 @@ export default {
|
|
|
}else {
|
|
|
this.$set(this.option,'disabled',false)
|
|
|
}
|
|
|
+ if (this.form.brandId == null || this.form.brandId === "") {
|
|
|
+ this.form.brandId = "";
|
|
|
+ }
|
|
|
this.data = res.data.data.corpsAddrList
|
|
|
this.corpsFiles = res.data.data.corpsFilesList
|
|
|
this.contactsData = res.data.data.corpsAttnList
|
|
@@ -940,11 +980,12 @@ export default {
|
|
|
editCustomer() {
|
|
|
this.$refs["form"].validate((valid, done) => {
|
|
|
done();
|
|
|
-
|
|
|
if (valid) {
|
|
|
this.loadingBtn = true;
|
|
|
if(!this.form.id) {
|
|
|
this.form.checkStatus = '通过'
|
|
|
+
|
|
|
+ typeof(this.form.brandId) == 'Array' ? this.form.prandId.join(',') : this.form.brandId = ''
|
|
|
}
|
|
|
submit({
|
|
|
...this.form,
|
|
@@ -953,7 +994,7 @@ export default {
|
|
|
corpsAddrList: this.data,
|
|
|
corpsFilesList: this.corpsFiles,
|
|
|
corpsAttnList: this.contactsData,
|
|
|
- billType: 1
|
|
|
+ billType: 1,
|
|
|
}).then(res => {
|
|
|
this.$message.success("保存成功");
|
|
|
this.form = res.data.data;
|