Commit f0ad7ed4 by 前端

BUG修复

1 parent 77670977
......@@ -1960,7 +1960,7 @@
}
},
"vue-loader-v16": {
"version": "npm:vue-loader-v16@16.8.3",
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
......@@ -6510,9 +6510,9 @@
}
},
"glsx-common": {
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.8.tgz",
"integrity": "sha512-hKt/SNFu+NslOHWvDLxmRwUkINBrnATTYIkOj+jmcx5RqfXIbMgEipzFGbCICWMlYYoecwRiJ6341sstPCCHLQ==",
"version": "2.0.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.9.tgz",
"integrity": "sha512-d4C404dGtp9fS4r4phi79ozuwleJd326xtfUqokiSs7Y7Zw7bn0Nza5UHHRuIHQettccjVOr18BNf7yG/cKuww==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
......
......@@ -13,7 +13,7 @@
"dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^2.0.8",
"glsx-common": "^2.0.9",
"glsx-components": "^1.2.5",
"rfdc": "^1.3.0",
"vue": "^2.6.10",
......
......@@ -49,11 +49,7 @@ export const upgradeList = [
},
{
confId: 'N',
confLabel: '战败'
},
{
confId: 'R',
confLabel: '待升级'
confLabel: '不升级'
}
]
......@@ -72,15 +68,15 @@ export const constructionList = [
// 分账状态
export const profitAllocationStatusList = [
{
confId: '1',
confId: 1,
confLabel: '未分账'
},
{
confId: '2',
confId: 2,
confLabel: '已分账'
},
{
confId: '4',
confId: 4,
confLabel: '待分账'
}
]
......
......@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
let params = { moduleName: 'ordermanage', mockUrl: 'https://oss-config.glsx.com.cn/mock/64423183e60bb539e414ec67/ordermanage/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
let params = { moduleName: 'ordermanage', mockUrl: 'https://oss-config.glsx.com.cn/mock/64423183e60bb539e414ec67/ordermanage/config', env: 'test', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params)
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=home').then(res => res)
......
......@@ -39,8 +39,8 @@
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { Util } from '@/common/util'
import { manageTypeList, exportFn } from '@/common/constant.js'
import { Util, downLoadFile } from '@/common/util'
import { manageTypeList } from '@/common/constant.js'
export default {
name: 'CarDamage',
components: {
......@@ -271,7 +271,7 @@ export default {
exportExcel() {
var params = this.getParams()
this.$apis.order.quotationExportApi(params).then(res => {
exportFn(res)
downLoadFile(res)
})
},
}
......
......@@ -168,7 +168,8 @@
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { utils } from 'glsx-common'
import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
import { downLoadFile } from '@/common/util'
import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList } from '@/common/constant'
const userInfo = [
{
label: '员工名称:',
......@@ -973,7 +974,7 @@ export default {
handleExport(row) {
var params = this.getParams()
this.$apis.order.orderExportApi(params).then(res => {
exportFn(res)
downLoadFile(res)
})
},
handleReset() {
......
......@@ -86,8 +86,8 @@
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { Util } from '@/common/util'
import { orderStatusList, upgradeList, constructionList, profitAllocationStatusList, sourceList, manageTypeList, exportFn } from '@/common/constant.js'
import { Util, downLoadFile } from '@/common/util'
import { orderStatusList, upgradeList, constructionList, profitAllocationStatusList, sourceList, manageTypeList } from '@/common/constant.js'
export default {
name: 'Order',
components: {
......@@ -264,7 +264,7 @@ export default {
getListApi: this.$apis.order.getList,
tableParams: {
listName: 'list',
tableOption: false,
tableOption: true,
tableColumns: [
{
label: '订单编号',
......@@ -279,7 +279,10 @@ export default {
{
label: '支付时间',
prop: 'paySuccessDate',
width: 170
width: 170,
formatter: (cellValue) => {
return cellValue.paySuccessDate ? Util.dateFormate(cellValue.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') : ''
}
},
// {
// label: '下单时间',
......@@ -318,7 +321,7 @@ export default {
prop: 'upgradeFlag',
minWidth: 100,
formatter: (cellValue) => {
return this.baseData.upgradeList.find(item => item.confId === cellValue.status)?.confLabel || "待升级"
return this.baseData.upgradeList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel || "待升级"
}
},
{
......@@ -326,7 +329,7 @@ export default {
prop: 'constructionFlag',
minWidth: 100,
formatter: (cellValue) => {
return this.baseData.constructionList.find(item => item.confId === cellValue.status)?.confLabel || "-"
return this.baseData.constructionList.find(item => item.confId === cellValue.constructionFlag)?.confLabel || "-"
}
},
{
......@@ -342,7 +345,7 @@ export default {
prop: 'profitAllocationStatus',
minWidth: 100,
formatter: cellValue => {
return this.baseData.profitAllocationStatusList.find(item => item.confId === cellValue.status)?.confLabel || '-'
return this.baseData.profitAllocationStatusList.find(item => item.confId === cellValue.profitAllocationStatus)?.confLabel || '-'
}
},
{
......@@ -420,11 +423,6 @@ export default {
return cellValue.source == 7 ? '系统导入' : '小程序订单'
}
},
{
label: '操作',
width: '180px',
addHtml: 'auth-button'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
......@@ -581,11 +579,12 @@ export default {
exportExcel() {
var params = this.getParams()
this.$apis.order.exportOrderApi(params).then(res => {
exportFn(res)
downLoadFile(res)
})
},
handleSearch() {
this.$refs.orderRef.refreshTable()
this.getOrderCount()
},
handleReset() {
......@@ -600,7 +599,8 @@ export default {
constructionFlag: '',
channelType: '',
businessModel: '',
subShopMerchantId: ''
subShopMerchantId: '',
sourceList: ''
}
this.baseData.storeIdList = []
// this.getOptionsList()
......
......@@ -233,10 +233,7 @@ export default {
return {
// userInfo: this.$store.state.d2admin.user.info,
imgVisible: false,
detail: {
orderCode: '',
subOrderList: []
},
detail: {},
statusOpts: {
1: '待升级',
2: '战败',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!