Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d9d0bfd
authored
Apr 09, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
cf950e26
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
195 additions
and
81 deletions
api/module/common.js
components/MessageBox/index.vue
env.js
pages/detail/components/Media_1.vue
pages/detail/components/Media_6.vue
pages/detail/detail.vue
store/modules/user.js
api/module/common.js
View file @
3d9d0bf
...
@@ -51,11 +51,32 @@ module.exports = {
...
@@ -51,11 +51,32 @@ module.exports = {
});
});
},
},
// 历史订单列表
// 历史订单列表
getQuotationList
(
data
)
{
getQuotationList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page'
,
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
data
...
data
})
})
}
},
/**
* 车型
*
*/
getCarBrandsList
(
data
)
{
return
http
.
post
({
method
:
'scrm.api.carlife.common.getCarSeriesList'
,
...
data
},
false
,
'scrm'
)
},
/**
* 推荐人
*/
getEmployeeList
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.employee.getByMerchantId'
,
projectName
:
'boutique'
,
sceneList
:[
0
],
...
data
})
},
};
};
components/MessageBox/index.vue
View file @
3d9d0bf
...
@@ -39,7 +39,6 @@ export default {
...
@@ -39,7 +39,6 @@ export default {
},
},
popupW
:
{
popupW
:
{
type
:
Number
,
type
:
Number
,
default
:
704
,
},
},
popupH
:
{
popupH
:
{
type
:
Number
,
type
:
Number
,
...
...
env.js
View file @
3d9d0bf
...
@@ -108,6 +108,7 @@ const pathEnum = {
...
@@ -108,6 +108,7 @@ const pathEnum = {
drac
:
"/rop-scrm-entmicro/"
,
drac
:
"/rop-scrm-entmicro/"
,
busassistant
:
"/rop-scrm-busassistant/"
,
busassistant
:
"/rop-scrm-busassistant/"
,
boutique
:
"/rop-dj-car-boutique/"
,
boutique
:
"/rop-dj-car-boutique/"
,
merchants
:
'/rop-merchants/'
};
};
const
CONFIG_ENV_MAP
=
{
const
CONFIG_ENV_MAP
=
{
1
:
"develop"
,
1
:
"develop"
,
...
...
pages/detail/components/Media_1.vue
View file @
3d9d0bf
...
@@ -7,15 +7,32 @@
...
@@ -7,15 +7,32 @@
<view
class=
"title"
>
问界·交车告知书
</view>
<view
class=
"title"
>
问界·交车告知书
</view>
<view
class=
"form"
>
<view
class=
"form"
>
<template
v-for=
"(i, index) in formObject"
>
<template
v-for=
"(i, index) in formObject"
>
<view
class=
"form-item"
:key=
"index"
>
<view
class=
"form-item"
:key=
"index"
>
<view
class=
"label"
>
{{
i
.
label
}}
</view>
<view
class=
"label"
>
{{
i
.
label
}}
</view>
<view
class=
"value"
>
<view
class=
"value"
>
<template
v-if=
"i.type == 'input'"
>
<template
v-if=
"i.type == 'input'"
>
<input
:type=
"i.inputType"
:maxlength=
"i.maxlength"
/>
<input
:type=
"i.inputType"
:maxlength=
"i.maxlength"
v-model=
"customerInfo[i.key]"
class=
"input"
@
input=
"inputCustomer"
/>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
class=
"select"
@
click=
"showPopup"
>
<view
<uni-icons
class=
"arrow"
type=
"down"
:size=
"16"
></uni-icons>
class=
"select"
@
click=
"showPopup(i.popKey)"
>
{{
customerInfo
[
i
.
key
]
}}
<uni-icons
class=
"arrow"
type=
"down"
:size=
"16"
></uni-icons>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
...
@@ -23,7 +40,10 @@
...
@@ -23,7 +40,10 @@
</template>
</template>
</view>
</view>
<
template
v-for=
"(i, index) in views"
>
<
template
v-for=
"(i, index) in views"
>
<view
class=
"view"
:key=
"index"
>
<view
class=
"view"
:key=
"index"
>
<wnCanvas
<wnCanvas
saveImageType=
"3"
saveImageType=
"3"
:drawImage=
"i.detailUrl"
:drawImage=
"i.detailUrl"
...
@@ -34,23 +54,51 @@
...
@@ -34,23 +54,51 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
<MessageBox
v-if=
"carBoxVisible"
:isFooter=
"false"
>
<MessageBox
position=
"bottom"
v-if=
"carBoxVisible"
:isFooter=
"false"
title=
"请选择车型"
@
cancel=
"carBoxVisible = false"
>
<view
class=
"select-box"
>
<view
class=
"select-box"
>
<view
<view
class=
"select-item"
class=
"select-item"
:class=
"{ checked: selectId == item.id }"
:class=
"{ checked: selectId == item.id }"
@
click=
"handleSelect(item)"
@
click=
"handleSelect(item
,'carBoxVisible'
)"
v-for=
"(item, index) in list"
v-for=
"(item, index) in
car
list"
:key=
"index"
:key=
"index"
>
>
{{ item.name }}
{{ item.name }}
</view>
</view>
</view>
</view>
</MessageBox>
</MessageBox>
<
template
v-if=
"employeeBoxVisible"
>
<MessageBox
position=
"bottom"
popupH=
"480"
:isFooter=
"false"
title=
"请选择销售"
@
cancel=
"employeeBoxVisible = false"
>
<view
class=
"select-box"
>
<view
class=
"select-item"
:class=
"
{ checked: selectId == item.id }"
@click="handleSelect(item,'employeeBoxVisible')"
v-for="(item, index) in employeeList"
:key="index"
>
{{
item
.
staffName
}}
</view>
</view>
</MessageBox>
</
template
>
</view>
</view>
</template>
</template>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
env
from
'../../../env'
export
default
{
export
default
{
props
:
{
props
:
{
views
:
Array
,
views
:
Array
,
...
@@ -60,62 +108,76 @@ export default {
...
@@ -60,62 +108,76 @@ export default {
data
()
{
data
()
{
return
{
return
{
selectId
:
1
,
selectId
:
1
,
carBoxVisible
:
false
,
carBoxVisible
:
false
,
list
:
[
employeeBoxVisible
:
false
,
{
carlist
:
[],
id
:
1
,
employeeList
:
[],
name
:
"问界"
,
},
{
id
:
2
,
name
:
"问界"
,
},
{
id
:
3
,
name
:
"问界"
,
},
{
id
:
4
,
name
:
"问界"
,
},
],
formObject
:
[
formObject
:
[
{
{
label
:
'车主姓名'
,
label
:
'车主姓名'
,
key
:
''
,
key
:
'
customerName
'
,
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
maxlength
:
50
maxlength
:
50
},
},
{
{
label
:
'车型'
,
label
:
'车型'
,
key
:
''
,
key
:
'carModel'
,
type
:
'select'
type
:
'select'
,
popKey
:
'carBoxVisible'
},
},
{
{
label
:
'电话'
,
label
:
'电话'
,
key
:
''
,
key
:
'
phoneNumber
'
,
type
:
'input'
,
type
:
'input'
,
inputType
:
'tel'
,
inputType
:
'tel'
,
maxlength
:
20
maxlength
:
20
},
},
{
{
label
:
'销售姓名'
,
label
:
'销售姓名'
,
key
:
''
,
key
:
'staffName'
,
type
:
'select'
type
:
'select'
,
popKey
:
'employeeBoxVisible'
}
}
]
],
customerInfo
:
{
customerName
:
''
,
carModel
:
''
,
phoneNumber
:
''
,
salesUuid
:
''
,
staffName
:
''
}
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
env
)
let
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
uni
.
$api
.
commonApi
.
getCarBrandsList
({
brandId
:
env
.
index
==
3
?
2365
:
2978
,
childBrandId
:
env
.
index
==
3
?
2695
:
3454
}).
then
(
res
=>
{
this
.
carlist
=
res
})
uni
.
$api
.
commonApi
.
getEmployeeList
({
merchantId
:
userInfo
.
shopMerchantId
,
}).
then
(
res
=>
{
this
.
employeeList
=
res
})
},
},
methods
:
{
methods
:
{
handleSelect
(
item
)
{
inputCustomer
()
{
this
.
selectId
=
item
.
id
;
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
this
.
carBoxVisible
=
false
},
handleSelect
(
item
,
popkey
)
{
this
[
popkey
]
=
false
if
(
popkey
==
'employeeBoxVisible'
)
{
this
.
customerInfo
.
salesUuid
=
item
.
uuid
this
.
customerInfo
.
staffName
=
item
.
staffName
}
else
this
.
customerInfo
.
carModel
=
item
.
name
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
},
},
showPopup
(
)
{
showPopup
(
e
)
{
this
.
carBoxVisible
=
true
this
[
e
]
=
true
},
},
}
}
}
}
...
@@ -171,10 +233,12 @@ export default {
...
@@ -171,10 +233,12 @@ export default {
margin-left
:
32
rpx
;
margin-left
:
32
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
40
rpx
;
padding
:
0
40
rpx
;
input,
.
input,
.select
{
.select
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
border
:
none
!important
;
outline
:
none
;
}
}
.select
{
.select
{
display
:
flex
;
display
:
flex
;
...
@@ -194,10 +258,12 @@ export default {
...
@@ -194,10 +258,12 @@ export default {
}
}
}
}
.select-box
{
.select-box
{
margin
:
40
rpx
;
margin
:
40
rpx
0
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
3
,
1
fr
);
gap
:
20
rpx
;
gap
:
20
rpx
;
overflow-y
:
scroll
;
height
:
100%
;
.select-item
{
.select-item
{
text-align
:
center
;
text-align
:
center
;
height
:
68
rpx
;
height
:
68
rpx
;
...
...
pages/detail/components/Media_6.vue
View file @
3d9d0bf
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<view
class=
"title"
>
历史成交记录
</view>
<view
class=
"title"
>
历史成交记录
</view>
<Tabs
:list=
"list"
@
tabclick=
"tabclick"
/>
<Tabs
:list=
"list"
@
tabclick=
"tabclick"
/>
<view
class=
"card-list"
>
<view
class=
"card-list"
>
<uni-grid
:column=
"3"
:show-border=
"false"
:square=
"false"
>
<
!--
<
uni-grid
:column=
"3"
:show-border=
"false"
:square=
"false"
>
<uni-grid-item
v-for=
"item in historyList"
:key=
"item.id"
>
<uni-grid-item
v-for=
"item in historyList"
:key=
"item.id"
>
<view
class=
"card-item"
>
<view
class=
"card-item"
>
<view
class=
"name"
>
{{
item
.
customerName
}}
</view>
<view
class=
"name"
>
{{
item
.
customerName
}}
</view>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</view>
</view>
</uni-grid-item>
</uni-grid-item>
</uni-grid>
</uni-grid>
-->
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/detail/detail.vue
View file @
3d9d0bf
...
@@ -24,27 +24,53 @@
...
@@ -24,27 +24,53 @@
@
finish=
"open"
@
finish=
"open"
/>
/>
<view
:class=
"['view',
{showView:id == 1}]">
<view
:class=
"['view',
{showView:id == 1}]">
<media
_1
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
<media
_1
:views=
"media[id]"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 2}]">
<view
:class=
"['view',
{showView:id == 2}]">
<media
_2
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
<media
_2
:views=
"media[id]"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 3}]">
<view
:class=
"['view',
{showView:id == 3}]">
<media
_3
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
<media
_3
:views=
"media[id]"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 4}]">
<view
:class=
"['view',
{showView:id == 4}]">
<media
_4
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
<media
_4
:views=
"media[id]"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 5}]">
<view
:class=
"['view',
{showView:id == 5}]">
<media
_5
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
<media
_5
:views=
"media[id]"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 6}]">
<view
:class=
"['view',
{showView:id == 6}]">
<media
_6
:views=
"mediaList"
/>
<media
_6
/>
</view>
</view>
<pay-pop
ref=
"pay"
></pay-pop>
<pay-pop
ref=
"pay"
></pay-pop>
<view
class=
"pen-box"
>
<view
<glsx-image
src=
"media"
/>
class=
"pen-box"
@
click=
"drawStatus = !drawStatus"
>
<glsx-image
:src=
"!drawStatus?'media/pen.png':'media/pen-active.png'"
/>
</view>
</view>
<MessageBox
v-if=
"messageBoxVisible"
@
cancel=
"messageBoxVisible = false"
@
confirm=
"stopAudio"
content=
"是否返回首页并结束本次接待"
confirmBtnText=
"确认"
></MessageBox>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -57,16 +83,17 @@ import Media_3 from './components/Media_3.vue'
...
@@ -57,16 +83,17 @@ import Media_3 from './components/Media_3.vue'
import
Media_4
from
'./components/Media_4.vue'
import
Media_4
from
'./components/Media_4.vue'
import
Media_5
from
'./components/Media_5.vue'
import
Media_5
from
'./components/Media_5.vue'
import
Media_6
from
'./components/Media_6.vue'
import
Media_6
from
'./components/Media_6.vue'
import
GlsxImage
from
'../../components/GlsxImage.vue'
;
export
default
{
export
default
{
components
:
{
ToolBox
,
payPop
,
Media_1
,
Media_2
,
Media_3
,
Media_4
,
Media_5
,
Media_6
,
GlsxImage
},
components
:
{
ToolBox
,
payPop
,
Media_1
,
Media_2
,
Media_3
,
Media_4
,
Media_5
,
Media_6
},
mixins
:
[
myClick
],
mixins
:
[
myClick
],
data
()
{
data
()
{
return
{
return
{
type
:
'preview'
,
type
:
'preview'
,
id
:
''
,
id
:
''
,
mediaList
:
[],
media
:
{
drawStatus
:
false
},
drawStatus
:
false
,
messageBoxVisible
:
false
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -85,12 +112,14 @@ export default {
...
@@ -85,12 +112,14 @@ export default {
},
},
async
getFindSoureDetail
(
id
)
{
async
getFindSoureDetail
(
id
)
{
try
{
try
{
this
.
mediaList
=
await
uni
.
$api
.
commonApi
.
getFindSoureDetail
({
id
})
||
[]
if
(
this
.
media
[
id
])
return
this
.
media
[
id
]
=
await
uni
.
$api
.
commonApi
.
getFindSoureDetail
({
id
})
||
[]
}
catch
(
error
)
{
}
catch
(
error
)
{
}
}
},
},
back
()
{
back
()
{
if
(
this
.
type
!=
'preview'
)
return
this
.
messageBoxVisible
=
true
uni
.
navigateBack
()
uni
.
navigateBack
()
}
}
},
},
...
@@ -121,13 +150,21 @@ export default {
...
@@ -121,13 +150,21 @@ export default {
opacity
:
0
;
opacity
:
0
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
display
:
none
;
}
}
.showView
{
.showView
{
display
:
block
;
z-index
:
2
;
z-index
:
2
;
opacity
:
1
;
opacity
:
1
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
.pen-box
{
position
:
fixed
;
right
:
40
rpx
;
top
:
50%
;
transform
:
translateY
(
-50%
);
width
:
120
rpx
;
height
:
120
rpx
;
z-index
:
3
;
box-shadow
:
0
4px
12px
0
#00000033
;
}
</
style
>
</
style
>
store/modules/user.js
View file @
3d9d0bf
...
@@ -8,36 +8,26 @@
...
@@ -8,36 +8,26 @@
// import { setToken, getToken, removeToken } from '@/utils/token';;
// import { setToken, getToken, removeToken } from '@/utils/token';;
export
default
{
export
default
{
namespaced
:
true
,
state
()
{
state
()
{
return
{
return
{
userData
:
{},
customerInfo
:
{},
// token: getToken(),
};
};
},
},
mutations
:
{
mutations
:
{
setUserData
(
state
,
data
)
{
getCustomerInfo
(
state
)
{
state
.
userData
=
data
;
return
state
.
customerInfo
},
},
removeToken
(
state
)
{
setCustomerInfo
(
state
,
data
)
{
state
.
token
=
''
;
state
.
customerInfo
=
data
removeToken
();
},
setToken
(
state
,
token
)
{
state
.
token
=
token
;
setToken
(
token
);
},
},
},
},
actions
:
{
actions
:
{
// 获取用户详情
// 获取用户详情
async
getUserData
({
commit
},
{
params
=
{},
options
=
{}
}
=
{})
{
async
getCustomerInfo
({
commit
})
{
// console.log("userData", parseData);
return
commit
(
'getCustomerInfo'
)
commit
(
'setUserData'
,
options
.
token
);
return
parseData
;
},
},
async
logout
({
commit
})
{
async
setCustomerInfo
({
commit
},
value
)
{
commit
(
'removeToken'
);
commit
(
'setCustomerInfo'
,
value
);
commit
(
'setUserData'
,
{});
},
},
},
},
};
};
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