Commit eab0f9d1 by 张权

erp新增状态

1 parent 878e41fc
...@@ -14,6 +14,8 @@ Vue.use(GLTable) ...@@ -14,6 +14,8 @@ Vue.use(GLTable)
// Vue.use(TableColumn) // Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig() 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.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -21,10 +23,10 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -21,10 +23,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01' 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 = 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_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 = 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-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-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.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
<div class="table_wrapper"> <div class="table_wrapper">
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="equityRef" :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].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton> <GLButton v-if="[2, 4, 5, 7, 8, 9, 10, 11].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> --> <!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> -->
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button> <el-button v-if="[2, 8, 10, 11].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</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].includes(scope.scope.orderStatus)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton> <GLButton v-if="[2, 8, 10, 11].includes(scope.scope.orderStatus)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton>
<el-button v-if="[2].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="[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>
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -372,6 +372,15 @@ export default { ...@@ -372,6 +372,15 @@ export default {
// } // }
// }, // },
{ {
label: '门店成本',
prop: 'costPrice',
width: '100px',
line: 1,
formatter: cellValue => {
return cellValue.costPrice ? (cellValue.costPrice / 100).toFixed(2) : '-'
}
},
{
label: '服务期限', label: '服务期限',
line: 1, line: 1,
prop: 'servicePeriod', prop: 'servicePeriod',
...@@ -390,13 +399,48 @@ export default { ...@@ -390,13 +399,48 @@ export default {
}, },
{ {
label: '服务状态', label: '服务状态',
line: 1,
prop: 'orderStatus', prop: 'orderStatus',
width: '100px', width: '170px',
formatter: cellValue => { formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-' return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
} }
}, },
{
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: '100px',
line: 1,
formatter: cellValue => {
return cellValue.insuranceType === 'i' ? '首保' : '续保'
}
},
{
label: '失败原因',
prop: 'erpErrorMsg',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.erpErrorMsg ? cellValue.erpErrorMsg : '-'
}
},
{
label: '价格区间',
prop: 'pricePeriod',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.pricePeriod ? cellValue.pricePeriod : '-'
}
},
// { // {
// label: '审核状态', // label: '审核状态',
// prop: 'auditStatus', // prop: 'auditStatus',
...@@ -478,12 +522,16 @@ export default { ...@@ -478,12 +522,16 @@ export default {
dqList: [], dqList: [],
pqList: [], pqList: [],
mdList: [], mdList: [],
orderStatusList: [ orderStatusList: [
{ {
confId: 0, confId: 0,
confName: '待提单' confName: '待提单'
}, },
{ {
confId: 1,
confName: 'ERP出单失败'
},
{
confId: 2, confId: 2,
confName: '提单成功' confName: '提单成功'
}, },
...@@ -498,6 +546,26 @@ export default { ...@@ -498,6 +546,26 @@ export default {
{ {
confId: 5, confId: 5,
confName: '已过期' confName: '已过期'
},
{
confId: 7,
confName: '退单审核中'
},
{
confId: 8,
confName: 'ERP退单失败'
},
{
confId: 9,
confName: 'ERP修改审核中'
},
{
confId: 10,
confName: '修改成功'
},
{
confId: 11,
confName: 'ERP修改失败'
} }
], ],
dataPerfectionList: [ dataPerfectionList: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!