|
|
|
@ -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);
|
|
|
|
|
},
|
|
|
|
|