|
@@ -12,7 +12,7 @@
|
|
|
保存数据
|
|
|
</el-button>
|
|
|
<el-button class="el-button--small-yh" size="small" v-if="form.id" @click="editEnable">
|
|
|
- {{ form.enableOrNot ? '禁用' : '启用' }}
|
|
|
+ {{ form.enableOrNot == 0 ? '启用' : '禁用' }}
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -20,7 +20,7 @@
|
|
|
<avue-form ref="form" class="trading-form" v-model="form" :option="option">
|
|
|
<template slot="corpsTypeId">
|
|
|
<div style="display:flex;">
|
|
|
- <avue-input-tree v-model="form.corpsTypeId" placeholder="请选择客户分类" :dic="corpTypeList" :props="props">
|
|
|
+ <avue-input-tree v-model="form.corpsTypeId" :disabled="option.disabled" placeholder="请选择客户分类" :dic="corpTypeList" :props="props">
|
|
|
</avue-input-tree>
|
|
|
<i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px"
|
|
|
@click="corpTypeVisible = true"></i>
|
|
@@ -28,7 +28,7 @@
|
|
|
</template>
|
|
|
<template slot="deliveryWarehouseId">
|
|
|
<div style="display:flex;">
|
|
|
- <avue-input-tree v-model="form.deliveryWarehouseId" placeholder="请选择发货仓库" :dic="corpTypeListCk"
|
|
|
+ <avue-input-tree v-model="form.deliveryWarehouseId" :disabled="option.disabled" placeholder="请选择发货仓库" :dic="corpTypeListCk"
|
|
|
:props="propsCk">
|
|
|
</avue-input-tree>
|
|
|
<i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px"
|
|
@@ -334,7 +334,7 @@ export default {
|
|
|
// trigger: "blur"
|
|
|
// }
|
|
|
// ]
|
|
|
- // },
|
|
|
+ // },
|
|
|
{
|
|
|
label: "备注",
|
|
|
prop: "remarks",
|
|
@@ -592,7 +592,8 @@ export default {
|
|
|
type: "success",
|
|
|
message: data.enableOrNot ? "禁用成功!" : "启用成功!"
|
|
|
});
|
|
|
- this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
|
|
|
+ this.getDetail(this.detailData.id)
|
|
|
+ // this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
|
|
|
})
|
|
|
},
|
|
|
addressUnique(row, index) {
|
|
@@ -693,6 +694,11 @@ export default {
|
|
|
getDetails({ id: id })
|
|
|
.then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ if (this.form.enableOrNot == 1) {
|
|
|
+ this.$set(this.option,'disabled',true)
|
|
|
+ }else {
|
|
|
+ this.$set(this.option,'disabled',false)
|
|
|
+ }
|
|
|
this.data = res.data.data.corpsAddrList
|
|
|
this.corpsFiles = res.data.data.corpsFilesList
|
|
|
this.contactsData = res.data.data.corpsAttnList
|