Commit 96e05b61 by 张权

代码迁移

1 parent 4718c878
...@@ -10,16 +10,16 @@ ...@@ -10,16 +10,16 @@
</div> --> </div> -->
<div class="container"> <div class="container">
<p class="edit-title">车辆信息</p> <p class="edit-title">车辆信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefCar" labelWidth="160px" defaultWidth="320px" formRef="editChildRefCar" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(0, 7)" :formRules="editRuleCar"> <glsx-combi-form class="edit-form-container" ref="editFormRefCar" labelWidth="144px" defaultWidth="320px" formRef="editChildRefCar" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(0, 7)" :formRules="editRuleCar">
</glsx-combi-form> </glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="160px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(7)" :formRules="editRuleCar"> <glsx-combi-form ref="editFormRefBrand" labelWidth="144px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(7)" :formRules="editRuleCar">
<template slot="vehicleBrandId" slot-scope="scope"> <template slot="vehicleBrandId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicle.vehicleBrandId)" style="width:160px;" :disabled="scope.scope.isDisabled"> <el-select v-model="editForm.vehicle.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicle.vehicleBrandId)" style="width:144px;" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
<template slot="vehicleSubBrandId" slot-scope="scope"> <template slot="vehicleSubBrandId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleSubBrandId" placeholder="请选择子品牌" filterable @change="getCarSeriesList()" style="width:160px;" :disabled="scope.scope.isDisabled"> <el-select v-model="editForm.vehicle.vehicleSubBrandId" placeholder="请选择子品牌" filterable @change="getCarSeriesList()" style="width:144px;" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
</div> </div>
<div class="container"> <div class="container">
<p class="edit-title">客户信息</p> <p class="edit-title">客户信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefUser" labelWidth="160px" defaultWidth="320px" formRef="editChildRefUser" :formObj="editForm" :formData="editFormDataUser" :formRules="editRuleUser"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRefUser" labelWidth="144px" defaultWidth="320px" formRef="editChildRefUser" :formObj="editForm" :formData="editFormDataUser" :formRules="editRuleUser"></glsx-combi-form>
</div> </div>
<div class="container select-product"> <div class="container select-product">
<p class="edit-title">选择产品</p> <p class="edit-title">选择产品</p>
<!-- <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" formRef="editChildRefPro" :formObj="editForm" :formData="editFormDataPro" :formRules="editRulePro"> --> <!-- <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="144px" formRef="editChildRefPro" :formObj="editForm" :formData="editFormDataPro" :formRules="editRulePro"> -->
<glsx-combi-form class="edit-form-container" labelWidth="160px" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro"> <glsx-combi-form class="edit-form-container" labelWidth="144px" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro">
<template slot="packageCode" slot-scope="scope"> <template slot="packageCode" slot-scope="scope">
<el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange"> <el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange">
<el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]"> <el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)"> <div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)">
<p class="package-subtitle">{{ subItem.serviceItems }}</p> <p class="package-subtitle">{{ subItem.serviceItems }}</p>
<div v-if="editForm.packageCode == subItem[scope.scope.optionId]"> <div v-if="editForm.packageCode == subItem[scope.scope.optionId]">
<glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" defaultWidth="320px" formRef="editChildRefPro" :isBlock="isBlock" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro"> <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" defaultWidth="320px" formRef="editChildRefPro" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro">
<template slot="table" slot-scope="scope"> <template slot="table" slot-scope="scope">
<table class="table-style"> <table class="table-style">
<tbody> <tbody>
...@@ -79,19 +79,19 @@ ...@@ -79,19 +79,19 @@
</div> </div>
<div class="container"> <div class="container">
<p class="edit-title">其他信息</p> <p class="edit-title">其他信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefOther" labelWidth="160px" defaultWidth="320px" formRef="editChildRefOther" :formObj="editForm" :formData="editFormDataOther" :formRules="editRuleOther"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRefOther" labelWidth="144px" defaultWidth="320px" formRef="editChildRefOther" :formObj="editForm" :formData="editFormDataOther" :formRules="editRuleOther"></glsx-combi-form>
</div> </div>
</div> </div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> --> <!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div class="footer operate-btn"> <div class="footer operate-btn">
<el-button size="small" v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button> <el-button size="small" class="reset-btn" v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button>
<el-button size="small" v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft">草稿</el-button> <el-button size="small" v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft">草稿</el-button>
<el-button size="small" v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}</el-button> <el-button size="small" v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}</el-button>
<el-button size="small" type="default" @click="handleCancel">取消</el-button> <el-button size="small" type="default" @click="handleCancel">取消</el-button>
</div> </div>
<qrCode :codeUrl="qrcodUrl" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode> <qrCode :bottom="320" :codeUrl="qrcodUrl" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode>
</div> </div>
</template> </template>
...@@ -145,7 +145,8 @@ export default { ...@@ -145,7 +145,8 @@ export default {
invoicePrice: '', invoicePrice: '',
seatesNum: 5, seatesNum: 5,
billingDate: new Date() billingDate: new Date()
} },
insurance: 'i'
}, },
// 车辆信息 // 车辆信息
editRuleCar: { editRuleCar: {
...@@ -409,6 +410,24 @@ export default { ...@@ -409,6 +410,24 @@ export default {
label: '实际销售人员', label: '实际销售人员',
name: 'actualSalesPerson', name: 'actualSalesPerson',
type: 'select' type: 'select'
},
{
label: '首续保',
name: 'insurance',
type: 'radio',
optionList: [
{
confLabel:'无忧卡首保',
confId:'i'
},
{
confLabel:'无忧卡续保',
confId:'c'
}
],
optionId: 'confId',
optionLabel: 'confLabel',
isDisabled: false
} }
], ],
// 公共数据 // 公共数据
...@@ -1008,7 +1027,7 @@ export default { ...@@ -1008,7 +1027,7 @@ export default {
} }
} }
</script> </script>
<style> <style lang="scss" scoped>
/* 客服 - start */ /* 客服 - start */
.before-sale .help-service { .before-sale .help-service {
position: fixed; position: fixed;
...@@ -1021,7 +1040,7 @@ export default { ...@@ -1021,7 +1040,7 @@ export default {
height: 268px; height: 268px;
text-align: center; text-align: center;
background: #ffffff; background: #ffffff;
border: 1px solid rgb(220, 223, 230, 0.5); border: 1px solid rgba(220, 223, 230, 0.5);
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12); box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
} }
...@@ -1137,9 +1156,14 @@ export default { ...@@ -1137,9 +1156,14 @@ export default {
margin-bottom: 20px; margin-bottom: 20px;
} }
.select-product .edit-form-container { /deep/ .select-product{
padding: 12px 0 0 72px; .package-code>.el-radio__input{
} margin-left: 73px;
}
.package-code>.el-radio__label>.radio-add-block>.package-subtitle{
margin-left: 76px;
}
}
.select-product .el-radio__label{ .select-product .el-radio__label{
padding-left: 7px; padding-left: 7px;
...@@ -1147,8 +1171,7 @@ export default { ...@@ -1147,8 +1171,7 @@ export default {
.select-product .package-title{ .select-product .package-title{
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 600;
color: #333333;
} }
.select-product .package-subtitle{ .select-product .package-subtitle{
...@@ -1170,12 +1193,9 @@ export default { ...@@ -1170,12 +1193,9 @@ export default {
.before-sale .package-code-box .radio-add-block { .before-sale .package-code-box .radio-add-block {
color: #606266; color: #606266;
} }
/* .no-label.el-form-item--small .el-form-item__content { /deep/ .glsx-combi-form .no-label.el-form-item--small .el-form-item__content {
width: auto !important;
}
.radio-add-block .el-form-item--small .el-form-item__content {
width: auto !important; width: auto !important;
} */ }
/* 表格 */ /* 表格 */
/* .edit-equity .spesc-label { /* .edit-equity .spesc-label {
padding: 1px 10px; padding: 1px 10px;
...@@ -1222,5 +1242,9 @@ export default { ...@@ -1222,5 +1242,9 @@ export default {
border: 1px solid #5850ff; border: 1px solid #5850ff;
color: #5850ff; color: #5850ff;
} }
.reset-btn{
border: 1px solid #909090;
color: #333333;
}
/* 表格 */ /* 表格 */
</style> </style>
<!-- 权益订单列表 --> <!-- 权益订单列表 -->
<template> <template>
<div class="before-sale"> <div class="before-sale">
<div> <div class="add-benefit">
<el-button fn="新增权益" :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button> <el-button fn="新增权益" :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button>
<div class="top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div> <div class="top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div>
</div> </div>
...@@ -19,17 +19,13 @@ ...@@ -19,17 +19,13 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<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">
<div class="btn-item">
<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].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2].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].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>
</div>
<div class="btn-item">
<el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> <el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button> <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button> <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<el-button v-if="[3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(4, scope.scope)">重新提单</el-button> <el-button v-if="[3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(4, scope.scope)">重新提单</el-button>
</div>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -452,7 +448,7 @@ export default { ...@@ -452,7 +448,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: '', prop: '',
width: '220px', width: '200px',
fixed: 'right', fixed: 'right',
addHtml: 'table-btns' addHtml: 'table-btns'
} }
...@@ -637,18 +633,32 @@ export default { ...@@ -637,18 +633,32 @@ export default {
apiName: apiName, apiName: apiName,
apiParams: apiParams apiParams: apiParams
} }
if (title == '退单') {
this.$confirm('是否确认退单?', '退单', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleSecondConfirm()
})
return
}
this.handleSecondCancel() this.handleSecondCancel()
}, },
handleSecondConfirm() { handleSecondConfirm() {
this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => { this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => {
this.handleSecondCancel() // this.handleSecondCancel()
this.isTipVisible = true // this.isTipVisible = true
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
this.editNotify = res this.editNotify = res
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)
if (res.code == '0') { if (res.code == '0') {
this.handleSearch() this.handleSearch()
} }
...@@ -754,6 +764,8 @@ export default { ...@@ -754,6 +764,8 @@ export default {
] ]
} }
}) })
console.log(this.uploadFormData)
console.log(this.uploadForm)
this.handleUploadFileClose() this.handleUploadFileClose()
}, },
handleUploadFileClose() { handleUploadFileClose() {
...@@ -833,12 +845,21 @@ export default { ...@@ -833,12 +845,21 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.before-sale{
padding-top: 17px;
}
.before-sale .flex { .before-sale .flex {
display: flex; display: flex;
} }
.number{ /deep/ .add-benefit .el-button span{
margin-left: 5px;
}
/deep/ .number{
.el-form-item:first-child{ .el-form-item:first-child{
.input-with-select{ .input-with-select{
width: 286px!important; width: 286px!important;
...@@ -860,9 +881,6 @@ export default { ...@@ -860,9 +881,6 @@ export default {
} }
} }
.before-sale{
padding-top: 17px;
}
.before-sale .container { .before-sale .container {
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 40px;
background: #ffffff; background: #ffffff;
...@@ -915,23 +933,19 @@ export default { ...@@ -915,23 +933,19 @@ export default {
line-height: 16px; line-height: 16px;
} }
.before-sale { .before-sale .table-btns {
.btn-item{ display: grid;
display: flex; grid-template-columns: repeat(auto-fill, 33.33%);
justify-content: flex-start; grid-row-gap: 10px;
padding: 0 10px; }
.el-button { .before-sale .table-btns .el-button {
margin-right: 0; // padding: 0 0 0 5px;
margin-left: 28px; border-radius: 0;
&:first-child{ border: 0;
margin-left: 0; padding: 0;
} margin: 0;
}
&:first-child{
margin-bottom: 10px;
}
}
} }
.tips-dialog .el-icon-success { .tips-dialog .el-icon-success {
margin-right: 10px; margin-right: 10px;
font-size: 22px; font-size: 22px;
...@@ -950,6 +964,7 @@ export default { ...@@ -950,6 +964,7 @@ export default {
.f-size { .f-size {
font-size: 14px; font-size: 14px;
display: flex; display: flex;
line-height: 22px;
/* text-align: center; */ /* text-align: center; */
} }
.tips-dialog .el-dialog__body { .tips-dialog .el-dialog__body {
......
...@@ -649,7 +649,7 @@ export default { ...@@ -649,7 +649,7 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.before-sale .container { .before-sale .container {
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 40px;
background: #ffffff; background: #ffffff;
...@@ -743,7 +743,7 @@ export default { ...@@ -743,7 +743,7 @@ export default {
} }
.number{ /deep/ .number{
.el-form-item:first-child{ .el-form-item:first-child{
.input-with-select{ .input-with-select{
width: 286px!important; width: 286px!important;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!