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 85b75463
authored
May 18, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
创建盘点和调拨时修改提示弹窗逻辑
1 parent
11a86e2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
45 deletions
src/views/allocation/add.vue
src/views/check/add.vue
src/views/allocation/add.vue
View file @
85b7546
...
@@ -423,29 +423,37 @@ export default {
...
@@ -423,29 +423,37 @@ export default {
},
},
switchData
(
val
,
oldval
,
type
)
{
switchData
(
val
,
oldval
,
type
)
{
this
.
$confirm
(
'切换调出仓库和调出门店,自动重置已调拨内容;是否确定切换?'
,
'提示'
,
{
if
(
this
.
chooseDataList
&&
this
.
chooseDataList
.
length
>
0
)
{
//当盘存确认单有数据时提示
confirmButtonText
:
'确定'
,
this
.
$confirm
(
'切换调出仓库和调出门店,自动重置已调拨内容;是否确定切换?'
,
'提示'
,
{
cancelButtonText
:
'取消'
,
confirmButtonText
:
'确定'
,
type
:
'warning'
cancelButtonText
:
'取消'
,
})
type
:
'warning'
.
then
(()
=>
{
if
(
type
==
'yqMerchant'
)
{
this
.
getServicemerchantrefList
(
val
,
'out'
)
}
//更新调拨数据以及清空调拨确认单数据
this
.
$refs
.
allocationTable
.
refreshTable
()
this
.
chooseDataList
=
[]
})
.
catch
(
err
=>
{
console
.
log
(
err
)
if
(
type
==
'yqMerchant'
)
{
//调出仓库
this
.
editAllocationForm
.
callOutYqMerchantId
=
oldval
this
.
oldyqMerchantId
=
oldval
}
else
if
(
type
==
'merchant'
)
{
//调出门店
this
.
editAllocationForm
.
callOutMerchantId
=
oldval
this
.
oldMerchantId
=
oldval
}
})
})
.
then
(()
=>
{
if
(
type
==
'yqMerchant'
)
{
this
.
getServicemerchantrefList
(
val
,
'out'
)
}
//更新调拨数据以及清空调拨确认单数据
this
.
$refs
.
allocationTable
.
refreshTable
()
this
.
chooseDataList
=
[]
})
.
catch
(
err
=>
{
console
.
log
(
err
)
if
(
type
==
'yqMerchant'
)
{
//调出仓库
this
.
editAllocationForm
.
callOutYqMerchantId
=
oldval
this
.
oldyqMerchantId
=
oldval
}
else
if
(
type
==
'merchant'
)
{
//调出门店
this
.
editAllocationForm
.
callOutMerchantId
=
oldval
this
.
oldMerchantId
=
oldval
}
})
}
else
{
if
(
type
==
'yqMerchant'
)
{
this
.
getServicemerchantrefList
(
val
,
'out'
)
}
//更新调拨数据
this
.
$refs
.
allocationTable
.
refreshTable
()
}
},
},
changeCallInYqMerchant
(
merchantId
)
{
changeCallInYqMerchant
(
merchantId
)
{
...
@@ -492,7 +500,6 @@ export default {
...
@@ -492,7 +500,6 @@ export default {
},
},
handleAddConfirm
(
data
)
{
handleAddConfirm
(
data
)
{
this
.
$refs
.
editAllocationFormRef
.
validate
(
valid
=>
{
this
.
$refs
.
editAllocationFormRef
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
chooseDataList
.
length
==
0
)
{
if
(
this
.
chooseDataList
.
length
==
0
)
{
...
...
src/views/check/add.vue
View file @
85b7546
...
@@ -347,29 +347,37 @@ export default {
...
@@ -347,29 +347,37 @@ export default {
},
},
switchData
(
val
,
oldval
,
type
)
{
switchData
(
val
,
oldval
,
type
)
{
this
.
$confirm
(
'切换盘点仓库和盘点门店,自动重置已盘点内容;是否确定切换?'
,
'提示'
,
{
if
(
this
.
chooseDataList
&&
this
.
chooseDataList
.
length
>
0
)
{
//当盘存确认单有数据时提示
confirmButtonText
:
'确定'
,
this
.
$confirm
(
'切换盘点仓库和盘点门店,自动重置已盘点内容;是否确定切换?'
,
'提示'
,
{
cancelButtonText
:
'取消'
,
confirmButtonText
:
'确定'
,
type
:
'warning'
cancelButtonText
:
'取消'
,
})
type
:
'warning'
.
then
(()
=>
{
if
(
type
==
'yqMerchant'
)
{
this
.
getServicemerchantrefList
(
val
)
}
//更新盘存数据以及清空盘存确认单数据
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
chooseDataList
=
[]
})
.
catch
(
err
=>
{
console
.
log
(
err
)
if
(
type
==
'yqMerchant'
)
{
this
.
editCheckForm
.
yqMerchantId
=
oldval
this
.
oldyqMerchantId
=
oldval
}
else
if
(
type
==
'merchant'
)
{
this
.
editCheckForm
.
merchantId
=
oldval
this
.
oldMerchantId
=
oldval
}
})
})
.
then
(()
=>
{
if
(
type
==
'yqMerchant'
)
{
this
.
getServicemerchantrefList
(
val
)
}
//更新盘存数据以及清空盘存确认单数据
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
chooseDataList
=
[]
})
.
catch
(
err
=>
{
console
.
log
(
err
)
if
(
type
==
'yqMerchant'
)
{
this
.
editCheckForm
.
yqMerchantId
=
oldval
this
.
oldyqMerchantId
=
oldval
}
else
if
(
type
==
'merchant'
)
{
this
.
editCheckForm
.
merchantId
=
oldval
this
.
oldMerchantId
=
oldval
}
})
}
else
{
if
(
type
==
'yqMerchant'
)
{
this
.
getServicemerchantrefList
(
val
)
}
//更新盘存数据
this
.
$refs
.
recordTable
.
refreshTable
()
}
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
...
...
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