特殊单填写往来单位时多个产品传错往来单位id问题

dev
郑明梁 2 years ago
parent e8a74e7347
commit f7b4e0b28c

@ -102,6 +102,7 @@
placeholder="请选择单据类型" placeholder="请选择单据类型"
:disabled="corpOrderIdDisabled" :disabled="corpOrderIdDisabled"
style="width: 90%" style="width: 90%"
filterable
@change="actionChange" @change="actionChange"
> >
<el-option <el-option
@ -1070,6 +1071,7 @@ export default {
// //
addCodeSubmit(tQuery) { addCodeSubmit(tQuery) {
addOrderWeb(tQuery).then((response) => { addOrderWeb(tQuery).then((response) => {
debugger
if (response.code === 20000) { if (response.code === 20000) {
this.orderFormData.billNo = response.data.orderId; this.orderFormData.billNo = response.data.orderId;
if (response.data.errMsg != null) { if (response.data.errMsg != null) {
@ -1093,9 +1095,15 @@ export default {
this.refreshCodesPanel(); this.refreshCodesPanel();
this.$message.error(response.message); this.$message.error(response.message);
this.selectRlTitle = response.message; this.selectRlTitle = response.message;
//
if(tQuery.selectSupId!=null){
this.codeFormData.selectSupId=tQuery.selectSupId
}
this.selectRlVisible = true; this.selectRlVisible = true;
} else if (response.code == 503) { } else if (response.code == 503) {
// //
debugger
this.curRow = response.data; this.curRow = response.data;
this.orderFormData.billNo = this.curRow.orderId; this.orderFormData.billNo = this.curRow.orderId;
this.codeFormData.relId = this.curRow.relId; this.codeFormData.relId = this.curRow.relId;

@ -713,6 +713,8 @@ export default {
, ,
bindId(val) { bindId(val) {
if (this.curRow.code != null || this.type == 1) { if (this.curRow.code != null || this.type == 1) {
debugger
this.$emit("selectBindRl", val); this.$emit("selectBindRl", val);
} else { } else {
let query = { let query = {
@ -860,6 +862,10 @@ export default {
components: {} components: {}
, ,
created() { created() {
debugger
if(this.curRow.selectSupId!=null){
this.fromCorp=this.curRow.selectSupId
}
this.getList(); this.getList();
} }
, ,

Loading…
Cancel
Save