条码编辑根据国家库设定禁用输入序列号

fencang
anthonywj 3 years ago
parent ae500bc78d
commit 70de45c4f8

@ -64,7 +64,7 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="serialNo"> <el-form-item prop="serialNo">
<el-input v-model="editData.serialNo" auto-complete="off"></el-input> <el-input v-model="editData.serialNo" auto-complete="off" :disabled="xlhEnable"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -125,6 +125,13 @@ export default {
}, },
editData: null editData: null
}, },
data() {
return {
xlhEnable: false,
};
},
methods: { methods: {
saveCode() { saveCode() {
if (this.editTye == 1) { if (this.editTye == 1) {
@ -144,26 +151,33 @@ export default {
}); });
} }
}, }
,
cancelDialog() { cancelDialog() {
this.closeCodeDialog(); this.closeCodeDialog();
}, }
,
findByCode() { findByCode() {
let query = {udiCode: this.editData.code}; let query = {udiCode: this.editData.code};
findByCode(query) findByCode(query)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
if (response.data.scbssfbhxlh == "否") {
this.xlhEnable = true;
}
} else { } else {
} }
this.loading = false; this.loading = false;
}); });
} }
}, }
,
created() { created() {
this.editData = JSON.parse(JSON.stringify(this.codeDetail)); this.editData = JSON.parse(JSON.stringify(this.codeDetail));
}, this.findByCode();
}
} }
</script> </script>

Loading…
Cancel
Save