Commit 565199e5 by 前端

创建盘点和调拨交互修改

1 parent a803658f
...@@ -327,9 +327,9 @@ export default { ...@@ -327,9 +327,9 @@ export default {
watch: { watch: {
'editAllocationForm.callOutYqMerchantId'(val, oldval) { 'editAllocationForm.callOutYqMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutYqMerchantId"); console.log(val, oldval, "监听callOutYqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage // this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.callOutYqMerchantList.length == 1) {//当只有一个选项时不弹提示框 if (this.callOutYqMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable() // this.$refs.allocationTable.refreshTable()
} else { } else {
if (val != this.oldyqMerchantId) {//与之前的选项不一样 if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editAllocationForm.callOutMerchantId = '' this.editAllocationForm.callOutMerchantId = ''
...@@ -432,9 +432,10 @@ export default { ...@@ -432,9 +432,10 @@ export default {
.then(() => { .then(() => {
if (type == 'yqMerchant') { if (type == 'yqMerchant') {
this.getServicemerchantrefList(val, 'out') this.getServicemerchantrefList(val, 'out')
} else {//选择门店以后才更新盘存数据
this.$refs.allocationTable.refreshTable()
} }
//更新调拨数据以及清空调拨确认单数据 //清空调拨确认单数据
this.$refs.allocationTable.refreshTable()
this.chooseDataList = [] this.chooseDataList = []
}) })
.catch(err => { .catch(err => {
...@@ -450,9 +451,9 @@ export default { ...@@ -450,9 +451,9 @@ export default {
} else { } else {
if (type == 'yqMerchant') { if (type == 'yqMerchant') {
this.getServicemerchantrefList(val, 'out') this.getServicemerchantrefList(val, 'out')
} else {//选择门店以后才更新盘存数据
this.$refs.allocationTable.refreshTable()
} }
//更新调拨数据
this.$refs.allocationTable.refreshTable()
} }
}, },
......
...@@ -284,9 +284,9 @@ export default { ...@@ -284,9 +284,9 @@ export default {
watch: { watch: {
'editCheckForm.yqMerchantId'(val, oldval) { 'editCheckForm.yqMerchantId'(val, oldval) {
console.log(val, oldval, "监听yqMerchantId"); console.log(val, oldval, "监听yqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage // this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.yqMerchantIdList.length == 1) {//当只有一个选项时不弹提示框 if (this.yqMerchantIdList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.recordTable.refreshTable() // this.$refs.recordTable.refreshTable()
} else { } else {
if (val != this.oldyqMerchantId) {//与之前的选项不一样 if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editCheckForm.merchantId = '' this.editCheckForm.merchantId = ''
...@@ -356,9 +356,10 @@ export default { ...@@ -356,9 +356,10 @@ export default {
.then(() => { .then(() => {
if (type == 'yqMerchant') { if (type == 'yqMerchant') {
this.getServicemerchantrefList(val) this.getServicemerchantrefList(val)
} else {//选择门店以后才更新盘存数据
this.$refs.recordTable.refreshTable()
} }
//更新盘存数据以及清空盘存确认单数据 //清空盘存确认单数据
this.$refs.recordTable.refreshTable()
this.chooseDataList = [] this.chooseDataList = []
}) })
.catch(err => { .catch(err => {
...@@ -374,9 +375,9 @@ export default { ...@@ -374,9 +375,9 @@ export default {
} else { } else {
if (type == 'yqMerchant') { if (type == 'yqMerchant') {
this.getServicemerchantrefList(val) this.getServicemerchantrefList(val)
} else {//选择门店以后才更新盘存数据
this.$refs.recordTable.refreshTable()
} }
//更新盘存数据
this.$refs.recordTable.refreshTable()
} }
}, },
...@@ -406,8 +407,17 @@ export default { ...@@ -406,8 +407,17 @@ export default {
}, },
handleSearch() { handleSearch() {
this.getListApi = this.$apis.stockManage.stockRemainPage console.log(this.searchFormSearch);
this.$refs.recordTable.refreshTable()
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!