1.修复bug

master
x_z 3 years ago
parent 02034b6e62
commit fc8e572173

@ -217,7 +217,7 @@
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
type="selection" type="selection"
:reserve-selection="false" :reserve-selection="true"
width="55"> width="55">
</el-table-column> </el-table-column>
<el-table-column label="账号" prop="userName" fixed></el-table-column> <el-table-column label="账号" prop="userName" fixed></el-table-column>

@ -189,7 +189,6 @@ export default {
this.query.batchNo = this.idQuery.batchNo; this.query.batchNo = this.idQuery.batchNo;
this.query.supId = this.idQuery.supId; this.query.supId = this.idQuery.supId;
this.query.invStorageCode = this.idQuery.invStorageCode; this.query.invStorageCode = this.idQuery.invStorageCode;
this.query.invCodes = [this.idQuery.invCodes];
filterDetailProducts(this.query) // filterDetailProducts(this.query) //
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -199,7 +199,6 @@
> >
<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>-->
<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 2
MB MB
</div> </div>
@ -613,24 +612,7 @@ export default {
}, },
submitUpload() { submitUpload() {
if (this.$refs.uploadJasper.uploadFiles.length < 1 && !this.uploadDisabled) {
this.$message.warning(`请选择jasper文件`);
}
if (this.$refs.uploadJrxml.uploadFiles.length < 1 && !this.uploadDisabled) {
this.$message.warning(`请选择jasper文件`);
}
this.$refs["dataForm"].validate(valid => {
if (valid) {
this.submitTemplate(); this.submitTemplate();
// if (!this.uploadDisabled) {
// this.$refs.uploadJasper.submit();
// this.$refs.uploadJrxml.submit();
// } else {
// this.submitTemplate();
// }
}
});
}, },
uploadHandleExceed(files, fileList) { uploadHandleExceed(files, fileList) {
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);

@ -415,7 +415,7 @@
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let params = { let params = {
id: row.orderId orderId: row.orderId
}; };
deleteByOrderId(params).then((res) => { deleteByOrderId(params).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {

@ -938,6 +938,8 @@ export default {
updateReceiveStatus(params).then((res) => { updateReceiveStatus(params).then((res) => {
this.$message.success("验收成功"); this.$message.success("验收成功");
this.getList(); this.getList();
//
this.detailList = [];
}).error((error) => { }).error((error) => {
this.$message.error("验收失败"); this.$message.error("验收失败");
}) })

Loading…
Cancel
Save