Commit 1e1dc740 by 张权

数字化权益按钮复原

1 parent f92b0a5c
...@@ -20,10 +20,10 @@ Vue.use(GLDialog) ...@@ -20,10 +20,10 @@ Vue.use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, request_common, request_merchant, sign_common, sign, secret } = await fetchConfig() const { response, request, request_brand, request_common, request_merchant, sign_common, sign, secret } = await fetchConfig()
// 本地切换域名,不需要Mock上面改动 const => let // 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.test.glsx.com.cn' // request.baseURL = 'http://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn' // request_brand.baseURL = 'http://scrm.dev.glsx.com.cn'
// request_common.baseURL = 'https://scrm.test.glsx.com.cn' // request_common.baseURL = 'http://scrm.dev.glsx.com.cn'
// request_merchant.baseURL = 'https://rop-merchant.test.glsx.com.cn' // request_merchant.baseURL = 'http://rop-merchant.dev.glsx.com.cn'
// request.baseURL = 'http://192.168.1.78:8064' // request.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064' // request_brand.baseURL = 'http://192.168.1.78:8064'
Vue.prototype.$history = history Vue.prototype.$history = history
...@@ -37,6 +37,11 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -37,6 +37,11 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, 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_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.$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.$request_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$request_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// const mytken = 'scrm-base-56485521-8ce0-4648-9809-8386f39243d6-rop'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: mytken } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: mytken } })
// Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: mytken } })
// Vue.prototype.$request_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: mytken } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } }) // Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<span class="btnTip">配置门店轻改专家,形成业务活码,客户可通过「精品升级」订单扫码来添加该员工。</span> <span class="btnTip">配置门店轻改专家,形成业务活码,客户可通过「精品升级」订单扫码来添加该员工。</span>
</div> </div>
<div class="expert-wrap"> <div class="expert-wrap">
<GLCombiForm ref="expertRef" @handleOk="handleSearch" @handleRest="handleReset" :formObj="batchListSearch" :formData="expertForm"> <GLCombiForm ref="expertRef" :rowNumber="1" @handleOk="handleSearch" @handleRest="handleReset" :formObj="batchListSearch" :formData="expertForm">
<div slot="department"> <div slot="department">
<el-cascader clearable popper-class="expert-cascader" ref="cascaderRef" @change="getCurDepartment" placeholder="请选择门店" :show-all-levels="false" v-model="batchListSearch.departmentId" :props="mypropParam1" :options="departmentList" size="small" style="width: 280px" separator=" " filterable> <el-cascader clearable popper-class="expert-cascader" ref="cascaderRef" @change="getCurDepartment" placeholder="请选择门店" :show-all-levels="false" v-model="batchListSearch.departmentId" :props="mypropParam1" :options="departmentList" size="small" separator=" " filterable>
<template slot-scope="{ data }"> <template slot-scope="{ data }">
<el-tooltip popper-class="myToolTipClass" style="border: none" :disabled="data.departmentName.length > 12 ? false : true" class="item" effect="light" :content="data.departmentName" placement="top-end"> <el-tooltip popper-class="myToolTipClass" style="border: none" :disabled="data.departmentName.length > 12 ? false : true" class="item" effect="light" :content="data.departmentName" placement="top-end">
<div class="limitText" style="width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ data.departmentName }}</div> <div class="limitText" style="width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ data.departmentName }}</div>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<!-- <GLButton v-if="userType != 2" fn="编辑" type="text" @click="addConfig(scope.scope.businessTypeName, scope.scope.id)">编辑</GLButton> <!-- <GLButton v-if="userType != 2" fn="编辑" type="text" @click="addConfig(scope.scope.businessTypeName, scope.scope.id)">编辑</GLButton>
<GLButton v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</GLButton> <GLButton v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</GLButton>
<GLButton v-if="userType != 2" fn="下载活码" type="text" @click="handleDel(scope.scope)">下载活码</GLButton> --> <GLButton v-if="userType != 2" fn="下载活码" type="text" @click="handleDel(scope.scope)">下载活码</GLButton> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3" ></GLTableButton>
</div> </div>
</GLTable> </GLTable>
<div v-if="!hasData" class="default-box"> <div v-if="!hasData" class="default-box">
......
...@@ -22,15 +22,15 @@ ...@@ -22,15 +22,15 @@
<el-button :size="size" style="float:right;margin-bottom:10px;" @click="handleExport">导出</el-button> <el-button :size="size" style="float:right;margin-bottom:10px;" @click="handleExport">导出</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope"> <div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <GLButton v-if="[2, 4, 5,7,8,9,10,11,12].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton> <GLButton v-if="[2, 4, 5,7,8,9,10,11,12].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<el-button v-if="[2,8,10,11,12].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button> <el-button v-if="[2,8,10,11,12].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2,7,8,9,10,11,12].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button> <el-button v-if="[2,7,8,9,10,11,12].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button>
<GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton> <GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint || userInfo.admin)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton> <GLButton v-if="[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint || userInfo.admin)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton>
<el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button> <el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<GLButton v-if="[1,3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton> <GLButton v-if="[1,3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton>
<el-button v-if="userInfo.admin" type="text" @click="showFailModal(scope.scope)">失败</el-button> --> <el-button v-if="userInfo.admin" type="text" @click="showFailModal(scope.scope)">失败</el-button>
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton> <!-- <GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton> -->
</div> </div>
<!-- s --> <!-- s -->
</GLTable> </GLTable>
...@@ -1620,16 +1620,16 @@ export default { ...@@ -1620,16 +1620,16 @@ export default {
margin-right: 8px; margin-right: 8px;
} }
// .before-sale .circule-tips { .before-sale .circule-tips {
// position: absolute; position: absolute;
// top: 0; top: 0;
// right: -6px; right: -6px;
// display: inline-block; display: inline-block;
// height: 6px; height: 6px;
// width: 6px; width: 6px;
// border-radius: 100%; border-radius: 100%;
// background-color: red; background-color: red;
// } }
.before-sale .footer-btns { .before-sale .footer-btns {
float: right; float: right;
...@@ -1642,11 +1642,11 @@ export default { ...@@ -1642,11 +1642,11 @@ export default {
line-height: 16px; line-height: 16px;
} }
// .before-sale .table-btns { .before-sale .table-btns {
// display: grid; display: grid;
// grid-template-columns: repeat(auto-fill, 33.33%); grid-template-columns: repeat(auto-fill, 33.33%);
// grid-row-gap: 10px; grid-row-gap: 10px;
// } }
.before-sale .table-btns .el-button { .before-sale .table-btns .el-button {
// padding: 0 0 0 5px; // padding: 0 0 0 5px;
border-radius: 0; border-radius: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!