Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 36d471f3
authored
Nov 25, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
7bb8b861
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/views/beforeSale/editEquity.vue
View file @
36d471f
...
...
@@ -38,7 +38,7 @@
<el-radio-group
class=
"package-code-box"
v-model=
"editForm[scope.scope.name]"
:disabled=
"scope.scope.isDisabled"
@
change=
"scope.scope.handleRadioChange"
>
<el-radio
class=
"package-code"
v-for=
"subItem in scope.scope.optionList"
:key=
"subItem[scope.scope.optionId]"
:label=
"subItem[scope.scope.optionId]"
>
<span
class=
"package-title"
>
{{
subItem
[
scope
.
scope
.
optionLabel
]
}}
</span>
<div
class=
"radio-add-block"
>
<div
class=
"radio-add-block"
@
click
.
stop
.
prevent=
"e => handleCancelBubble(e)"
>
<p>
{{
subItem
.
serviceItems
}}
</p>
<div
v-if=
"editForm.packageCode == subItem[scope.scope.optionId]"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefPro"
labelWidth=
"160px"
formRef=
"editChildRefPro"
:isBlock=
"true"
:formObj=
"editFormPro"
:formData=
"subItem.editFormData"
:formRules=
"editRulePro"
>
...
...
@@ -75,7 +75,7 @@
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div
class=
"footer"
:style=
"{ width: '100%' }"
>
<el-button
v-show=
"!['3', '5'].includes(routeInfo.addOrEdit)"
type=
"primary"
@
click=
"handleDraft"
>
草稿
</el-button>
<el-button
v-show=
"routeInfo.addOrEdit !=
5
"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
v-show=
"routeInfo.addOrEdit !=
'5'
"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
...
...
@@ -102,7 +102,7 @@ export default {
successDisable
:
false
,
routeInfo
:
{
// 1-新增;2-编辑;3-修改;4-重新提单;5-查看
addOrEdit
:
1
,
addOrEdit
:
'1'
,
contractNo
:
''
},
editForm
:
{
...
...
@@ -298,7 +298,7 @@ export default {
optionLabel
:
'packageName'
,
addHtml
:
'packageCode'
,
handleRadioChange
:
val
=>
{
// console.log(val
)
console
.
log
(
'cwq-----------'
)
this
.
packageAttr
()
}
}
...
...
@@ -443,9 +443,9 @@ export default {
// this.footerLeft = document.querySelector('.base-container-right').offsetLeft
// this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this
.
routeInfo
=
this
.
$route
.
params
this
.
disabled
=
this
.
routeInfo
.
addOrEdit
==
5
this
.
disabled
=
this
.
routeInfo
.
addOrEdit
==
'5'
// 提单成功 - 修改
this
.
successDisable
=
this
.
routeInfo
.
addOrEdit
==
3
this
.
successDisable
=
this
.
routeInfo
.
addOrEdit
==
'3'
this
.
getOptionsList
(
'editFormDataCar'
,
false
)
this
.
getOptionsList
(
'editFormDataUser'
,
false
)
this
.
getOptionsList
(
'editFormDataOther'
,
false
)
...
...
@@ -474,11 +474,7 @@ export default {
})
}
},
handleCancelBubble
(
e
)
{
console
.
log
(
e
)
window
.
event
.
cancelBubble
=
true
e
.
stopPropagation
()
},
handleCancelBubble
(
e
)
{
},
getInfo
()
{
this
.
$apis
.
beforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
}).
then
(
res
=>
{
console
.
log
(
res
)
...
...
@@ -618,7 +614,7 @@ export default {
})
})
console
.
log
(
this
.
editFormDataPro
)
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getInfo
()
:
''
this
.
routeInfo
.
addOrEdit
!=
'1'
?
this
.
getInfo
()
:
''
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
...
...
@@ -764,7 +760,7 @@ export default {
this
.
submit
=
true
var
params
=
this
.
getParams
()
params
.
operationType
=
0
if
(
this
.
routeInfo
.
addOrEdit
==
2
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
'2'
)
{
params
.
contractNo
=
this
.
routeInfo
.
contractNo
this
.
updateEquity
(
params
)
}
else
{
...
...
@@ -773,11 +769,14 @@ export default {
params
.
contractNo
=
res
this
.
submit
=
false
this
.
updateEquity
(
params
)
}).
catch
(
err
=>
{
this
.
submit
=
false
})
}
},
updateEquity
(
params
)
{
this
.
$apis
.
beforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
submit
=
false
if
(
res
.
code
==
'0'
)
{
this
.
$message
({
message
:
res
.
data
.
code
?
'操作成功'
:
res
.
data
.
msg
,
...
...
@@ -816,6 +815,7 @@ export default {
}
if
(
!
flag
)
{
this
.
whereToGo
(
Object
.
keys
(
errorObjList
[
0
])[
0
])
this
.
submit
=
false
return
true
}
var
params
=
this
.
getParams
()
...
...
@@ -823,7 +823,7 @@ export default {
// params.contractNo = this.routeInfo.contractNo
// }
params
.
operationType
=
1
if
([
2
,
3
].
includes
(
this
.
routeInfo
.
addOrEdit
))
{
if
([
'2'
,
'3'
].
includes
(
this
.
routeInfo
.
addOrEdit
))
{
params
.
contractNo
=
this
.
routeInfo
.
contractNo
this
.
updateEquity
(
params
)
}
else
{
...
...
@@ -832,6 +832,8 @@ export default {
params
.
contractNo
=
res
this
.
submit
=
false
this
.
updateEquity
(
params
)
}).
catch
(
err
=>
{
this
.
submit
=
false
})
}
},
...
...
src/views/beforeSale/equityList.vue
View file @
36d471f
...
...
@@ -446,6 +446,9 @@ export default {
})
return
true
}
if
(
addOrEdit
==
4
&&
row
.
orderStatus
==
3
)
{
addOrEdit
=
2
}
addOrEdit
==
1
?
this
.
$router
.
push
(
'/beforeSale/editEquity/'
+
addOrEdit
+
'/'
+
-
1
)
:
this
.
$router
.
push
(
'/beforeSale/editEquity/'
+
addOrEdit
+
'/'
+
row
.
contractNo
)
},
...
...
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