修改bug

ywj_dev
wangwei 2 years ago
parent 5d9a93569d
commit 37c5c04345

@ -267,6 +267,7 @@ export default {
1: "预入库", 1: "预入库",
2: "普通采购", 2: "普通采购",
}, },
acount:null,
orderEditor: true, orderEditor: true,
sOptions: [], sOptions: [],
sValue: [], sValue: [],
@ -297,6 +298,7 @@ export default {
this.tableCountChange(this.currentRow); this.tableCountChange(this.currentRow);
this.$refs["dataForm"].validate(valid => { this.$refs["dataForm"].validate(valid => {
if (valid) { if (valid) {
if (this.codeArray.length < 1) { if (this.codeArray.length < 1) {
@ -304,7 +306,9 @@ export default {
return; return;
} }
if (status === '2') { if (status === '2') {
if (this.acount == "" || this.acount == null) {
return this.$message.error("到货数量不能为空!");
}
if (this.formData.billDate == "" || this.formData.billDate == null) { if (this.formData.billDate == "" || this.formData.billDate == null) {
return this.$message.error("单据日期不能为空!"); return this.$message.error("单据日期不能为空!");
} }
@ -318,6 +322,9 @@ export default {
} }
} }
if (status == "1") { if (status == "1") {
if (this.formData.invCode== "" || this.formData.invCode == null) {
return this.$message.error("到货仓库不能为空!");
}
this.submitFunction(status); this.submitFunction(status);
} else { } else {
let tip = "是否确定提交订单?"; let tip = "是否确定提交订单?";
@ -428,6 +435,7 @@ export default {
tableCountChange(row) { tableCountChange(row) {
if (this.$isNotBlank(row)) { if (this.$isNotBlank(row)) {
updateDetail(this.currentRow); updateDetail(this.currentRow);
this.acount=row.arrivalCount;
} }
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {

@ -275,7 +275,7 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.listQuery.customerId =this.customerId; //this.listQuery.customerId =this.customerId;
filterCompanyProductRelevance(this.listQuery) filterCompanyProductRelevance(this.listQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -193,7 +193,7 @@ export default {
productName: this.multipleSelection.cpmctymc, productName: this.multipleSelection.cpmctymc,
count: 1, count: 1,
orderIdFk: this.pId, orderIdFk: this.pId,
supId: this.multipleSelection.customerId, supId: this.customerId,
zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh
}; };
addOrderDetail(tQuery).then((response) => { addOrderDetail(tQuery).then((response) => {

@ -148,7 +148,7 @@
:purType="1" :purType="1"
:pId="pId" :pId="pId"
:data="thisData" :data="thisData"
:customer-id="formData.supId" :customerId="formData.supId"
:inv-code="formData.invCode" :inv-code="formData.invCode"
></purOrderProducts> ></purOrderProducts>
</el-dialog> </el-dialog>

Loading…
Cancel
Save