Commit 878e41fc by 张权

广汇配置

1 parent 7a296596
......@@ -21,8 +21,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
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: 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-b3e17a50-717c-47f0-bd89-86865eced24c-rop' } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-b3e17a50-717c-47f0-bd89-86865eced24c-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)
......
......@@ -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>
<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>
<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,7 +159,8 @@ export default {
collisionAll: false,
againstCollision: [],
collisions: collisionOptions,
collisionTerminate: false
collisionTerminate: false,
costPrice: false, //选择门店成本
}
},
......@@ -163,7 +173,6 @@ export default {
let merchantId = this.$route.query.merchantId
if (merchantId) {
this.getConfig(merchantId)
console.log('11111')
this.configTitle = '修改'
} else {
this.configTitle = '开通'
......@@ -234,6 +243,7 @@ export default {
// },
getConfig(merchantId) {
this.$apis.openconfig.getConfig({ merchantId }).then(res => {
this.costPrice = res.openCostPrice == 1
this.storeSelParams = res
this.id = res.id
let arrs = []
......@@ -334,7 +344,7 @@ export default {
}
console.log(params, '????????????')
if (this.add == true) {
this.$apis.openconfig.addConfig({ merchantIds: this.merchantIds, createDetailRequests: params }).then(res => {
this.$apis.openconfig.addConfig({ merchantIds: this.merchantIds, openCostPrice : this.costPrice ? 1 : 0, createDetailRequests: params }).then(res => {
if (res.code == '32') {
this.$message.error('请选择商户')
} else if (res.code == '0') {
......@@ -342,7 +352,7 @@ export default {
}
})
} else {
this.$apis.openconfig.modifyConfig({ id: this.id, createDetailRequests: params }).then(res => {
this.$apis.openconfig.modifyConfig({ id: this.id , openCostPrice : this.costPrice ? 1 : 0, createDetailRequests: params }).then(res => {
console.log(res, '12313')
if (res.code == '32') {
this.$message.error('请正确勾选信息')
......@@ -419,6 +429,9 @@ export default {
if (this.againstTyre.length > 0) {
this.tyreAll = true
}
},
checkCostPrice(){
}
}
}
......@@ -539,4 +552,8 @@ export default {
}
}
}
.special-config{
margin-bottom: 0!important;
}
</style>
......@@ -35,8 +35,8 @@
</div>
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
<span slot="operate" slot-scope="scope">
<GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton>
<!-- <el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button> -->
<!-- <GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton> -->
<el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button>
</span>
<span slot="openFlag" slot-scope="scope">
<el-switch :value="scope.scope.openFlag == 1" active-color="#5850ff" inactive-color="#eee" @change="changStatus(scope.scope.openFlag, scope.scope.id)"></el-switch>
......@@ -138,11 +138,11 @@ export default {
label: '操作人',
prop: 'updatedBy'
},
// {
// label: '操作',
// minWidth: '200',
// addHtml: 'operate'
// },
{
label: '操作',
minWidth: '200',
addHtml: 'operate'
},
{
label: '开通开关',
addHtml: 'openFlag',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!