Commit 72375963 by 杨北旺

合同打印订单导出接口更换

1 parent 435bf2d9
...@@ -44,7 +44,7 @@ const getMerchantApi = params => { ...@@ -44,7 +44,7 @@ const getMerchantApi = params => {
} }
const getExportApi = params => { const getExportApi = params => {
params.method = `${defaultPath}order.export.get` params.method = `scrm.api.equity.service.package.dj.order.export.get`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
...@@ -55,7 +55,7 @@ const getExportApi = params => { ...@@ -55,7 +55,7 @@ const getExportApi = params => {
// 打印合同 // 打印合同
const getPriteApi = params => { const getPriteApi = params => {
params.method = `${defaultPath}order.prite` params.method = `scrm.api.equity.service.package.dj.order.print`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
......
...@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
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 = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'f518259d-1edc-4695-a1cd-a3487567e0af' } }) 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)
routes = getRoutes(routesData) routes = getRoutes(routesData)
......
...@@ -38,6 +38,7 @@ export default { ...@@ -38,6 +38,7 @@ export default {
} else { } else {
this.status = 2 this.status = 2
} }
localStorage.setItem('preSetStatus', this.status)
}) })
} }
} }
......
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
{ {
label: '无忧卡卡号', label: '无忧卡卡号',
line:1, line:1,
prop: 'carNo', prop: 'cardSeqNo',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.carNo || '-' return cellValue.carNo || '-'
...@@ -630,22 +630,22 @@ export default { ...@@ -630,22 +630,22 @@ export default {
// 打印 // 打印
handlePdf(row) { handlePdf(row) {
if (!row.auditStatus) { // if (!row.auditStatus) {
const h = this.$createElement // const h = this.$createElement
this.isTipVisible = true // this.isTipVisible = true
this.editNotify = { // this.editNotify = {
code: '-1', // code: '-1',
message: '财务未审核,合同无法打印' // message: '财务未审核,合同无法打印'
} // }
clearTimeout(this.timer) // clearTimeout(this.timer)
this.timer = setTimeout( // this.timer = setTimeout(
() => { // () => {
this.isTipVisible = false // this.isTipVisible = false
}, // },
this.editNotify.code == '0' ? 1500 : 3000 // this.editNotify.code == '0' ? 1500 : 3000
) // )
return true // return true
} // }
this.handlePdfClose() this.handlePdfClose()
this.$apis.beforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => { this.$apis.beforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => {
this.pdfUrl = res this.pdfUrl = res
......
<!-- 店面服务设置 --> <!-- 店面服务设置 -->
<template> <template>
<div class="edit-equity"> <div class="edit-equity">
<div class="edit-container"> <template v-if="showPage == 1">
<p class="edit-title">{{ title }}</p> <div class="edit-container">
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <p class="edit-title">{{ title }}</p>
<glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar"> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<template slot="vehicleBrandId"> <glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable> <template slot="vehicleBrandId">
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable>
</el-select> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</template> </el-select>
<template slot="vehicleSubBrandId"> </template>
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable> <template slot="vehicleSubBrandId">
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable>
</el-select> <el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</template> </el-select>
</glsx-combi-form> </template>
</glsx-combi-form>
</div>
<div
class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
</template>
<template v-if="showPage==2">
<div class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通售前权益服务</span>
<span class="nodata_tip_2">合作开通后,您方可在此页设置店面的服务热线和默认提单车辆品牌等。</span>
</div>
</div> </div>
<div </template>
class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<!-- <div class="footer" :style="{ width: '100%' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
</div> -->
</div> </div>
</template> </template>
...@@ -79,7 +86,9 @@ export default { ...@@ -79,7 +86,9 @@ export default {
baseData: { baseData: {
carBrandOptions: [], carBrandOptions: [],
carChildOptions: [] carChildOptions: []
} },
showPage: 0,
nodataHeight:0
} }
}, },
...@@ -88,6 +97,14 @@ export default { ...@@ -88,6 +97,14 @@ export default {
}, },
created() { created() {
let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight *0.8
const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) {
this.showPage = 2
return
}
this.showPage = 1
this.getAllVehicleBrand() this.getAllVehicleBrand()
this.getCarChildList() this.getCarChildList()
}, },
...@@ -250,4 +267,29 @@ export default { ...@@ -250,4 +267,29 @@ export default {
z-index: 999; z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.nodata_widget {
margin-top: 17px;
.wrapper {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
.nodata_tip_1 {
font-size: 18px;
font-weight: 500;
color: #3a3a3a;
margin-top: 48px;
}
.nodata_tip_2 {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
margin-top: 9px;
}
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!