Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 c9bb997f
authored
Sep 30, 2022
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v4.12.1功能代码提交
1 parent
1a000677
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
319 additions
and
174 deletions
README.md
src/api/index.js
src/layout/header-aside/components/header-user/index.vue
src/layout/header-aside/components/header-user/privacyAgreementDialog.vue
src/views/customer/recordList.vue
src/views/financeManage/financeDetail.vue
src/views/financeManage/financeList.vue
src/views/financeManage/serviceFinanceList.vue
src/views/goods/d2-form/index.vue
src/views/goods/d2-form/relateProDialog.vue
src/views/goods/d2-form/relateStoreDialog.vue
src/views/goods/drawerDetail.vue
src/views/goods/editCommodity.vue
src/views/orderManage/orderDetail.vue
src/views/orderManage/orderList.vue
README.md
View file @
c9bb997
...
@@ -25,3 +25,5 @@ dev_v4.8.0 已上线,合并到 develop 以及 master 主干上
...
@@ -25,3 +25,5 @@ dev_v4.8.0 已上线,合并到 develop 以及 master 主干上
4.
11.0 版本上线后需往主干及分支 dev_4.12.0_0927 版本上合并代码
4.
11.0 版本上线后需往主干及分支 dev_4.12.0_0927 版本上合并代码
dev_4.12.0_0927 版本上线后已往主干 develop 以及 master 上合并
dev_4.12.0_0927 版本上线后已往主干 develop 以及 master 上合并
从 develop 上拉取分支 dev_4.12.1 对应 1010 紧急版本
src/api/index.js
View file @
c9bb997
import
request
from
'./request'
import
request
from
"./request"
// const path = 'dj.api.'
// const path = 'dj.api.'
const
path2
=
'dj.api.smartcarlife.'
const
path2
=
"dj.api.smartcarlife."
export
function
getTodayInvite
(
data
)
{
export
function
getTodayInvite
(
data
)
{
data
.
method
=
`
${
path2
}
workbench.todayToInvite.count`
data
.
method
=
`
${
path2
}
workbench.todayToInvite.count`
...
@@ -51,7 +51,7 @@ export function getIncomeProductList(data) {
...
@@ -51,7 +51,7 @@ export function getIncomeProductList(data) {
// 获取平台方列表
// 获取平台方列表
export
function
getPlatformMerchantList
(
data
)
{
export
function
getPlatformMerchantList
(
data
)
{
data
.
method
=
`
${
path2
}
serviceMerchant.platformMerchant.list`
data
.
method
=
`
${
path2
}
serviceMerchant.platformMerchant.list`
return
request
(
data
,
'post'
)
return
request
(
data
,
"post"
)
}
}
export
function
getExportDailyReport
(
data
)
{
export
function
getExportDailyReport
(
data
)
{
...
@@ -68,3 +68,15 @@ export function setMerchantOutputValueTarget(data) {
...
@@ -68,3 +68,15 @@ export function setMerchantOutputValueTarget(data) {
data
.
method
=
`
${
path2
}
workbench.inputMerchantOutputValueTarget`
data
.
method
=
`
${
path2
}
workbench.inputMerchantOutputValueTarget`
return
request
(
data
)
return
request
(
data
)
}
}
// 隐私协议标题查询
export
function
getPrivacyAgreement
(
data
)
{
data
.
method
=
`
${
path2
}
privacyAgreement.getTitleByModule`
return
request
(
data
,
"post"
)
}
// 新增或更新隐私协议
export
function
insertOrUpdatePrivacyAgreement
(
data
)
{
data
.
method
=
`
${
path2
}
privacyAgreement.insertOrUpdate`
return
request
(
data
,
"post"
)
}
src/layout/header-aside/components/header-user/index.vue
View file @
c9bb997
<
template
>
<
template
>
<div>
<div>
<div
class=
"d2-mr personal-wrap"
>
<div
class=
"d2-mr personal-wrap"
>
<i
class=
"el-icon-s-tools"
style=
"marginRight:20px;cursor:pointer"
v-if=
"userInfo.beSuper"
@
click=
"setTitle"
></i>
<el-popover
ref=
"popover1"
<el-popover
ref=
"popover1"
placement=
"top-start"
placement=
"top-start"
width=
"400"
width=
"400"
...
@@ -43,7 +47,12 @@
...
@@ -43,7 +47,12 @@
class=
"btn-text"
>
{{
info
&&
info
.
detail
?
(
info
.
detail
.
userType
==
2
?
`${info.detail.userName
}
`
:
'管理员'
)
:
'未登录'
}}
<
/span
>
class=
"btn-text"
>
{{
info
&&
info
.
detail
?
(
info
.
detail
.
userType
==
2
?
`${info.detail.userName
}
`
:
'管理员'
)
:
'未登录'
}}
<
/span
>
<
span
class
=
"btn-text out-txt"
<
span
class
=
"btn-text out-txt"
@
click
=
"clear"
>
退出
<
/span
>
@
click
=
"clear"
>
退出
<
/span
>
<
/div
>
<
/div
>
<!--
隐私协议
-->
<
privacy
-
agreement
-
dialog
:
privacyVisible
=
"privacyVisible"
v
-
if
=
"privacyVisible"
@
dialogClose
=
"privacyClose"
/>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -54,14 +63,16 @@ import { mapActions, mapState, mapMutations } from 'vuex'
...
@@ -54,14 +63,16 @@ import { mapActions, mapState, mapMutations } from 'vuex'
import
{
getImportResult
}
from
'@api/order'
import
{
getImportResult
}
from
'@api/order'
import
{
exportExcel
,
asyncExportExcel
}
from
'@api/sys.base'
import
{
exportExcel
,
asyncExportExcel
}
from
'@api/sys.base'
import
{
downLoadFile
}
from
'@/common/util'
import
{
downLoadFile
}
from
'@/common/util'
import
privacyAgreementDialog
from
'./privacyAgreementDialog'
var
dowloadTimer
=
0
var
dowloadTimer
=
0
var
uploadTimer
=
0
var
uploadTimer
=
0
export
default
{
export
default
{
components
:
{
components
:
{
// PersonalPanel
privacyAgreementDialog
}
,
}
,
data
()
{
data
()
{
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
show
:
true
,
show
:
true
,
accountPanelVisible
:
false
,
accountPanelVisible
:
false
,
userVisible
:
false
,
userVisible
:
false
,
...
@@ -82,7 +93,8 @@ export default {
...
@@ -82,7 +93,8 @@ export default {
// dowloadTimer: 0,
// dowloadTimer: 0,
uploadTimerNum
:
0
,
uploadTimerNum
:
0
,
redPotShow
:
false
,
redPotShow
:
false
,
isWorking
:
false
isWorking
:
false
,
privacyVisible
:
false
}
}
}
,
}
,
computed
:
{
computed
:
{
...
@@ -435,7 +447,17 @@ export default {
...
@@ -435,7 +447,17 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
show
=
true
this
.
show
=
true
}
)
}
)
}
}
,
setTitle
()
{
this
.
privacyVisible
=
!
this
.
privacyVisible
console
.
log
(
this
.
privacyVisible
);
}
,
privacyClose
()
{
this
.
privacyVisible
=
!
this
.
privacyVisible
}
,
}
,
}
,
beforeDestroy
()
{
beforeDestroy
()
{
clearInterval
(
dowloadTimer
)
clearInterval
(
dowloadTimer
)
...
@@ -528,4 +550,7 @@ export default {
...
@@ -528,4 +550,7 @@ export default {
.
accout
-
panel
.
el
-
button
--
text
{
.
accout
-
panel
.
el
-
button
--
text
{
color
:
#
606266
;
color
:
#
606266
;
}
}
.
setC
{
margin
-
right
:
20
px
;
}
<
/style
>
<
/style
>
src/layout/header-aside/components/header-user/privacyAgreementDialog.vue
0 → 100644
View file @
c9bb997
<!-- 下载对账单 -->
<
template
>
<d2-dialog
title=
"用户隐私协议"
:is-visible=
"privacyVisible"
class=
"privacyDailog"
width=
"30%"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<el-form
ref=
"privacyForm"
:model=
"infoForm"
label-width=
"120px"
>
<el-form-item
label=
"协议名称:"
prop=
"title"
>
<el-input
v-model=
"infoForm.title"
placeholder=
"请输入隐私协议名称"
style=
"width: 400px"
maxlength=
"20"
clearable
/>
</el-form-item>
</el-form>
</d2-dialog>
</
template
>
<
script
>
import
{
getPrivacyAgreement
,
insertOrUpdatePrivacyAgreement
}
from
'@api/index'
export
default
{
name
:
'privacyAgreementDialog'
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
title
:
''
,
module
:
'PrivacyAgreement'
,
},
// 基本数据
baseData
:
{
}
}
},
props
:
{
privacyVisible
:
{
type
:
Boolean
,
default
:
false
}
},
watch
:
{
},
created
()
{
},
components
:
{},
computed
:
{
},
mounted
()
{
this
.
getPrivacyAgreement
()
},
methods
:
{
getPrivacyAgreement
()
{
var
params
=
{}
params
.
module
=
this
.
infoForm
.
module
getPrivacyAgreement
(
params
).
then
(
res
=>
{
this
.
infoForm
.
title
=
res
?
res
:
''
})
},
handleAddConfirm
()
{
// this.$refs.privacyForm.validate(valid => {
// if (valid) {
var
params
=
{}
var
infoForm
=
_
.
cloneDeep
(
this
.
infoForm
)
params
=
infoForm
insertOrUpdatePrivacyAgreement
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
handleClose
()
})
// }
// })
},
handleClose
()
{
this
.
$emit
(
'dialogClose'
,
true
)
}
}
}
</
script
>
<
style
>
.privacyDailog
.el-dialog
{
min-width
:
700px
;
}
</
style
>
src/views/customer/recordList.vue
View file @
c9bb997
...
@@ -251,18 +251,22 @@ export default {
...
@@ -251,18 +251,22 @@ export default {
2
:
'女'
2
:
'女'
}[
cellValue
.
customerSex
]
}[
cellValue
.
customerSex
]
}
}
},
{
},
label
:
'手机号码'
,
// {
prop
:
'customerPhone'
,
// label: '手机号码',
width
:
'100px'
// prop: 'customerPhone',
},
{
// width: '100px'
// },
{
label
:
'品牌车型'
,
label
:
'品牌车型'
,
prop
:
'carTypeStr'
,
prop
:
'carTypeStr'
,
width
:
'100px'
width
:
'100px'
},
{
},
label
:
'车架号'
,
// {
prop
:
'standNo'
// label: '车架号',
},
{
// prop: 'standNo'
// },
{
label
:
'钥匙号'
,
label
:
'钥匙号'
,
prop
:
'carKeyNo'
prop
:
'carKeyNo'
},
{
},
{
...
...
src/views/financeManage/financeDetail.vue
View file @
c9bb997
...
@@ -138,10 +138,10 @@
...
@@ -138,10 +138,10 @@
</tr>
</tr>
<tr>
<tr>
<td
class=
"lb"
>
<td
class=
"lb"
>
汽车车架号
<!-- 汽车车架号 -->
</td>
</td>
<td
colspan=
"3"
>
<td
colspan=
"3"
>
{{
detail
.
standNo
}}
<!--
{{
detail
.
standNo
}}
-->
</td>
</td>
<td
class=
"lb"
>
<td
class=
"lb"
>
转化员
转化员
...
...
src/views/financeManage/financeList.vue
View file @
c9bb997
...
@@ -208,14 +208,14 @@
...
@@ -208,14 +208,14 @@
<span>
{{
scope
.
row
.
customerName
||
'-'
}}
</span>
<span>
{{
scope
.
row
.
customerName
||
'-'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"customerPhone"
<
!-- <
el-table-column prop="customerPhone"
label="手机号"
label="手机号"
align="center"
align="center"
width="120px">
width="120px">
<template slot-scope="scope">
<template slot-scope="scope">
<span>{{ scope.row.customerPhone || '-' }}</span>
<span>{{ scope.row.customerPhone || '-' }}</span>
</template>
</template>
</el-table-column>
</el-table-column>
-->
<el-table-column
prop=
"sellerName"
<el-table-column
prop=
"sellerName"
label=
"转化员"
label=
"转化员"
align=
"center"
>
align=
"center"
>
...
...
src/views/financeManage/serviceFinanceList.vue
View file @
c9bb997
...
@@ -150,10 +150,10 @@
...
@@ -150,10 +150,10 @@
<el-table-column
prop=
"customerName"
<el-table-column
prop=
"customerName"
label=
"客户姓名"
label=
"客户姓名"
align=
"center"
/>
align=
"center"
/>
<el-table-column
prop=
"customerPhone"
<
!--
<
el-table-column
prop=
"customerPhone"
label=
"手机号"
label=
"手机号"
align=
"center"
align=
"center"
width=
"120px"
/>
width=
"120px"
/>
-->
<el-table-column
prop=
"sellerName"
<el-table-column
prop=
"sellerName"
label=
"转化员"
label=
"转化员"
align=
"center"
/>
align=
"center"
/>
...
...
src/views/goods/d2-form/index.vue
View file @
c9bb997
This diff is collapsed.
Click to expand it.
src/views/goods/d2-form/relateProDialog.vue
View file @
c9bb997
<!-- 编辑商品弹窗 -->
<!-- 编辑商品弹窗 -->
<
template
>
<
template
>
<d2-dialog
<d2-dialog
title=
"添加绑定升级商品"
title=
"添加绑定升级商品"
:is-visible
.
sync=
"relateProVisible"
:is-visible
.
sync=
"relateProVisible"
btn-ok-label=
"关联"
btn-ok-label=
"关联"
width=
"950px"
width=
"950px"
@
confirmDialog=
"handleRelateProConfirm"
@
confirmDialog=
"handleRelateProConfirm"
@
closeDialog=
"handleRelateProClose"
@
closeDialog=
"handleRelateProClose"
class=
"relatePro"
>
class=
"relatePro"
>
<div
class=
"relateProDialog flex"
>
<div
class=
"relateProDialog flex"
>
<img
<img
v-show=
"proInfo.thumbUrl"
v-show=
"proInfo.thumbUrl"
:src=
"proInfo.thumbUrl"
>
:src=
"proInfo.thumbUrl"
<img
v-show=
"!proInfo.thumbUrl"
>
src=
"./image/no-choice.png"
>
<img
<el-form
:model=
"proInfo"
v-show=
"!proInfo.thumbUrl"
:rules=
"rules"
src=
"./image/no-choice.png"
label-width=
"110px"
>
ref=
"proRuleForm1"
<el-form
style=
"width: calc(100% - 180px);"
>
:model=
"proInfo"
:rules=
"rules"
label-width=
"110px"
ref=
"proRuleForm1"
style=
"width: calc(100% - 180px);"
>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
<el-form-item
<el-form-item
label=
"选择产品"
label=
"选择产品"
prop=
"goodsCode"
>
prop=
"goodsCode"
<el-select
style=
"width: 98%;"
>
v-model=
"proInfo.goodsCode"
<el-select
placeholder=
"请选择一款作为升级商品"
style=
"width: 98%;"
value-key=
"goodsCode"
v-model=
"proInfo.goodsCode"
filterable
placeholder=
"请选择一款作为升级商品"
@
change=
"handleChangeGood"
>
value-key=
"goodsCode"
<el-option
v-for=
"item in proList"
filterable
:key=
"item.goodsCode"
@
change=
"handleChangeGood"
:label=
"item.goodsName"
>
:value=
"item.goodsCode"
<el-option
:disabled=
"item.disabled"
/>
v-for=
"item in proList"
:key=
"item.goodsCode"
:label=
"item.goodsName"
:value=
"item.goodsCode"
:disabled=
"item.disabled"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
<el-form-item
label=
"分类"
>
<el-form-item
label=
"分类"
>
<el-input
<el-input
disabled
disabled
placeholder=
"分类"
placeholder=
"分类"
:value=
"proInfo.goodsTypeName"
:value=
"proInfo.goodsTypeName"
class=
"dis-in-block"
/>
class=
"dis-in-block"
/>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
/>
<div
class=
"w-50"
/>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
<el-form-item
label=
"编号"
>
<el-form-item
label=
"编号"
>
<el-input
<el-input
disabled
disabled
placeholder=
"编号"
placeholder=
"编号"
:value=
"proInfo.sapCode"
:value=
"proInfo.sapCode"
class=
"dis-in-block"
/>
class=
"dis-in-block"
/>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
<el-form-item
<el-form-item
label=
"产品成本"
label=
"产品成本"
prop=
"shopPrice"
>
prop=
"shopPrice"
<el-input
v-model=
"proInfo.shopPrice"
>
placeholder=
"请输入建议产品成本"
<el-input
class=
"dis-in-block"
v-model=
"proInfo.shopPrice"
@
input=
"handleShopPrice"
placeholder=
"请输入建议产品成本"
@
blur=
"handleShopPriceBlur"
>
class=
"dis-in-block"
<i
slot=
"suffix"
@
input=
"handleShopPrice"
class=
"suffix"
>
元
</i>
@
blur=
"handleShopPriceBlur"
>
<i
slot=
"suffix"
class=
"suffix"
>
元
</i>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
<el-form-item
<el-form-item
label=
"建议升级价格"
label=
"建议升级价格"
prop=
"upgradePrice"
>
prop=
"upgradePrice"
<el-input
v-model=
"proInfo.upgradePrice"
>
placeholder=
"请输入建议升级价格"
<el-input
class=
"dis-in-block"
v-model=
"proInfo.upgradePrice"
@
input=
"handleUpgradePrice"
>
placeholder=
"请输入建议升级价格"
<i
slot=
"suffix"
class=
"dis-in-block"
class=
"suffix"
>
元
</i>
@
input=
"handleUpgradePrice"
>
<i
slot=
"suffix"
class=
"suffix"
>
元
</i>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
<el-form-item
<el-form-item
label=
"商品最低价"
label=
"商品最低价"
prop=
"shopMinPrice"
>
prop=
"shopMinPrice"
<el-input
v-model=
"proInfo.shopMinPrice"
>
placeholder=
"请输入商品最低价"
<el-input
class=
"dis-in-block"
v-model=
"proInfo.shopMinPrice"
@
input=
"handleShopMinPrice"
>
placeholder=
"请输入商品最低价"
<i
slot=
"suffix"
class=
"dis-in-block"
class=
"suffix"
>
元
</i>
@
input=
"handleShopMinPrice"
>
<i
slot=
"suffix"
class=
"suffix"
>
元
</i>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
<div
class=
"w-50"
class=
"w-50"
v-show=
"warrantyProList.includes(proInfo.goodsType)"
>
v-show=
"warrantyProList.includes(proInfo.goodsType)"
<el-form-item
label=
"质保年限"
>
prop=
"warrantyPeriod"
>
<el-form-item
<!--
<el-select
style=
"width: 98%;"
label=
"质保年限"
:class=
"
{ 'select-suffix': !!proInfo.warrantyPeriod }"
prop=
"warrantyPeriod"
v-model="proInfo.warrantyPeriod">
>
<el-option
v-for=
"item in warrantyPeriodList"
<el-select
:key=
"item.confId"
style=
"width: 98%;"
:label=
"item.confLabel"
:class=
"
{ 'select-suffix': !!proInfo.warrantyPeriod }"
:value=
"item.confId"
/>
v-model="proInfo.warrantyPeriod"
</el-select>
-->
>
<el-input
v-model=
"proInfo.warrantyPeriod"
<el-option
placeholder=
"请输入质保年限"
v-for=
"item in warrantyPeriodList"
class=
"dis-in-block"
:key=
"item.confId"
@
input=
"handleWarrantyPeriod"
>
:label=
"item.confLabel"
<i
slot=
"suffix"
:value=
"item.confId"
class=
"suffix"
>
年
</i>
/>
</el-input>
</el-select>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -199,7 +162,8 @@ export default {
...
@@ -199,7 +162,8 @@ export default {
oldVal
:
{
oldVal
:
{
upgradePrice
:
''
,
upgradePrice
:
''
,
shopPrice
:
''
,
shopPrice
:
''
,
shopMinPrice
:
''
shopMinPrice
:
''
,
warrantyPeriod
:
''
},
},
separateOpt
:
[{
separateOpt
:
[{
confId
:
1
,
confId
:
1
,
...
@@ -287,7 +251,11 @@ export default {
...
@@ -287,7 +251,11 @@ export default {
var
validateObj
=
(
this
.
proInfo
.
shopPrice
<=
this
.
proInfo
.
upgradePrice
)
?
'clearValidate'
:
'validateField'
var
validateObj
=
(
this
.
proInfo
.
shopPrice
<=
this
.
proInfo
.
upgradePrice
)
?
'clearValidate'
:
'validateField'
this
.
$refs
.
proRuleForm1
[
validateObj
](
'upgradePrice'
)
this
.
$refs
.
proRuleForm1
[
validateObj
](
'upgradePrice'
)
}
}
}
},
handleWarrantyPeriod
(
newVal
)
{
this
.
proInfo
.
warrantyPeriod
=
limitPrice
(
newVal
,
this
.
oldVal
.
warrantyPeriod
,
2
,
1
)
this
.
oldVal
.
warrantyPeriod
=
this
.
proInfo
.
warrantyPeriod
},
}
}
}
}
...
@@ -327,7 +295,7 @@ export default {
...
@@ -327,7 +295,7 @@ export default {
}
}
.relatePro
.select-suffix
::after
{
.relatePro
.select-suffix
::after
{
display
:
inline-block
;
display
:
inline-block
;
content
:
'年'
;
content
:
"年"
;
position
:
absolute
;
position
:
absolute
;
right
:
30px
;
right
:
30px
;
top
:
0px
;
top
:
0px
;
...
...
src/views/goods/d2-form/relateStoreDialog.vue
View file @
c9bb997
...
@@ -67,6 +67,21 @@
...
@@ -67,6 +67,21 @@
<el-table-column
prop=
"merchantName"
<el-table-column
prop=
"merchantName"
label=
"4S店名称"
label=
"4S店名称"
align=
"center"
/>
align=
"center"
/>
<el-table-column
prop=
"warrantyType"
label=
"选择质保"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
<el-select
style=
"width: 90%;"
v-model=
"scope.row.warrantyType"
>
<el-option
v-for=
"item in warrantyTypeList"
:key=
"item.confId"
:label=
"item.confLabel"
:value=
"item.confId"
/>
</el-select>
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"删除"
<el-table-column
label=
"删除"
align=
"center"
align=
"center"
width=
"50px"
>
width=
"50px"
>
...
@@ -93,7 +108,14 @@ export default {
...
@@ -93,7 +108,14 @@ export default {
// 分页
// 分页
total
:
0
,
total
:
0
,
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
20
pageSize
:
20
,
warrantyTypeList
:
[{
confId
:
0
,
confLabel
:
'质保卡'
},
{
confId
:
1
,
confLabel
:
'质保权益卡'
}]
}
}
},
},
...
@@ -153,7 +175,12 @@ export default {
...
@@ -153,7 +175,12 @@ export default {
currentPage
:
this
.
currentPage
,
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
selectingData
=
res
.
list
this
.
selectingData
=
res
.
list
.
map
(
item
=>
{
if
(
!
item
.
warrantyType
)
{
item
.
warrantyType
=
0
}
return
item
})
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
recoverySelection
()
this
.
recoverySelection
()
...
@@ -161,6 +188,7 @@ export default {
...
@@ -161,6 +188,7 @@ export default {
})
})
},
},
handleChange
(
selection
,
row
)
{
handleChange
(
selection
,
row
)
{
var
addOrDelete
=
!!
selection
.
find
(
item
=>
item
.
merchantId
===
row
.
merchantId
)
var
addOrDelete
=
!!
selection
.
find
(
item
=>
item
.
merchantId
===
row
.
merchantId
)
addOrDelete
addOrDelete
?
this
.
selectedData
.
push
(
row
)
?
this
.
selectedData
.
push
(
row
)
...
...
src/views/goods/drawerDetail.vue
View file @
c9bb997
...
@@ -143,6 +143,13 @@
...
@@ -143,6 +143,13 @@
<span>
{{
baseData
[
scope
.
row
.
channelType
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
scope
.
row
.
userType
]
}}
</span>
<span>
{{
baseData
[
scope
.
row
.
channelType
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
scope
.
row
.
userType
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"warrantyType"
label=
"质保类型"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
warrantyTypeShow
[
scope
.
row
.
warrantyType
]
}}
</span>
</
template
>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
</div>
</div>
...
@@ -166,7 +173,11 @@ export default {
...
@@ -166,7 +173,11 @@ export default {
ghUserTypeList
:
ghUserType
ghUserTypeList
:
ghUserType
},
},
examineFlag
:
false
,
// 是否有审核权限
examineFlag
:
false
,
// 是否有审核权限
isExamineOp
:
false
// 是否做了审核操作
isExamineOp
:
false
,
// 是否做了审核操作
warrantyTypeShow
:
{
0
:
'质保卡'
,
1
:
'质保卡权益卡'
}
}
}
},
},
...
...
src/views/goods/editCommodity.vue
View file @
c9bb997
...
@@ -2,25 +2,21 @@
...
@@ -2,25 +2,21 @@
<
template
>
<
template
>
<d2-container
class=
"edit-commodity"
>
<d2-container
class=
"edit-commodity"
>
<!-- :formItemWidth="formItemWidth" -->
<!-- :formItemWidth="formItemWidth" -->
<d2-form-goods
<d2-form-goods
v-if=
"show"
v-if=
"show"
ref=
"d2Form"
ref=
"d2Form"
:store-api=
"commodityAddSeviceMerchant"
:store-api=
"commodityAddSeviceMerchant"
form-name=
"commodity"
form-name=
"commodity"
:rules=
"rules"
:rules=
"rules"
:add-or-edit=
"addOrEdit"
:add-or-edit=
"addOrEdit"
:origin-data=
"editData"
:origin-data=
"editData"
:form-list=
"editForm"
:form-list=
"editForm"
:form-ref=
"comFormRef"
:form-ref=
"comFormRef"
@
ydMerchantChange=
"getGoodsList"
@
ydMerchantChange=
"getGoodsList"
@
handleAddConfirm=
"handleAddConfirm"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
>
@
handleClose=
"handleAddClose"
<p
slot=
"title"
>
class=
"edit-title"
>
<p
{{
addOrEdit
===
'add'
?
'新增商品'
:
'编辑商品'
}}
slot=
"title"
class=
"edit-title"
>
{{
addOrEdit
===
'add'
?
'新增商品'
:
'编辑商品'
}}
</p>
</p>
</d2-form-goods>
</d2-form-goods>
</d2-container>
</d2-container>
...
@@ -254,7 +250,7 @@ export default {
...
@@ -254,7 +250,7 @@ export default {
retailPrice
:
data
.
retailPrice
,
retailPrice
:
data
.
retailPrice
,
maxRetailDiscount
:
data
.
maxRetailDiscount
,
maxRetailDiscount
:
data
.
maxRetailDiscount
,
shopPrice
:
data
.
shopPrice
,
shopPrice
:
data
.
shopPrice
,
upgradeGoods
:
data
.
upgradeGoods
.
length
upgradeGoods
:
data
.
upgradeGoods
.
length
?
data
.
upgradeGoods
.
map
(
item
=>
{
?
data
.
upgradeGoods
.
map
(
item
=>
{
const
tempVal
=
{}
const
tempVal
=
{}
upgradeGoodsAttr
.
forEach
(
i
=>
{
upgradeGoodsAttr
.
forEach
(
i
=>
{
...
@@ -263,17 +259,18 @@ export default {
...
@@ -263,17 +259,18 @@ export default {
return
{
return
{
...
tempVal
...
tempVal
}
}
})
})
:
[],
:
[],
// linkMerchantIds: data.linkMerchantIds ? data.linkMerchantIds.map(item => String(item.merchantId)) : []
// linkMerchantIds: data.linkMerchantIds ? data.linkMerchantIds.map(item => String(item.merchantId)) : []
linkMerchants
:
data
.
linkMerchants
.
map
(
item
=>
{
linkMerchants
:
data
.
linkMerchants
.
map
(
item
=>
{
return
{
return
{
merchantId
:
String
(
item
.
merchantId
),
merchantId
:
String
(
item
.
merchantId
),
yqMerchantId
:
item
.
yqMerchantId
yqMerchantId
:
item
.
yqMerchantId
,
warrantyType
:
item
.
warrantyType
}
}
})
})
}
}
// console.log(params)
//
return
console.log(params)
this
.
$confirm
(
'提交商品需要进入审核'
,
'提示'
,
{
this
.
$confirm
(
'提交商品需要进入审核'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
type
:
'warning'
type
:
'warning'
...
...
src/views/orderManage/orderDetail.vue
View file @
c9bb997
...
@@ -68,9 +68,9 @@
...
@@ -68,9 +68,9 @@
<el-form-item
label=
"用户姓名:"
>
<el-form-item
label=
"用户姓名:"
>
{{
detail
.
customerName
}}
{{
detail
.
customerName
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"车架号:"
>
<
!--
<
el-form-item
label=
"车架号:"
>
{{
detail
.
standNo
}}
{{
detail
.
standNo
}}
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"评价:"
>
<el-form-item
label=
"评价:"
>
{{
detail
.
customerComment
}}
{{
detail
.
customerComment
}}
</el-form-item>
</el-form-item>
...
...
src/views/orderManage/orderList.vue
View file @
c9bb997
...
@@ -84,10 +84,10 @@
...
@@ -84,10 +84,10 @@
<
span
>
{{
scope
.
row
.
customerSex
==
1
?
'男'
:
'女'
}}
<
/span
>
<
span
>
{{
scope
.
row
.
customerSex
==
1
?
'男'
:
'女'
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"客户手机号"
<
!--
<
el
-
table
-
column
label
=
"客户手机号"
align
=
"center"
align
=
"center"
width
=
"150"
width
=
"150"
prop
=
"customerPhone"
/>
prop
=
"customerPhone"
/>
-->
<
el
-
table
-
column
label
=
"客户车型"
<
el
-
table
-
column
label
=
"客户车型"
align
=
"center"
align
=
"center"
width
=
"200"
width
=
"200"
...
@@ -102,10 +102,10 @@
...
@@ -102,10 +102,10 @@
align
=
"center"
align
=
"center"
width
=
"110"
width
=
"110"
prop
=
"plateNumber"
/>
prop
=
"plateNumber"
/>
<
el
-
table
-
column
label
=
"客户车架号"
<
!--
<
el
-
table
-
column
label
=
"客户车架号"
align
=
"center"
align
=
"center"
width
=
"150"
width
=
"150"
prop
=
"standNo"
/>
prop
=
"standNo"
/>
-->
<
el
-
table
-
column
label
=
"升级状态"
<
el
-
table
-
column
label
=
"升级状态"
align
=
"center"
align
=
"center"
prop
=
"upgradeFlag"
>
prop
=
"upgradeFlag"
>
...
...
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