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 26c9e938
authored
Feb 19, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除远程实时搜索
1 parent
a7dc770d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
21 deletions
src/components/glsx-combi-form/index.vue
src/setup/qiankun.js
src/views/ghPreSale/editEquity.vue
src/views/ghPreSale/financeIndex.vue
src/components/glsx-combi-form/index.vue
View file @
26c9e93
...
...
@@ -47,7 +47,7 @@
</template> -->
<!-- 选择框 -->
<div
v-else-if=
"item.type === 'select'"
>
<el-select
:style=
"{ width: item.width || defaultWidth }"
v-model=
"formObj[item.name]"
:clearable=
"item.isClear || false"
:placeholder=
"'请选择' + item.label"
:filterable=
"!item.noFilter"
:filter-method=
"item.keydownMethod"
:disabled=
"item.isDisabled"
:no-data-text=
"item.noDataText || '无数据'"
:multiple=
"item.multiple || false"
:collapse-tags=
"item.collapseTags || true"
@
change=
"selectAddAttr($event, item)"
>
<el-select
:style=
"{ width: item.width || defaultWidth }"
v-model=
"formObj[item.name]"
:clearable=
"item.isClear || false"
:placeholder=
"'请选择' + item.label"
:filterable=
"!item.noFilter"
:disabled=
"item.isDisabled"
:no-data-text=
"item.noDataText || '无数据'"
:multiple=
"item.multiple || false"
:collapse-tags=
"item.collapseTags || true"
@
change=
"selectAddAttr($event, item)"
>
<el-option
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:label=
"subItem[item.optionLabel]"
:value=
"subItem[item.optionId]"
:disabled=
"subItem.isDisabled || false"
></el-option>
</el-select>
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
...
...
src/setup/qiankun.js
View file @
26c9e93
...
...
@@ -23,8 +23,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
efc25b5b-6eb1-4017-99b2-45cdacfcfa04
-rop'
}
})
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
efc25b5b-6eb1-4017-99b2-45cdacfcfa04
-rop'
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
661113d4-8a4f-42b2-82d4-37d4d392ff98
-rop'
}
})
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
661113d4-8a4f-42b2-82d4-37d4d392ff98
-rop'
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'd986590e-22b5-436a-b6b5-5e09138d98e2' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'd986590e-22b5-436a-b6b5-5e09138d98e2' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
...
...
src/views/ghPreSale/editEquity.vue
View file @
26c9e93
...
...
@@ -423,9 +423,6 @@ export default {
return
item
.
userOneid
==
userOneid
})
this
.
editForm
.
actualSalesPerson
=
target
.
staffName
},
keydownMethod
:
(
value
)
=>
{
this
.
getSalePeople
(
value
)
}
},
{
...
...
@@ -534,7 +531,7 @@ export default {
created
()
{
this
.
getAllVehicleBrand
()
this
.
getCarChildList
(
false
,
true
)
//
this.getSalePeople()
this
.
getSalePeople
()
},
mounted
()
{
...
...
@@ -562,7 +559,7 @@ export default {
},
methods
:
{
getSalePeople
:
utils
.
debounce
(
function
(
val
){
getSalePeople
(
val
){
const
params
=
{
staffName
:
val
?
val
.
trim
()
:
''
// departmentId: ''
...
...
@@ -577,7 +574,7 @@ export default {
})
}
})
}
)
,
},
setTableMarginLeft
(
subItem
,
subItemId
){
let
productW
=
document
.
querySelector
(
'.select-product'
).
offsetWidth
let
id
=
-
1
...
...
@@ -588,12 +585,13 @@ export default {
}
let
leftId
=
0
if
(
productW
<
1050
){
return
2
0
leftId
=
0
}
else
if
(
productW
<
1560
){
return
(
id
+
1
)
%
2
===
0
?
20
:
(
id
+
1
)
%
2
*
510
leftId
=
(
id
+
1
)
%
2
===
0
?
0
:
(
id
+
1
)
%
2
}
else
{
return
(
id
+
2
)
%
3
===
0
?
20
:
(
id
+
2
)
%
3
*
510
leftId
=
(
id
+
2
)
%
3
===
0
?
0
:
(
id
+
2
)
%
3
}
return
20
+
leftId
*
510
},
setDisabled
(
partDisabledList
=
[])
{
var
list
=
[
'Car'
,
'User'
,
'Pro'
,
'Other'
]
...
...
@@ -634,7 +632,6 @@ export default {
},
getInfo
()
{
this
.
$apis
.
ghBeforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
}).
then
(
res
=>
{
this
.
getSalePeople
(
res
.
actualSalesPerson
)
this
.
editForm
=
{
...
res
}
...
...
@@ -1020,7 +1017,6 @@ export default {
var
params
=
this
.
getParams
()
params
.
operationType
=
1
if
([
'2'
,
'3'
,
'4'
].
includes
(
this
.
routeInfo
.
addOrEdit
))
{
console
.
log
(
this
.
editForm
,
1122
)
if
(
this
.
routeInfo
.
addOrEdit
==
'4'
&&
this
.
editForm
.
orderStatus
!=
3
)
{
params
.
contractNo
=
''
params
.
oldContractNo
=
this
.
routeInfo
.
contractNo
...
...
@@ -1067,7 +1063,10 @@ export default {
invoicePrice
:
''
,
seatesNum
:
5
,
billingDate
:
new
Date
()
}
},
actualSalesPerson
:
''
,
actualSalesPersonId
:
''
,
insuranceType
:
'i'
}
this
.
$apis
.
ghBeforeSale
.
getDefaultCarbrandApi
({}).
then
(
res
=>
{
if
(
res
)
{
...
...
src/views/ghPreSale/financeIndex.vue
View file @
26c9e93
...
...
@@ -575,18 +575,32 @@ export default {
apiName
:
apiName
,
apiParams
:
apiParams
}
if
(
title
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
handleSecondConfirm
()
})
return
}
this
.
handleSecondCancel
()
},
handleSecondConfirm
()
{
this
.
$apis
[
this
.
secondObj
.
apiModule
][
this
.
secondObj
.
apiName
](
this
.
secondObj
.
apiParams
).
then
(
res
=>
{
this
.
handleSecondCancel
()
this
.
isTipVisible
=
true
// this.handleSecondCancel()
// this.isTipVisible = true
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
this
.
editNotify
=
res
clearTimeout
(
this
.
timer
)
this
.
timer
=
setTimeout
(()
=>
{
this
.
isTipVisible
=
false
},
this
.
editNotify
.
code
==
'0'
?
1500
:
3000
)
//
clearTimeout(this.timer)
//
this.timer = setTimeout(() => {
//
this.isTipVisible = false
//
}, this.editNotify.code == '0' ? 1500 : 3000)
if
(
res
.
code
==
'0'
)
{
this
.
handleSearch
()
}
...
...
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