发票机器编码非必填

ywj_dev
anthonywj 2 years ago
parent d8bb844c13
commit 21c2a7e8d5

@ -24,7 +24,7 @@
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="机械编码:" prop="machineNo"> <el-form-item label="机器编码:" prop="machineNo">
<el-input v-model="inputQuery.machineNo" auto-complete="off"></el-input> <el-input v-model="inputQuery.machineNo" auto-complete="off"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -109,7 +109,8 @@
文件预览 文件预览
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer"
:url-list="imgList"/>
</el-col> </el-col>
@ -160,9 +161,9 @@ export default {
licenseUrl: "" licenseUrl: ""
}, },
formRules: { formRules: {
machineNo: [ // machineNo: [
{required: true, message: "请输入机械编码", trigger: "blur"} // {required: true, message: "", trigger: "blur"}
], // ],
invoiceCode: [ invoiceCode: [
{required: true, message: "请输入发票代码", trigger: "blur"} {required: true, message: "请输入发票代码", trigger: "blur"}
], ],
@ -191,10 +192,10 @@ export default {
submitUpload() { submitUpload() {
this.$refs["dataForm"].validate(valid => { this.$refs["dataForm"].validate(valid => {
if (valid) { if (valid) {
if (this.$isBlank(this.inputQuery.machineNo)) { // if (this.$isBlank(this.inputQuery.machineNo)) {
this.$message.error("机械编码不能为空!"); // this.$message.error("");
return; // return;
} // }
if (this.$isBlank(this.inputQuery.invoiceCode)) { if (this.$isBlank(this.inputQuery.invoiceCode)) {
this.$message.error("发票代码不能为空!"); this.$message.error("发票代码不能为空!");
return; return;
@ -324,14 +325,18 @@ export default {
console.log(this.imgList) console.log(this.imgList)
this.imgViewerVisible = true; this.imgViewerVisible = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },

@ -31,7 +31,7 @@
<!--</el-row>--> <!--</el-row>-->
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="机编码:" prop="machineNo"> <el-form-item label="机编码:" prop="machineNo">
<el-input <el-input
v-model="inputQuery.machineNo" v-model="inputQuery.machineNo"
auto-complete="off" auto-complete="off"
@ -338,9 +338,9 @@ export default {
1: "发票登记", 1: "发票登记",
}, },
formRules: { formRules: {
machineNo: [ // machineNo: [
{ required: true, message: "请输入机械编码", trigger: "blur" }, // { required: true, message: "", trigger: "blur" },
], // ],
invoiceCode: [ invoiceCode: [
{ required: true, message: "请输入发票代码", trigger: "blur" }, { required: true, message: "请输入发票代码", trigger: "blur" },
], ],
@ -476,10 +476,10 @@ export default {
this.$message.error("请选择要登记的物资! "); this.$message.error("请选择要登记的物资! ");
return false; return false;
} }
if (this.$isBlank(this.inputQuery.machineNo)) { // if (this.$isBlank(this.inputQuery.machineNo)) {
this.$message.error("机械编码不能为空!"); // this.$message.error("");
return; // return;
} // }
if (this.$isBlank(this.inputQuery.invoiceCode)) { if (this.$isBlank(this.inputQuery.invoiceCode)) {
this.$message.error("发票代码不能为空!"); this.$message.error("发票代码不能为空!");
return; return;

@ -245,13 +245,15 @@
type="text" type="text"
size="small" size="small"
@click.native="addCert(scope.row)" @click.native="addCert(scope.row)"
>编辑</el-button >编辑
</el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native="showImgViewer(scope.row)" @click.native="showImgViewer(scope.row)"
>预览</el-button >预览
</el-button
> >
<el-button <el-button
type="text" type="text"
@ -262,14 +264,16 @@
scope.row.auditStatus == 6 scope.row.auditStatus == 6
" "
@click.native="deleteCompanyCert(scope.row)" @click.native="deleteCompanyCert(scope.row)"
>删除</el-button >删除
</el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-if="scope.row.auditStatus == 2" v-if="scope.row.auditStatus == 2"
@click.native="explainCompanyCert(scope.row)" @click.native="explainCompanyCert(scope.row)"
>说明</el-button >说明
</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
@ -535,7 +539,8 @@ export default {
this.getCompanyCertList(); this.getCompanyCertList();
this.selectedOptions = this.inputQuery.areaCode.split(","); this.selectedOptions = this.inputQuery.areaCode.split(",");
}) })
.catch(() => {}); .catch(() => {
});
}, },
onModifySubmit(val) { onModifySubmit(val) {
@ -565,7 +570,8 @@ export default {
} }
}); });
}) })
.catch(() => {}); .catch(() => {
});
} else { } else {
return false; return false;
} }
@ -602,7 +608,8 @@ export default {
} }
}); });
}) })
.catch(() => {}); .catch(() => {
});
} else { } else {
return false; return false;
} }
@ -610,7 +617,8 @@ export default {
} }
}, },
onAuditSubmit() {}, onAuditSubmit() {
},
disableCert(row, status) { disableCert(row, status) {
row.status = status; row.status = status;
@ -720,7 +728,8 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
type: "warning", type: "warning",
showCancelButton: false, showCancelButton: false,
}).then(() => {}); }).then(() => {
});
}, },
deleteCompanyCert(row) { deleteCompanyCert(row) {
this.$confirm("是否删除?", "提示", { this.$confirm("是否删除?", "提示", {
@ -751,7 +760,8 @@ export default {
this.certLoading = false; this.certLoading = false;
}); });
}) })
.catch(() => {}); .catch(() => {
});
}, },
}, },
filters: { filters: {

Loading…
Cancel
Save