单据验收,扫码问题

ywj_dev
anthonywj 2 years ago
parent 1f35c15c73
commit ec6f14ec84

@ -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,6 +106,11 @@ export default {
methods: { methods: {
saveCode() { saveCode() {
if (this.editTye == 1) {
this.repeatAddCode(this.editData);
} else {
saveCode(this.editData) saveCode(this.editData)
.then((response) => { .then((response) => {
console.log(response) console.log(response)
@ -119,6 +124,9 @@ export default {
this.loading = false; this.loading = false;
}); });
} }
}
, ,
cancelDialog() { cancelDialog() {
this.closeCodeDialog(); this.closeCodeDialog();

@ -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;

@ -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