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

pro
anthonywj 2 years ago
parent b7e1e1bcab
commit c3dc2e4b5f

@ -8,9 +8,9 @@ ENV = 'production'
#林纪裕cd #林纪裕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/' # VUE_APP_BASE_API = 'http://192.168.0.66:9150/UDI_WMS_MC/'

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

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

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

Loading…
Cancel
Save