Commit b758177a by 杨北旺

合并最新版本分支

2 parents 27683b66 f56cf88a
......@@ -1942,17 +1942,6 @@
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"cliui": {
"version": "6.0.0",
"resolved": "https://registry.nlark.com/cliui/download/cliui-6.0.0.tgz",
......@@ -1988,31 +1977,12 @@
"ms": "2.1.2"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
"dev": true
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmmirror.com/ms/download/ms-2.1.2.tgz",
......@@ -2048,28 +2018,6 @@
"ansi-regex": "^5.0.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"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,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
},
"wrap-ansi": {
"version": "6.2.0",
"resolved": "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-6.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-6.2.0.tgz",
......@@ -13238,6 +13186,87 @@
}
}
},
"vue-loader-v16": {
"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,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.5.3",
"resolved": "https://registry.npmmirror.com/vue-router/download/vue-router-3.5.3.tgz",
......
$theme_color: #5850FF;
$theme_bg_color: #5850FF;
\ No newline at end of file
......@@ -14,6 +14,8 @@ Vue.use(GLTable)
// Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......@@ -23,6 +25,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-ed5f1cfe-aaa2-46fb-b312-6ea45a8c5866-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-ed5f1cfe-aaa2-46fb-b312-6ea45a8c5866-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
......
......@@ -371,6 +371,15 @@ export default {
// return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
// }
// },
// {
// label: '门店成本',
// prop: 'costPrice',
// width: '160px',
// line: 1,
// formatter: cellValue => {
// return cellValue.costPrice ? (cellValue.costPrice / 100).toFixed(2) : '-'
// }
// },
{
label: '服务期限',
line: 1,
......@@ -390,14 +399,49 @@ export default {
},
{
label: '服务状态',
line: 1,
prop: 'orderStatus',
width: '100px',
width: '170px',
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
}
},
// {
// label: '状态描述',
// prop: 'erpErrorMsg',
// width: '200px',
// line: 1,
// formatter: cellValue => {
// return cellValue.erpErrorMsg ? cellValue.erpErrorMsg : '-'
// }
// },
// {
// label: '审核日期',
// prop: 'auditDate',
// width: '200px',
// line: 1,
// formatter: cellValue => {
// return cellValue.auditDate ? dayjs(cellValue.auditDate).format('YYYY-MM-DD HH:mm:ss') : '-'
// }
// },
// {
// label: '首续保',
// prop: 'insuranceType',
// width: '110px',
// line: 1,
// formatter: cellValue => {
// return cellValue.insuranceType === 'i' ? '无忧卡首保' : '无忧卡续保'
// }
// },
// {
// label: '价格区间',
// prop: 'pricePeriod',
// width: '200px',
// line: 1,
// formatter: cellValue => {
// return cellValue.pricePeriod ? cellValue.pricePeriod : '-'
// }
// },
// {
// label: '审核状态',
// prop: 'auditStatus',
// width: '100px',
......@@ -478,11 +522,15 @@ export default {
dqList: [],
pqList: [],
mdList: [],
orderStatusList: [
orderStatusList: [
{
confId: 0,
confName: '待提单'
},
// {
// confId: 1,
// confName: 'ERP出单失败'
// },
{
confId: 2,
confName: '提单成功'
......@@ -499,6 +547,26 @@ export default {
confId: 5,
confName: '已过期'
}
// {
// confId: 7,
// confName: '退单审核中'
// },
// {
// confId: 8,
// confName: 'ERP退单失败'
// },
// {
// confId: 9,
// confName: 'ERP修改审核中'
// },
// {
// confId: 10,
// confName: '修改成功'
// },
// {
// confId: 11,
// confName: 'ERP修改失败'
// }
],
dataPerfectionList: [
{
......
......@@ -12,52 +12,61 @@
<el-table-column prop="merchantName" label="商户名称" width="180"></el-table-column>
</el-table>
</el-form-item>
<el-form-item size="small" label="配置可见产品及产品属性"></el-form-item>
<el-form-item>
<el-checkbox v-model="theftAll" @change="handleTheftAllChange">盗抢全损无忧</el-checkbox>
<el-checkbox-group v-model="againstTheft" @change="handleCheckedTheftsChange">
<el-checkbox v-for="theft in thefts" :label="theft" :key="theft">{{ theft }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="vehicleAll" @change="changeVehicleAll">整车全损无忧</el-checkbox>
<el-checkbox-group v-model="againstVehicle" @change="changeAgainstVehicle">
<el-checkbox v-for="vehicle in vehicles" :label="vehicle" :key="vehicle">{{ vehicle }}</el-checkbox>
</el-checkbox-group>
<div>整车全损无忧模板</div>
<el-radio-group v-model="vehicleRadio">
<el-radio label="1">模板一新版</el-radio>
<el-radio label="2">模板二旧版</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="tyreAll" @change="handleTyreAllChange">轮胎无忧</el-checkbox>
<el-checkbox-group v-model="againstTyre" @change="handleCheckedTyresChange">
<el-checkbox v-for="tyre in tyres" :label="tyre" :key="tyre">{{ tyre }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="collisionAll" @change="changeCollisionAll">碰撞维修无忧</el-checkbox>
<el-checkbox-group v-model="againstCollision" @change="changeAgainstCollision">
<el-checkbox v-for="collision in collisions" :label="collision" :key="collision">{{ collision }}</el-checkbox>
</el-checkbox-group>
<div>配置碰撞赔偿模板</div>
<el-radio-group v-model="collisionRadio" @change="changeRadio">
<el-radio label="1">方案一</el-radio>
<el-radio label="2">方案二</el-radio>
<el-radio label="3">方案三</el-radio>
<el-radio label="4">方案四</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="honorable">舒享版</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox v-model="first">尊享版</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox v-model="carefree">优享版</el-checkbox>
</el-form-item>
<template v-if="showGh">
<el-form-item class="special-config" size="small" label="特殊配置"></el-form-item>
<el-form-item>
<el-checkbox v-model="costPrice" @change="checkCostPrice">列表字段</el-checkbox>
<el-checkbox style="display: block; margin-left: 30px;" v-model="costPrice" @change="checkCostPrice">门店成本</el-checkbox>
</el-form-item>
</template>
<template v-if="!showGh">
<el-form-item size="small" label="配置可见产品及产品属性"></el-form-item>
<el-form-item>
<el-checkbox v-model="theftAll" @change="handleTheftAllChange">盗抢全损无忧</el-checkbox>
<el-checkbox-group v-model="againstTheft" @change="handleCheckedTheftsChange">
<el-checkbox v-for="theft in thefts" :label="theft" :key="theft">{{ theft }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="vehicleAll" @change="changeVehicleAll">整车全损无忧</el-checkbox>
<el-checkbox-group v-model="againstVehicle" @change="changeAgainstVehicle">
<el-checkbox v-for="vehicle in vehicles" :label="vehicle" :key="vehicle">{{ vehicle }}</el-checkbox>
</el-checkbox-group>
<div>整车全损无忧模板</div>
<el-radio-group v-model="vehicleRadio">
<el-radio label="1">模板一新版</el-radio>
<el-radio label="2">模板二旧版</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="tyreAll" @change="handleTyreAllChange">轮胎无忧</el-checkbox>
<el-checkbox-group v-model="againstTyre" @change="handleCheckedTyresChange">
<el-checkbox v-for="tyre in tyres" :label="tyre" :key="tyre">{{ tyre }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="collisionAll" @change="changeCollisionAll">碰撞维修无忧</el-checkbox>
<el-checkbox-group v-model="againstCollision" @change="changeAgainstCollision">
<el-checkbox v-for="collision in collisions" :label="collision" :key="collision">{{ collision }}</el-checkbox>
</el-checkbox-group>
<div>配置碰撞赔偿模板</div>
<el-radio-group v-model="collisionRadio" @change="changeRadio">
<el-radio label="1">方案一</el-radio>
<el-radio label="2">方案二</el-radio>
<el-radio label="3">方案三</el-radio>
<el-radio label="4">方案四</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="honorable">舒享版</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox v-model="first">尊享版</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox v-model="carefree">优享版</el-checkbox>
</el-form-item>
</template>
</el-form>
<!-- 弹窗 -->
<relateStoreDialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="searchForm" :storeSelected="selectedList" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
......@@ -150,20 +159,24 @@ export default {
collisionAll: false,
againstCollision: [],
collisions: collisionOptions,
collisionTerminate: false
collisionTerminate: false,
costPrice: false, //选择门店成本
showGh:false
}
},
components: {
relateStoreDialog
},
created(){
this.diffHost()
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
let merchantId = this.$route.query.merchantId
if (merchantId) {
this.getConfig(merchantId)
console.log('11111')
this.configTitle = '修改'
} else {
this.configTitle = '开通'
......@@ -182,6 +195,25 @@ export default {
this.getStoreConfig()
},
methods: {
// 区分滴加和广汇
diffHost(){
let href = window.location.host;
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if(href.indexOf('cgacar')!=-1){
this.showGh = true
}else{
this.showGh = false
}
// console.log(href);
// console.log(this.showGh);
// if (href == gxurl1 || href == gxurl2) {
// this.showGh = true
// }else{
// this.showGh = false
// }
},
handleRelateStoreClose() {
this.relateStoreVisible = false
},
......@@ -233,7 +265,14 @@ export default {
// this.data = storeArr
// },
getConfig(merchantId) {
this.$apis.openconfig.getConfig({ merchantId }).then(res => {
let para = {
merchantId
}
if(this.showGh){
para.channel = 2
}
this.$apis.openconfig.getConfig(para).then(res => {
this.costPrice = res.openCostPrice == 1
this.storeSelParams = res
this.id = res.id
let arrs = []
......@@ -332,9 +371,18 @@ export default {
firstObj.packageCode = 'PC0010'
params.push(firstObj)
}
console.log(params, '????????????')
let targetParams = {
openCostPrice : this.costPrice ? 1 : 0,
createDetailRequests: params
}
if(this.showGh){
delete targetParams.createDetailRequests
}else{
delete targetParams.openCostPrice
}
if (this.add == true) {
this.$apis.openconfig.addConfig({ merchantIds: this.merchantIds, createDetailRequests: params }).then(res => {
targetParams.merchantIds = this.merchantIds
this.$apis.openconfig.addConfig(targetParams).then(res => {
if (res.code == '32') {
this.$message.error('请选择商户')
} else if (res.code == '0') {
......@@ -342,8 +390,8 @@ export default {
}
})
} else {
this.$apis.openconfig.modifyConfig({ id: this.id, createDetailRequests: params }).then(res => {
console.log(res, '12313')
targetParams.id = this.id
this.$apis.openconfig.modifyConfig(targetParams).then(res => {
if (res.code == '32') {
this.$message.error('请正确勾选信息')
} else if (res.code == '0') {
......@@ -419,6 +467,9 @@ export default {
if (this.againstTyre.length > 0) {
this.tyreAll = true
}
},
checkCostPrice(){
}
}
}
......@@ -539,4 +590,8 @@ export default {
}
}
}
.special-config{
margin-bottom: 0!important;
}
</style>
......@@ -64,6 +64,8 @@ export default {
// mixins: [searchMixin],
data() {
return {
showTableOperate: false,
showGh: true,
checkbox: false,
date_format,
openFlag: '',
......@@ -106,7 +108,7 @@ export default {
value: '0'
}
],
tableParams: {
tableParams: {
listName: 'list',
mutiSelectName: 'configIndex',
mutiSelectUniqueKey: 'id',
......@@ -160,8 +162,25 @@ export default {
selectStatus: false
}
},
mounted() {},
mounted() {
},
created(){
this.diffHost()
},
methods: {
// 区分滴加和广汇
diffHost(){
let href = window.location.host;
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if (href == gxurl1 || href == gxurl2) {
this.showGh = true
}else{
this.showGh = false
}
},
check() {
return new Promise((resolve, reject) => {
var reg = /^[+]{0,1}(\d+)$/g
......
......@@ -6,8 +6,8 @@ const resolve = dir => path.join(__dirname, dir)
// const CDN_DOMAIN = 'https://cdn.bootcdn.net/'
const CDN_DOMAIN = 'https://img02.glsx.com.cn/'
const cdn = {
//css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`],
css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`],
// css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.13.0/theme-chalk/index.css`],
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`]
}
module.exports = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!