申购单据产品查询修改,提交采购订单修改

pro
anthonywj 2 years ago
parent b7e1e1bcab
commit c3dc2e4b5f

@ -8,9 +8,9 @@ ENV = 'production'
#林纪裕cd
VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:5003/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:5003/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/'
# 测试服务器
# VUE_APP_BASE_API = 'http://192.168.0.66:9150/UDI_WMS_MC/'

@ -6,7 +6,7 @@
</div>
<el-form
class="card-box login-form"
autocomplete="on+
autocomplete="on"
:model="ruleForm"
:rules="rules"
ref="ruleForm"

@ -75,7 +75,8 @@
<el-divider style="margin: 15px"></el-divider>
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row
:row-class-name="tableRowClassName" @current-change="handleChange" @selection-change="handleSelectionChange" ref="multipleTable">
:row-class-name="tableRowClassName" @current-change="handleChange"
@selection-change="handleSelectionChange" ref="multipleTable">
<!--<el-table-column label width="45">-->
<!-- <template slot-scope="scope">-->
<!-- <el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>-->
@ -187,7 +188,7 @@ export default {
keys: [],
},
ids: [],
lists:[],
lists: [],
radioCheck: null,
dataList: [],
pageTotal: 1,
@ -199,12 +200,12 @@ export default {
thirdSysFk: null,
busTypes: [],
actDateRange: [],
tQuery : {
productId:"",
tQuery: {
productId: "",
productName: "",
count: "",
orderIdFk: "",
supId:"",
supId: "",
},
pickerOptions: {
shortcuts: [
@ -328,16 +329,16 @@ export default {
intentBack() {
this.closeDialog();
},
handleSelectionChange(val){
this.lists=[];
for (var i=0;i<val.length;i++){
this.tQuery={}
this.tQuery.productId= val[i].id;
this.tQuery.supId=val[i].customerId;
this.tQuery.productName=val[i].cpmctymc;
this.tQuery.count=1;
this.tQuery.orderIdFk=this.pId;
this.tQuery.zczbhhzbapzbh=val[i].zczbhhzbapzbh;
handleSelectionChange(val) {
this.lists = [];
for (var i = 0; i < val.length; i++) {
this.tQuery = {}
this.tQuery.productId = val[i].id;
this.tQuery.supId = val[i].customerId;
this.tQuery.productName = val[i].cpmctymc;
this.tQuery.count = 1;
this.tQuery.orderIdFk = this.pId;
this.tQuery.zczbhhzbapzbh = val[i].zczbhhzbapzbh;
this.lists.push(this.tQuery)
}
console.log(this.lists)
@ -348,15 +349,15 @@ export default {
this.$message.error('未选择产品');
return;
}
if (this.ids.length > 0) {
for (var i = 0; i < this.ids.length; i++) {
if (this.ids[i] == this.multipleSelection.id) {
this.$message.error("该产品已录入!");
return
}
}
}
debugger
// if (this.ids.length > 0) {
// for (var i = 0; i < this.ids.length; i++) {
// if (this.ids[i] == this.multipleSelection.id) {
// this.$message.error("");
// return
// }
// }
// }
// let str = this.multipleSelection.zczbhhzbapzbh;

@ -351,6 +351,9 @@ export default {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0');
}
if (this.$isBlank(this.codeArray[i].supName)) {
return this.$message.error('请选择产品对应供应商');
}
}
}
if (status == "1") {
@ -439,7 +442,7 @@ export default {
rowChange(val) {
this.currentRow = val;
this.selectedIndex = val.index;
filterSupList({productId:val.productId}) //
filterSupList({productId: val.productId}) //
.then((response) => {
this.suppliers = response.data || [];
})

Loading…
Cancel
Save