jiangping
2024-01-27 28382948158f1b48c9ed01229323eda1951b914f
开发业务接口
已修改5个文件
121 ■■■■■ 文件已修改
company/src/api/business/insuranceApply.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/business/InsuranceDetails.vue 84 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/business/OperaInsuranceApplyCheckWindow.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/business/OperaInsuranceApplyWindow.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/views/business/insuranceApply.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/api/business/insuranceApply.js
@@ -11,6 +11,9 @@
export function updateById (data) {
    return request.post('/business/insuranceApply/updateById', data)
}
export function check (data) {
    return request.post('/business/insuranceApply/check', data)
}
export function exportDetailExcel (data) {
    return request.post('/business/insuranceApply/exportDetailExcel', data, {
company/src/components/business/InsuranceDetails.vue
@@ -45,13 +45,13 @@
              <div class="box_table_head_item">投保人数</div>
              <div class="box_table_head_item">总费用(元)</div>
            </div>
            <div class="box_table_content"  >
              <div class="box_table_content_item">{{ model.companyName }}</div>
              <div class="box_table_content_item">{{ model.solutionsName }}</div>
              <div class="box_table_content_item">{{ model.startTime }}</div>
              <div class="box_table_content_item">{{ model.endTime }}</div>
              <div class="box_table_content_item">{{ model.insureNum }}</div>
              <div class="box_table_content_item">{{model.fee}}</div>
            <div class="box_table_content "  >
              <div class="box_table_content_item box_table_content_header">{{ model.companyName }}</div>
              <div class="box_table_content_item box_table_content_header">{{ model.solutionsName }}</div>
              <div class="box_table_content_item box_table_content_header">{{ model.startTime }}</div>
              <div class="box_table_content_item box_table_content_header">{{ model.endTime }}</div>
              <div class="box_table_content_item box_table_content_header">{{ model.insureNum }}</div>
              <div class="box_table_content_item box_table_content_header">{{model.fee}}</div>
            </div>
          </div>
            <div class="box_table">
@@ -72,21 +72,18 @@
                    <div class="box_table_content_item">{{item.workTypeName}}</div>
                </div>
            </div>
            <div class="box_header">
              <div class="box_header_item">
                <div class="box_header_item_label">备注</div>
                <div class="box_header_item_val">
                  <el-form :model="form" ref="form" :rules="rules">
                  <el-form-item label="" prop="checkInfo">
                    <el-input v-model="form.checkInfo" placeholder="请输入" v-trim/>
                  </el-form-item>
                </el-form></div>
          <div class="box_table" v-if="type==1" style="border-top: 0px solid #b4bbc5;" >
            <div class="box_table_head">
              <div class="box_table_head_item5">备注</div>
              <div class="box_table_head_item5">
                    <input v-model="form.checkInfo" style="width: 100%;height: 45px;border: 0px;outline: none;" placeholder="请输入" v-trim/>
              </div>
            </div>
          </div>
        </div>
        <template v-if="type==1" v-slot:footer>
            <el-button type="primary"  :loading="isWorking.export" @click="check(1)">提交通过</el-button>
            <el-button type="danger"  :loading="isWorking.export" @click="check(0)">审核不通过</el-button>
            <el-button type="primary"  :loading="isWorking.export" @click="check(0)">提交通过</el-button>
            <el-button type="danger"  :loading="isWorking.export" @click="check(1)">审核不通过</el-button>
            <el-button @click="visible=false">取消</el-button>
        </template>
        <template v-else v-slot:footer>
@@ -100,7 +97,7 @@
<script>
    import BaseOpera from '@/components/base/BaseOpera'
    import GlobalWindow from '@/components/common/GlobalWindow'
    import {exportDetailExcel, getDetailList} from "@/api/business/insuranceApply";
    import {check, exportDetailExcel, getDetailList} from "@/api/business/insuranceApply";
    import {exportComFiles} from "@/api/business/company";
    // import {all as solutionAll} from "@/api/business/solutions";
    export default {
@@ -115,7 +112,8 @@
                // 表单数据
                form: {
                    id: null,
                    editDate: ''
                    dealBackApply:0,
                    checkInfo: ''
                },
                // 验证规则
                rules: {
@@ -136,6 +134,7 @@
              this.visible=true
              this.model = target
              this.type=type
              this.form.id=target.id
              this.getDetailListDo()
            },
           getDetailListDo(){
@@ -158,6 +157,21 @@
                      })
                      .finally(() => {
                        this.isWorking = false
                      })
                })
                .catch(() => {
                })
          },
          check(type){
            this.form.dealBackApply = type;
            this.$dialog.exportConfirm('确认进行该操作吗?')
                .then(() => {
                  this.isWorking = true
                  check(this.form)
                      .then(response => {
                        this.visible = false
                        this.$emit('success')
                      })
                })
                .catch(() => {
@@ -209,7 +223,7 @@
           flex-wrap: wrap;
           border-top: 1px solid #b4bbc5;
           border-left: 1px solid #b4bbc5;
            font-size: 24px;
            font-size: 14px;
            font-weight: bold;
            text-align: center;
          padding: 15px;
@@ -253,6 +267,7 @@
        }
        .box_table {
            width: 100%;
            border-top: 1px solid #b4bbc5;
            border-left: 1px solid #b4bbc5;
            box-sizing: border-box;
            .box_table_head {
@@ -272,9 +287,25 @@
                    border-bottom: 1px solid #b4bbc5;
                    box-sizing: border-box;
                    &:nth-child(1) {
                        flex: 0.5;
                        //flex: 0.5;
                    }
                }
              .box_table_head_item5 {
                flex: 1;
                height: 50px;
                background: #f2f2f2;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
                color: black;
                border-right: 1px solid #b4bbc5;
                border-bottom: 1px solid #b4bbc5;
                box-sizing: border-box;
                &:nth-child(2) {
                   flex: 5;
                }
              }
              .box_form_item {
                flex: 1;
                height: 50px;
@@ -288,7 +319,7 @@
                border-bottom: 1px solid #b4bbc5;
                box-sizing: border-box;
                &:nth-child(1) {
                  flex: 0.5;
                  //flex: 0.5;
                }
              }
            }
@@ -296,7 +327,10 @@
                width: 100%;
                display: flex;
                align-items: center;
                .box_table_content_item {
                .box_table_content_header{
                  border-bottom: 0px solid #b4bbc5 !important;
                }
              .box_table_content_item {
                    flex: 1;
                    height: 50px;
                    background: #ffffff;
@@ -309,7 +343,7 @@
                    border-bottom: 1px solid #b4bbc5;
                    box-sizing: border-box;
                    &:nth-child(1) {
                        flex: 0.5;
                       // flex: 0.5;
                    }
                }
            }
company/src/components/business/OperaInsuranceApplyCheckWindow.vue
@@ -22,11 +22,10 @@
                    <div class="form_item_val">
                        <el-upload
                            class="upload-demo"
                            action="https://jsonplaceholder.typicode.com/posts/"
                            action="https://locahost:10023/public/upload"
                            :on-preview="handlePreview"
                            :on-remove="handleRemove"
                            :before-remove="beforeRemove"
                            multiple
                            :limit="1"
                            :on-exceed="handleExceed"
                            :file-list="fileList">
@@ -179,7 +178,6 @@
      reverse: true,
      radio: 0,
      fileList: [
          {name: 'food.pdf', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}
      ],
      activities: [{
          content: '活动按期开始',
@@ -230,7 +228,6 @@
     },
    getDetail(){
      getDetail(this.dataId).then(res => {
      }).catch(err => {
      })
    },
company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -11,17 +11,17 @@
                <div class="desc_item_label">
                    <div class="desc_item_label_left">
                        <span>投保企业:{{ model.companyName }}</span>
                        <span>保单状态:{{ model.statusInfo }}</span>
                        <span>保单状态:{{ model.statusInfo }}{{model.statusCollect}}</span>
                        <span>提交时间:{{ model.createDate }}</span>
                    </div>
                    <div class="desc_item_label_right">
                        <el-button type="primary" @click="$refs.InsuranceDetails.open('投保详情单',model,0)">导出详单</el-button>
                        <el-button v-if="model.status == 0 " type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('上传投保单',model,2)">上传投保单</el-button>
                        <el-button v-if="model.status == 3 "  type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button>
                        <el-button  v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('处理退回申请',model,5)">处理退回申请</el-button>
                        <el-button v-if="model.status == 0 "  type="primary" @click="$refs.InsuranceDetails.open('投保审核',model,1)">投保审核</el-button>
                        <el-button v-if="model.status != 5 " type="danger"  @click="$refs.OperaInsuranceApplyCheckWindow.open('退回投保',model,1)">退回投保</el-button>
                        <el-button v-if="model.status == 5 "  type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('修改保险单',model,4)">修改保险单</el-button>
                        <el-button v-if="model.statusCollect == 1 " type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('上传投保单',model,2)">上传投保单</el-button>
                        <el-button v-if="model.statusCollect == 3 "  type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button>
                        <el-button  v-if="model.statusCollect == 6 || model.status == 7|| model.status == 8" type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('处理退回申请',model,5)">处理退回申请</el-button>
                        <el-button v-if="model.statusCollect == 0 "  type="primary" @click="$refs.InsuranceDetails.open('投保审核',model,1)">投保审核</el-button>
                        <el-button v-if="model.statusCollect != 5 " type="danger"  @click="$refs.OperaInsuranceApplyCheckWindow.open('退回投保',model,1)">退回投保</el-button>
                        <el-button v-if="model.statusCollect == 5 "  type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('修改保险单',model,4)">修改保险单</el-button>
                    </div>
                </div>
                <div class="desc_item_from">
@@ -258,6 +258,13 @@
       this.dataId=target.id
      this.getDetail();
     },
    handleSizeChange(){
    },
    handleCurrentChange(){
    },
    getDetail(){
      getDetail(this.dataId).then(res => {
        this.model = res
@@ -266,6 +273,10 @@
        this.activities=res.applyLogList
      }).catch(err => {
      })
    },
    successEvent(){
       this.visible=false
      this.$emit('success')
    }
  }
}
company/src/views/business/insuranceApply.vue
@@ -95,7 +95,6 @@
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
import { all as solutionAll} from '@/api/business/solutions'
import {exportComFiles as exportComFiles} from '@/api/business/company'
import { pageAll as companyAll} from '@/api/business/company'
import OperaInsuranceApplyWindow from '@/components/business/OperaInsuranceApplyWindow'
export default {
@@ -127,6 +126,9 @@
        this.loadSelectList()
    },
    methods:{
        // handlePageChange() {
        //   this.search()
        // },
        loadSelectList() {
          solutionAll({dataType:0}).then(res => {
              this.solutionList = res