发票机器编码非必填

ywj_dev
anthonywj 2 years ago
parent d8bb844c13
commit 21c2a7e8d5

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

@ -31,7 +31,7 @@
<!--</el-row>-->
<el-row>
<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"
@ -338,9 +338,9 @@ export default {
1: "发票登记",
},
formRules: {
machineNo: [
{ required: true, message: "请输入机械编码", trigger: "blur" },
],
// machineNo: [
// { required: true, message: "", trigger: "blur" },
// ],
invoiceCode: [
{ required: true, message: "请输入发票代码", trigger: "blur" },
],
@ -476,10 +476,10 @@ export default {
this.$message.error("请选择要登记的物资! ");
return false;
}
if (this.$isBlank(this.inputQuery.machineNo)) {
this.$message.error("机械编码不能为空!");
return;
}
// if (this.$isBlank(this.inputQuery.machineNo)) {
// this.$message.error("");
// return;
// }
if (this.$isBlank(this.inputQuery.invoiceCode)) {
this.$message.error("发票代码不能为空!");
return;

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

Loading…
Cancel
Save