Commit eab0f9d1 by 张权

erp新增状态

1 parent 878e41fc
......@@ -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
......@@ -21,10 +23,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: '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: 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)
......
......@@ -24,13 +24,13 @@
<div class="table_wrapper">
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<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].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="[2].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>
<GLButton v-if="[3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, 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, 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>
</div>
</GLTable>
</div>
......@@ -372,6 +372,15 @@ export default {
// }
// },
{
label: '门店成本',
prop: 'costPrice',
width: '100px',
line: 1,
formatter: cellValue => {
return cellValue.costPrice ? (cellValue.costPrice / 100).toFixed(2) : '-'
}
},
{
label: '服务期限',
line: 1,
prop: 'servicePeriod',
......@@ -390,13 +399,48 @@ 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: '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: '审核状态',
// prop: 'auditStatus',
......@@ -478,12 +522,16 @@ export default {
dqList: [],
pqList: [],
mdList: [],
orderStatusList: [
orderStatusList: [
{
confId: 0,
confName: '待提单'
},
{
confId: 1,
confName: 'ERP出单失败'
},
{
confId: 2,
confName: '提单成功'
},
......@@ -498,6 +546,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: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!