Commit d83f5fc3 by 前端

BUG修复

1 parent be273a57
......@@ -9,6 +9,7 @@
ref="editAllocationFormRef"
:rules="formRules"
class="demo-form-inline">
<el-form-item>调出方</el-form-item>
<el-form-item label="调出仓库:"
prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId"
......@@ -30,6 +31,7 @@
</el-select>
</el-form-item>
<br />
<el-form-item>调入方</el-form-item>
<el-form-item label="调入仓库:"
prop="callInYqMerchantId">
<el-select v-model="editAllocationForm.callInYqMerchantId"
......@@ -146,7 +148,8 @@ export default {
isClear: true
}
],
getListApi: this.$apis.stockManage.stockRemainPage,
// getListApi: this.$apis.stockManage.stockRemainPage,
getListApi: null,
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
......@@ -324,6 +327,7 @@ export default {
watch: {
'editAllocationForm.callOutYqMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutYqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.callOutYqMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable()
} else {
......@@ -336,6 +340,7 @@ export default {
'editAllocationForm.callOutMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.callOutMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable()
} else {
......@@ -384,6 +389,7 @@ export default {
})
},
handleSearch() {
this.getListApi = this.$apis.stockManage.stockRemainPage
this.$refs.allocationTable.refreshTable()
},
// 获取仓库门店
......@@ -411,7 +417,6 @@ export default {
if (this.callInMerchantList && this.callInMerchantList.length == 1) {
this.editAllocationForm.callInMerchantId = this.callOutMerchantList[0].merchantId
}
console.log(this.callInMerchantList);
}
})
......
......@@ -314,8 +314,15 @@ export default {
callOutMerchantId: '',
callInMerchantId: ''
}
this.showFormData[this.findFormIdx('callOutMerchantId')].optionList = []
this.showFormData[this.findFormIdx('callInMerchantId')].optionList = []
this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
},
handleEnlargeImg(url) {
if (url) {
this.previewImgUrl = url
......
......@@ -129,7 +129,9 @@ export default {
},
searchFormSearch: {},
searchSelectObj: {},
getListApi: this.$apis.stockManage.stockRemainPage,
// getListApi: this.$apis.stockManage.stockRemainPage,
getListApi: null,
tableData: [],
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
......@@ -282,6 +284,7 @@ export default {
watch: {
'editCheckForm.yqMerchantId'(val, oldval) {
console.log(val, oldval, "监听yqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.yqMerchantIdList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.recordTable.refreshTable()
} else {
......@@ -294,6 +297,7 @@ export default {
'editCheckForm.merchantId'(val, oldval2) {
console.log(val, oldval2, "监听merchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.merchantList.length == 1) {
this.$refs.recordTable.refreshTable()
} else {
......@@ -316,6 +320,7 @@ export default {
},
methods: {
changeYqMerchant(merchantId) {
// this.switchData(merchantId, 'yqMerchant')
},
......@@ -393,6 +398,7 @@ export default {
},
handleSearch() {
this.getListApi = this.$apis.stockManage.stockRemainPage
this.$refs.recordTable.refreshTable()
},
......
......@@ -117,6 +117,7 @@ export default {
label: '盘点门店',
name: 'merchantId',
type: 'select',
noDataText: '请先选择盘点仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
......@@ -270,8 +271,14 @@ export default {
yqMerchantId: '',
merchantId: ''
}
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
},
handleEnlargeImg(url) {
if (url) {
this.previewImgUrl = url
......
......@@ -104,6 +104,7 @@ export default {
label: '所属门店',
name: 'merchantId',
type: 'select',
noDataText: '请先选择所属仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
......@@ -263,7 +264,12 @@ export default {
productCode: ''
}
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
}
}
}
......
......@@ -104,6 +104,7 @@ export default {
label: '出库门店',
name: 'merchantId',
type: 'select',
noDataText: '请先选择出库仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
......@@ -341,7 +342,12 @@ export default {
goodsSeries: '',
productCode: ''
}
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
}
}
}
......
......@@ -133,6 +133,7 @@ export default {
label: '入库门店',
name: 'merchantId',
type: 'select',
noDataText: '请先选择入库仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
......@@ -382,7 +383,12 @@ export default {
productCode: '',
deliveryNumber: ''
}
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!