Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-inventory
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 565199e5
authored
May 18, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
创建盘点和调拨交互修改
1 parent
a803658f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
14 deletions
src/views/allocation/add.vue
src/views/check/add.vue
src/views/allocation/add.vue
View file @
565199e
...
@@ -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
()
}
}
},
},
...
...
src/views/check/add.vue
View file @
565199e
...
@@ -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
:
"请选择仓库和门店再查询数据"
})
}
},
},
// 盘点
// 盘点
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment