Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 2c74ae72
authored
Apr 16, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新车频道;商品编辑;带货管理接口联调
1 parent
a684207d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
98 deletions
src/api/modules/common.js
src/api/modules/newCar.js
src/components/relate-store-dialog/index.vue
src/views/newCarManage/editCar.vue
src/views/newCarManage/index.vue
src/views/orderManage/orderDetail.vue
src/views/productGroup/editProduct.vue
src/views/zoneList/editZone.vue
src/api/modules/common.js
View file @
2c74ae7
...
...
@@ -54,6 +54,16 @@ const getMerchantList = params => {
})
}
const
getSimpleMerchantList
=
params
=>
{
params
.
method
=
'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getZoneListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.zoneInfo.listCurMerchantId'
return
http
({
...
...
@@ -84,4 +94,4 @@ const pictureUpload = params => {
noSignAttr
:
[
'file'
]
})
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadVideoApi
,
getMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadVideoApi
,
getMerchantList
,
get
SimpleMerchantList
,
get
ZoneListApi
,
getClassifyListApi
,
pictureUpload
}
src/api/modules/newCar.js
0 → 100644
View file @
2c74ae7
import
{
http
}
from
'@/main'
const
getCarListApi
=
params
=>
{
params
.
method
=
'scrm.api.wwbench.clue.vehicle.list'
return
http
({
url
:
'rop-scrm-wwbench/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getCarListApi
}
src/components/relate-store-dialog/index.vue
View file @
2c74ae7
...
...
@@ -13,7 +13,7 @@
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
:selectable=
"selectable"
></el-table-column>
<el-table-column
prop=
"merchantName"
label=
"商户名称"
align=
"center"
></el-table-column>
</el-table>
<el-pagination
small
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"pageNum"
:page-size=
"pageSize"
layout=
"total, prev, pager, next"
:total=
"total"
></el-pagination>
<el-pagination
v-if=
"hasPage"
small
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"pageNum"
:page-size=
"pageSize"
layout=
"total, prev, pager, next"
:total=
"total"
></el-pagination>
</el-col>
<el-col
:span=
"12"
>
<el-table
:data=
"selectedData"
class=
"table hightline"
height=
"464px"
>
...
...
@@ -55,6 +55,10 @@ export default {
type
:
Boolean
,
default
:
false
},
hasPage
:
{
type
:
Boolean
,
default
:
true
},
// 页面来源
// sourcePage: {
// type: String,
...
...
@@ -62,7 +66,7 @@ export default {
// },
storeApi
:
{
type
:
Function
,
default
:
()
=>
{}
default
:
()
=>
{
}
},
storeSelected
:
{
type
:
Array
,
...
...
@@ -70,7 +74,7 @@ export default {
},
storeSearchForm
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
// 去掉表格中某些字段
// noTableField: {
...
...
@@ -111,7 +115,8 @@ export default {
...
this
.
storeSearchForm
,
pageNum
:
this
.
pageNum
,
currentPage
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
hasPage
?
this
.
pageSize
:
99999
// pageSize: this.pageSize
}).
then
(
res
=>
{
this
.
selectingData
=
res
.
list
this
.
total
=
res
.
total
...
...
src/views/newCarManage/editCar.vue
View file @
2c74ae7
...
...
@@ -110,7 +110,7 @@ export default {
],
// 选择门店
relateStoreVisible
:
false
,
storeApi
:
this
.
$apis
.
common
.
getMerchantList
,
storeApi
:
this
.
$apis
.
common
.
get
Simple
MerchantList
,
storeSearchForm
:
{
merchantId
:
''
,
merchantName
:
''
...
...
src/views/newCarManage/index.vue
View file @
2c74ae7
...
...
@@ -2,25 +2,30 @@
<
template
>
<div
class=
"marketing p-t-20"
>
<div
class=
"m-b-20"
>
<!--
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增新车
</el-button>
-->
<GLButton
:size=
"size"
type=
"primary"
fn=
"新增新车"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增新车
</GLButton>
<!--
<GLButton
:size=
"size"
type=
"primary"
fn=
"新增新车"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增新车
</GLButton>
-->
</div>
<div
class=
"container"
>
<div>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</glsx-combi-form>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"zoneRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
slot=
"logoUrl"
class=
"table-image"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</div>
<div
slot=
"showImageUrl"
class=
"table-image"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</div>
<!--
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLButton
type=
"text"
fn=
"编辑"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<el-button
type=
"text"
fn=
"删除"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
</div>
</div>
-->
</GLTable>
<!-- 表格区域 end -->
</div>
...
...
@@ -37,48 +42,49 @@ export default {
size
:
'small'
,
url
:
url
,
searchForm
:
{
zoneName
:
''
,
createDate
:
[]
name
:
''
},
// tableSearchForm: {},
// 搜索
searchFormData
:
[
{
label
:
'车辆关键字'
,
name
:
'
zoneN
ame'
,
name
:
'
n
ame'
,
type
:
'input'
,
placeholder
:
'请输入车系名称'
,
maxlength
:
20
},
{
label
:
'状态'
,
name
:
'status'
,
type
:
'select'
maxlength
:
100
}
// {
// label: '创建日期',
// name: 'createDate',
// type: 'datePicker',
// isClear: true,
// pickerOptions: 'beforeRangePickerOptions'
// }
],
// 表格
getListApi
:
this
.
$apis
.
zoneList
.
getZone
ListApi
,
getListApi
:
this
.
$apis
.
newCar
.
getCar
ListApi
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'新车名称'
,
prop
:
'zoneName'
label
:
'车型名称'
,
prop
:
'name'
},
{
label
:
'指导价'
,
prop
:
'guidePrice'
,
formatter
:
cellValue
=>
{
return
cellValue
.
guidePrice
?
cellValue
.
guidePrice
+
'万元'
:
'-'
}
},
{
label
:
'品牌logo'
,
prop
:
'logoUrl'
,
addHtml
:
'logoUrl'
},
{
label
:
'车辆图片'
,
prop
:
'showImageUrl'
,
addHtml
:
'showImageUrl'
},
{
label
:
'创建日期'
,
prop
:
'createdDate'
,
width
:
'180'
,
label
:
'状态'
,
prop
:
''
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
'已上架'
}
}
]
...
...
@@ -90,61 +96,43 @@ export default {
mounted
()
{
},
methods
:
{
// getParams() {
// var params = JSON.parse(JSON.stringify(this.searchForm))
// if (this.searchForm.createDate.length) {
// params.startTime = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
// params.endTime = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
// }
// delete params.createDate
// return params
// },
// beforeSearchFn() {
// return new Promise(resolve => {
// this.tableSearchForm = this.getParams()
// delete this.tableSearchForm.createDate
// resolve()
// secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
// this.$confirm(txt, title, {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// callback: action => {
// if (action == 'confirm') {
// this.$apis[apiModule][apiName](apiParams).then(res => {
// this.$message({
// message: res.code == '0' ? '操作成功' : res.message,
// type: res.code == '0' ? 'success' : 'error'
// })
// if (res.code == '0') {
// fn && fn()
// this.handleSearch()
// }
// })
// }
// }
// })
// },
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
fn
&&
fn
()
this
.
handleSearch
()
}
})
}
}
})
},
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
// addOrEdit == 1 ? this.$router.push('/zoneList/editZone/' + addOrEdit) : this.$router.push('/zoneList/editZone/' + addOrEdit + '/' + row.id)
var
params
=
{
addOrEdit
:
addOrEdit
,
$title
:
encodeURI
(
addOrEdit
==
1
?
'新建新车'
:
'编辑新车'
)
}
addOrEdit
!=
1
&&
(
params
.
id
=
row
.
id
)
this
.
$router
.
push
({
path
:
'/zoneList/editZone'
,
query
:
params
})
},
// handleEdit(addOrEdit, row) {
// var params = {
// addOrEdit: addOrEdit,
// $title: encodeURI(addOrEdit == 1 ? '新建新车' : '编辑新车')
// }
// addOrEdit != 1 && (params.id = row.id)
// this.$router.push({
// path: '/zoneList/editZone',
// query: params
// })
// },
handleDelete
(
row
)
{
this
.
secondConfirm
(
'删除'
,
'是否确认删除该新车?'
,
'zoneList'
,
'deleteZoneApi'
,
{
id
:
row
.
id
})
},
//
handleDelete(row) {
//
this.secondConfirm('删除', '是否确认删除该新车?', 'zoneList', 'deleteZoneApi', { id: row.id })
//
},
setTableFinishFun
()
{
//接收到的数据为空
...
...
@@ -157,8 +145,7 @@ export default {
handleReset
()
{
this
.
searchForm
=
{
zoneName
:
''
,
createDate
:
[]
name
:
''
}
this
.
handleSearch
()
}
...
...
src/views/orderManage/orderDetail.vue
View file @
2c74ae7
...
...
@@ -6,7 +6,7 @@
<el-form
label-width=
"100px"
:inline=
"true"
>
<el-row
v-for=
"(item, index) in detailFormDataRow"
:key=
"index"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"detailForm[subItem.name]"
>
{{
detailForm
[
subItem
.
name
]
}}
</span>
<span
class=
"detail-txt ellipsis-1"
:title=
"detailForm[subItem.name]"
>
{{
detailForm
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
||
'-'
}}
</span>
</el-form-item>
</el-row>
</el-form>
...
...
@@ -88,19 +88,16 @@ export default {
},
{
label
:
'手机号'
,
name
:
''
name
:
'
customerPhone
'
},
{
label
:
'客户信息'
,
name
:
'customerName'
},
{
label
:
'发货地址'
,
name
:
''
},
{
label
:
'分润比例'
,
name
:
''
name
:
'takeFee'
,
suffix
:
'%'
},
{
label
:
'订单类型'
,
...
...
@@ -165,7 +162,6 @@ export default {
},
created
()
{
this
.
formToRow
(
'detailFormData'
)
this
.
formToRow
(
'afterInfoData'
)
},
...
...
@@ -208,6 +204,11 @@ export default {
this
.
detailForm
.
payPrice
=
res
.
payPrice
?
res
.
payPrice
+
'元'
:
'-'
this
.
detailForm
.
orderSourceName
=
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
res
.
orderSource
).
confName
:
'-'
this
.
detailForm
.
orderStatusName
=
this
.
baseData
.
orderStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderStatus
+
''
)
?
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
res
.
orderStatus
).
confName
:
'-'
if
(
!
this
.
detailForm
.
takeFee
)
{
var
takeFeeIdx
=
this
.
detailFormData
.
findIndex
(
item
=>
item
.
name
==
'takeFee'
)
this
.
detailFormData
.
splice
(
takeFeeIdx
,
1
)
}
this
.
formToRow
(
'detailFormData'
)
})
},
handleCancel
()
{
...
...
src/views/productGroup/editProduct.vue
View file @
2c74ae7
This diff is collapsed.
Click to expand it.
src/views/zoneList/editZone.vue
View file @
2c74ae7
...
...
@@ -110,7 +110,7 @@ export default {
],
// 选择门店
relateStoreVisible
:
false
,
storeApi
:
this
.
$apis
.
common
.
getMerchantList
,
storeApi
:
this
.
$apis
.
common
.
get
Simple
MerchantList
,
storeSearchForm
:
{
merchantId
:
''
,
merchantName
:
''
...
...
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