| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403 |
- <template>
- <div class="page">
- <retrievalForm
- :fields="retrievalFields"
- @submit="handleFormSubmit"
- @toggleCollapse="toggleCollapse"
- @areaSelectChange="areaSelectChange"
- ></retrievalForm>
- <el-table
- size="small"
- :data="pageResult"
- height="590"
- border
- v-loading="loading"
- highlight-current-row
- stripe
- @expand-change="handleRowChange"
- ref="expandTable"
- :row-class-name="tableRowColor"
- :header-cell-style="{
- background: '#F2F7FC',
- fontWeight: '700',
- color: '#606266',
- }"
- >
- <el-table-column
- prop="orderno"
- label="订单号"
- align="center"
- ></el-table-column>
- <el-table-column prop="username" label="业务员工号" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.userid }}</span>
- </template>
- </el-table-column>
- <el-table-column prop="username" label="业务员名称" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.username }}</span>
- </template>
- </el-table-column>
- <el-table-column prop="managementSource" label="业务来源" align="center">
- <template slot-scope="scope">
- <el-tag v-if="scope.row.managementSource == '渠道'">渠道</el-tag>
- <el-tag v-if="scope.row.managementSource == '个代'" type="success"
- >个代</el-tag
- >
- <el-tag v-if="scope.row.managementSource == '电销'" type="warning"
- >电销</el-tag
- >
- </template>
- </el-table-column>
- <el-table-column prop="agreementName" label="协议" align="center" width="300">
- <template slot-scope="scope">
- <span>{{ scope.row.agreementName }} - {{ scope.row.businessDescription }} - {{ scope.row.jobDescription }}</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="insCompany"
- label="承保公司"
- width="180"
- align="center"
- >
- <template slot-scope="scope">
- <span>{{ scope.row.insCompany ? scope.row.insCompany : "--" }}</span>
- </template>
- </el-table-column>
- <el-table-column prop="dockingPerson" label="对接人" align="center"></el-table-column>
- <el-table-column prop="entryStatus" label="录入来源" align="center" width="100">
- <template slot-scope="scope">
- <el-tag size="mini" v-if="scope.row.entryStatus == '1'" effect="dark">车险录入</el-tag>
- <el-tag size="mini" v-if="scope.row.entryStatus == '2'" effect="dark" type="success">代客录单</el-tag>
- <el-tag size="mini" v-if="scope.row.entryStatus == '3'" effect="dark" type="warning">外部订单</el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="isExternal" label="外部订单" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.isExternal == "1" ? "是" : "否" }}</span>
- </template>
- </el-table-column>
- <el-table-column prop="problemOrder" label="疑问订单" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.problemOrder == "1" ? "是" : "否" }}</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="insCompany"
- label="合作公司"
- width="180"
- align="center"
- >
- <template slot-scope="scope">
- <span>{{
- scope.row.partnerCompaniesName
- ? scope.row.partnerCompaniesName
- : "--"
- }}</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="licenseno"
- label="车牌号"
- width="180"
- align="center"
- ></el-table-column>
- <el-table-column
- prop="insuredname"
- label="被保险人"
- align="center"
- width="150"
- ></el-table-column>
- <el-table-column
- prop="product"
- label="投保险种"
- align="center"
- width="200"
- ></el-table-column>
- <el-table-column
- prop="auditStatus"
- label="状态"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-tag
- v-if="scope.row.auditStatus == '0'"
- type="success"
- size="small"
- >未审核</el-tag
- >
- <el-tag
- v-if="scope.row.auditStatus == '1'"
- type="warning"
- size="small"
- >审核通过</el-tag
- >
- <el-tag v-if="scope.row.auditStatus == '2'" type="danger" size="small"
- >审核驳回</el-tag
- >
- </template>
- </el-table-column>
- <el-table-column
- prop="checkType"
- label="审核方式"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-tag
- v-if="scope.row.checkType == '2'"
- type="success"
- size="small"
- >自动审核</el-tag
- >
- <el-tag
- v-if="scope.row.checkType == '1'"
- type="warning"
- size="small"
- >人工审核</el-tag
- >
- </template>
- </el-table-column>
- <el-table-column
- prop="auditUser"
- label="审核人"
- align="center"
- width="200"
- ></el-table-column>
- <el-table-column
- prop="createtime"
- label="录单日期"
- align="center"
- width="200"
- ></el-table-column>
- <el-table-column
- prop="signingTime"
- label="签单时间"
- align="center"
- width="200"
- ></el-table-column>
- <el-table-column
- prop="payDate"
- label="支付时间"
- align="center"
- width="200"
- ></el-table-column>
- <el-table-column
- label="操作"
- align="center"
- min-width="150"
- fixed="right"
- >
- <template slot-scope="scope">
- <kt-button
- label="查看详情"
- type="text"
- perms="carInsurance:expenseVerification:pendingReview:review"
- @click="OrderDetails(scope.row)"
- />
- <kt-button label="轨迹" type="text" @click="trajectory(scope.row)" />
- </template>
- </el-table-column>
- </el-table>
- <!-- 分页功能 -->
- <div class="block">
- <el-pagination
- @size-change="applyhandleSizeChange"
- @current-change="applyhandleCurrentChange"
- :current-page="pageNum"
- :page-size="pageSize"
- :page-sizes="[20, 30, 50, 100]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="totalSize"
- ></el-pagination>
- </div>
- <!-- 车辆报价新页面 -->
- <detailsDialog
- ref="detailsDialog"
- :orderInfo="orderInfo"
- :feeOrderNewVoList="feeOrderNewVoList"
- @updatedCost="updatedCost"
- @adusitFUn="adusitFUn"
- auditStatus="1"
- >
- </detailsDialog>
- <el-dialog :visible.sync="ddgjdialogVisible" width="430px">
- <div slot="title" class="">
- <span>订单轨迹</span>
- </div>
- <div style="height: 300px; overflow-y: auto">
- <el-steps
- direction="vertical"
- :active="trajectoryTable.length - 1"
- finish-status="success"
- >
- <el-step
- :title="item.desc"
- :key="item.id"
- v-for="item in trajectoryTable"
- >
- <template slot="description">
- <template v-if="item.auditstatus == '0'">
- <div>保险公司:{{ item.insCompany }}</div>
- <div>创建用户:{{ item.operator }}</div>
- </template>
- <template v-else>
- <span>操作人:{{ item.operator }}</span>
- <span style="margin-left: 10px"
- >操作人工号:{{ item.audituser }}</span
- >
- <div v-if="item.operatorTime">
- 操作时间:{{ item.operatorTime }}
- </div>
- </template>
- </template>
- </el-step>
- </el-steps>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import retrievalForm from "@/components/Form/retrievalForm.vue";
- import Cookies from "js-cookie";
- import KtButton from "@/views/Core/KtButton"; //按钮权限组件
- import detailsDialog from "@/views/Core/components/detailsDialogPro.vue";
- export default {
- components: {
- KtButton,
- detailsDialog,
- retrievalForm,
- },
- data() {
- return {
- ddgjdialogVisible: false,
- trajectoryTable: [],
- feeOrderNewVoList: {},
- isAuditing: {},
- oldFeeInfo: [], //原始跟单费用比例
- adjustFeeDescInfo: {}, //调整费用时使用对象
- adjustFeeFlag: false,
- queryOrders: "",
- value2: "",
- optionsStatus: [],
- quotedetailsdialogVisible: false,
- loading: false,
- pageNum: 1, //页数
- pageSize: 20, //条数
- totalSize: null, //总数
- peopleid: "", //工号
- pageResult: [], //列表
- pageRequest: {
- pageNum: 1,
- pageSize: 20,
- auditStatus: 1,
- userId: "",
- },
- retrievalFields: [
- {
- name: 'whole',
- label: '总机构',
- type: 'select',
- options: []
- },
- {
- name: "provinceId",
- label: "省机构名称",
- type: "select",
- options: [],
- },
- {
- name: "cityId",
- label: "市机构名称",
- type: "select",
- options: [],
- },
- {
- name: "countyId",
- label: "区机构名称",
- type: "select",
- options: [],
- },
- {
- name: "houseId",
- label: "门店名称",
- type: "select",
- options: [],
- },
- // {
- // name: 'taskNo',
- // label: '任务池号',
- // type: 'input',
- // },
- {
- name: "orderNo",
- label: "订单号",
- type: "input",
- },
- {
- name: "managementSource",
- label: "业务来源",
- type: "select",
- options: [],
- optionsIabel: "dictTag",
- optionsValue: "dictValue",
- },
- {
- name: "companyId",
- label: "保险公司",
- type: "select",
- options: [],
- },
- {
- name: "insuredName",
- label: "被保险人",
- type: "input",
- Retained: true,
- },
- {
- name: "licenseNo",
- label: "车牌号",
- type: "input",
- Retained: true,
- },
- {
- name: "frameNo",
- label: "车架号",
- type: "input",
- Retained: true,
- },
- {
- name: "engineNo",
- label: "发动机号",
- type: "input",
- Retained: true,
- },
- {
- name: "riskCode",
- label: "投保险种",
- type: "select",
- Retained: true,
- options: [],
- optionsIabel: "dictTag",
- optionsValue: "dictTag",
- },
- {
- name: "operatorId",
- label: "代理人工号",
- type: "input",
- Retained: true,
- },
- {
- name: "operatorName",
- label: "代理人姓名",
- type: "input",
- Retained: true,
- },
- {
- name: "auditId",
- label: "受理人工号",
- type: "input",
- Retained: true,
- },
- {
- name: "agreeId",
- label: "协议选择",
- type: "select",
- options: [],
- optionsIabel: "agreementName",
- },
- {
- name: "isExternal",
- label: "外部订单",
- type: "select",
- optionsIabel: "label",
- optionsValue: "value",
- options: [
- {
- label: "是",
- value: "1",
- },
- {
- label: "否",
- value: "0",
- },
- ],
- },
- // {
- // name: "problemOrder",
- // label: "疑问订单",
- // type: "select",
- // optionsIabel: "label",
- // optionsValue: "value",
- // options: [
- // {
- // label: "是",
- // value: "1",
- // },
- // {
- // label: "否",
- // value: "0",
- // },
- // ],
- // },
- {
- name: ["quoteStartDateStr", "quoteEndDateStr"],
- label: "报价时间",
- type: "date",
- list: "quoteList",
- },
- {
- name: ["attachStartDateStr", "attachEndDateStr"],
- label: "起保时间",
- type: "date",
- list: "attachList",
- },
- {
- name: ["signStartDateStr", "signEndDateStr"],
- label: "签单时间",
- type: "date",
- list: "signList",
- },
- {
- name: ["payStartDateStr", "payEndDateStr"],
- label: "支付时间",
- type: "date",
- list: "payList",
- },
- // {
- // name: 'isExternal',
- // label: '外部订单',
- // optionsIabel: 'label',
- // optionsValue: 'value',
- // Retained: true,
- // type: 'select',
- // options: [
- // {
- // label: '否',
- // value: '0'
- // },
- // {
- // label: '是',
- // value: '1'
- // },
- // ]
- // },
- {
- name: 'jqPolicyNo',
- label: '交强保单号',
- type: 'input',
- Retained: true,
- },
- {
- name: 'syPolicyNo',
- label: '商业保单号',
- type: 'input',
- Retained: true,
- },
- {
- name: 'noPolicyNo',
- label: '非车保单号',
- type: 'input',
- Retained: true,
- },
- {
- name: 'checkType',
- label: '审核方式',
- type: "select",
- optionsIabel: "label",
- optionsValue: "value",
- options: [
- {
- label: "人工审核",
- value: "1",
- },
- {
- label: "自动审核",
- value: "2",
- },
- ],
- },
- {
- name: 'checkUser',
- label: '审核人',
- type: 'input',
- Retained: true,
- },
- ],
- orderInfo: {
- //选中的订单
- ownerinfo: {},
- carinfo: {},
- applyinfo: {},
- insureinfo: {},
- kindinfo: [],
- riskinfo: [],
- ownerinfo: {},
- extendInfo: {},
- },
- feeDetailInfo: [], //费用明细信息
- inscompany: "", //保险公司名称
- licenseNo: "", //车牌号
- sumpremium: "", //保费合计
- jqpremium: "", //交强
- sypremium: "", //商业
- taxamount: "", //车船税
- jypremium: "", //驾意险
- jqstartdate: "", //交强时间
- systartdate: "", //商业时间
- mobile: "", //投保人手机号
- qrcode: null,
- userid: "",
- institutionOptions: [],
- width: document.documentElement.clientWidth,
- insAreaCompanyList: [], //子订单list
- companyList: [], //保险公司
- oldVersionHistory: [],
- natureOfVehicleUseoptions: [],
- businessVehicleUseoptions: [],
- outOfBusinessVehicleUseoptions: [],
- vehicleTypeoptions: [],
- trafficManagementVehicleTypeoptions: [],
- energyTypeoptions: [],
- carImageList: [], //车辆影像
- ownerImageList: [], //车主影像
- policyImageList: [], //投保人影像
- insuredImageList: [], //被保人影像
- carCheckImageList: [], //验车照影像
- oldfileList: [], //电子保单数据
- };
- },
- created() {
- this.pageRequest.userId = Cookies.get("user");
- this.areaqueryList(0, 9, "whole");
- this.CompanyList();
- this.agrmentlist();
- this.$api.insCompany.dicType("productsType").then((res) => {
- if (res.code == 200) {
- this.selectDataMatching(
- this.retrievalFields,
- "riskCode",
- res.data.ddList
- );
- }
- });
- this.$api.insCompany.dicType("organizationSource").then((res) => {
- if (res.code == 200) {
- this.selectDataMatching(
- this.retrievalFields,
- "managementSource",
- res.data.ddList
- );
- }
- });
- this.getDicType("natureOfVehicleUse"); //车辆使用性质
- this.getDicType("businessVehicleUse"); //(车辆用途)营业
- this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
- this.getDicType("vehicleType"); //车辆种类
- this.getDicType("trafficManagementVehicleType"); //车辆类型
- this.getDicType("energyType"); //能源种类
- },
- mounted() {
- window.addEventListener("resize", this.getDimensions);
- },
- unmounted() {
- window.removeEventListener("resize", this.getDimensions);
- },
- methods: {
- auditstatusCap(val) {
- if (val == "0") {
- return "未审核";
- }
- if (val == "1") {
- return "审核通过";
- }
- if (val == "2") {
- return "审核驳回";
- }
- },
- trajectory(row) {
- this.$api.task.getFeeAuditHistory(row.orderno).then((res) => {
- if (res.code == 200 && res.data.length > 0) {
- this.trajectoryTable = res.data;
- this.ddgjdialogVisible = true;
- } else {
- this.$message.error("暂无数据!");
- }
- });
- },
- //获取机构数据
- areaqueryList(level, parentId, filed) {
- this.$api.task.queryListByParentId(level, parentId).then((res) => {
- this.selectDataMatching(this.retrievalFields, filed, res.data);
- });
- },
- CompanyList() {
- this.$api.letter.gainTopList().then((res) => {
- this.selectDataMatching(this.retrievalFields, "companyId", res.data);
- });
- },
- agrmentlist() {
- this.$api.task.findPtlAgreementList().then((res) => {
- this.selectDataMatching(this.retrievalFields, "agreeId", res.data);
- });
- },
- getDicType(type) {
- this.$api.insCompany.dicType(type).then((res) => {
- if (res.code == 200) {
- this[type + "options"] = res.data.ddList;
- }
- });
- },
- //下拉数据匹配
- selectDataMatching(files, name, data) {
- files.forEach((filed) => {
- if (filed.name == name) {
- filed.options = data;
- }
- });
- },
- areaSelectChange(obj) {
- switch (obj.filed) {
- case "whole":
- this.areaqueryList(1, obj.id, "provinceId");
- break;
- case "provinceId":
- this.areaqueryList(2, obj.id, "cityId");
- break;
- case "cityId":
- this.areaqueryList(3, obj.id, "countyId");
- break;
- case "countyId":
- this.areaqueryList(4, obj.id, "houseId");
- break;
- default:
- }
- },
- handleFormSubmit(data) {
- this.pageRequest.pageNum = 1;
- this.pageRequest.pageSize = 20;
- let obj = Object.assign(this.pageRequest, data);
- this.pageRequest = obj;
- this.findPage();
- },
- toggleCollapse(data) {
- this.retrievalFields.map((val) => {
- if (val.Retained != null) val.Retained = data;
- return val;
- });
- },
- updatedCost(data) {
- let list = JSON.parse(JSON.stringify(data));
- console.log(list);
- const exportFee = [];
- const entranceFee = [];
- list.feeOrder.forEach((item, index) => {
- if (index < 3) entranceFee.push(item);
- else exportFee.push(item);
- });
- let params = {
- feeId: this.oldVersionHistory.feeId,
- feeOrderNewVoOld: this.oldVersionHistory,
- feeOrderNewVoNew: {
- deptManagerFee: list.deptManagerFee,
- entranceFee: entranceFee,
- exportFee: exportFee,
- },
- };
- this.$api.task.costsadjust(params).then((res) => {
- if (res.code == "200") {
- let data = res.data;
- let list = [];
- data.exportFee.map((val, index) => {
- val.type = "出口费用";
- return val;
- });
- data.entranceFee.map((val, index) => {
- val.type = "入口费用";
- return val;
- });
- console.log(data);
- this.feeOrderNewVoList = {
- deptManagerFee: data.deptManagerFee,
- list: [...data.entranceFee, ...data.exportFee],
- retailFee: data.retailFee,
- };
- this.$message({
- type: "success",
- message: res.msg,
- });
- } else {
- this.$message({
- type: "error",
- message: res.msg,
- });
- }
- });
- },
- closeDialog() {
- this.adjustFeeFlag = false;
- },
- //审核通过
- adusitFUn() {
- let subParam = {
- orderNo: this.orderInfo.orderno,
- jqCostsProportionStr: this.adjustFeeDescInfo.jqAllFeeRate,
- syCostsProportionStr: this.adjustFeeDescInfo.syAllFeeRate,
- updateFlag: this.adjustFeeFlag ? "1" : "0",
- };
- this.$api.task.auditFee(subParam).then((res) => {
- if (res.code == 200) {
- this.$message({
- type: "success",
- message: "审核通过",
- });
- this.findPage();
- // this.quotedetailsdialogVisible = false;
- this.$refs.detailsDialog.setBackupVisible(false);
- } else {
- this.$message.error(res.msg);
- }
- });
- },
- toChinesNum(num) {
- let changeNum = ["零", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
- let unit = ["", "0", "00", "000", "0000"];
- num = parseInt(num);
- let getWan = (temp) => {
- let strArr = temp.toString().split("").reverse();
- let newNum = "";
- let newArr = [];
- strArr.forEach((item, index) => {
- newArr.unshift(
- item === "0" ? changeNum[item] : changeNum[item] + unit[index]
- );
- });
- let numArr = [];
- newArr.forEach((m, n) => {
- if (m !== "零") numArr.push(n);
- });
- if (newArr.length > 1) {
- newArr.forEach((m, n) => {
- if (newArr[newArr.length - 1] === "零") {
- if (n <= numArr[numArr.length - 1]) {
- newNum += m;
- }
- } else {
- newNum += m;
- }
- });
- } else {
- newNum = newArr[0];
- }
- return newNum;
- };
- let overWan = Math.floor(num / 10000);
- let noWan = num % 10000;
- if (noWan.toString().length < 4) {
- noWan = "0" + noWan;
- }
- return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
- },
- //联级选择器触发事件
- handleChange(val) {
- if (val.length !== 0) {
- this.pageRequest.deptId = val.at(-1);
- } else {
- this.pageRequest.deptId = "";
- }
- },
- getDimensions() {
- this.width = document.documentElement.clientWidth - 350 + "px";
- },
- //使用性质
- natureOfVehicleUseCap(ele) {
- if (
- this.natureOfVehicleUseoptions.find((item) => item.dictValue == ele)
- ) {
- return this.natureOfVehicleUseoptions.find((item) => {
- return item.dictValue === ele;
- }).dictTag;
- } else {
- return "";
- }
- },
- //车辆类型
- trafficManagementVehicleTypeCap(ele) {
- if (
- this.trafficManagementVehicleTypeoptions.find(
- (item) => item.dictValue == ele
- )
- ) {
- return this.trafficManagementVehicleTypeoptions.find((item) => {
- return item.dictValue === ele;
- }).dictTag;
- } else {
- return "";
- }
- },
- //车辆种类
- vehicleTypeCap(ele) {
- if (this.vehicleTypeoptions.find((item) => item.dictValue == ele)) {
- return this.vehicleTypeoptions.find((item) => {
- return item.dictValue === ele;
- }).dictTag;
- } else {
- return "";
- }
- },
- //能源种类
- energyTypeCap(ele) {
- if (this.energyTypeoptions.find((item) => item.dictValue == ele)) {
- return this.energyTypeoptions.find((item) => {
- return item.dictValue === ele;
- }).dictTag;
- } else {
- return "";
- }
- },
- //车辆用途
- outOfBusinessVehicleUseCap(type, ele) {
- switch (type) {
- case "非营业":
- if (
- this.outOfBusinessVehicleUseoptions.find(
- (item) => item.dictValue == ele
- )
- ) {
- return this.outOfBusinessVehicleUseoptions.find((item) => {
- return item.dictValue === ele;
- }).dictTag;
- } else {
- return "";
- }
- case "营业":
- if (
- this.businessVehicleUseoptions.find((item) => item.dictValue == ele)
- ) {
- return this.businessVehicleUseoptions.find((item) => {
- return item.dictValue === ele;
- }).dictTag;
- } else {
- return "";
- }
- default:
- }
- },
- //应用详情
- OrderDetails(dy) {
- this.carImageList = [];
- this.ownerImageList = []; //车主影像
- this.policyImageList = []; //投保人影像
- this.insuredImageList = []; //被保人影像
- this.carCheckImageList = []; //验车照影像
- let params = {
- orderNo: dy.orderno,
- };
- this.$api.task.feeDetail(params).then((res) => {
- if (res.code == 200) {
- res.data.kindinfo.map((ele, index) => {
- switch (ele.kindCode) {
- case "A":
- ele.amount = "投保";
- break;
- case "D4":
- case "SY_FJ_YBW2":
- ele.unitAmount = this.toChinesNum(ele.unitAmount);
- break;
- case "MJ1":
- case "MJ2":
- case "MJ3":
- case "MJ4":
- ele.deductibleRate = ele.deductibleRate + "%";
- break;
- default:
- ele.amount = this.toChinesNum(ele.amount);
- }
- return ele;
- });
- // 获取影像
- this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
- Object.keys(resImage.data).forEach((keys) => {
- if (resImage.data[keys]) {
- resImage.data[keys].url = resImage.data[keys].url
- ? process.env.BASE_URL + resImage.data[keys].url
- : null;
- switch (keys) {
- case "C01":
- case "D01":
- resImage.data[keys].url
- ? this.carImageList.push(resImage.data[keys].url)
- : "";
- break;
- case "C02":
- case "D02":
- resImage.data[keys].url
- ? this.ownerImageList.push(resImage.data[keys].url)
- : "";
- break;
- case "C03":
- case "D03":
- resImage.data[keys].url
- ? this.policyImageList.push(resImage.data[keys].url)
- : "";
- break;
- case "C04":
- case "D04":
- resImage.data[keys].url
- ? this.insuredImageList.push(resImage.data[keys].url)
- : "";
- break;
- case "XC00":
- case "GC00":
- case "GX00":
- resImage.data[keys].url
- ? this.carCheckImageList.push(resImage.data[keys].url)
- : "";
- break;
- default:
- break;
- }
- }
- });
- let obj = {
- carImageList: this.carImageList,
- ownerImageList: this.ownerImageList,
- policyImageList: this.policyImageList,
- insuredImageList: this.insuredImageList,
- carCheckImageList: this.carCheckImageList,
- };
- this.$refs.detailsDialog.imageFun(obj);
- });
- if (
- res.data.feeOrderNewVo &&
- res.data.feeOrderNewVo.exportFee &&
- res.data.feeOrderNewVo.entranceFee
- ) {
- let data = JSON.parse(JSON.stringify(res.data.feeOrderNewVo));
- this.oldVersionHistory = data;
- data.exportFee.map((val, index) => {
- val.type = "出口费用";
- return val;
- });
- data.entranceFee.map((val, index) => {
- val.type = "入口费用";
- return val;
- });
- this.feeOrderNewVoList = {
- deptManagerFee: data.deptManagerFee,
- list: [...data.entranceFee, ...data.exportFee],
- retailFee: data.retailFee,
- };
- }
- res.data.carinfo.carnature = this.natureOfVehicleUseCap(
- res.data.carinfo.carnature
- );
- res.data.carinfo.cartype = this.trafficManagementVehicleTypeCap(
- res.data.carinfo.cartype
- );
- res.data.carinfo.cimodelclass = this.vehicleTypeCap(
- res.data.carinfo.cimodelclass
- );
- res.data.carinfo.energyType = this.energyTypeCap(
- res.data.carinfo.energyType
- );
- res.data.carinfo.vehicleUse = this.outOfBusinessVehicleUseCap(
- res.data.carinfo.carnature,
- res.data.carinfo.vehicleUse
- );
- this.orderInfo = res.data;
- this.oldfileList = [];
- let businessList = [];
- let accidentList = [];
- if (res.data.orderstatus == "3") {
- if (res.data.isExternal == 1) {
- this.$api.letter
- .getPolicyPrintexternalOrder(res.data.id)
- .then((res1) => {
- if (res1.code == 200) {
- if (res1.data.jqPolicy) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res1.data.jqPolicy,
- });
- }
- if (res1.data.jqSign) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res1.data.jqSign,
- });
- }
- if (res1.data.jqSign) {
- accidentList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res1.data.jqSign,
- });
- }
- if (res1.data.noPolicy) {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: "驾意险保单",
- fileurl: res1.data.noPolicy,
- });
- }
- } else {
- this.$message.error(res1.msg);
- }
- });
- } else {
- switch (res.data.inscompany) {
- case "永安财险":
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .getPolicyPrint({
- companyId: res.data.id,
- policytype: "jq",
- })
- .then((res) => {
- //交强保单
- if (res.data) {
- let result = res.data.replace(/[\r\n]/g, "");
- let pdfBase64 = `data:application/pdf;base64,${result}`;
- base64ToPath(pdfBase64).then((path) => {
- if (path) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: path,
- });
- }
- });
- }
- });
- this.$api.letter
- .getPolicyPrint2({
- companyId: res.data.id,
- policytype: "jq",
- })
- .then((res) => {
- //交强保单
- if (res.data) {
- let result = res.data.replace(/[\r\n]/g, "");
- let pdfBase64 = `data:application/pdf;base64,${result}`;
- base64ToPath(pdfBase64).then((path) => {
- if (path) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: path,
- });
- }
- });
- }
- });
- }
- if (this.orderInfo.sypolicyno) {
- this.$api.letter
- .getPolicyPrint({
- companyId: res.data.id,
- policytype: "sy",
- })
- .then((res) => {
- //商业保单
- if (res.data) {
- let result = res.data.replace(/[\r\n]/g, "");
- let pdfBase64 = `data:application/pdf;base64,${result}`;
- base64ToPath(pdfBase64).then((path) => {
- if (path) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: path,
- });
- }
- });
- }
- });
- }
- break;
- case "华泰财险":
- switch (this.orderInfo.apiType) {
- case 1:
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .HuataigetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- if (res.data.jqxPolicyUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxPolicyUrl,
- });
- }
- if (res.data.jqxFlagUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxFlagUrl,
- });
- }
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.sypolicyno) {
- this.$api.letter
- .HuataigetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0510",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data && res.data.syxPolicyUrl) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data.syxPolicyUrl,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- break;
- case 2:
- if (
- this.orderInfo.jqpolicyno ||
- this.orderInfo.sypolicyno
- ) {
- this.$api.letter
- .pythongetPolicyPrint({
- subOrderNo: res.data.id,
- })
- .then((res) => {
- if (res.code == 200 && res.data) {
- if (res.data.jqxPolicyUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxPolicyUrl,
- });
- }
- if (res.data.jqxFlagUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxFlagUrl,
- });
- }
- if (res.data.syxPolicyUrl) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data.syxPolicyUrl,
- });
- }
- if (
- res.data.jyxInfoList &&
- res.data.jyxInfoList.length > 0
- ) {
- res.data.jyxInfoList.forEach((val) => {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: "驾意险保单",
- fileurl: val.jyx_policy_url,
- });
- });
- }
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- break;
- default:
- }
- break;
- case "中煤财险":
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .ZhongmeigetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data && res.data[0]) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data[0],
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- this.$api.letter
- .ZhongmeigetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "1", // 1:标志
- })
- .then((res) => {
- if (res.data && res.data[0]) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data[0],
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.sypolicyno) {
- this.$api.letter
- .ZhongmeigetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0510",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data && res.data[0]) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data[0],
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.crossInsurance.length > 0) {
- this.orderInfo.crossInsurance.map((ele) => {
- this.$api.letter
- .ZhongmeigetPolicyPrint({
- ridePolicyNo: ele.ridePolicyNo,
- companyId: res.data.id,
- riskCode: "0513",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.code == 200 && res.data) {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data[0],
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- });
- }
- break;
- case "永诚财险":
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .yongchenggetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.code == 200 && res.data) {
- if (res.data.jqUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqUrl,
- });
- }
- if (res.data.jqFlagUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqFlagUrl,
- });
- }
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.sypolicyno) {
- this.$api.letter
- .yongchenggetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0510",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data && res.data.syUrl) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data.syUrl,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.crossInsurance.length > 0) {
- this.orderInfo.crossInsurance.map((ele) => {
- this.$api.letter
- .yongchenggetPolicyPrint({
- companyId: res.data.id,
- policyNumber: ele.policyNumber,
- riskCode: "0513",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.code == 200 && res.data) {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: ele.policyNumber,
- fileurl: res.data.jyUrl,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- });
- }
- break;
- case "国任财险":
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .guoRengetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- this.$api.letter
- .guoRengetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "1", //1:标志
- })
- .then((res) => {
- if (res.data) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.sypolicyno) {
- this.$api.letter
- .guoRengetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0510",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.crossInsurance.length > 0) {
- this.orderInfo.crossInsurance.map((ele) => {
- this.$api.letter
- .guoRengetPolicyPrint({
- companyId: res.data.id,
- policyNumber: ele.policyNumber,
- riskCode: "0513",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: ele.policyNumber,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- });
- }
- break;
- case "紫金财险":
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .zijingetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- this.$api.letter
- .zijingetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0507",
- type: "1", //1:标志
- })
- .then((res) => {
- if (res.data) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.sypolicyno) {
- this.$api.letter
- .zijingetPolicyPrint({
- companyId: res.data.id,
- riskCode: "0510",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.crossInsurance.length > 0) {
- this.orderInfo.crossInsurance.map((ele) => {
- this.$api.letter
- .zijingetPolicyPrint({
- companyId: res.data.id,
- policyNumber: ele.policyNumber,
- riskCode: "0513",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: ele.policyNumber,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- });
- }
- break;
- case "渤海财险":
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .getPolicyPrintboHai({
- companyId: res.data.id,
- })
- .then((res) => {
- if (res.code == 200 && res.data) {
- if (res.data.jqxPolicyUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxPolicyUrl,
- });
- }
- if (res.data.jqxFlagUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxFlagUrl,
- });
- }
- if (res.data.syxPolicyUrl) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data.syxPolicyUrl,
- });
- }
- if (
- res.data.jyxInfoList &&
- res.data.jyxInfoList.length > 0
- ) {
- res.data.jyxInfoList.forEach((val) => {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: "驾意险保单",
- fileurl: val.jyx_policy_url,
- });
- });
- }
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- break;
- case "恒邦财险":
- case "诚泰财险":
- case "安盛天平":
- case "中国人寿":
- case "太平财险":
- case "华农财险":
- case "众安财险":
- if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
- this.$api.letter
- .pythongetPolicyPrint({
- subOrderNo: res.data.id,
- })
- .then((res) => {
- if (res.code == 200 && res.data) {
- if (res.data.jqxPolicyUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxPolicyUrl,
- });
- }
- if (res.data.jqxFlagUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxFlagUrl,
- });
- }
- if (res.data.syxPolicyUrl) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data.syxPolicyUrl,
- });
- }
- if (
- res.data.jyxInfoList &&
- res.data.jyxInfoList.length > 0
- ) {
- res.data.jyxInfoList.forEach((val) => {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: "驾意险保单",
- fileurl: val.jyx_policy_url,
- });
- });
- }
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- break;
- case "大家财险":
- switch (this.orderInfo.apiType) {
- case 1:
- if (this.orderInfo.jqpolicyno) {
- this.$api.letter
- .obtainWarranty({
- companyId: res.data.id,
- riskCode: "0507",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- this.$api.letter
- .obtainWarranty({
- companyId: res.data.id,
- riskCode: "0507",
- type: "1", //1:标志
- })
- .then((res) => {
- if (res.data) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- if (this.orderInfo.sypolicyno) {
- this.$api.letter
- .obtainWarranty({
- companyId: res.data.id,
- riskCode: "0510",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data,
- });
- }
- });
- }
- if (this.orderInfo.crossInsurance.length > 0) {
- this.orderInfo.crossInsurance.map((ele) => {
- this.$api.letter
- .zijingetPolicyPrint({
- companyId: res.data.id,
- policyNumber: ele.policyNumber,
- riskCode: "0513",
- type: "2", //2:保单
- })
- .then((res) => {
- if (res.data) {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: ele.policyNumber,
- fileurl: res.data,
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- });
- }
- break;
- case 2:
- if (
- this.orderInfo.jqpolicyno ||
- this.orderInfo.sypolicyno
- ) {
- this.$api.letter
- .pythongetPolicyPrint({
- subOrderNo: res.data.id,
- })
- .then((res) => {
- if (res.code == 200 && res.data) {
- if (res.data.jqxPolicyUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxPolicyUrl,
- });
- }
- if (res.data.jqxFlagUrl) {
- this.oldfileList.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqxFlagUrl,
- });
- }
- if (res.data.syxPolicyUrl) {
- businessList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data.syxPolicyUrl,
- });
- }
- if (
- res.data.jyxInfoList &&
- res.data.jyxInfoList.length > 0
- ) {
- res.data.jyxInfoList.forEach((val) => {
- accidentList.push({
- fileTitle: "驾意险保单",
- filename: "驾意险保单",
- fileurl: val.jyx_policy_url,
- });
- });
- }
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- break;
- }
- break;
- default:
- }
- }
- let obj = {
- oldfileList: this.oldfileList,
- businessList,
- accidentList,
- };
- this.$refs.detailsDialog.warrantyFun(obj);
- }
- this.feeDetailInfo = res.data.orderFeeResult;
- this.oldFeeInfo = res.data.adjustFeeDescVo;
- this.adjustFeeDescInfo = { ...this.oldFeeInfo };
- // this.quotedetailsdialogVisible = true;
- this.$refs.detailsDialog.setBackupVisible(true);
- } else {
- this.$message.error("订单获取失败");
- }
- });
- },
- // 设置每页条数
- applyhandleSizeChange(val) {
- this.pageSize = val;
- this.pageNum = 1;
- this.pageRequest.pageNum = 1;
- this.pageRequest.pageSize = val;
- this.findPage();
- },
- // 当前页
- applyhandleCurrentChange(val) {
- this.pageNum = val;
- this.pageRequest.pageNum = val;
- this.findPage();
- },
- handleRowChange(row) {
- if (!row.expanded) {
- this.$api.letter
- .querySonOrders({ orderNo: row.orderno })
- .then((res) => {
- if (res.code == "200" && res.data.length != 0) {
- this.pageResult.map((item) => {
- if (item.orderno === row.orderno) {
- item.insAreaCompanyList = res.data;
- }
- return item;
- });
- row.expanded = !row.expanded;
- this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
- } else {
- this.$message.info("暂无数据");
- }
- });
- } else {
- row.expanded = !row.expanded;
- this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
- }
- },
- //数据
- findPage() {
- this.loading = true;
- this.$api.task.queryPageOrder(this.pageRequest).then((res) => {
- if (res.code == "200") {
- this.loading = false;
- this.pageResult = res.data.content;
- this.pageNum = res.data.pageNum;
- this.totalSize = res.data.totalSize;
- this.pageResult.forEach((val) => {
- this.$set(val, "expanded", false);
- });
- } else {
- this.loading = false;
- }
- });
- },
- //查询
- onSubmit() {
- this.pageRequest.pageNum = 1;
- this.pageRequest.pageSize = 20;
- this.findPage();
- },
- //时间js
- monthChange(e) {
- if (e === null) {
- this.pageRequest.startDate = e;
- this.pageRequest.endDate = e;
- } else {
- this.pageRequest.startDate = e[0];
- this.pageRequest.endDate = e[1];
- }
- },
- tableRowColor({ row, rowIndex }) {
- if (row.problemOrder == 1) {
- return "blue-row";
- }
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- /deep/ {
- .el-table .row-expand-cover .cell .el-table__expand-icon {
- display: none;
- }
- .el-descriptions__body {
- padding: 10px 50px;
- box-sizing: border-box;
- color: rgb(226, 118, 10);
- }
- .el-descriptions-item__label {
- &:not(.is-bordered-label) {
- color: #333;
- }
- }
- .saomazhifucodeClass .el-dialog__body,
- .saomazhifucodeClass .el-dialog__header {
- padding: 0;
- }
- .el-input.is-disabled .el-input__inner {
- color: #333;
- }
- }
- .ORcodebody {
- width: 100%;
- height: auto;
- box-sizing: border-box;
- }
- .code_title {
- width: 100%;
- height: 50px;
- background-color: #fdcb08;
- justify-content: center;
- }
- .code_title > span {
- font-size: 22px;
- color: #000;
- font-weight: bold;
- }
- .ORcode {
- width: 100%;
- background: #fff;
- height: auto;
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 30px;
- box-sizing: border-box;
- border-bottom: 6px dotted #fdcb08;
- }
- .ORcode > div {
- width: 180px;
- height: 180px;
- border: 1px solid #000;
- border-radius: 5px;
- }
- .ORtitle {
- background: #fff;
- width: 100%;
- padding: 20px;
- box-sizing: border-box;
- border-bottom: 1px solid #f2f2f2;
- }
- .ORtitle > div {
- width: 100%;
- margin: 10px 0;
- font-weight: bold;
- font-size: 14px;
- display: flex;
- align-items: center;
- }
- .ORtitle > div > span:nth-child(1) {
- color: #979797;
- text-align: end;
- width: 150px;
- }
- .ORtitle > div > span:nth-child(2) {
- color: #000;
- margin-left: 10px;
- }
- </style>
- <style scoped>
- #qqq {
- background-color: #111;
- width: 300px;
- height: 300px;
- margin: 0 auto;
- /*水平居中*/
- position: relative;
- }
- #qrCode {
- display: inline-block;
- margin: 0 auto;
- /*水平居中*/
- position: relative;
- top: 15%;
- }
- #qrCode img {
- width: 200px;
- height: 200px;
- background-color: #fff;
- padding: 6px;
- }
- .leftContainer {
- width: 80px;
- position: fixed;
- top: 79px;
- left: 30px;
- }
- .leftContainer .el-col {
- width: 80px;
- height: 80px;
- border-bottom: 1px solid #4d5c6f;
- background: #526176;
- cursor: pointer;
- color: #a6aeb9;
- border-radius: 0;
- }
- .leftContainer .el-col a {
- display: block;
- color: #a6aeb9;
- text-decoration: none;
- }
- .leftContainer .el-col a:hover {
- color: #fff;
- }
- .leftContainer .el-col a.active {
- color: #fff;
- }
- .leftContainer .el-col i {
- font-size: 30px;
- margin: 15px 0px 5px;
- }
- .rightContainer {
- width: calc(100vw - 160px);
- margin-left: 100px;
- }
- .rightContainer .header .el-col {
- font-size: 18px;
- font-weight: bold;
- }
- .rightContainer .bodyTitle {
- height: 40px;
- background: #f3f3f3;
- border: 1px solid #dddddd;
- }
- .rightContainer .bodyTitle > label {
- margin: 0px 15px;
- font-weight: bold;
- }
- .rightContainer #demo2 .body,
- .rightContainer #demo6 .body {
- border: 1px solid #ddd;
- padding: 15px;
- border-top: none;
- }
- .rightContainer .el-card {
- margin-bottom: 15px;
- }
- .body .el-row .el-col label {
- text-align: right;
- width: 80px;
- font-size: 14px;
- width: 100%;
- line-height: 36px;
- display: inline-block;
- box-sizing: border-box;
- }
- .disabledInput {
- width: 80% !important;
- background-color: #f5f7fa;
- text-align: center !important;
- max-width: 200px;
- border: 1px solid #e4e7ed;
- color: #c0c4cc;
- cursor: not-allowed;
- border-radius: 4px;
- box-sizing: border-box;
- padding: 0px 10px;
- height: 36px;
- margin: 20px 10%;
- }
- /* 上传图片样式Start */
- .avatar-uploader .el-upload {
- border: 1px dashed #d9d9d9;
- border-radius: 6px;
- cursor: pointer;
- position: relative;
- overflow: hidden;
- }
- .avatar-uploader .el-upload:hover {
- border-color: #409eff;
- }
- .avatar-uploader-icon {
- font-size: 28px;
- color: #8c939d;
- width: 100px;
- height: 100px;
- line-height: 100px;
- text-align: center;
- border: 1px dashed #d9d9d9;
- }
- .avatar {
- border: 1px dashed #d9d9d9;
- padding: 5px;
- border-radius: 6px;
- width: 100px;
- height: 100px;
- display: block;
- }
- .imageStyle {
- display: inline-block;
- width: 100px;
- height: 100px;
- box-shadow: #ddd 0px 0px 5px;
- margin-right: 20px;
- }
- /* 上传图片样式End */
- .dis {
- display: flex;
- }
- .align {
- align-items: center;
- }
- .jus {
- justify-content: space-between;
- }
- .display {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 10px;
- box-sizing: border-box;
- }
- .block {
- margin-top: 10px;
- }
- .page {
- padding: 14px;
- box-sizing: border-box;
- }
- .el-select--medium {
- vertical-align: bottom !important;
- }
- .widths {
- width: 220px;
- }
- .demo-table-expand {
- width: 100%;
- height: auto;
- padding: 10px 50px;
- font-size: 14px;
- }
- .demo-table-expand-time {
- width: 600px;
- }
- .demo-table-expand-time > div {
- margin: 0 10px;
- }
- .icon-img {
- display: block;
- width: 30px;
- height: 30px;
- }
- .Enclosure {
- width: 100%;
- background-color: #fff;
- padding: 20px;
- box-sizing: border-box;
- margin-bottom: 15px;
- border-radius: 6px;
- border: 1px solid #ebeef5;
- transition: all 0.2s ease-in-out;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- }
- .headers {
- display: flex;
- align-items: center;
- justify-content: space-between;
- flex-wrap: wrap;
- margin: 5px 0;
- font-weight: bold;
- color: #333;
- }
- /* 内容待定 */
- .headers_Custom > div {
- padding: 20px 40px;
- font-size: 16px;
- }
- .headers_Custom > div > span {
- color: rgb(226, 118, 10);
- }
- .back {
- color: #303133;
- font-weight: 700;
- }
- .u-f-ac {
- -webkit-box-align: center;
- align-items: center;
- /* padding: 10px; */
- }
- .bodyTitle {
- height: 40px;
- background: #f3f3f3;
- border: 1px solid #dddddd;
- line-height: 40px;
- padding: 0 20px;
- box-sizing: border-box;
- }
- .bjdbody {
- width: 100%;
- height: auto;
- background-color: rgb(199, 20, 45);
- padding: 20px 10px 0 10px;
- box-sizing: border-box;
- border-radius: 8px;
- }
- .bjdCarMessage,
- .bjdCarSum {
- width: 100%;
- height: auto;
- background-color: #fff;
- border-radius: 8px;
- margin-bottom: 10px;
- padding-bottom: 10px;
- }
- .bjdfooter {
- border-top: 1px solid #fff;
- padding: 10px;
- box-sizing: border-box;
- color: #fff;
- }
- .bjdCarSum > div {
- width: 100%;
- padding: 15px 20px;
- box-sizing: border-box;
- font-weight: bold;
- color: #000;
- border-bottom: 1px solid #f2f2f2;
- }
- .bjdCarMessage1 {
- height: 80px;
- padding: 16px;
- box-sizing: border-box;
- border-bottom: 1px solid #f2f2f2;
- display: flex;
- align-items: center;
- color: #000;
- }
- .bjdCarMessage1 > .f-c > span:nth-child(1) {
- font-size: 18px;
- font-weight: bold;
- }
- .bjdCarMessage1 > img,
- .bjdfooter > img {
- margin-right: 30px;
- }
- .bjdCarMessage1 .f-c > span:nth-child(2),
- .bjdCarMessage1 .f-c > span:nth-child(3) {
- font-size: 12px;
- margin-top: 5px;
- }
- .bjdCarMessage2_car > span:nth-child(1) {
- color: #000;
- font-weight: bold;
- }
- .bjdCarMessage2_car > span:nth-child(2) {
- color: #999;
- }
- .bjdCarMessage2 > ul > li {
- margin: 20px 0;
- }
- .Risk {
- width: 100%;
- height: auto;
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: 12px;
- }
- .Risk_title {
- width: 100%;
- height: 40px;
- }
- .Risk_title > div {
- background: rgb(199, 20, 45);
- color: rgb(255, 255, 255);
- height: 100%;
- font-weight: 500;
- width: 33.3%;
- padding: 10px 20px;
- box-sizing: border-box;
- border: #fff solid 1px;
- display: flex;
- justify-content: center;
- align-items: center;
- border-bottom: none;
- }
- .Risk_title > div:nth-child(2) {
- border-left: none;
- border-right: none;
- }
- .Risk_data {
- width: 100%;
- height: 40px;
- }
- .Risk_data > div {
- background: #fbf6f7;
- color: rgb(51, 51, 51);
- height: 100%;
- font-weight: 500;
- width: 33.3%;
- padding: 10px 20px;
- box-sizing: border-box;
- border: #fff solid 1px;
- display: flex;
- justify-content: center;
- align-items: center;
- border-bottom: none;
- }
- .Risk_data > div :nth-child(2) {
- border-left: none;
- border-right: none;
- }
- .Risk_title > div :nth-child(3) {
- border-top-right-radius: 10px;
- }
- .jyxStyle > span {
- display: inline-block;
- text-align: center;
- }
- .FeeEnclosure /deep/ table {
- width: 100% !important;
- }
- .FeeEnclosure /deep/ .cell {
- text-align: center;
- }
- .FeeEnclosure /deep/ .el-table__empty-block {
- width: 100% !important;
- }
- .FeeEnclosure .feeadjust-input {
- width: 35%;
- height: 20px;
- font-size: 13px;
- }
- /deep/ .el-table .el-table__row.blue-row {
- background: #409eff;
- opacity: .8;
- color: #fff;
- }
- /deep/.el-table .el-table__row.blue-row:hover{
- color: #000;
- }
- </style>
|