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 977fc339
authored
Jul 29, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:历史错误回显问题
1 parent
71dcc49a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
37 deletions
src/api/request.js
src/common/Export2Excel.js
src/views/systemConfig/merchant/financialRulesDetail.vue
src/views/systemConfig/merchant/viewDetail.vue
vue.config.js
src/api/request.js
View file @
977fc33
...
@@ -16,12 +16,12 @@ const request = (
...
@@ -16,12 +16,12 @@ const request = (
noSignAttr
=
[],
noSignAttr
=
[],
options
options
)
=>
{
)
=>
{
console
.
log
(
baseConfig
)
//
console.log(baseConfig)
// params.source = 'glsx'
// params.source = 'glsx'
// params.appKey = 'd7ffc3346fc9a45bccaaa35300d59022'
// params.appKey = 'd7ffc3346fc9a45bccaaa35300d59022'
params
.
appKey
=
baseConfig
?.
axios
?.
appkey
params
.
appKey
=
baseConfig
?.
axios
?.
appkey
// clg
// clg
console
.
log
(
params
.
appKey
)
//
console.log(params.appKey)
// params.appKey = window.location.href.includes('dj.glsx.com.cn')
// params.appKey = window.location.href.includes('dj.glsx.com.cn')
// ? 'd7ffc3346fc9a45bccaaa35300d59022'
// ? 'd7ffc3346fc9a45bccaaa35300d59022'
// : '48e5e13229b82c1b4e6e8c96151f0637'
// : '48e5e13229b82c1b4e6e8c96151f0637'
...
...
src/common/Export2Excel.js
View file @
977fc33
/* eslint-disable */
/* eslint-disable */
require
(
'script-loader!file-saver'
)
require
(
'script-loader!file-saver'
)
require
(
'./Blob'
)
require
(
'./Blob'
)
require
(
'script-loader!xlsx/dist/xlsx.core.min'
)
//
require('script-loader!xlsx/dist/xlsx.core.min')
//
import * as XLSX from 'xlsx' // 数据导出导入所需要的依赖
import
*
as
XLSX
from
'xlsx'
// 数据导出导入所需要的依赖
function
generateArray
(
table
)
{
function
generateArray
(
table
)
{
var
out
=
[]
var
out
=
[]
var
rows
=
table
.
querySelectorAll
(
'tr'
)
var
rows
=
table
.
querySelectorAll
(
'tr'
)
...
...
src/views/systemConfig/merchant/financialRulesDetail.vue
View file @
977fc33
This diff is collapsed.
Click to expand it.
src/views/systemConfig/merchant/viewDetail.vue
View file @
977fc33
...
@@ -36,7 +36,8 @@
...
@@ -36,7 +36,8 @@
class=
"blue"
>
{{
merchantInfo
.
marketingCostPartnerMerchant
?
merchantInfo
.
marketingCostPartnerMerchant
.
merchantName
:
''
}}{{
merchantInfo
.
marketingCostPartnerMerchant
?
(
'('
+
merchantInfo
.
marketingCostPartnerMerchant
.
merchantId
+
')'
)
:
''
}}
:
</span>
class=
"blue"
>
{{
merchantInfo
.
marketingCostPartnerMerchant
?
merchantInfo
.
marketingCostPartnerMerchant
.
merchantName
:
''
}}{{
merchantInfo
.
marketingCostPartnerMerchant
?
(
'('
+
merchantInfo
.
marketingCostPartnerMerchant
.
merchantId
+
')'
)
:
''
}}
:
</span>
{{
divisionList
.
marketingCostPartnerMerchant
.
join
(
','
)
}}
{{
divisionList
.
marketingCostPartnerMerchant
.
join
(
','
)
}}
</p>
</p>
<p
v-show=
"divisionList.realityShopMerchantName.length"
>
<!-- v-show="divisionList.realityShopMerchantName.length" -->
<p>
<span
<span
class=
"blue"
>
{{
divisionForm
.
realityShopMerchantName
}}
:
</span>
{{
divisionList
.
realityShopMerchantName
.
join
(
','
)
}}
class=
"blue"
>
{{
divisionForm
.
realityShopMerchantName
}}
:
</span>
{{
divisionList
.
realityShopMerchantName
.
join
(
','
)
}}
</p>
</p>
...
@@ -61,7 +62,8 @@
...
@@ -61,7 +62,8 @@
<tr>
<tr>
<th>
商户编号:
{{
merchantInfo
.
merchantId
}}
</th>
<th>
商户编号:
{{
merchantInfo
.
merchantId
}}
</th>
<th
class=
"ellipsis w-298"
<th
class=
"ellipsis w-298"
:title=
"merchantInfo.merchantName"
>
商户名称:
{{
merchantInfo
.
merchantName
}}
</th>
:title=
"$$(merchantInfo.merchant,'merchantName')"
>
商户名称:
{{
$$
(
merchantInfo
.
merchant
,
'merchantName'
)
}}
</th>
<th
class=
"w-140"
>
联系人:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
contactName
:
''
}}
<th
class=
"w-140"
>
联系人:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
contactName
:
''
}}
</th>
</th>
<th>
联系电话:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
phone
:
''
}}
</th>
<th>
联系电话:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
phone
:
''
}}
</th>
...
@@ -73,10 +75,10 @@
...
@@ -73,10 +75,10 @@
<tr>
<tr>
<td>
登录账户:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
accountName
:
''
}}
</td>
<td>
登录账户:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
accountName
:
''
}}
</td>
<td>
<td>
商户类型:
{{
baseData
[
merchantInfo
.
channelType
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
merchantInfo
.
userType
]
}}
商户类型:
{{
baseData
[
$$
(
merchantInfo
.
merchant
,
'channelType'
)
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
merchantInfo
.
merchant
.
userType
]
}}
</td>
</td>
<td>
<td>
商户分类:
{{
merchantInfo
.
merchantType
?
baseData
.
merchantClassifyList
.
find
(
item
=>
item
.
confId
===
merchantInfo
.
merchantType
).
confLabel
:
''
}}
商户分类:
{{
$$
(
merchantInfo
.
merchant
,
'merchantType'
)
?
baseData
.
merchantClassifyList
.
find
(
item
=>
item
.
confId
===
merchantInfo
.
merchant
.
merchantType
).
confLabel
:
''
}}
</td>
</td>
<td
class=
"dateContainer noPddingRight"
>
入驻日期:
<td
class=
"dateContainer noPddingRight"
>
入驻日期:
<el-date-picker
v-model=
"needTransformObj.entryDate"
<el-date-picker
v-model=
"needTransformObj.entryDate"
...
@@ -248,7 +250,7 @@
...
@@ -248,7 +250,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Util
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
getAccountRule
,
getDivisionRuleApi
,
entrydateUpdate
}
from
'@api/merchant'
import
{
getAccountRule
,
getDivisionRuleApi
,
entrydateUpdate
}
from
'@api/merchant'
// deductChargeFlagObj
// deductChargeFlagObj
import
{
userType
,
ghUserType
,
merchantClassifyList
,
partnerDeductChargeFlagObj
,
shop4sDeductChargeFlagObj
}
from
'@/common/constants'
import
{
userType
,
ghUserType
,
merchantClassifyList
,
partnerDeductChargeFlagObj
,
shop4sDeductChargeFlagObj
}
from
'@/common/constants'
...
@@ -387,8 +389,10 @@ export default {
...
@@ -387,8 +389,10 @@ export default {
if
(
this
.
isGetDetail
)
{
if
(
this
.
isGetDetail
)
{
this
.
getDetail
()
this
.
getDetail
()
}
else
{
}
else
{
this
.
setDivisionRule
(
this
.
merchantInfo
.
divisionRule
)
this
.
setAccountRule
(
this
.
merchantInfo
.
settleRule
)
this
.
setAccountRule
(
this
.
merchantInfo
.
settleRule
)
this
.
setDivisionRule
(
deepClone
(
this
.
merchantInfo
.
divisionRule
))
// const res = Object.assign(this.merchantInfo.settleRule, this.merchantInfo.divisionRule)
// this.setDivisionRule(res)
}
}
},
},
...
@@ -420,6 +424,7 @@ export default {
...
@@ -420,6 +424,7 @@ export default {
setDivisionRule
(
res
)
{
setDivisionRule
(
res
)
{
this
.
hasDivision
=
res
??
''
this
.
hasDivision
=
res
??
''
this
.
divisionForm
=
res
||
{}
this
.
divisionForm
=
res
||
{}
console
.
log
(
this
.
divisionForm
)
Object
.
assign
(
this
.
form
,
res
)
Object
.
assign
(
this
.
form
,
res
)
var
flagList
=
Object
.
keys
(
this
.
flagTodivisionObj
)
var
flagList
=
Object
.
keys
(
this
.
flagTodivisionObj
)
...
@@ -440,9 +445,10 @@ export default {
...
@@ -440,9 +445,10 @@ export default {
},
},
setAccountRule
(
res
)
{
setAccountRule
(
res
)
{
Object
.
assign
(
this
.
merchantInfo
,
res
)
Object
.
assign
(
this
.
merchantInfo
,
res
)
// console.log(
res
)
// console.log(
this.settleRuleList
)
if
(
res
)
{
if
(
res
)
{
this
.
settleRuleList
=
res
.
goodsTypeSettleRuleList
this
.
settleRuleList
=
deepClone
(
res
.
goodsTypeSettleRuleList
)
// console.log(res.goodsTypeSettleRuleList)
this
.
merchantInfo
.
deductChargeFlag
=
res
.
deductChargeFlag
this
.
merchantInfo
.
deductChargeFlag
=
res
.
deductChargeFlag
this
.
settleRuleList
.
unshift
({
this
.
settleRuleList
.
unshift
({
goodsTypeName
:
'全部'
,
goodsTypeName
:
'全部'
,
...
@@ -451,6 +457,7 @@ export default {
...
@@ -451,6 +457,7 @@ export default {
partnerProfitPer
:
res
.
partnerProfitPer
partnerProfitPer
:
res
.
partnerProfitPer
})
})
}
}
// console.log(this.settleRuleList)
},
},
chooseDate
()
{
chooseDate
()
{
this
.
$refs
.
datePicker
.
focus
()
this
.
$refs
.
datePicker
.
focus
()
...
...
vue.config.js
View file @
977fc33
...
@@ -41,31 +41,7 @@ const publicPath = '/dj-carlife-web/'
...
@@ -41,31 +41,7 @@ const publicPath = '/dj-carlife-web/'
// const publicPath = '/'
// const publicPath = '/'
// const CDN_DOMAIN = 'https://cdn.bootcss.com'
// const CDN_DOMAIN = 'https://cdn.bootcss.com'
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/dj-carlife-web'
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/dj-carlife-web'
// const cdn = {
// css: [
// `${CDN_DOMAIN}/nprogress.min.css`,
// `${CDN_DOMAIN}/element-ui.min.css`,
// `${CDN_DOMAIN}/flex.css`
// ],
// js: [
// `${CDN_DOMAIN}/vue.min.js`,
// `${CDN_DOMAIN}/vue-router.min.js`,
// `${CDN_DOMAIN}/vuex.min.js`,
// `${CDN_DOMAIN}/axios.min.js`,
// `${CDN_DOMAIN}/js.cookie.min.js`,
// `${CDN_DOMAIN}/nprogress.min.js`,
// `${CDN_DOMAIN}/echarts.min.js`,
// `${CDN_DOMAIN}/lodash.min.js`,
// `${CDN_DOMAIN}/qs.min.js`,
// `${CDN_DOMAIN}/ua-parser.min.js`,
// `${CDN_DOMAIN}/html2canvas.min.js`,
// `${CDN_DOMAIN}/element-ui.min.js`,
// `${CDN_DOMAIN}/better-scroll.min.js`,
// `${CDN_DOMAIN}/dayjs.min.js`,
// `${CDN_DOMAIN}/vue-qr.js`,
// `${CDN_DOMAIN}/xlsx.min.js`
// ]
// }
const
cdn
=
{
const
cdn
=
{
css
:
[
css
:
[
`
${
CDN_DOMAIN
}
/nprogress.min.css`
,
`
${
CDN_DOMAIN
}
/nprogress.min.css`
,
...
...
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