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 f9319efa
authored
Apr 09, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.1
2 parents
1662ab76
66a82b7e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
221 additions
and
115 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 @
f9319ef
...
...
@@ -51,11 +51,32 @@ module.exports = {
});
},
// 历史订单列表
getQuotationList
(
data
)
{
getQuotationList
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page'
,
projectName
:
'boutique'
,
...
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 @
f9319ef
...
...
@@ -39,7 +39,6 @@ export default {
},
popupW
:
{
type
:
Number
,
default
:
704
,
},
popupH
:
{
type
:
Number
,
...
...
env.js
View file @
f9319ef
...
...
@@ -108,6 +108,7 @@ const pathEnum = {
drac
:
"/rop-scrm-entmicro/"
,
busassistant
:
"/rop-scrm-busassistant/"
,
boutique
:
"/rop-dj-car-boutique/"
,
merchants
:
'/rop-merchants/'
};
const
CONFIG_ENV_MAP
=
{
1
:
"develop"
,
...
...
pages/detail/components/Media_1.vue
View file @
f9319ef
...
...
@@ -7,15 +7,32 @@
<view
class=
"title"
>
问界·交车告知书
</view>
<view
class=
"form"
>
<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=
"value"
>
<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
v-else
>
<view
class=
"select"
@
click=
"showPopup"
>
<uni-icons
class=
"arrow"
type=
"down"
:size=
"16"
></uni-icons>
<view
class=
"select"
@
click=
"showPopup(i.popKey)"
>
{{
customerInfo
[
i
.
key
]
}}
<uni-icons
class=
"arrow"
type=
"down"
:size=
"16"
></uni-icons>
</view>
</
template
>
</view>
...
...
@@ -23,7 +40,10 @@
</template>
</view>
<
template
v-for=
"(i, index) in views"
>
<view
class=
"view"
:key=
"index"
>
<view
class=
"view"
:key=
"index"
>
<wnCanvas
saveImageType=
"3"
:drawImage=
"i.detailUrl"
...
...
@@ -34,23 +54,51 @@
</view>
</
template
>
</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-item"
:class=
"{ checked: selectId == item.id }"
@
click=
"handleSelect(item)"
v-for=
"(item, index) in list"
@
click=
"handleSelect(item
,'carBoxVisible'
)"
v-for=
"(item, index) in
car
list"
:key=
"index"
>
{{ item.name }}
</view>
</view>
</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>
</template>
<
script
type=
"text/ecmascript-6"
>
import
env
from
'../../../env'
export
default
{
props
:
{
views
:
Array
,
...
...
@@ -60,62 +108,75 @@ export default {
data
()
{
return
{
selectId
:
1
,
carBoxVisible
:
false
,
list
:
[
{
id
:
1
,
name
:
"问界"
,
},
{
id
:
2
,
name
:
"问界"
,
},
{
id
:
3
,
name
:
"问界"
,
},
{
id
:
4
,
name
:
"问界"
,
},
],
carBoxVisible
:
false
,
employeeBoxVisible
:
false
,
carlist
:
[],
employeeList
:
[],
formObject
:
[
{
label
:
'车主姓名'
,
key
:
''
,
key
:
'
customerName
'
,
type
:
'input'
,
inputType
:
'text'
,
maxlength
:
50
},
{
label
:
'车型'
,
key
:
''
,
type
:
'select'
key
:
'carModel'
,
type
:
'select'
,
popKey
:
'carBoxVisible'
},
{
label
:
'电话'
,
key
:
''
,
key
:
'
phoneNumber
'
,
type
:
'input'
,
inputType
:
'tel'
,
maxlength
:
20
},
{
label
:
'销售姓名'
,
key
:
''
,
type
:
'select'
key
:
'staffName'
,
type
:
'select'
,
popKey
:
'employeeBoxVisible'
}
]
],
customerInfo
:
{
customerName
:
''
,
carModel
:
''
,
phoneNumber
:
''
,
salesUuid
:
''
,
staffName
:
''
}
}
},
mounted
()
{
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
:
{
handleSelect
(
item
)
{
this
.
selectId
=
item
.
id
;
this
.
carBoxVisible
=
false
inputCustomer
()
{
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
},
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
(
)
{
this
.
carBoxVisible
=
true
showPopup
(
e
)
{
this
[
e
]
=
true
},
}
}
...
...
@@ -171,10 +232,12 @@ export default {
margin-left
:
32
rpx
;
box-sizing
:
border-box
;
padding
:
0
40
rpx
;
input,
.
input,
.select
{
width
:
100%
;
height
:
100%
;
border
:
none
!important
;
outline
:
none
;
}
.select
{
display
:
flex
;
...
...
@@ -194,10 +257,12 @@ export default {
}
}
.select-box
{
margin
:
40
rpx
;
margin
:
40
rpx
0
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
gap
:
20
rpx
;
overflow-y
:
scroll
;
height
:
100%
;
.select-item
{
text-align
:
center
;
height
:
68
rpx
;
...
...
pages/detail/components/Media_6.vue
View file @
f9319ef
...
...
@@ -7,7 +7,7 @@
<view
class=
"title"
>
历史成交记录
</view>
<Tabs
:list=
"list"
@
tabclick=
"tabclick"
/>
<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"
>
<view
class=
"card-item"
>
<view
class=
"name"
>
{{
item
.
customerName
}}
</view>
...
...
@@ -21,7 +21,7 @@
</view>
</uni-grid-item>
</uni-grid>
</uni-grid>
-->
</view>
</view>
</view>
...
...
pages/detail/detail.vue
View file @
f9319ef
...
...
@@ -6,50 +6,74 @@
* @LastEditTime: 2024-04-09 16:51:00
-->
<
template
>
<view
class=
"detail-box"
@
click=
"handleTouchStart()"
>
<view
class=
"detail-box"
@
click=
"handleTouchStart()"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"back"
>
<uni-icons
type=
"left"
:size=
"32"
></uni-icons>
<view
class=
"back"
@
click=
"back"
>
<uni-icons
type=
"left"
:size=
"32"
></uni-icons>
</view>
</view>
<tool-box
:type=
"type"
@
choose=
"choose"
@
finish=
"open"
/>
<tool-box
:type=
"type"
@
choose=
"choose"
@
finish=
"open"
/>
<view
:class=
"['view',
{ showView: id == 1 }]">
<media
_1
:views=
"media
List
"
:views=
"media
[id]
"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
<view
:class=
"['view',
{ showView: id == 2 }]">
<media
_2
:views=
"media
List
"
:views=
"media
[id]
"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
<view
:class=
"['view',
{ showView: id == 3 }]">
<media
_3
:views=
"media
List
"
:views=
"media
[id]
"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
<view
:class=
"['view',
{ showView: id == 4 }]">
<media
_4
:views=
"media
List
"
:views=
"media
[id]
"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
<view
:class=
"['view',
{ showView: id == 5 }]">
<media
_5
:views=
"media
List
"
:views=
"media
[id]
"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
<view
:class=
"['view',
{ showView: id == 6 }]">
<media
_6
:views=
"media
List
"
/>
<media
_6
:views=
"media
[id]
"
/>
</view>
<pay-pop
ref=
"pay"
></pay-pop>
<view
class=
"pen-box"
>
<glsx-image
src=
"media"
/>
<view
class=
"pen-box"
@
click=
"drawStatus = !drawStatus"
>
<glsx-image
:src=
"!drawStatus?'media/pen.png':'media/pen-active.png'"
/>
</view>
<MessageBox
v-if=
"finishVisible"
@
cancel=
"finishVisible = false"
@
confirm=
"stopAudio"
content=
"是否返回首页并结束本次接待"
confirmBtnText=
"确认"
></MessageBox>
<MessageBox
v-if=
"tipVisible"
@
cancel=
"tipCancel"
...
...
@@ -72,70 +96,68 @@
import
payPop
from
"./components/payPop.vue"
;
import
ToolBox
from
"./components/ToolBox.vue"
;
import
myClick
from
"@/mixin/click"
;
import
Media_1
from
"./components/Media_1.vue"
;
import
Media_2
from
"./components/Media_2.vue"
;
import
Media_3
from
"./components/Media_3.vue"
;
import
Media_4
from
"./components/Media_4.vue"
;
import
Media_5
from
"./components/Media_5.vue"
;
import
Media_6
from
"./components/Media_6.vue"
;
import
GlsxImage
from
"../../components/GlsxImage.vue"
;
import
Media_1
from
'./components/Media_1.vue'
import
Media_2
from
'./components/Media_2.vue'
import
Media_3
from
'./components/Media_3.vue'
import
Media_4
from
'./components/Media_4.vue'
import
Media_5
from
'./components/Media_5.vue'
import
Media_6
from
'./components/Media_6.vue'
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
],
data
()
{
data
()
{
return
{
type
:
"preview"
,
id
:
""
,
mediaList
:
[],
media
:
{
1
:
[],
2
:
[],
3
:
[],
4
:
[],
5
:
[]
},
drawStatus
:
false
,
messageBoxVisible
:
false
,
finishVisible
:
false
,
};
},
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
options
)
this
.
type
=
options
.
type
;
this
.
id
=
options
.
id
;
this
.
getFindSoureDetail
(
options
.
id
);
},
methods
:
{
open
()
{
open
()
{
// this.$refs.pay.show()
this
.
messageBoxVisible
=
true
;
},
/**切换素材 */
choose
(
e
)
{
choose
(
e
)
{
this
.
id
=
e
.
id
;
this
.
getFindSoureDetail
(
e
.
id
);
},
async
getFindSoureDetail
(
id
)
{
async
getFindSoureDetail
(
id
)
{
try
{
this
.
mediaList
=
(
await
uni
.
$api
.
commonApi
.
getFindSoureDetail
({
id
}))
||
[];
}
catch
(
error
)
{}
},
back
()
{
uni
.
navigateBack
();
},
back
()
{
uni
.
navigateBack
();
if
(
this
.
media
[
id
]?.
length
)
return
this
.
media
[
id
]
=
(
await
uni
.
$api
.
commonApi
.
getFindSoureDetail
({
id
}))
||
[];
console
.
log
(
this
.
media
[
id
])
}
catch
(
error
)
{
console
.
log
(
error
)
}
},
// 完成接待
done
()
{
done
()
{
uni
.
navigateBack
();
},
// 选择付款方式
toPay
()
{
toPay
()
{
this
.
$refs
.
pay
.
show
();
},
back
()
{
if
(
this
.
type
!=
'preview'
)
return
this
.
finishVisible
=
true
uni
.
navigateBack
()
}
},
};
</
script
>
...
...
@@ -164,13 +186,21 @@ export default {
opacity
:
0
;
left
:
0
;
top
:
0
;
display
:
none
;
}
.showView
{
display
:
block
;
z-index
:
2
;
opacity
:
1
;
width
:
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
>
store/modules/user.js
View file @
f9319ef
...
...
@@ -8,36 +8,26 @@
// import { setToken, getToken, removeToken } from '@/utils/token';;
export
default
{
namespaced
:
true
,
state
()
{
state
()
{
return
{
userData
:
{},
// token: getToken(),
customerInfo
:
{},
};
},
mutations
:
{
setUserData
(
state
,
data
)
{
state
.
userData
=
data
;
getCustomerInfo
(
state
)
{
return
state
.
customerInfo
},
removeToken
(
state
)
{
state
.
token
=
''
;
removeToken
();
},
setToken
(
state
,
token
)
{
state
.
token
=
token
;
setToken
(
token
);
setCustomerInfo
(
state
,
data
)
{
state
.
customerInfo
=
data
},
},
actions
:
{
// 获取用户详情
async
getUserData
({
commit
},
{
params
=
{},
options
=
{}
}
=
{})
{
// console.log("userData", parseData);
commit
(
'setUserData'
,
options
.
token
);
return
parseData
;
async
getCustomerInfo
({
commit
})
{
return
commit
(
'getCustomerInfo'
)
},
async
logout
({
commit
})
{
commit
(
'removeToken'
);
commit
(
'setUserData'
,
{});
async
setCustomerInfo
({
commit
},
value
)
{
commit
(
'setCustomerInfo'
,
value
);
},
},
};
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