三期补齐修改

dev
郑明梁 2 years ago
parent f1a8cede4c
commit b0ed79f417

@ -18,7 +18,7 @@
<el-input v-model="editData.produceDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)"
type="number"
:disabled="editType!=1 || editData.produceDate!=null"></el-input>
:disabled="editType!=1 || !isProduceDate"></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
@ -26,19 +26,19 @@
<el-input v-model="editData.expireDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)"
type="number"
:disabled="editType!=1 || editData.expireDate!=null"></el-input>
:disabled="editType!=1 || !isExpireDate"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="11">
<el-form-item prop="batchNo" label="批次号">
<el-input v-model="editData.batchNo" auto-complete="off" :disabled="editType!=1 || editData.batchNo!=null"></el-input>
<el-input v-model="editData.batchNo" auto-complete="off" :disabled="editType!=1 || !isBatchNo"></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="serialNo" label="序列号">
<el-input v-model="editData.serialNo" auto-complete="off" :disabled="editType!=1 || editData.serialNo!=null"></el-input>
<el-input v-model="editData.serialNo" auto-complete="off" :disabled="editType!=1 || !isSerialNo"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -75,6 +75,7 @@ import {
findByCode,
saveCode, tabCode
} from "@/api/inout/code";
import {isBlank} from "@/utils/strUtil";
export default {
name: "editCode",
@ -101,7 +102,11 @@ export default {
data() {
return {
xlhEnable: false,
isUseDyCheck: false
isUseDyCheck: false,
isProduceDate: false,
isExpireDate: false,
isBatchNo: false,
isSerialNo: false,
};
},
@ -165,6 +170,19 @@ export default {
this.editData = JSON.parse(JSON.stringify(this.codeDetail));
this.findByCode();
//
if(isBlank(this.editData.produceDate)){
this.isProduceDate=true
}
if(isBlank(this.editData.expireDate)){
this.isExpireDate=true
}
if(isBlank(this.editData.batchNo)){
this.isBatchNo=true
}
if(isBlank(this.editData.serialNo)){
this.isSerialNo=true
}
}
}
</script>

Loading…
Cancel
Save