Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 5108d0f3
authored
May 27, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上牌资料接口
1 parent
028cc576
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
109 additions
and
41 deletions
src/components/search-form/index.vue
src/config/config.js
src/services/common.js
src/services/vehicledoc.js
src/styles/common.scss
src/views/toDo/index.vue
src/views/vehicleManage/index.vue
src/views/vehicleSubmit/addVehicle/index.vue
src/views/vehicleSubmit/index.vue
src/views/vehicleSubmit/vehicleCheck/index.vue
src/components/search-form/index.vue
View file @
5108d0f
...
@@ -18,18 +18,20 @@
...
@@ -18,18 +18,20 @@
:type=
"item.inputType || 'text'"
:type=
"item.inputType || 'text'"
:placeholder=
"item.placeholder || '请输入'"
:placeholder=
"item.placeholder || '请输入'"
:readonly=
"item.readonly || false"
:readonly=
"item.readonly || false"
clearable
></el-input>
></el-input>
</
template
>
</
template
>
<
template
v-else-if=
"item.type === 'select'"
>
<
template
v-else-if=
"item.type === 'select'"
>
<el-select
<el-select
v-model=
"formModel[item.prop]"
v-model=
"formModel[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
:placeholder=
"item.placeholder || '请选择'"
clearable
>
>
<el-option
<el-option
v-for=
"i in item.options"
v-for=
"i in item.options"
:key=
"i[item.value] || i.value"
:key=
"i[item.value] || i.value
|| i.dictValue
"
:label=
"i[item.key] || i.label"
:label=
"i[item.key] || i.label
|| i.dictLabel
"
:value=
"i[item.value] || i.value"
:value=
"i[item.value] || i.value
|| i.dictValue
"
:disabled=
"i.disabled"
:disabled=
"i.disabled"
>
>
</el-option>
</el-option>
...
@@ -78,6 +80,13 @@
...
@@ -78,6 +80,13 @@
>
>
</el-date-picker>
</el-date-picker>
</
template
>
</
template
>
<
template
name=
"self"
slot-scope=
"scope"
>
<slot
:scope=
"scope"
>
</slot>
</
template
>
</template>
</template>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
...
src/config/config.js
View file @
5108d0f
...
@@ -32,7 +32,8 @@ const VEHICLEDOC_API = {
...
@@ -32,7 +32,8 @@ const VEHICLEDOC_API = {
DOC_SEARCH
:
'/trialdrive/vehicleDoc/search'
,
DOC_SEARCH
:
'/trialdrive/vehicleDoc/search'
,
DOC_BY_CONDITION
:
'/trialdrive/vehicleDoc/findVehDocByCondition'
,
DOC_BY_CONDITION
:
'/trialdrive/vehicleDoc/findVehDocByCondition'
,
CHENCK_SEARCH
:
'/trialdrive/approval/searchVehiclelicApp'
,
CHENCK_SEARCH
:
'/trialdrive/approval/searchVehiclelicApp'
,
SAVE_DOC
:
'/trialdrive/vehicleDoc/saveOrUpdateVehDoc'
SAVE_DOC
:
'/trialdrive/vehicleDoc/saveOrUpdateVehDoc'
,
UPDATE_APPROVAL
:
'/trialdrive/approval/updateApproval'
}
}
// 试驾车辆管理接口
// 试驾车辆管理接口
const
VEHICLE_API
=
{
const
VEHICLE_API
=
{
...
...
src/services/common.js
View file @
5108d0f
...
@@ -9,7 +9,7 @@ function getProvinceList (params) {
...
@@ -9,7 +9,7 @@ function getProvinceList (params) {
// 获取字典详情
// 获取字典详情
function
dictInfo
(
params
)
{
function
dictInfo
(
params
)
{
const
url
=
`
${
DICT
_API
.
DICTDATA_TYPE
}
/
${
params
}
`
const
url
=
`
${
COMMON
_API
.
DICTDATA_TYPE
}
/
${
params
}
`
return
request
({},
url
)
return
request
({},
url
)
}
}
...
...
src/services/vehicledoc.js
View file @
5108d0f
...
@@ -22,7 +22,13 @@ function findVehDoc (params) {
...
@@ -22,7 +22,13 @@ function findVehDoc (params) {
// 保存或者更新上牌资料
// 保存或者更新上牌资料
function
saveDoc
(
params
)
{
function
saveDoc
(
params
)
{
const
url
=
VEHICLEDOC_API
.
SAVE_DOC
const
url
=
VEHICLEDOC_API
.
SAVE_DOC
return
request
(
params
,
url
)
return
request
(
params
,
url
,
'post'
)
}
// 修改审批的流程
function
updateApproval
(
params
)
{
const
url
=
VEHICLEDOC_API
.
UPDATE_APPROVAL
return
request
(
params
,
url
,
'post'
)
}
}
export
{
getDocList
,
getCheckList
,
findVehDoc
,
saveDoc
}
export
{
getDocList
,
getCheckList
,
findVehDoc
,
saveDoc
,
updateApproval
}
src/styles/common.scss
View file @
5108d0f
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
float
:
left
;
float
:
left
;
}
}
.m-l-md
{
margin-left
:
20px
;
}
.table-btn
{
.table-btn
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
...
...
src/views/toDo/index.vue
View file @
5108d0f
...
@@ -72,10 +72,10 @@ export default {
...
@@ -72,10 +72,10 @@ export default {
value
:
''
value
:
''
},
{
},
{
label
:
'未处理'
,
label
:
'未处理'
,
value
:
0
value
:
1
},
{
},
{
label
:
'已处理'
,
label
:
'已处理'
,
value
:
1
value
:
2
}]
}]
},
},
{
{
...
@@ -126,6 +126,7 @@ export default {
...
@@ -126,6 +126,7 @@ export default {
switch
(
type
)
{
switch
(
type
)
{
case
'todo'
:
case
'todo'
:
// 跳转
// 跳转
console
.
log
(
scope
)
break
break
}
}
}
}
...
...
src/views/vehicleManage/index.vue
View file @
5108d0f
...
@@ -145,7 +145,7 @@ export default {
...
@@ -145,7 +145,7 @@ export default {
label
:
'关键字:'
,
label
:
'关键字:'
,
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
prop
:
's
tatus
'
,
prop
:
's
earchKey
'
,
placeholder
:
'特约店编码|店名称|车架号|设备号|车型'
,
placeholder
:
'特约店编码|店名称|车架号|设备号|车型'
,
}
}
],
],
...
@@ -314,7 +314,7 @@ export default {
...
@@ -314,7 +314,7 @@ export default {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
deleteVehicle
({}).
then
(
res
=>
{
deleteVehicle
({
tempId
:
scope
.
tempId
}).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'删除成功!'
message
:
'删除成功!'
...
@@ -328,7 +328,7 @@ export default {
...
@@ -328,7 +328,7 @@ export default {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
unbindVehicle
({}).
then
(
res
=>
{
unbindVehicle
({
tempId
:
scope
.
tempId
}).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'解绑成功!'
message
:
'解绑成功!'
...
...
src/views/vehicleSubmit/addVehicle/index.vue
View file @
5108d0f
This diff is collapsed.
Click to expand it.
src/views/vehicleSubmit/index.vue
View file @
5108d0f
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
type=
"primary"
type=
"primary"
:size=
"btn_size"
:size=
"btn_size"
icon=
"el-icon-refresh"
icon=
"el-icon-refresh"
@
click=
"reset"
>
重置
</el-button>
>
重置
</el-button>
</slot>
</slot>
</search-form>
</search-form>
...
@@ -43,6 +44,7 @@
...
@@ -43,6 +44,7 @@
slot-scope=
"scope"
slot-scope=
"scope"
>
>
<el-button
<el-button
v-if=
"scope.scope.isbutton"
type=
"text"
type=
"text"
@
click=
"btnClick('submit', scope.scope)"
@
click=
"btnClick('submit', scope.scope)"
>
>
...
@@ -56,6 +58,7 @@
...
@@ -56,6 +58,7 @@
<
script
>
<
script
>
import
{
getDocList
}
from
'services/vehicledoc'
import
{
getDocList
}
from
'services/vehicledoc'
import
{
dictInfo
}
from
'services/common'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -65,20 +68,20 @@ export default {
...
@@ -65,20 +68,20 @@ export default {
label
:
'关键字:'
,
label
:
'关键字:'
,
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
prop
:
'
statu
s'
,
prop
:
'
keyword
s'
,
placeholder
:
'特约店编码|店名称|围栏名称'
,
placeholder
:
'特约店编码|店名称|围栏名称'
,
},
},
{
{
label
:
'提交状态:'
,
label
:
'提交状态:'
,
type
:
'select'
,
type
:
'select'
,
prop
:
''
,
prop
:
'
submitStatus
'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
options
:
[]
options
:
[]
},
},
{
{
label
:
'审核状态:'
,
label
:
'审核状态:'
,
type
:
'select'
,
type
:
'select'
,
prop
:
''
,
prop
:
'
approvalStatus
'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
options
:
[]
options
:
[]
}
}
...
@@ -90,7 +93,7 @@ export default {
...
@@ -90,7 +93,7 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'所属大区'
,
label
:
'所属大区'
,
prop
:
'
tempId
'
prop
:
'
area
'
},
{
},
{
label
:
'所属省'
,
label
:
'所属省'
,
prop
:
'province'
prop
:
'province'
...
@@ -108,7 +111,7 @@ export default {
...
@@ -108,7 +111,7 @@ export default {
prop
:
'shopLevel'
prop
:
'shopLevel'
},
{
},
{
label
:
'车辆类型'
,
label
:
'车辆类型'
,
prop
:
'
shopLevel
'
prop
:
'
vehicleType
'
},
{
},
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'vin'
prop
:
'vin'
...
@@ -119,33 +122,50 @@ export default {
...
@@ -119,33 +122,50 @@ export default {
label
:
'配置'
,
label
:
'配置'
,
prop
:
'configDesc'
prop
:
'configDesc'
},
{
},
{
label
:
'车牌'
,
prop
:
'licensePlate'
},
{
label
:
'外色'
,
label
:
'外色'
,
prop
:
'
sns
'
prop
:
'
color
'
},
{
},
{
label
:
'内色'
,
label
:
'内色'
,
prop
:
'in
stalledTime
'
prop
:
'in
nerColor
'
},
{
},
{
label
:
'提交状态'
,
label
:
'提交状态'
,
prop
:
'installedTime'
prop
:
'submitStatus'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
submitStatusList
.
find
(
item
=>
item
.
dictValue
==
cellValue
.
submitStatus
).
dictLabel
}
},
{
},
{
label
:
'审核状态'
,
label
:
'审核状态'
,
prop
:
'
installedTime
'
prop
:
'
approvalStatus
'
},
{
},
{
label
:
'审核结果备注'
,
label
:
'审核结果备注'
,
prop
:
'
installedTime
'
prop
:
'
remark
'
}
}
]
]
},
},
getListApi
:
getDocList
,
getListApi
:
getDocList
,
submitStatusList
:
[],
approvalStatusList
:
[]
}
}
},
},
mounted
()
{
dictInfo
(
'submitStatus'
).
then
(
res
=>
{
this
.
submitFormList
[
1
].
options
=
res
.
data
this
.
submitStatusList
=
res
.
data
})
dictInfo
(
'approval_status'
).
then
(
res
=>
{
this
.
submitFormList
[
2
].
options
=
res
.
data
this
.
approvalStatusList
=
res
.
data
})
},
methods
:
{
methods
:
{
reset
()
{
this
.
searchForm
=
{}
},
btnClick
(
pType
,
scope
)
{
btnClick
(
pType
,
scope
)
{
console
.
log
(
scope
)
switch
(
pType
)
{
switch
(
pType
)
{
case
'submit'
:
case
'submit'
:
this
.
$router
.
push
({
name
:
'addVehicle'
,
params
:
{
vehicleId
:
scope
.
vehicleId
,
url
:
'submit'
}
})
break
break
}
}
},
},
...
...
src/views/vehicleSubmit/vehicleCheck/index.vue
View file @
5108d0f
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
type=
"primary"
type=
"primary"
:size=
"btn_size"
:size=
"btn_size"
icon=
"el-icon-refresh"
icon=
"el-icon-refresh"
@
click=
"reset"
>
重置
</el-button>
>
重置
</el-button>
</slot>
</slot>
</search-form>
</search-form>
...
@@ -43,10 +44,11 @@
...
@@ -43,10 +44,11 @@
slot-scope=
"scope"
slot-scope=
"scope"
>
>
<el-button
<el-button
v-if=
"scope.scope.approvalStatus == 1"
type=
"text"
type=
"text"
@
click=
"btnClick('
submit
', scope.scope)"
@
click=
"btnClick('
check
', scope.scope)"
>
>
提交上牌资料
审核
</el-button>
</el-button>
</span>
</span>
</basic-table>
</basic-table>
...
@@ -56,6 +58,7 @@
...
@@ -56,6 +58,7 @@
<
script
>
<
script
>
import
{
getCheckList
}
from
'services/vehicledoc'
import
{
getCheckList
}
from
'services/vehicledoc'
import
{
dictInfo
}
from
'services/common'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -71,14 +74,14 @@ export default {
...
@@ -71,14 +74,14 @@ export default {
{
{
label
:
'提交状态:'
,
label
:
'提交状态:'
,
type
:
'select'
,
type
:
'select'
,
prop
:
''
,
prop
:
'
submitStatus
'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
options
:
[]
options
:
[]
},
},
{
{
label
:
'审核状态:'
,
label
:
'审核状态:'
,
type
:
'select'
,
type
:
'select'
,
prop
:
''
,
prop
:
'
approvalStatus
'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
options
:
[]
options
:
[]
}
}
...
@@ -90,7 +93,7 @@ export default {
...
@@ -90,7 +93,7 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'所属大区'
,
label
:
'所属大区'
,
prop
:
'
tempId
'
prop
:
'
area
'
},
{
},
{
label
:
'所属省'
,
label
:
'所属省'
,
prop
:
'province'
prop
:
'province'
...
@@ -108,7 +111,7 @@ export default {
...
@@ -108,7 +111,7 @@ export default {
prop
:
'shopLevel'
prop
:
'shopLevel'
},
{
},
{
label
:
'车辆类型'
,
label
:
'车辆类型'
,
prop
:
'
shopLevel
'
prop
:
'
vehicleType
'
},
{
},
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'vin'
prop
:
'vin'
...
@@ -120,36 +123,60 @@ export default {
...
@@ -120,36 +123,60 @@ export default {
prop
:
'configDesc'
prop
:
'configDesc'
},
{
},
{
label
:
'外色'
,
label
:
'外色'
,
prop
:
'
sns
'
prop
:
'
color
'
},
{
},
{
label
:
'内色'
,
label
:
'内色'
,
prop
:
'in
stalledTime
'
prop
:
'in
nerColor
'
},
{
},
{
label
:
'提交时间'
,
label
:
'提交时间'
,
prop
:
'
installed
Time'
prop
:
'
submit
Time'
},
{
},
{
label
:
'销售经理'
,
label
:
'销售经理'
,
prop
:
'
installedTime
'
prop
:
'
saleManager
'
},
{
},
{
label
:
'销售经理电话'
,
label
:
'销售经理电话'
,
prop
:
'
installedTim
e'
prop
:
'
saleManagerPhon
e'
},
{
},
{
label
:
'上牌备注'
,
label
:
'上牌备注'
,
prop
:
'installedTime'
prop
:
'velRemark'
},
{
label
:
'审核结果'
,
prop
:
'approvalResult'
},
{
},
{
label
:
'
审核结果
备注'
,
label
:
'备注'
,
prop
:
'
installedTime
'
prop
:
'
remark
'
}
}
]
]
},
},
getListApi
:
getCheckList
,
getListApi
:
getCheckList
,
submitStatusList
:
[],
approvalStatusList
:
[]
}
},
watch
:
{
'$router'
(
val
)
{
console
.
log
(
val
)
}
}
},
},
mounted
()
{
dictInfo
(
'submitStatus'
).
then
(
res
=>
{
this
.
checkFormList
[
1
].
options
=
res
.
data
this
.
submitStatusList
=
res
.
data
})
dictInfo
(
'approval_status'
).
then
(
res
=>
{
this
.
checkFormList
[
2
].
options
=
res
.
data
this
.
approvalStatusList
=
res
.
data
})
},
methods
:
{
methods
:
{
reset
()
{
this
.
searchForm
=
{}
},
btnClick
(
pType
,
scope
)
{
btnClick
(
pType
,
scope
)
{
console
.
log
(
scope
)
switch
(
pType
)
{
switch
(
pType
)
{
case
'
submit
'
:
case
'
check
'
:
this
.
$router
.
push
({
name
:
'addVehicle'
})
this
.
$router
.
push
({
name
:
'addVehicle'
,
params
:
{
vehicleId
:
scope
.
vehicleId
,
approvalId
:
scope
.
approvalId
,
url
:
'check'
}
})
break
break
}
}
},
},
...
...
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