Commit e5dd2faf by 前端

fixed

1 parent f8126101
...@@ -272,6 +272,12 @@ const giftPackage = [ ...@@ -272,6 +272,12 @@ const giftPackage = [
{ id: 3, name: '送(券包礼)' }, { id: 3, name: '送(券包礼)' },
{ id: 4, name: '约(膨胀礼)' } { id: 4, name: '约(膨胀礼)' }
] ]
const equityLevel = {
PC0036: '合资车1500元权益套餐',
PC0037: '合资车1980元权益套餐',
PC0038: '豪华车1800元权益套餐',
PC0039: '豪华车2580元权益套餐'
}
function setMinHeight(calssName = '.edit-container') { function setMinHeight(calssName = '.edit-container') {
let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px' let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px'
let minHeight = 'calc(100vh - ' + height + ')' let minHeight = 'calc(100vh - ' + height + ')'
...@@ -293,4 +299,4 @@ function isShowBtn(value) { ...@@ -293,4 +299,4 @@ function isShowBtn(value) {
} }
return isShowStatus return isShowStatus
} }
export { isShowBtn, subscribe, giftPackage, limitPrice, getExplorer, exportFn, aToExport, downloadIamge, businessType, orderStatus, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight } export { equityLevel, isShowBtn, subscribe, giftPackage, limitPrice, getExplorer, exportFn, aToExport, downloadIamge, businessType, orderStatus, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-04-14 10:46:34 * @LastEditTime: 2023-04-21 14:24:35
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -21,8 +21,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -21,8 +21,8 @@ export const fetchConfig = function(isEnv = true) {
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config')
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config') // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config') return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-04-06 10:48:09 * @LastEditTime: 2023-04-21 14:25:28
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
...@@ -21,7 +21,7 @@ Vue.prototype.defaultLabelWidth = '154px' ...@@ -21,7 +21,7 @@ Vue.prototype.defaultLabelWidth = '154px'
Vue.prototype.staticImgUrl = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/' Vue.prototype.staticImgUrl = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/'
try { try {
const loginpath = JSON.parse(sessionStorage.getItem('SCRM_BASE_SESSION'))?.loginpath const loginpath = JSON.parse(sessionStorage.getItem('SCRM_BASE_SESSION'))?.loginpath
if (loginpath !== '/oss') Vue.prototype.loginpath = true if (loginpath === '/oss') Vue.prototype.loginpath = true
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
......
...@@ -27,8 +27,8 @@ export async function bootstrap({ history, common, messenger, globalState }) { ...@@ -27,8 +27,8 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-50eefe1d-bbea-489a-91cc-997d38d3b833-rop' } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: 'scrm-base-50eefe1d-bbea-489a-91cc-997d38d3b833-rop' } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -183,7 +183,7 @@ import * as dayjs from 'dayjs' ...@@ -183,7 +183,7 @@ import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import selectStaff from './components/selectStaff.vue' import selectStaff from './components/selectStaff.vue'
import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant' import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn, equityLevel } from '@/common/constant'
export default { export default {
name: 'orderManage', name: 'orderManage',
components: { components: {
...@@ -500,6 +500,14 @@ export default { ...@@ -500,6 +500,14 @@ export default {
} }
}, },
{ {
label: '权益单次',
prop: 'equityLevel',
width: 160,
formatter: cellValue => {
return equityLevel[cellValue.equityLevel] || '-'
}
},
{
label: '支付时间', label: '支付时间',
prop: 'payDate', prop: 'payDate',
width: '180', width: '180',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!