单据验收,扫码问题

ywj_dev
anthonywj 2 years ago
parent 1f35c15c73
commit ec6f14ec84

@ -247,7 +247,7 @@ import codesPanel from "./PanelCreateOrderCodes"
import codeDetailPanel from "./PanelCreateOrderCodeDetail" import codeDetailPanel from "./PanelCreateOrderCodeDetail"
import bizDetailPanel from "./PanelCreateOrderBizDetail" import bizDetailPanel from "./PanelCreateOrderBizDetail"
import A from "../../plugins/KeyScaner" import A from "../../plugins/KeyScaner"
import { findByInvUser, getLocalJoinByUser } from '@/api/basic/busType' import {findByInvUser, getLocalJoinByUser} from '@/api/basic/busType'
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -289,6 +289,7 @@ export default {
// //
codeFormData: { codeFormData: {
orderId: null,
code: "", code: "",
batchNo: null, batchNo: null,
produceDate: null, produceDate: null,
@ -598,6 +599,7 @@ export default {
this.codeFormData.expireDate = response.data.expireDate; this.codeFormData.expireDate = response.data.expireDate;
this.codeFormData.batchNo = response.data.batchNo; this.codeFormData.batchNo = response.data.batchNo;
this.codeFormData.serialNo = response.data.serialNo; this.codeFormData.serialNo = response.data.serialNo;
this.codeFormData.orderId = this.orderFormData.billNo;
this.$message({ this.$message({
type: 'error', type: 'error',
message: "提交失败!" + this.editTitle, message: "提交失败!" + this.editTitle,

@ -106,18 +106,26 @@ export default {
methods: { methods: {
saveCode() { saveCode() {
saveCode(this.editData)
.then((response) => {
console.log(response) if (this.editTye == 1) {
if (response.code === 20000) { this.repeatAddCode(this.editData);
this.$message.success("提交成功"); } else {
this.codeDetail = this.editData; saveCode(this.editData)
this.closeCodeDialog(); .then((response) => {
} else { console.log(response)
this.$message.error(response.message); if (response.code === 20000) {
} this.$message.success("提交成功");
this.loading = false; this.codeDetail = this.editData;
}); this.closeCodeDialog();
} else {
this.$message.error(response.message);
}
this.loading = false;
});
}
} }
, ,
cancelDialog() { cancelDialog() {

@ -136,7 +136,7 @@
<el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1"> <el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">
{{ choiceFile }} {{ choiceFile }}
</el-button> </el-button>
<div>只能上传 jpg,png,pdf,doc 文件且不超过 3 MB</div> <div>只能上传 jpg,png,pdf,doc 文件且不超过 10 MB</div>
</el-upload> </el-upload>
<!-- <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"--> <!-- <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"-->
<!-- style="text-align:right"--> <!-- style="text-align:right"-->

@ -202,6 +202,9 @@ export default {
this.originCode = this.udiCode; this.originCode = this.udiCode;
} else if (response.code == 501) { } else if (response.code == 501) {
this.checkSuccess = false; this.checkSuccess = false;
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
this.originCode = "";
this.$message.error(response.message); this.$message.error(response.message);
} else if (response.code == 503) { } else if (response.code == 503) {
this.checkSuccess = false; this.checkSuccess = false;

@ -202,6 +202,9 @@ export default {
this.originCode = this.udiCode; this.originCode = this.udiCode;
} else if (response.code == 501) { } else if (response.code == 501) {
this.checkSuccess = false; this.checkSuccess = false;
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
this.originCode = "";
this.$message.error(response.message); this.$message.error(response.message);
} else if (response.code == 503) { } else if (response.code == 503) {
this.checkSuccess = false; this.checkSuccess = false;

@ -52,12 +52,12 @@
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- label="供应商"--> <!-- label="供应商"-->
<!-- prop="supName"--> <!-- prop="supName"-->
<!-- width="180"--> <!-- width="180"-->
<!-- show-overflow-tooltip--> <!-- show-overflow-tooltip-->
<!-- ></el-table-column>--> <!-- ></el-table-column>-->
<el-table-column label="操作" width="220" fixed="right"> <el-table-column label="操作" width="220" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">

@ -125,7 +125,7 @@
<el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1"> <el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">
{{ choiceFile }} {{ choiceFile }}
</el-button> </el-button>
<div>只能上传 jpg,png,pdf,doc 文件且不超过 3 MB</div> <div>只能上传 jpg,png,pdf,doc 文件且不超过 10 MB</div>
</el-upload> </el-upload>
<!-- <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"--> <!-- <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"-->
<!-- style="text-align:right"--> <!-- style="text-align:right"-->

@ -113,7 +113,7 @@
<el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1"> <el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">
{{ choiceFile }} {{ choiceFile }}
</el-button> </el-button>
<div>只能上传 jpg,png,pdf,doc 文件且不超过 3 MB</div> <div>只能上传 jpg,png,pdf,doc 文件且不超过 10 MB</div>
</el-upload> </el-upload>
<el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert" <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"
style="text-align:right" v-show="formData.id!=null" style="text-align:right" v-show="formData.id!=null"

@ -230,7 +230,7 @@
<el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件 <el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件
</el-button> </el-button>
<!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>--> <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>-->
<div slot="tip" class="el-upload__tip">只能上传 jasper 文件且不超过 2 MB</div> <div slot="tip" class="el-upload__tip">只能上传 jasper 文件且不超过 10 MB</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>

@ -133,7 +133,7 @@
<el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件 <el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件
</el-button> </el-button>
<!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>--> <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>-->
<div slot="tip" class="el-upload__tip" v-if="formData.path==''"> jasper 2 <div slot="tip" class="el-upload__tip" v-if="formData.path==''"> jasper 10
MB MB
</div> </div>
<div slot="tip" class="el-upload__tip">{{ formData.path }}</div> <div slot="tip" class="el-upload__tip">{{ formData.path }}</div>
@ -160,7 +160,7 @@
<el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件 <el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件
</el-button> </el-button>
<div slot="tip" class="el-upload__tip" v-if="formData.jrxmlPath==null"> jrxml <div slot="tip" class="el-upload__tip" v-if="formData.jrxmlPath==null"> jrxml
文件且不超过 2 MB 文件且不超过 10 MB
</div> </div>
<div slot="tip" class="el-upload__tip">{{ formData.jrxmlPath }}</div> <div slot="tip" class="el-upload__tip">{{ formData.jrxmlPath }}</div>
</el-upload> </el-upload>

Loading…
Cancel
Save