Commit 565199e5 by 前端

创建盘点和调拨交互修改

1 parent a803658f
......@@ -327,9 +327,9 @@ export default {
watch: {
'editAllocationForm.callOutYqMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutYqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
// this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.callOutYqMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable()
// this.$refs.allocationTable.refreshTable()
} else {
if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editAllocationForm.callOutMerchantId = ''
......@@ -432,9 +432,10 @@ export default {
.then(() => {
if (type == 'yqMerchant') {
this.getServicemerchantrefList(val, 'out')
} else {//选择门店以后才更新盘存数据
this.$refs.allocationTable.refreshTable()
}
//更新调拨数据以及清空调拨确认单数据
this.$refs.allocationTable.refreshTable()
//清空调拨确认单数据
this.chooseDataList = []
})
.catch(err => {
......@@ -450,9 +451,9 @@ export default {
} else {
if (type == 'yqMerchant') {
this.getServicemerchantrefList(val, 'out')
} else {//选择门店以后才更新盘存数据
this.$refs.allocationTable.refreshTable()
}
//更新调拨数据
this.$refs.allocationTable.refreshTable()
}
},
......
......@@ -284,9 +284,9 @@ export default {
watch: {
'editCheckForm.yqMerchantId'(val, oldval) {
console.log(val, oldval, "监听yqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
// this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.yqMerchantIdList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.recordTable.refreshTable()
// this.$refs.recordTable.refreshTable()
} else {
if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editCheckForm.merchantId = ''
......@@ -356,9 +356,10 @@ export default {
.then(() => {
if (type == 'yqMerchant') {
this.getServicemerchantrefList(val)
} else {//选择门店以后才更新盘存数据
this.$refs.recordTable.refreshTable()
}
//更新盘存数据以及清空盘存确认单数据
this.$refs.recordTable.refreshTable()
//清空盘存确认单数据
this.chooseDataList = []
})
.catch(err => {
......@@ -374,9 +375,9 @@ export default {
} else {
if (type == 'yqMerchant') {
this.getServicemerchantrefList(val)
} else {//选择门店以后才更新盘存数据
this.$refs.recordTable.refreshTable()
}
//更新盘存数据
this.$refs.recordTable.refreshTable()
}
},
......@@ -406,8 +407,17 @@ export default {
},
handleSearch() {
this.getListApi = this.$apis.stockManage.stockRemainPage
this.$refs.recordTable.refreshTable()
console.log(this.searchFormSearch);
if (this.searchFormSearch.yqMerchantId && this.searchFormSearch.merchantId) {
this.getListApi = this.$apis.stockManage.stockRemainPage
this.$refs.recordTable.refreshTable()
} else {
this.$message({
type: 'error',
message: "请选择仓库和门店再查询数据"
})
}
},
// 盘点
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!