MrShi
2024-02-01 5f7f074ac063ddfae2134f8d84841927f5685394
Mr.Shi
已修改8个文件
138 ■■■■■ 文件已修改
company/.env.development 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/api/business/applyChange.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/business/ApplyChangeDetails.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/business/OperaApplyChangeDetailWindow.vue 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/business/OperaInsuranceApplyWindow.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/enterprise/additionSubtractionApplication.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/views/enterprise/add_subtract.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/views/enterprise/switchCourt.vue 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/.env.development
@@ -2,12 +2,13 @@
NODE_ENV = 'development'
# 企业端-仁康
# VUE_APP_API = 'http://192.168.0.134:10025/'
VUE_APP_API = 'http://192.168.0.134:10025/'
# 平台端-仁康
# VUE_APP_API = 'http://192.168.0.134:10023/'
# 平台端-萍姐
# VUE_APP_API = 'http://192.168.0.102:10023/'
VUE_APP_API = 'http://localhost:10023/'
# VUE_APP_API = 'http://localhost:10023/'
# VUE_APP_API = 'http://localhost:10023/'
company/src/api/business/applyChange.js
@@ -26,3 +26,13 @@
export function findList (data) {
    return request.post('/business/applyDetail/findList', data)
}
// 业务处理
export function applyChangeOpt (data) {
    return request.post('/business/applyChange/applyChangeOpt', data)
}
// 列表查询
export function applyChagneDetailList (data) {
    return request.post('/business/applyChagneDetail/list', data)
}
company/src/components/business/ApplyChangeDetails.vue
@@ -220,6 +220,7 @@
            font-weight: bold;
            text-align: center;
          padding: 15px;
           box-sizing: border-box;
         }
        .box_header {
            width: 100%;
@@ -228,6 +229,7 @@
            flex-wrap: wrap;
            border-top: 1px solid #b4bbc5;
            border-left: 1px solid #b4bbc5;
            box-sizing: border-box;
            .box_header_item {
                width: 50%;
                height: 50px;
@@ -247,6 +249,7 @@
                    color: black;
                    background: #f2f2f2;
                    border-right: 1px solid #b4bbc5;
                    box-sizing: border-box;
                }
                .box_header_item_val {
                    flex: 1;
company/src/components/business/OperaApplyChangeDetailWindow.vue
@@ -15,19 +15,19 @@
                      <span v-if="model.status === 1">保单状态:已签章</span>
                      <span v-if="model.status === 2">保单状态:已上传批单</span>
                      <span v-if="model.status === 3 || model.status === 4">保单状态:退回申请</span>
                      <span v-if="model.status ===5 || model.status === 8">保单状态:已退回</span>
                      <span v-if="model.status === 5 || model.status === 8">保单状态:已退回</span>
                      <span v-if="model.status ===7">保单状态:已关闭</span>
                        <span>提交时间:{{ model.createDate }}</span>
                    </div>
                  <div class="desc_item_label_right">
                      <template v-if="userInfo.type === 1">
                          <el-button type="primary" @click="$refs.ApplyChangeDetails.open('加减保详单',apply,model)">导出详单</el-button>
                          <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('投保申请', {id: dataId})">再次投保</el-button>
                          <el-button type="primary" v-if="model.status == 0"   @click="goSign">签署申请单</el-button>
                          <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">申请退回</el-button>
                          <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="$refs.additionSubtractionApplication.open('加减保申请', {id: dataId})">再次投保</el-button>
                          <el-button type="primary" v-if="model.status == 0" @click="goSign">签署申请单</el-button>
                          <el-button v-if="[2, 3, 7].includes(model.status)" type="primary">申请退回</el-button>
                          <el-button v-if="model.status == 5" type="primary" @click="viewApplyFile">查看申请单</el-button>
                          <el-button v-if="model.status == 5" type="primary" @click="viewPidan">查看批单</el-button>
                          <el-button v-if="model.status == 2" type="primary" @click="closeApply">关闭订单</el-button>
                          <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="closeOrder">关闭订单</el-button>
                      </template>
                        <template v-else>
                            <el-button type="primary" @click="$refs.ApplyChangeDetails.open('加减保详单',apply,model)">导出详单</el-button>
@@ -204,6 +204,7 @@
  applyChagneDetailPage,
  getJiajianBaoSignLink
} from '@/api/business/insuranceApply'
import { applyChangeOpt } from '@/api/business/applyChange'
import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
import { mapState } from 'vuex'
@@ -271,6 +272,24 @@
      resetting() {
            this.search()
      },
      closeOrder() {
          this.$confirm('确认关闭次保单吗?', '提示', {
              confirmButtonText: '确定',
              cancelButtonText: '取消',
              type: 'warning'
          }).then(() => {
              applyChangeOpt({
                  optType: 6,
                  applyId: this.model.id
              }).then(res => {
                  this.getDetail()
              }).catch(e => {
                  this.$message.error(e)
              })
          }).catch(() => {
          });
      },
      search() {
          this.currentPage = 1
          this.getList()
company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -11,7 +11,7 @@
                <div class="desc_item_label" v-if="userInfo.type === 1 &&(model.statusCollect === 2 || model.statusCollect === 3)">
                    <div class="desc_item_label_left">
                        <span>保险到期还有 <b style="color: #F95601;">{{model.loseEfficacyDays ? model.loseEfficacyDays : '-'}}</b> 天</span>
                        <el-button type="primary" v-if="model.statusCollect === 2 || model.statusCollect === 3" @click="$refs.OperaInsuranceApply.open('投保申请', { id: dataId })">在线签署</el-button>
                        <el-button type="primary" v-if="model.statusCollect === 2 || model.statusCollect === 3" @click="$refs.OperaInsuranceApply.open('投保申请', { id: dataId })">一键续保</el-button>
                        <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.additionSubtractionApplication.open('加减保申请', { id: dataId })">加减保申请</el-button>
                        <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.factoryChange.open('换厂申请', { id: dataId })">换厂申请</el-button>
                    </div>
@@ -24,10 +24,11 @@
                    </div>
                  <div class="desc_item_label_right">
                      <template v-if="userInfo.type === 1">
                          <el-button type="primary" @click="$refs.InsuranceDetails.open('投保详情单',model,0)">签署申请单</el-button>
                          <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">申请退回</el-button>
                          <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">再次投保</el-button>
                          <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">关闭订单</el-button>
                          <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('申请退回', {id: dataId})">申请退回</el-button>
                          <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('投保申请', {id: dataId})">再次投保</el-button>
                          <el-button type="primary" @click="$refs.InsuranceDetails.open('投保详情单',model,0)">导出详单</el-button>
                          <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">查看投保单</el-button>
                          <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">查看保险单</el-button>
                          <el-button v-if="model.status == 2" type="primary" @click="goSign">签署投保单</el-button>
                      </template>
                      <template v-else>
company/src/components/enterprise/additionSubtractionApplication.vue
@@ -183,7 +183,7 @@
    import confirmJobType from '@/components/enterprise/confirmJobType'
    import { all } from '@/api/business/solutions'
    import { getDetail } from '@/api/business/insuranceApply'
    import { create, getChangeCountCyclePriceVO } from '@/api/business/applyChange'
    import { create, getChangeCountCyclePriceVO, applyChagneDetailList } from '@/api/business/applyChange'
    export default {
        name: 'additionSubtractionApplication',
        extends: BaseOpera,
@@ -266,6 +266,11 @@
            handleClick(e) {
                this.activeName = e.index
            },
            getApplyChagneDetailList() {
                applyChagneDetailList({
                })
            },
            // 获取投保详情
            getDetails() {
                // findList({ applyId: this.form.id })
company/src/views/enterprise/add_subtract.vue
@@ -42,12 +42,6 @@
        </el-form>
        <!-- 表格和分页 -->
        <template v-slot:table-wrap>
<<<<<<< HEAD
=======
            <ul class="toolbar" v-permissions="['business:applychange:create']">
                <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('新建')" v-permissions="['business:applychange:create']">新建</el-button></li>
            </ul>
>>>>>>> 48eb5dc61ac07d232632b13d040006128ed5cceb
            <el-table
                v-loading="isWorking.search"
                :data="tableData.list"
@@ -66,7 +60,6 @@
                        <span v-if="row.status === 3">退回申请</span>
                    </template>
                </el-table-column>
                <el-table-column prop="companyName" label="投保企业" min-width="100px"></el-table-column>
                <el-table-column prop="applyCode" label="关联保单号" min-width="100px"></el-table-column>
                <el-table-column prop="solutionsName" label="保险方案" min-width="100px"></el-table-column>
                <el-table-column prop="addNum" label="加保人数(人)" min-width="100px"></el-table-column>
@@ -79,7 +72,7 @@
                    fixed="right"
                >
                    <template slot-scope="{row}">
                        <el-button type="text" @click="$refs.operaApplyChangeWindow.open('加减保详情', row)">查看详情</el-button>
                        <el-button type="text" @click="$refs.OperaApplyChangeDetailWindow.open('加减保详情', row)">查看详情</el-button>
                    </template>
                </el-table-column>
            </el-table>
@@ -91,7 +84,7 @@
            </pagination>
        </template>
        <!-- 详情 -->
        <add_subtractDetails ref="add_subtractDetails" @success="handlePageChange"/>
        <OperaApplyChangeDetailWindow ref="OperaApplyChangeDetailWindow" @success="handlePageChange"/>
    </TableLayout>
</template>
@@ -100,11 +93,13 @@
    import TableLayout from '@/layouts/TableLayout'
    import Pagination from '@/components/common/Pagination'
    import add_subtractDetails from '@/components/enterprise/add_subtractDetails'
    import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow'
    import {all as solutionAll, all} from '@/api/business/solutions'
    import { mapState } from 'vuex'
    export default {
        name: 'add_subtract',
        extends: BaseTable,
        components: { TableLayout, Pagination, add_subtractDetails },
        components: { TableLayout, Pagination, add_subtractDetails, OperaApplyChangeDetailWindow },
        data () {
            return {
                // 搜索
company/src/views/enterprise/switchCourt.vue
@@ -13,47 +13,43 @@
            <el-form-item label="投保企业" prop="status">
                <el-select v-model="searchForm.status" placeholder="请选择">
                    <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                        v-for="item in options"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="保险方案" prop="status">
                <el-select v-model="searchForm.status" placeholder="请选择">
                    <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                        v-for="item in options"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="提交日期" prop="status">
                <el-date-picker
                        v-model="searchForm.status"
                        type="daterange"
                        range-separator="至"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期">
                    v-model="searchForm.status"
                    type="daterange"
                    range-separator="至"
                    start-placeholder="开始日期"
                    end-placeholder="结束日期">
                </el-date-picker>
            </el-form-item>
            <section>
                <el-button type="primary" @click="search">搜索</el-button>
                <el-button @click="reset">重置</el-button>
                <el-button @click="$refs.add_subtractDetails.open('加减保详情')">查看详情</el-button>
            </section>
        </el-form>
        <!-- 表格和分页 -->
        <template v-slot:table-wrap>
            <ul class="toolbar" v-permissions="['business:applychange:create']">
                <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('新建')" v-permissions="['business:applychange:create']">新建</el-button></li>
            </ul>
            <el-table
                    v-loading="isWorking.search"
                    :data="tableData.list"
                    stripe
                v-loading="isWorking.search"
                :data="tableData.list"
                stripe
            >
                <el-table-column label="序号" width="80px">
                    <template slot-scope="scope">
@@ -76,24 +72,24 @@
                <el-table-column prop="code" label="费用变更" min-width="100px"></el-table-column>
                <el-table-column prop="createDate" label="提交时间" min-width="100px"></el-table-column>
                <el-table-column
                        label="操作"
                        min-width="120"
                        fixed="right"
                    label="操作"
                    min-width="120"
                    fixed="right"
                >
                    <template slot-scope="{row}">
                        <el-button type="text" @click="$refs.operaApplyChangeWindow.open('加减保详情', row)">查看详情</el-button>
                        <el-button type="text" @click="$refs.OperaApplyChangeUnitDetailWindow.open('换厂详情', row)">查看详情</el-button>
                    </template>
                </el-table-column>
            </el-table>
            <pagination
                    @size-change="handleSizeChange"
                    @current-change="handlePageChange"
                    :pagination="tableData.pagination"
                @size-change="handleSizeChange"
                @current-change="handlePageChange"
                :pagination="tableData.pagination"
            >
            </pagination>
        </template>
        <!-- 详情 -->
        <add_subtractDetails ref="add_subtractDetails" @success="handlePageChange"/>
        <OperaApplyChangeUnitDetailWindow ref="OperaApplyChangeUnitDetailWindow" @success="handlePageChange"/>
    </TableLayout>
</template>
@@ -101,13 +97,13 @@
    import BaseTable from '@/components/base/BaseTable'
    import TableLayout from '@/layouts/TableLayout'
    import Pagination from '@/components/common/Pagination'
    import add_subtractDetails from '@/components/enterprise/add_subtractDetails'
    import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
    import {all as solutionAll} from "@/api/business/solutions";
    import {pageAll as companyAll} from "@/api/business/company";
    export default {
        name: 'switchCourt',
        extends: BaseTable,
        components: { TableLayout, Pagination, add_subtractDetails },
        components: { TableLayout, Pagination, OperaApplyChangeUnitDetailWindow },
        data () {
            return {
                // 搜索