Commit fd55275e by 张立顺

修复eslint 语法错误

1 parent 8c44908b
...@@ -97,7 +97,8 @@ ...@@ -97,7 +97,8 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{new Date(scope.row.createdDate).toLocaleDateString()}}</span> <span>{{new Date(scope.row.createdDate).toLocaleDateString()}}</span>
</template></el-table-column> </template>
</el-table-column>
<el-table-column label="创建方式" <el-table-column label="创建方式"
align="center" align="center"
prop="source"> prop="source">
...@@ -120,7 +121,8 @@ ...@@ -120,7 +121,8 @@
</template> </template>
<script> <script>
import { getList, exportFile, orderCount } from '@api/customerList' // exportFile
import { getList, orderCount } from '@api/customerList'
import { getServiceStore, getParkStore } from '@api/editCustomer' import { getServiceStore, getParkStore } from '@api/editCustomer'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
...@@ -392,7 +394,7 @@ export default { ...@@ -392,7 +394,7 @@ export default {
{ {
name: '客户列表', name: '客户列表',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
...mapActions({ ...mapActions({
close: 'd2admin/page/close' close: 'd2admin/page/close'
}), }),
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = _.cloneDeep(this.searchForm) this.tableSearchForm = _.cloneDeep(this.searchForm)
......
...@@ -161,7 +161,8 @@ import _ from 'lodash' ...@@ -161,7 +161,8 @@ import _ from 'lodash'
import { Util } from '@/common/util' import { Util } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getParkStore } from '@api/editCustomer' import { getParkStore } from '@api/editCustomer'
import { getListApi, getCountApi, exportApi } from '@/api/account' // exportApi
import { getListApi, getCountApi } from '@/api/account'
import { getPlatformMerchantList } from '@api/index' import { getPlatformMerchantList } from '@api/index'
import { orderTypeList } from '@/common/constants.js' import { orderTypeList } from '@/common/constants.js'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
...@@ -398,7 +399,7 @@ export default { ...@@ -398,7 +399,7 @@ export default {
{ {
name: '分账列表-线下分账(超管/园区店)', name: '分账列表-线下分账(超管/园区店)',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -175,12 +175,13 @@ ...@@ -175,12 +175,13 @@
</template> </template>
<script> <script>
// exportApi
import _ from 'lodash' import _ from 'lodash'
import { Util } from '@/common/util' import { Util } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getParkStore } from '@api/editCustomer' import { getParkStore } from '@api/editCustomer'
import { divisionStatusList, orderTypeList } from '@/common/constants.js' import { divisionStatusList, orderTypeList } from '@/common/constants.js'
import { getListApi, getCountApi, exportApi } from '@/api/account' import { getListApi, getCountApi } from '@/api/account'
import { getPlatformMerchantList } from '@api/index' import { getPlatformMerchantList } from '@api/index'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
export default { export default {
...@@ -459,7 +460,7 @@ export default { ...@@ -459,7 +460,7 @@ export default {
{ {
name: '分账列表-线上分账(超管/园区店)', name: '分账列表-线上分账(超管/园区店)',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { Util } from '@/common/util' import { Util } from '@/common/util'
// import { divisionTypeList } from '@/common/constants.js' // import { divisionTypeList } from '@/common/constants.js'
// getSeviceCountApi, getSeviceListApi, exportSeviceApi, // getSeviceCountApi, getSeviceListApi, exportSeviceApi,getSeviceExport
import { getPartnerYqListApi, getSeviceList, getSeviceCount, getSeviceExport } from '@/api/account' import { getPartnerYqListApi, getSeviceList, getSeviceCount } from '@/api/account'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
export default { export default {
name: 'serviceOfflineList', name: 'serviceOfflineList',
...@@ -281,7 +281,7 @@ export default { ...@@ -281,7 +281,7 @@ export default {
{ {
name: '分账列表-线下分账(服务商)', name: '分账列表-线下分账(服务商)',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -82,7 +82,8 @@ import { mapActions, mapState } from 'vuex' ...@@ -82,7 +82,8 @@ import { mapActions, mapState } from 'vuex'
import { Util } from '@/common/util' import { Util } from '@/common/util'
import cashDialog from './cashDialog' import cashDialog from './cashDialog'
import { divisionStatusList } from '@/common/constants.js' import { divisionStatusList } from '@/common/constants.js'
import { getBankBalanceApi, getPartnerYqListApi, getSeviceList, getSeviceCount, getSeviceExport } from '@/api/account' // getSeviceExport
import { getBankBalanceApi, getPartnerYqListApi, getSeviceList, getSeviceCount } from '@/api/account'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
export default { export default {
name: 'serviceOnlineList', name: 'serviceOnlineList',
...@@ -399,7 +400,7 @@ export default { ...@@ -399,7 +400,7 @@ export default {
{ {
name: '分账列表-线上分账(服务商)', name: '分账列表-线上分账(服务商)',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -858,7 +858,7 @@ export default { ...@@ -858,7 +858,7 @@ export default {
{ {
name: '合并导出', name: '合并导出',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -439,8 +439,8 @@ ...@@ -439,8 +439,8 @@
import dayjs from 'dayjs' import dayjs from 'dayjs'
import serviceDetailDialog from './serviceDetailDialog' import serviceDetailDialog from './serviceDetailDialog'
import warehouseDetail from './warehouseDetail' import warehouseDetail from './warehouseDetail'
// getServiceListApi getServiceListApi // getServiceListApi getServiceListApi exportFile
import { exportFile, getListTotal, getServicerefApi, getServiceSummaryApi, getList } from '@api/finance' import { getListTotal, getServicerefApi, getServiceSummaryApi, getList } from '@api/finance'
import { getPartnerYqListApi } from '@/api/account' import { getPartnerYqListApi } from '@/api/account'
import { getServiceStore } from '@api/editCustomer' import { getServiceStore } from '@api/editCustomer'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
...@@ -719,7 +719,7 @@ export default { ...@@ -719,7 +719,7 @@ export default {
{ {
name: '合并导出', name: '合并导出',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -93,10 +93,11 @@ ...@@ -93,10 +93,11 @@
</template> </template>
<script> <script>
import { getList, exportBaseList, baseGoodsUpOrDown, baseGoodsDelete, baseGoodsUpOrDownForChild } from '@api/commodity' // exportBaseList
import { getList, baseGoodsUpOrDown, baseGoodsDelete, baseGoodsUpOrDownForChild } from '@api/commodity'
import { getParkStore } from '@api/editCustomer' import { getParkStore } from '@api/editCustomer'
import { BaseData, brandMerchantList } from '@/common/constants.js' import { BaseData, brandMerchantList } from '@/common/constants.js'
import { exportJsonToExcel } from '@/common/Export2Excel.js' // import { exportJsonToExcel } from '@/common/Export2Excel.js'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import _ from 'lodash' import _ from 'lodash'
import storeDetail from './storeDetail' import storeDetail from './storeDetail'
...@@ -418,7 +419,7 @@ export default { ...@@ -418,7 +419,7 @@ export default {
{ {
name: '基础商品列表', name: '基础商品列表',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
import storeList from './storeList' import storeList from './storeList'
import couponsDetail from './couponsDetail' import couponsDetail from './couponsDetail'
import editCouponsDialog from './editCouponsDialog' import editCouponsDialog from './editCouponsDialog'
import { exportListApi, exportDetailListApi } from '@api/coupons' // import { exportListApi, exportDetailListApi } from '@api/coupons'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
export default { export default {
...@@ -121,15 +121,13 @@ export default { ...@@ -121,15 +121,13 @@ export default {
? 'dj.api.life.merchant.coupon.exportExcel' ? 'dj.api.life.merchant.coupon.exportExcel'
: 'dj.api.life.customer.coupon.exportExcel' : 'dj.api.life.customer.coupon.exportExcel'
var params = { var params = {
...this.parentSearchForm, ...this.parentSearchForm,
currentPage: 1, currentPage: 1,
method: method method: method
} }
console.log(params); console.log(params)
asyncExportEecel({ exportParam: JSON.stringify(params) }).then(res => { asyncExportEecel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...@@ -139,7 +137,7 @@ export default { ...@@ -139,7 +137,7 @@ export default {
? '店面列表' ? '店面列表'
: '领用明细', : '领用明细',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
<script> <script>
import _ from 'lodash' import _ from 'lodash'
import { getList, deleteGoods, checkDeleteGoods, exportGoodsList } from '@api/product' // exportGoodsList
import { getList, deleteGoods, checkDeleteGoods } from '@api/product'
import { BaseData, brandMerchantList } from '@/common/constants.js' import { BaseData, brandMerchantList } from '@/common/constants.js'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
...@@ -246,7 +247,7 @@ export default { ...@@ -246,7 +247,7 @@ export default {
{ {
name: '素材列表', name: '素材列表',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
import outputValueDialog from './outputValueDialog' import outputValueDialog from './outputValueDialog'
// import moment from 'moment' // import moment from 'moment'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { getExportDailyReport } from '@api/index' // import { getExportDailyReport } from '@api/index'
import { downLoadFile } from '@/common/util' // import { downLoadFile } from '@/common/util'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
export default { export default {
...@@ -92,14 +92,14 @@ export default { ...@@ -92,14 +92,14 @@ export default {
// console.log(result) // console.log(result)
// downLoadFile(result) // downLoadFile(result)
// } // }
console.log(JSON.parse(result)); console.log(JSON.parse(result))
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
name: '日报表', name: '日报表',
uuid: JSON.parse(result).data, uuid: JSON.parse(result).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -59,7 +59,8 @@ import { Util } from '@/common/util' ...@@ -59,7 +59,8 @@ import { Util } from '@/common/util'
import _ from 'lodash' import _ from 'lodash'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getParkStore } from '@api/editCustomer' import { getParkStore } from '@api/editCustomer'
import { waitinputorderCount, waitinputorderPage, waitinputorderExport, getList } from '@api/order' // waitinputorderExport
import { waitinputorderCount, waitinputorderPage, getList } from '@api/order'
import { asyncExportEecel } from '@api/sys.base' import { asyncExportEecel } from '@api/sys.base'
export default { export default {
name: 'orderSupplement', name: 'orderSupplement',
...@@ -251,7 +252,6 @@ export default { ...@@ -251,7 +252,6 @@ export default {
}) })
}, },
mounted() { mounted() {
this.userInfo.beSuper && getParkStore({}).then(res => { this.userInfo.beSuper && getParkStore({}).then(res => {
res.forEach(item => { res.forEach(item => {
item.merchantId = item.merchantNo item.merchantId = item.merchantNo
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
{ {
name: '订单补录列表', name: '订单补录列表',
uuid: JSON.parse(res).data, uuid: JSON.parse(res).data,
ifSuccess: false, ifSuccess: false
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</template> </template>
<script> <script>
import { getMerchantPageSearch } from '@api/publicAccount' // import { getMerchantPageSearch } from '@api/publicAccount'
import { markAsRefunded } from '@api/order' import { markAsRefunded } from '@api/order'
export default { export default {
name: 'signRefundDialog', name: 'signRefundDialog',
...@@ -30,12 +30,12 @@ export default { ...@@ -30,12 +30,12 @@ export default {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
infoForm: { infoForm: {
remark: '', remark: ''
}, },
formRules: { formRules: {
remark: [{ required: true, message: '请输入备注信息', trigger: 'change' }], remark: [{ required: true, message: '请输入备注信息', trigger: 'change' }]
}, }
} }
}, },
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
components: {}, components: {},
mounted() { mounted() {
console.log(this.detail); console.log(this.detail)
}, },
methods: { methods: {
......
...@@ -3,9 +3,9 @@ const ThemeColorReplacer = require('webpack-theme-color-replacer') ...@@ -3,9 +3,9 @@ const ThemeColorReplacer = require('webpack-theme-color-replacer')
const forElementUI = require('webpack-theme-color-replacer/forElementUI') const forElementUI = require('webpack-theme-color-replacer/forElementUI')
const HardPlugin = require('hard-source-webpack-plugin') // 使用缓存,优化启动速度 const HardPlugin = require('hard-source-webpack-plugin') // 使用缓存,优化启动速度
const SentryWebpackPlugin = require('@sentry/webpack-plugin') const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin') // const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
const CopyDir = require('./plugins/copyDir') const CopyDir = require('./plugins/copyDir')
const AsyncRomveDir = require('./plugins/removeDir') // const AsyncRomveDir = require('./plugins/removeDir')
const { resolve: assets } = require('path') const { resolve: assets } = require('path')
const os = require('os') const os = require('os')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!