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