Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 b77d2f07
authored
Feb 28, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 修改提交逻辑
1 parent
0d52be43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
43 deletions
package.json
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
src/views/goods/shelfManage/components/editCon/ShopMerchantInfo.vue
src/views/goods/shelfManage/editContract.vue
yarn.lock
package.json
View file @
b77d2f0
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
"dayjs"
:
"^1.8.12"
,
"dayjs"
:
"^1.8.12"
,
"default-passive-events"
:
"^2.0.0"
,
"default-passive-events"
:
"^2.0.0"
,
"echarts"
:
"^5.3.2"
,
"echarts"
:
"^5.3.2"
,
"element-ui"
:
"
^2.13.1
"
,
"element-ui"
:
"
2.13.2
"
,
"eslint-plugin-standard"
:
"^5.0.0"
,
"eslint-plugin-standard"
:
"^5.0.0"
,
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
"flex.css"
:
"^1.1.7"
,
"flex.css"
:
"^1.1.7"
,
...
...
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
View file @
b77d2f0
...
@@ -784,27 +784,24 @@ export default {
...
@@ -784,27 +784,24 @@ export default {
const
flag
=
array
.
every
((
item
)
=>
item
)
const
flag
=
array
.
every
((
item
)
=>
item
)
return
obj
&&
flag
return
obj
&&
flag
},
},
async
handleWorking
(){
async
handleWorking
()
{
const
res
=
this
.
getParams
()
// const res = this.getParams()
const
goodsTypeGroupRules
=
await
this
.
getGoodsTypeGroupRules
(
this
.
editableTabs
)
this
.
submitParams
=
{
...
res
,
goodsTypeGroupRules
}
},
async
submit
()
{
// const res = await this.handlerConfirm()
// const goodsTypeGroupRules = await this.getGoodsTypeGroupRules(
// const goodsTypeGroupRules = await this.getGoodsTypeGroupRules(
// this.editableTabs
// this.editableTabs
// )
// )
// console.log(res, goodsTypeGroupRules, "goodsTypeGroupRules")
// 并行执行关键异步操作
// if (!this.checkParamsType(res, goodsTypeGroupRules)) {
const
[
res
,
goodsTypeGroupRules
]
=
await
Promise
.
all
([
// this.$message.warning("请完善分账规则")
this
.
getParams
(),
// return false
this
.
getGoodsTypeGroupRules
(
this
.
editableTabs
)
// }
])
this
.
submitParams
=
{
...
res
,
goodsTypeGroupRules
}
console
.
log
(
this
.
submitParams
,
"this.submitParams "
)
return
this
.
submitParams
},
async
submit
()
{
try
{
try
{
// 并行执行关键异步操作
// 并行执行关键异步操作
const
[
res
,
goodsTypeGroupRules
]
=
await
Promise
.
all
([
const
[
res
,
goodsTypeGroupRules
]
=
await
Promise
.
all
([
...
@@ -820,10 +817,8 @@ export default {
...
@@ -820,10 +817,8 @@ export default {
...
res
,
...
res
,
goodsTypeGroupRules
goodsTypeGroupRules
}
}
// console.log(this.submitParams, "this.submitParams ")
this
.
checkCalculateType
()
this
.
checkCalculateType
()
this
.
verificationCodeVisible
=
true
this
.
verificationCodeVisible
=
true
console
.
log
(
this
.
submitParams
,
"this.submitParams "
)
return
true
return
true
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
,
"submitError"
)
console
.
log
(
error
,
"submitError"
)
...
...
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
View file @
b77d2f0
...
@@ -751,7 +751,7 @@ export default {
...
@@ -751,7 +751,7 @@ export default {
this
.
smsCode
=
smsCode
this
.
smsCode
=
smsCode
this
.
submitFormData
()
this
.
submitFormData
()
},
},
handleWorking
(){
handleWorking
()
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
// 校验重置数据 防止重复push
// 校验重置数据 防止重复push
this
.
goodsTypeGroupRulesAll
=
[]
this
.
goodsTypeGroupRulesAll
=
[]
...
@@ -767,25 +767,24 @@ export default {
...
@@ -767,25 +767,24 @@ export default {
if
(
res
)
{
if
(
res
)
{
this
.
goodsTypeGroupRulesAll
.
push
(
res
)
this
.
goodsTypeGroupRulesAll
.
push
(
res
)
}
}
}
}
const
{
const
{
shopMerchantTotalFeeCalculateType
,
shopMerchantTotalFeeCalculateType
,
shopMerchantExpenseCategoryValue
,
shopMerchantExpenseCategoryValue
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantExpenseCategoryValue
partnerMerchantExpenseCategoryValue
}
=
this
.
formObj
}
=
this
.
formObj
const
params
=
{
const
params
=
{
// merchantId: this.merchantRow.merchantId,
// merchantId: this.merchantRow.merchantId,
// sceneType: this.merchantRow.scene,
// sceneType: this.merchantRow.scene,
goodsTypeGroupRules
:
this
.
goodsTypeGroupRulesAll
,
goodsTypeGroupRules
:
this
.
goodsTypeGroupRulesAll
,
shopMerchantTotalFeeCalculateType
,
shopMerchantTotalFeeCalculateType
,
shopMerchantExpenseCategoryValue
,
shopMerchantExpenseCategoryValue
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantExpenseCategoryValue
partnerMerchantExpenseCategoryValue
}
}
this
.
submitParams
=
params
this
.
submitParams
=
params
resolve
(
params
)
})
})
},
},
// 提交信息
// 提交信息
...
...
src/views/goods/shelfManage/components/editCon/ShopMerchantInfo.vue
View file @
b77d2f0
This diff is collapsed.
Click to expand it.
src/views/goods/shelfManage/editContract.vue
View file @
b77d2f0
...
@@ -105,10 +105,13 @@ export default {
...
@@ -105,10 +105,13 @@ export default {
},
},
async
handleConfirm
(
confirmType
)
{
async
handleConfirm
(
confirmType
)
{
let
settleDistributeRule
let
reconciliationRule
if
(
confirmType
==
"save"
)
{
if
(
confirmType
==
"save"
)
{
const
divisionSubmitResult
=
await
this
.
$refs
.
divisionConfig
.
submit
()
const
divisionSubmitResult
=
await
this
.
$refs
.
divisionConfig
.
submit
()
const
financeSubmitResult
=
await
this
.
$refs
.
financeConfig
.
submit
()
const
financeSubmitResult
=
await
this
.
$refs
.
financeConfig
.
submit
()
const
merchantSubmitResult
=
await
this
.
$refs
.
merchant
.
submit
()
const
merchantSubmitResult
=
await
this
.
$refs
.
shopMerchant
.
submit
()
// console.log(!merchantSubmitResult, "merchantSubmitResult")
if
(
if
(
!
merchantSubmitResult
||
!
merchantSubmitResult
||
!
divisionSubmitResult
||
!
divisionSubmitResult
||
...
@@ -119,17 +122,21 @@ export default {
...
@@ -119,17 +122,21 @@ export default {
}
}
}
else
{
}
else
{
// 存草稿
// 存草稿
this
.
$refs
.
divisionConfig
.
handleWorking
()
settleDistributeRule
=
await
this
.
$refs
.
divisionConfig
.
handleWorking
()
this
.
$refs
.
financeConfig
.
handleWorking
()
reconciliationRule
=
await
this
.
$refs
.
financeConfig
.
handleWorking
()
}
}
console
.
log
(
settleDistributeRule
,
"settleDistributeRule"
)
console
.
log
(
reconciliationRule
,
"reconciliationRule"
)
var
params
=
{
var
params
=
{
saveDraft
:
confirmType
==
"draft"
,
saveDraft
:
confirmType
==
"draft"
,
businessCode
:
this
.
routeObj
.
businessCode
,
businessCode
:
this
.
routeObj
.
businessCode
,
goods
:
this
.
$refs
.
goodsInfo
.
submitParamsGoods
(),
goods
:
this
.
$refs
.
goodsInfo
.
submitParamsGoods
(),
packages
:
this
.
$refs
.
goodsInfo
.
submitParamsPackages
(),
packages
:
this
.
$refs
.
goodsInfo
.
submitParamsPackages
(),
merchant
:
this
.
$refs
.
shopMerchant
.
editData
,
merchant
:
this
.
$refs
.
shopMerchant
.
editData
,
settleDistributeRule
:
this
.
$refs
.
divisionConfig
.
submitParams
,
settleDistributeRule
:
reconciliationRule
:
this
.
$refs
.
financeConfig
.
submitParams
settleDistributeRule
||
this
.
$refs
.
divisionConfig
.
submitParams
,
reconciliationRule
:
reconciliationRule
||
this
.
$refs
.
financeConfig
.
submitParams
}
}
console
.
log
(
params
,
"params----"
)
console
.
log
(
params
,
"params----"
)
operationConfirmJson
({
dataString
:
JSON
.
stringify
(
params
)
}).
then
(
operationConfirmJson
({
dataString
:
JSON
.
stringify
(
params
)
}).
then
(
...
...
yarn.lock
View file @
b77d2f0
This diff could not be displayed because it is too large.
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