|
|
@@ -7,6 +7,82 @@
|
|
|
<yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData" @getDayData="getDayData"></yearMonthYay>
|
|
|
</template>
|
|
|
</templateTable>
|
|
|
+ <el-dialog
|
|
|
+ title="详情"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="80%"
|
|
|
+ :before-close="handleClose">
|
|
|
+ <templateTable ref="templateTable" :tableConfig="tableConfigDetail" :data="formTableData"
|
|
|
+ @findPage="findPageDetail" >
|
|
|
+ </templateTable>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="dialogVisible = false">取消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="编辑"
|
|
|
+ :visible.sync="dialogUploadVisible"
|
|
|
+ width="55%"
|
|
|
+ :before-close="handleClose">
|
|
|
+ <el-form ref="form" :model="formDataList" label-width="130px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="交强保费">
|
|
|
+ <el-input v-model="formDataList.jqPremium" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="商业保费">
|
|
|
+ <el-input v-model="formDataList.syPremium" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="交强不含税保费">
|
|
|
+ <el-input v-model="formDataList.jqNoTaxPremium" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="商业不含税保费">
|
|
|
+ <el-input v-model="formDataList.syNoTaxPremium" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="跟单费金额">
|
|
|
+ <el-input v-model="formDataList.otherFeevalue" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="跟单费比例">
|
|
|
+ <el-input v-model="formDataList.otherFeerate" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="交强跟单比例">
|
|
|
+ <el-input v-model="formDataList.jqOtherCostsProportion" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="商业跟单比例">
|
|
|
+ <el-input v-model="formDataList.syOtherCostsProportion" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="交强跟单金额">
|
|
|
+ <el-input v-model="formDataList.jqOtherCostsPremium" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="商业跟单金额">
|
|
|
+ <el-input v-model="formDataList.syOtherCostsPremium" class="inputType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="dialogUploadVisible = false">取消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="onSubmit">保存</el-button>
|
|
|
+ </span>
|
|
|
+</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -28,6 +104,12 @@ export default {
|
|
|
return {
|
|
|
year: '',
|
|
|
searchData: {},
|
|
|
+ formDataList:{},
|
|
|
+ rowData:{},
|
|
|
+ formDataId:'',
|
|
|
+ dialogVisible:false,
|
|
|
+ dialogUploadVisible:false,
|
|
|
+ formTableData:[],
|
|
|
formList: [
|
|
|
{
|
|
|
label: "保险公司",
|
|
|
@@ -86,6 +168,13 @@ export default {
|
|
|
loading: true,
|
|
|
isPaginationShow: true,
|
|
|
isShowIndex: true,
|
|
|
+ optBtns:[
|
|
|
+ {
|
|
|
+ type:'primary',
|
|
|
+ label:'详情',
|
|
|
+ click:(row, index) => {return this.haldDetail(row)},
|
|
|
+ },
|
|
|
+ ]
|
|
|
},
|
|
|
btnGroup:[
|
|
|
{
|
|
|
@@ -102,6 +191,93 @@ export default {
|
|
|
isNotCar: '1',
|
|
|
isNotDocumentary: '1'
|
|
|
},
|
|
|
+ tableConfigDetail:{
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ prop: "orderno",
|
|
|
+ label: "订单号(子订单)",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "companyName",
|
|
|
+ label: "保险公司名称",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "partnerCompaniesName",
|
|
|
+ label: "合作公司名称",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "policyno",
|
|
|
+ label: "交强保单号",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syPolicyno",
|
|
|
+ label: "商业保单号",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqPremium",
|
|
|
+ label: "交强保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syPremium",
|
|
|
+ label: "商业保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqNoTaxPremium",
|
|
|
+ label: "交强不含税保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syNoTaxPremium",
|
|
|
+ label: "商业不含税保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "otherFeevalue",
|
|
|
+ label: "跟单费金额",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "otherFeerate",
|
|
|
+ label: "跟单费比例",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqOtherCostsProportion",
|
|
|
+ label: "交强跟单比例",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syOtherCostsProportion",
|
|
|
+ label: "商业跟单比例",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqOtherCostsPremium",
|
|
|
+ label: "交强跟单金额",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syOtherCostsPremium",
|
|
|
+ label: "商业跟单金额",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ loading: true,
|
|
|
+ optBtns:[
|
|
|
+ {
|
|
|
+ type:'primary',
|
|
|
+ label:'编辑',
|
|
|
+ click:(row, index) => {return this.haldUpload(row)},
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -175,7 +351,61 @@ export default {
|
|
|
this.pageData.pageNum = val;
|
|
|
this.findPage();
|
|
|
},
|
|
|
-
|
|
|
+ haldDetail(row){
|
|
|
+ this.rowData=row
|
|
|
+ this.dialogVisible=true
|
|
|
+ this.findPageDetail(row)
|
|
|
+ },
|
|
|
+ findPageDetail(data) {
|
|
|
+ this.tableConfigDetail.loading=true
|
|
|
+ this.$api.task
|
|
|
+ .plyFeeNonSettldetail(data)
|
|
|
+ .then(res => {
|
|
|
+ if (res.code==200) {
|
|
|
+ this.formTableData = res.data;
|
|
|
+ this.tableConfigDetail.loading = false;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.tableConfigDetail.loading = false;
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ haldUpload(row){
|
|
|
+ this.formDataId=row.id
|
|
|
+ this.dialogUploadVisible=true
|
|
|
+ this.findPageUpload(row.id)
|
|
|
+ },
|
|
|
+ findPageUpload(id){
|
|
|
+ this.$api.task.plyFeeId(id)
|
|
|
+ .then(res => {
|
|
|
+ if (res.code==200) {
|
|
|
+ this.formDataList=res.data
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleClose(){
|
|
|
+ this.dialogVisible=false
|
|
|
+ },
|
|
|
+ onSubmit(){
|
|
|
+ this.$api.task.plyFeeUpdate({...this.formDataList,id:this.formDataId})
|
|
|
+ .then(res => {
|
|
|
+ if (res.code==200) {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg || '保存成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.haldDetail(this.rowData)
|
|
|
+ this.dialogUploadVisible=false
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|