Commit 977fc339 by 张立顺

fix:历史错误回显问题

1 parent 71dcc49a
......@@ -16,12 +16,12 @@ const request = (
noSignAttr = [],
options
) => {
console.log(baseConfig)
// console.log(baseConfig)
// params.source = 'glsx'
// params.appKey = 'd7ffc3346fc9a45bccaaa35300d59022'
params.appKey = baseConfig?.axios?.appkey
// clg
console.log(params.appKey)
// console.log(params.appKey)
// params.appKey = window.location.href.includes('dj.glsx.com.cn')
// ? 'd7ffc3346fc9a45bccaaa35300d59022'
// : '48e5e13229b82c1b4e6e8c96151f0637'
......
/* eslint-disable */
require('script-loader!file-saver')
require('./Blob')
require('script-loader!xlsx/dist/xlsx.core.min')
// import * as XLSX from 'xlsx' // 数据导出导入所需要的依赖
// require('script-loader!xlsx/dist/xlsx.core.min')
import * as XLSX from 'xlsx' // 数据导出导入所需要的依赖
function generateArray(table) {
var out = []
var rows = table.querySelectorAll('tr')
......
......@@ -36,7 +36,8 @@
class="blue">{{merchantInfo.marketingCostPartnerMerchant ? merchantInfo.marketingCostPartnerMerchant.merchantName : ''}}{{merchantInfo.marketingCostPartnerMerchant ? ( '(' + merchantInfo.marketingCostPartnerMerchant.merchantId + ')') : ''}}:</span>
{{divisionList.marketingCostPartnerMerchant.join(',')}}
</p>
<p v-show="divisionList.realityShopMerchantName.length">
<!-- v-show="divisionList.realityShopMerchantName.length" -->
<p>
<span
class="blue">{{divisionForm.realityShopMerchantName}}:</span>{{divisionList.realityShopMerchantName.join(',')}}
</p>
......@@ -61,7 +62,8 @@
<tr>
<th>商户编号:{{merchantInfo.merchantId}}</th>
<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>
<th>联系电话:{{merchantInfo.merchant ? merchantInfo.merchant.phone : ''}}</th>
......@@ -73,10 +75,10 @@
<tr>
<td>登录账户:{{merchantInfo.merchant ? merchantInfo.merchant.accountName : ''}}</td>
<td>
商户类型:{{baseData[merchantInfo.channelType === 2 ? 'ghUserTypeList' : 'userTypeList'][merchantInfo.userType]}}
商户类型:{{baseData[$$(merchantInfo.merchant,'channelType') === 2 ? 'ghUserTypeList' : 'userTypeList'][merchantInfo.merchant.userType]}}
</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 class="dateContainer noPddingRight">入驻日期:
<el-date-picker v-model="needTransformObj.entryDate"
......@@ -248,7 +250,7 @@
</template>
<script>
import { Util } from '@/common/util'
import { Util, deepClone } from '@/common/util'
import { getAccountRule, getDivisionRuleApi, entrydateUpdate } from '@api/merchant'
// deductChargeFlagObj
import { userType, ghUserType, merchantClassifyList, partnerDeductChargeFlagObj, shop4sDeductChargeFlagObj } from '@/common/constants'
......@@ -387,8 +389,10 @@ export default {
if (this.isGetDetail) {
this.getDetail()
} else {
this.setDivisionRule(this.merchantInfo.divisionRule)
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 {
setDivisionRule(res) {
this.hasDivision = res ?? ''
this.divisionForm = res || {}
console.log(this.divisionForm)
Object.assign(this.form, res)
var flagList = Object.keys(this.flagTodivisionObj)
......@@ -440,9 +445,10 @@ export default {
},
setAccountRule(res) {
Object.assign(this.merchantInfo, res)
// console.log(res)
// console.log(this.settleRuleList)
if (res) {
this.settleRuleList = res.goodsTypeSettleRuleList
this.settleRuleList = deepClone(res.goodsTypeSettleRuleList)
// console.log(res.goodsTypeSettleRuleList)
this.merchantInfo.deductChargeFlag = res.deductChargeFlag
this.settleRuleList.unshift({
goodsTypeName: '全部',
......@@ -451,6 +457,7 @@ export default {
partnerProfitPer: res.partnerProfitPer
})
}
// console.log(this.settleRuleList)
},
chooseDate() {
this.$refs.datePicker.focus()
......
......@@ -41,31 +41,7 @@ const publicPath = '/dj-carlife-web/'
// const publicPath = '/'
// const CDN_DOMAIN = 'https://cdn.bootcss.com'
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 = {
css: [
`${CDN_DOMAIN}/nprogress.min.css`,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!