|
|
|
@ -619,7 +619,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3" class="el-col">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-checkbox :disabled="!checked" v-model="editQuery.isDisable" class="text item itemTag"
|
|
|
|
|
<el-checkbox :disabled="!checked" v-model="editQuery.disable" class="text item itemTag"
|
|
|
|
|
@change="diableChange"
|
|
|
|
|
>是否禁用
|
|
|
|
|
</el-checkbox>
|
|
|
|
@ -832,15 +832,22 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
diableChange() {
|
|
|
|
|
let query = {
|
|
|
|
|
relId: this.editQuery.id
|
|
|
|
|
relId: this.editQuery.id,
|
|
|
|
|
isDisable: this.editQuery.disable
|
|
|
|
|
}
|
|
|
|
|
console.log(this.editQuery)
|
|
|
|
|
disableUdi(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code != 20000) {
|
|
|
|
|
this.editQuery.isDisable = false;
|
|
|
|
|
this.editQuery.disable = false;
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
} else {
|
|
|
|
|
if (this.editQuery.disable){
|
|
|
|
|
this.$message.success("已禁用");
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.success("已取消禁用");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -850,11 +857,17 @@ export default {
|
|
|
|
|
onAddSubmit() {
|
|
|
|
|
this.checked = false;
|
|
|
|
|
this.relevanceEdit = {
|
|
|
|
|
id: this.editQuery.id,
|
|
|
|
|
diType: this.editQuery.diType,
|
|
|
|
|
versionNumber: this.editQuery.versionNumber,
|
|
|
|
|
zxxsbzbhsydysl: this.editQuery.zxxsbzbhsydysl,
|
|
|
|
|
uuid: this.editQuery.uuid,
|
|
|
|
|
isUseDy: this.editQuery.isUseDy,
|
|
|
|
|
thirdId: this.editQuery.thirdId,
|
|
|
|
|
manufactory: this.editQuery.manufactory
|
|
|
|
|
manufactory: this.editQuery.manufactory,
|
|
|
|
|
isDisable: this.editQuery.isDisable,
|
|
|
|
|
sptm: this.editQuery.sptm,
|
|
|
|
|
ybbm: this.editQuery.ybbm
|
|
|
|
|
};
|
|
|
|
|
if (this.isUseDyValue === true) {
|
|
|
|
|
this.relevanceEdit.isUseDy = 1;
|
|
|
|
|