UnderwriteBack.vue 101 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749
  1. <template>
  2. <div class="page-container">
  3. <!-- 查询条件(按车牌号查询) -->
  4. <div class="queryForm" title="检索区" style="padding-top:10px;padding-left:15px;">
  5. <el-form size="mini" ref="queryForm" :model="queryForm" label-width="120px">
  6. <el-row>
  7. <el-col :span="6" style="height: 40px;">
  8. <el-form-item label="所属机构">
  9. <el-select v-model="queryForm.deptId" filterable placeholder="所属机构" clearable style="width: 100%;">
  10. <el-option v-for="item in totalComapny" :key="item.id" :label="item.name" :value="item.id">
  11. </el-option>
  12. </el-select>
  13. </el-form-item>
  14. </el-col>
  15. <el-col :span="6" style="height: 40px;">
  16. <el-form-item label="任务号">
  17. <el-input clearable placeholder="任务号" v-model="queryForm.quoteNo"></el-input>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="6" style="height: 40px;">
  21. <el-form-item label="订单号">
  22. <el-input clearable placeholder="订单号" v-model="queryForm.orderNo"></el-input>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :span="6" style="height: 40px;">
  26. <el-form-item label="车牌号">
  27. <el-input clearable placeholder="车牌号" v-model="queryForm.licenseNo"></el-input>
  28. </el-form-item>
  29. </el-col>
  30. <el-col :span="6" style="height: 40px;">
  31. <el-form-item label="车架号">
  32. <el-input clearable placeholder="车架号" v-model="queryForm.frameNo"></el-input>
  33. </el-form-item>
  34. </el-col>
  35. <el-col :span="6" style="height: 40px;">
  36. <el-form-item label="发动机号">
  37. <el-input clearable placeholder="发动机号" v-model="queryForm.engineNo"></el-input>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :span="6" style="height: 40px;">
  41. <el-form-item label="投保险种">
  42. <el-select v-model="queryForm.riskCode" placeholder="请选择" style="width: 100%;" clearable>
  43. <el-option label="单交强" value="单交强"></el-option>
  44. <el-option label="单商业" value="单商业"></el-option>
  45. <el-option label="单三者" value="单三者"></el-option>
  46. <el-option label="交强+商业" value="交强+商业"></el-option>
  47. <el-option label="交强+三者" value="交强+三者"></el-option>
  48. </el-select>
  49. </el-form-item>
  50. </el-col>
  51. <el-col :span="6" style="height: 40px;">
  52. <el-form-item label="代理人工号">
  53. <el-input clearable placeholder="代理人工号" v-model="queryForm.userid"></el-input>
  54. </el-form-item>
  55. </el-col>
  56. <el-col :span="6" style="height: 40px;">
  57. <el-form-item label="代理人姓名">
  58. <el-input clearable placeholder="代理人姓名" v-model="queryForm.username"></el-input>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :span="6" style="height: 40px;">
  62. <el-form-item label="被保险人">
  63. <el-input clearable placeholder="被保人姓名" v-model="queryForm.insureName"></el-input>
  64. </el-form-item>
  65. </el-col>
  66. <el-col :span="6">
  67. <el-form-item label="受理人工号">
  68. <el-input clearable placeholder="受理人工号" v-model="queryForm.auditId"></el-input>
  69. </el-form-item>
  70. </el-col>
  71. <el-col :span="6" style="height: 40px;">
  72. <el-form-item label="保险公司">
  73. <el-select v-model="queryForm.insCompany" filterable class="widths" clearable>
  74. <el-option v-for="val in companyList" :key='val.id' :label="val.name" :value="val.id" ></el-option>
  75. </el-select>
  76. </el-form-item>
  77. </el-col>
  78. <el-col :span="12" style="height: 40px;">
  79. <el-form-item label="报价时间">
  80. <el-date-picker v-model="queryForm.quoteDate" style="width:100%" type="daterange" align="left"
  81. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
  82. </el-form-item>
  83. </el-col>
  84. <el-col :span="12" style="height: 40px;">
  85. <el-form-item label="起保时间">
  86. <el-date-picker v-model="queryForm.policyDate" style="width:100%" type="daterange" align="left"
  87. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
  88. </el-form-item>
  89. </el-col>
  90. <el-col :span="24" class="u-f u-f-je" style="height: 40px;">
  91. <div class="u-f" style="margin-bottom: 20px; width: 120px;height: 32px; border-radius: 5px;overflow: hidden;"
  92. @click="queryGetOrderList">
  93. <div class="u-f u-f1 u-f-ajc" style="background: #409EFF;color:#fff">查询</div>
  94. <div class="u-f u-f1 u-f-ajc" style="background: #F78948;color:#fff">{{ totalSize }}</div>
  95. </div>
  96. </el-col>
  97. </el-row>
  98. </el-form>
  99. </div>
  100. <!-- 任务区域 -->
  101. <div class="tasks">
  102. <div v-if="ordersList.length == 0" class="u-f-ajc" style="padding: 240px 0;">
  103. 暂无数据
  104. </div>
  105. <el-card v-if="ordersList.length > 0" class="task" :body-style="{ padding: '15px' }" shadow="never"
  106. v-for="(order, orderItem) in ordersList" :key="order.orderno">
  107. <el-row class="row">
  108. <el-col :span="2" class="u-f u-f-je">
  109. <label class="label" style="font-size: 18px;font-weight:bold;">{{ (pageNum - 1) * pageSize + orderItem + 1
  110. }}</label>
  111. <label class="label">任务号</label>
  112. </el-col>
  113. <el-col :span="4">
  114. <el-input size="mini" disabled v-model="order.quoteno"></el-input>
  115. </el-col>
  116. <el-col :span="2" class="u-f u-f-je">
  117. <label class="label">订单号</label>
  118. </el-col>
  119. <el-col :span="4">
  120. <el-input size="mini" disabled v-model="order.orderno"></el-input>
  121. </el-col>
  122. <el-col :span="2" class="u-f u-f-je">
  123. <label class="label">任务状态</label>
  124. </el-col>
  125. <el-col :span="4">
  126. <div v-for="(orderStatusItem, orderStatusIndex) in global.orderStatus" :key="orderStatusIndex">
  127. <template v-if="orderStatusItem.value == order.orderstatus">
  128. <el-input size="mini" disabled v-model="orderStatusItem.label"></el-input>
  129. </template>
  130. </div>
  131. </el-col>
  132. <el-col :span="2" class="u-f u-f-je">
  133. <label class="label">录单时间</label>
  134. </el-col>
  135. <el-col :span="4">
  136. <el-input size="mini" disabled v-model="order.createtime"></el-input>
  137. </el-col>
  138. </el-row>
  139. <el-row class="row">
  140. <el-col :span="2" class="u-f u-f-je">
  141. <label class="label">工号</label>
  142. </el-col>
  143. <el-col :span="4">
  144. <el-input size="mini" disabled v-model="order.userid"></el-input>
  145. </el-col>
  146. <el-col :span="2" class="u-f u-f-je">
  147. <label class="label">名称</label>
  148. </el-col>
  149. <el-col :span="4">
  150. <el-input size="mini" disabled v-model="order.username"></el-input>
  151. </el-col>
  152. <el-col :span="2" class="u-f u-f-je">
  153. <label class="label">团队归属</label>
  154. </el-col>
  155. <el-col :span="4">
  156. <el-input size="mini" disabled v-model="order.deptname"></el-input>
  157. </el-col>
  158. <el-col :span="2" class="u-f u-f-je">
  159. <label class="label">归属机构</label>
  160. </el-col>
  161. <el-col :span="4">
  162. <div v-for="(item, index) in totalComapny" :key="index" v-if="order.deptid.split('D')[0] == item.id">
  163. <el-input size="mini" disabled v-model="item.name"></el-input>
  164. </div>
  165. <!-- <el-input size="mini" disabled v-model="order.deptid"></el-input> -->
  166. </el-col>
  167. </el-row>
  168. <el-row class="row">
  169. <el-col :span="2" class="u-f u-f-je">
  170. <label class="label">车牌号</label>
  171. </el-col>
  172. <el-col :span="4">
  173. <el-input size="mini" disabled v-model="order.carinfo.licenseNo"></el-input>
  174. </el-col>
  175. <el-col :span="2" class="u-f u-f-je">
  176. <label class="label">被保险人</label>
  177. </el-col>
  178. <el-col :span="4">
  179. <el-input size="mini" disabled v-model="order.insureinfo.name"></el-input>
  180. </el-col>
  181. <el-col :span="2" class="u-f u-f-je">
  182. <label class="label">投保险种</label>
  183. </el-col>
  184. <el-col :span="4">
  185. <el-input size="mini" disabled v-model="order.product"></el-input>
  186. </el-col>
  187. </el-row>
  188. <el-row class="row">
  189. <div v-for="(riskItem, riskIndex) in order.riskinfo" :key="riskIndex">
  190. <template v-if="riskItem.riskCode == '0507'">
  191. <el-col :span="2" class="u-f u-f-je">
  192. <label class="label">交强险起保时间</label>
  193. </el-col>
  194. <el-col :span="4">
  195. <el-input size="mini" disabled v-model="riskItem.startDate"></el-input>
  196. </el-col>
  197. <el-col :span="2" class="u-f u-f-je">
  198. <label class="label">交强险终保时间</label>
  199. </el-col>
  200. <el-col :span="4">
  201. <el-input size="mini" disabled v-model="riskItem.endDate"></el-input>
  202. </el-col>
  203. </template>
  204. </div>
  205. <div v-for="(riskItem, riskIndex) in order.riskinfo" :key="riskItem.riskCode">
  206. <template v-if="riskItem.riskCode == '0510'">
  207. <el-col :span="2" class="u-f u-f-je">
  208. <label class="label">商业险起保时间</label>
  209. </el-col>
  210. <el-col :span="4">
  211. <el-input size="mini" disabled v-model="riskItem.startDate"></el-input>
  212. </el-col>
  213. <el-col :span="2" class="u-f u-f-je">
  214. <label class="label">商业险终保时间</label>
  215. </el-col>
  216. <el-col :span="4">
  217. <div v-for="(riskItem, riskIndex) in order.riskinfo" :key="riskIndex">
  218. <template v-if="riskItem.riskCode == '0510'">
  219. <el-input size="mini" disabled v-model="riskItem.endDate"></el-input>
  220. </template>
  221. </div>
  222. </el-col>
  223. </template>
  224. </div>
  225. </el-row>
  226. <el-row class="task_bottom u-f u-f-je">
  227. <el-button size="mini" type="primary" style="background:#419fff;border: 1px solid #419fff;"
  228. @click="CloseEdit(order.orderno)">编辑</el-button>
  229. <el-button size="mini" type="primary" style="background:#DE504C;border: 1px solid #DE504C;"
  230. @click="openTaskForward(order.orderno)">任务转发</el-button>
  231. <el-button size="mini" type="primary" style="background:#F99070;border: 1px solid #F99070;"
  232. @click="getHistoryList(order.orderno)">报价轨迹</el-button>
  233. </el-row>
  234. </el-card>
  235. <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum"
  236. :page-sizes="[20, 40, 50, 100]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper"
  237. :total="totalSize" style="text-align: end;margin-bottom: 15px;">
  238. </el-pagination>
  239. </div>
  240. <el-dialog title="车辆报价信息详情" :visible.sync="dialogVisible" width="90%" center>
  241. <div class="Enclosure" v-if="orderInfo">
  242. <div class="home flex j-s a-c back">
  243. <div class="flex j-s a-c color">
  244. <img src="../../../src/icon/company.png" alt class="icon-img" />
  245. <span style="margin-left:10px;">报价信息</span>
  246. </div>
  247. </div>
  248. <div style="padding:20px;font-weight:bold;font-size:20px;">
  249. <span>总保费</span>
  250. <span style="color:#ff7612;">¥{{ orderInfo.sumpremium }}</span>
  251. <span style="padding-left: 20px">总费用</span>
  252. <span style="color:#ff7612;" >
  253. ¥{{orderInfo.orderCommissionVo&&orderInfo.orderCommissionVo.totalFeePremium?orderInfo.orderCommissionVo.totalFeePremium:0 }}</span>
  254. </div>
  255. <div class="headers headers_Custom">
  256. <div v-show="orderInfo.jqpremium">
  257. 交强险金额:
  258. <span>
  259. ¥{{
  260. orderInfo.jqpremium }}
  261. </span>
  262. </div>
  263. <div v-if="orderInfo.orderCommissionVo&&orderInfo.orderCommissionVo.jqFeeRate">
  264. 手续费比例:
  265. <span>
  266. {{
  267. orderInfo.orderCommissionVo.jqFeeRate }}%
  268. </span>
  269. </div>
  270. <div v-if="orderInfo.orderCommissionVo&&orderInfo.orderCommissionVo.jqFeePremium">
  271. 手续费金额:
  272. <span>
  273. ¥{{orderInfo.orderCommissionVo.jqFeePremium }}
  274. </span>
  275. </div>
  276. <div v-show="orderInfo.taxamount">
  277. 车船税:
  278. <span>¥{{ orderInfo.taxamount }}</span>
  279. </div>
  280. <div v-show="orderInfo.jqstartdate">
  281. 交强险起保日期:
  282. <span>{{ orderInfo.jqstartdate }}</span>
  283. </div>
  284. </div>
  285. <div class="headers headers_Custom" >
  286. <div v-show="orderInfo.sypremium">
  287. 商业险金额:
  288. <span>¥{{ orderInfo.sypremium }}</span>
  289. </div>
  290. <div v-if="orderInfo.orderCommissionVo&&orderInfo.orderCommissionVo.syFeeRate">
  291. 手续费比例:
  292. <span>
  293. {{
  294. orderInfo.orderCommissionVo.syFeeRate }}%
  295. </span>
  296. </div>
  297. <div v-if="orderInfo.orderCommissionVo&&orderInfo.orderCommissionVo.syFeePremium">
  298. 手续费金额:
  299. <span>
  300. ¥{{orderInfo.orderCommissionVo.syFeePremium }}
  301. </span>
  302. </div>
  303. <div v-show="orderInfo.systartdate">
  304. 商业险起保日期:
  305. <span>{{ orderInfo.systartdate }}</span>
  306. </div>
  307. </div>
  308. <div class="headers headers_Custom" >
  309. <div v-if="orderInfo.jypremium">
  310. 驾意险:
  311. <span>¥{{ orderInfo.jypremium }}</span>
  312. </div>
  313. </div>
  314. </div>
  315. <div class="Enclosure" v-if="orderInfo.extendInfo">
  316. <div class="home flex j-s a-c back">
  317. <div class="flex j-s a-c color">
  318. <img src="../../../src/icon/company.png" alt class="icon-img" />
  319. <span style="margin-left:10px;">保费因素</span>
  320. </div>
  321. </div>
  322. <el-descriptions size="small">
  323. <el-descriptions-item label="评分">{{ orderInfo.extendInfo.score }}</el-descriptions-item>
  324. <el-descriptions-item label="出险信息">{{ orderInfo.extendInfo.accidentInfoStr }}</el-descriptions-item>
  325. <el-descriptions-item label="商业险折扣比例">{{ orderInfo.extendInfo.nirrratio }}</el-descriptions-item>
  326. <el-descriptions-item label="交强险折扣比例">{{ orderInfo.extendInfo.nirrratioCI }}</el-descriptions-item>
  327. <el-descriptions-item label="自主定价系数">{{ orderInfo.extendInfo.pricingAdjustValue }}</el-descriptions-item>
  328. <el-descriptions-item label="业务员交强险销售费用浮动率">
  329. {{ orderInfo.extendInfo.jqFeeSaleChangeRateA4
  330. }}
  331. </el-descriptions-item>
  332. <el-descriptions-item label="交强深度定价分档">{{ orderInfo.extendInfo.deepPriceGradeCI }}</el-descriptions-item>
  333. <el-descriptions-item label="业务员商业险销售费用浮动率">
  334. {{ orderInfo.extendInfo.syFeeSaleChangeRateA4
  335. }}
  336. </el-descriptions-item>
  337. <el-descriptions-item label="商业深度定价分档">{{ orderInfo.extendInfo.deepPriceGradeBI }}</el-descriptions-item>
  338. </el-descriptions>
  339. </div>
  340. <div class="Enclosure" v-if="orderInfo">
  341. <div class="home flex j-s a-c back">
  342. <div class="flex j-s a-c color">
  343. <img src="../../../src/icon/company.png" alt class="icon-img" />
  344. <span style="margin-left:10px;">车辆信息</span>
  345. </div>
  346. </div>
  347. <el-descriptions size="small">
  348. <el-descriptions-item label="车牌号">{{ orderInfo.carinfo.licenseNo }}</el-descriptions-item>
  349. <el-descriptions-item label="车辆识别代码">{{ orderInfo.carinfo.vinNo }}</el-descriptions-item>
  350. <el-descriptions-item label="品牌型号">{{ orderInfo.carinfo.modelcname }}</el-descriptions-item>
  351. <el-descriptions-item label="发动机号">{{ orderInfo.carinfo.engineNo }}</el-descriptions-item>
  352. <el-descriptions-item label="年款">{{ orderInfo.carinfo.caryear }}</el-descriptions-item>
  353. <el-descriptions-item label="座位数">{{ orderInfo.carinfo.seatCount }}</el-descriptions-item>
  354. <el-descriptions-item label="新车购置价">{{ orderInfo.carinfo.purchasePrice }}</el-descriptions-item>
  355. <el-descriptions-item label="使用性质">
  356. {{ orderInfo.carinfo.carnature == '8A' ? '家庭自用' : ''
  357. }}
  358. </el-descriptions-item>
  359. <el-descriptions-item label="注册日期">{{ orderInfo.carinfo.registerDate }}</el-descriptions-item>
  360. <el-descriptions-item label="发证日期">{{ orderInfo.carinfo.issueDate }}</el-descriptions-item>
  361. <el-descriptions-item label="是否过户">
  362. {{ orderInfo.carinfo.transferFlag == true ? '是' : '否'
  363. }}
  364. </el-descriptions-item>
  365. </el-descriptions>
  366. </div>
  367. <div class="Enclosure" v-if="orderInfo">
  368. <div class="home flex j-s a-c back">
  369. <div class="flex j-s a-c color">
  370. <img src="../../../src/icon/company.png" alt class="icon-img" />
  371. <span style="margin-left:10px;">车主信息</span>
  372. </div>
  373. </div>
  374. <el-descriptions size="small">
  375. <el-descriptions-item label="车主姓名">{{ orderInfo.ownerinfo.name }}</el-descriptions-item>
  376. <el-descriptions-item label="证件类型">{{ orderInfo.ownerinfo.identifyType }}</el-descriptions-item>
  377. <el-descriptions-item label="身份证号">{{ orderInfo.ownerinfo.identifyNumber }}</el-descriptions-item>
  378. <el-descriptions-item label="手机号">{{ orderInfo.ownerinfo.mobile }}</el-descriptions-item>
  379. <el-descriptions-item label="地址">{{ orderInfo.ownerinfo.addr }}</el-descriptions-item>
  380. <el-descriptions-item label="电子邮箱">{{ orderInfo.ownerinfo.email }}</el-descriptions-item>
  381. </el-descriptions>
  382. </div>
  383. <div class="Enclosure" v-if="orderInfo">
  384. <div class="home flex j-s a-c back">
  385. <div class="flex j-s a-c color">
  386. <img src="../../../src/icon/company.png" alt class="icon-img" />
  387. <span style="margin-left:10px;">投保人信息</span>
  388. </div>
  389. </div>
  390. <el-descriptions size="small">
  391. <el-descriptions-item label="投保人姓名">{{ orderInfo.applyinfo.name }}</el-descriptions-item>
  392. <el-descriptions-item label="证件类型"> {{ orderInfo.applyinfo.identifyType }}</el-descriptions-item>
  393. <el-descriptions-item label="身份证号">{{ orderInfo.applyinfo.identifyNumber }}</el-descriptions-item>
  394. <el-descriptions-item label="手机号">{{ orderInfo.applyinfo.mobile }}</el-descriptions-item>
  395. <el-descriptions-item label="地址">{{ orderInfo.applyinfo.addr }}</el-descriptions-item>
  396. <el-descriptions-item label="电子邮箱">{{ orderInfo.applyinfo.email }}</el-descriptions-item>
  397. </el-descriptions>
  398. </div>
  399. <div class="Enclosure" v-if="orderInfo">
  400. <div class="home flex j-s a-c back">
  401. <div class="flex j-s a-c color">
  402. <img src="../../../src/icon/company.png" alt class="icon-img" />
  403. <span style="margin-left:10px;">被保人信息</span>
  404. </div>
  405. </div>
  406. <el-descriptions size="small">
  407. <el-descriptions-item label="被保人姓名">{{ orderInfo.insureinfo.name }}</el-descriptions-item>
  408. <el-descriptions-item label="证件类型"> {{ orderInfo.insureinfo.identifyType}}</el-descriptions-item>
  409. <el-descriptions-item label="身份证号">{{ orderInfo.insureinfo.identifyNumber }}</el-descriptions-item>
  410. <el-descriptions-item label="手机号">{{ orderInfo.insureinfo.mobile }}</el-descriptions-item>
  411. <el-descriptions-item label="地址">{{ orderInfo.insureinfo.addr }}</el-descriptions-item>
  412. <el-descriptions-item label="电子邮箱">{{ orderInfo.insureinfo.email }}</el-descriptions-item>
  413. </el-descriptions>
  414. </div>
  415. <div class="Enclosure" v-if="orderInfo">
  416. <div class="home flex j-s a-c back">
  417. <div class="flex j-s a-c color">
  418. <img src="../../../src/icon/company.png" alt class="icon-img" />
  419. <span style="margin-left:10px;">险种信息</span>
  420. </div>
  421. </div>
  422. <div style="font-size:12px">
  423. <div class="headers kindinfocss" style="justify-content: space-around">
  424. <span>商业险险别</span>
  425. <span>保额(元)</span>
  426. <span>保费(元)</span>
  427. </div>
  428. <div class="headers kindinfocss" style="color:rgb(255, 118, 18); justify-content:space-around;"
  429. v-for="(kindinfoitem, kindinfoindex) in orderInfo.kindinfo" :key="kindinfoindex">
  430. <template v-if="kindinfoitem.coveragePremium">
  431. <span>{{ kindinfoitem.kindName }}</span>
  432. <span v-if="['D4', 'SY_FJ_YBW2'].includes(kindinfoitem.kindCode)">{{ kindinfoitem.unitAmount }}</span>
  433. <span v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(kindinfoitem.kindCode)">
  434. {{
  435. kindinfoitem.deductibleRate
  436. }}
  437. </span>
  438. <span v-else>{{ kindinfoitem.amount }}</span>
  439. <span>{{ kindinfoitem.coveragePremium }}</span>
  440. </template>
  441. </div>
  442. </div>
  443. </div>
  444. <div class="Enclosure" v-if="orderInfo.accidentInfo&&orderInfo.accidentInfo.length>0">
  445. <div class="home flex j-s a-c back">
  446. <div class="flex j-s a-c color">
  447. <img src="../../../src/icon/company.png" alt class="icon-img" />
  448. <span style="margin-left:10px;">驾意险</span>
  449. </div>
  450. </div>
  451. <div style="font-size:12px" >
  452. <div class="jyxStyle" style=" font-weight: bold;color: #333;">
  453. <span style="width:50%;margin-left:50px">产品</span>
  454. <span style="width:20%">份数</span>
  455. <span style="width:20%">价格</span>
  456. </div>
  457. <div v-for="(kindinfoitem, kindinfoindex) in orderInfo.accidentInfo" :key="kindinfoindex">
  458. <div style="margin-top:20px" class="jyxStyle">
  459. <span style="width:50%;margin-left:50px">{{ kindinfoitem.projectName }}</span>
  460. <span style="width:20%">{{ kindinfoitem.quantity ?kindinfoitem.quantity:'1' }}</span>
  461. <span style="width:20%">{{ kindinfoitem.actualPremium}}/份</span>
  462. </div>
  463. </div>
  464. </div>
  465. </div>
  466. <div class="Enclosure" v-if="orderInfo">
  467. <div class="home flex j-s a-c back">
  468. <div class="flex j-s a-c color">
  469. <img src="../../../src/icon/company.png" alt class="icon-img" />
  470. <span style="margin-left:10px;">欠税明细</span>
  471. </div>
  472. </div>
  473. <div style="font-size:12px">
  474. <div class="headers kindinfocss" style="justify-content: space-around;">
  475. <span>日期</span>
  476. <span>欠费(元)</span>
  477. <span>滞纳金(元)</span>
  478. </div>
  479. <div class="headers kindinfocss" style="color:rgb(255, 118, 18); justify-content:space-around;"
  480. v-for="(taxArrearsitem, taxArrearsindex) in orderInfo.taxArrears" :key="taxArrearsindex">
  481. <span>{{ taxArrearsitem.years }}</span>
  482. <span>{{ taxArrearsitem.taxDefault }}</span>
  483. <span>{{ taxArrearsitem.lateFee }}</span>
  484. </div>
  485. </div>
  486. </div>
  487. <div class="Enclosure" v-if="orderInfo&&feeDetailInfo">
  488. <div class="home flex j-s a-c back">
  489. <div class="flex j-s a-c color">
  490. <img src="../../../src/icon/company.png" alt class="icon-img" />
  491. <span style="margin-left:10px;">费用明细</span>
  492. </div>
  493. </div>
  494. <div style="font-size:12px;width: 100%" class="FeeEnclosure">
  495. <el-table :data="feeDetailInfo" :border="true" width="100%" :stripe="true" size="mini">
  496. <el-table-column prop="feeTypeName" label="费用类型" width="10%"></el-table-column>
  497. <el-table-column label="交强险费用跟单明细" width="30%">
  498. <el-table-column prop="jqFeeRateAll" label="手续费比例/跟单费比例/总比例" width="15%"></el-table-column>
  499. <el-table-column prop="jqFeeAmountAll" label="手续费金额/跟单费金额/总金额" width="15%"></el-table-column>
  500. </el-table-column>
  501. <el-table-column label="商业险费用跟单明细" width="30%">
  502. <el-table-column prop="syFeeRateAll" label="手续费比例/跟单费比例/总比例" width="15%"></el-table-column>
  503. <el-table-column prop="syFeeAmountAll" label="手续费金额/跟单费金额/总金额" width="15%"></el-table-column>
  504. </el-table-column>
  505. <el-table-column label="非车险费用跟单明细" width="30%">
  506. <el-table-column prop="fcFeeRate" label="比例" width="15%"></el-table-column>
  507. <el-table-column prop="fcFeeAmount" label="金额" width="15%"></el-table-column>
  508. </el-table-column>
  509. </el-table>
  510. </div>
  511. </div>
  512. <div class="Enclosure" v-if="orderInfo">
  513. <div class="home flex j-s a-c back">
  514. <div class="flex j-s a-c color">
  515. <img src="../../../src/icon/company.png" alt class="icon-img" />
  516. <span style="margin-left:10px;">影像</span>
  517. </div>
  518. </div>
  519. <div style="font-size:12px;padding:10px 0">
  520. <div style="margin-bottom: 10px;">
  521. <el-row class="u-f-ac bodyTitle">
  522. <label @click="pic1Control = !pic1Control">行驶证影像</label>
  523. </el-row>
  524. <el-row class="body" v-show="pic1Control">
  525. <el-row style="padding:10px;">
  526. <viewer :images="carImageList">
  527. <img class="imageStyle" v-for="(imageItem, imageIndex) in carImageList" :src="imageItem"
  528. :key="imageIndex" />
  529. </viewer>
  530. </el-row>
  531. </el-row>
  532. </div>
  533. <div style="margin-bottom: 10px;">
  534. <el-row class="u-f-ac bodyTitle">
  535. <label @click="pic2Control = !pic2Control">车主身份证影像</label>
  536. </el-row>
  537. <el-row class="body" v-show="pic2Control">
  538. <el-row style="padding:10px;">
  539. <viewer :images="ownerImageList">
  540. <img class="imageStyle" v-for="(imageItem, imageIndex) in ownerImageList" :src="imageItem"
  541. :key="imageIndex" />
  542. </viewer>
  543. </el-row>
  544. </el-row>
  545. </div>
  546. <div style="margin-bottom: 10px;">
  547. <el-row class="u-f-ac bodyTitle">
  548. <label @click="pic3Control = !pic3Control">投保人身份证影像</label>
  549. </el-row>
  550. <el-row class="body" v-show="pic3Control">
  551. <el-row style="padding:10px;">
  552. <viewer :images="policyImageList">
  553. <img class="imageStyle" v-for="(imageItem, imageIndex) in policyImageList" :src="imageItem"
  554. :key="imageIndex" />
  555. </viewer>
  556. </el-row>
  557. </el-row>
  558. </div>
  559. <div style="margin-bottom: 10px;">
  560. <el-row class="u-f-ac bodyTitle">
  561. <label @click="pic4Control = !pic4Control">被保人身份证影像</label>
  562. </el-row>
  563. <el-row class="body" v-show="pic4Control">
  564. <el-row style="padding:10px;">
  565. <viewer :images="insuredImageList">
  566. <img class="imageStyle" v-for="(imageItem, imageIndex) in insuredImageList" :src="imageItem"
  567. :key="imageIndex" />
  568. </viewer>
  569. </el-row>
  570. </el-row>
  571. </div>
  572. <div style="margin-bottom: 10px;">
  573. <el-row class="u-f-ac bodyTitle">
  574. <label @click="pic5Control = !pic5Control">验车照影像</label>
  575. </el-row>
  576. <el-row class="body" v-show="pic5Control">
  577. <el-row style="padding:10px;">
  578. <viewer :images="carCheckImageList">
  579. <img class="imageStyle" v-for="(imageItem, imageIndex) in carCheckImageList" :src="imageItem"
  580. :key="imageIndex" />
  581. </viewer>
  582. </el-row>
  583. </el-row>
  584. </div>
  585. </div>
  586. </div>
  587. <div class="Enclosure" v-if="orderInfo">
  588. <div class="home flex j-s a-c back">
  589. <div class="flex j-s a-c color">
  590. <img src="../../../src/icon/company.png" alt class="icon-img" />
  591. <span style="margin-left:10px;">投保单号</span>
  592. </div>
  593. </div>
  594. <el-descriptions size="small" :column="2">
  595. <el-descriptions-item label="交强险投保单号">{{ orderInfo.jqapplyno }}</el-descriptions-item>
  596. <el-descriptions-item label="商业险投保单号">{{ orderInfo.syapplyno }}</el-descriptions-item>
  597. <el-descriptions-item label="交强险保单号">{{ orderInfo.jqpolicyno }}</el-descriptions-item>
  598. <el-descriptions-item label="商业险保单号">{{ orderInfo.sypolicyno }}</el-descriptions-item>
  599. </el-descriptions>
  600. </div>
  601. <div class="Enclosure" v-if="orderInfo && orderInfo.orderstatus == 4">
  602. <div class="home flex j-s a-c back">
  603. <div class="flex j-s a-c color">
  604. <img src="../../../src/icon/company.png" alt class="icon-img" />
  605. <span style="margin-left:10px;">审核意见</span>
  606. </div>
  607. </div>
  608. <div style='font-size:12px;padding: 10px 50px'>{{orderInfo.auditopinion}}</div>
  609. </div>
  610. <div class="Enclosure" v-if="orderInfo && orderInfo.orderstatus == 3">
  611. <div class="home flex j-s a-c back">
  612. <div class="flex j-s a-c color">
  613. <img src="../../../src/icon/company.png" alt class="icon-img" />
  614. <span style="margin-left:10px;">电子保单</span>
  615. </div>
  616. </div>
  617. <el-row class="body" >
  618. <el-row v-for="(oldfileItem, oldfileIndex) in oldfileList" :key="oldfileIndex">
  619. <el-col :span="2" style="margin-right: 15px;">
  620. <label>{{ oldfileItem.fileTitle }}:</label>
  621. </el-col>
  622. <el-col :span="6" class="u-f u-f-column">
  623. <div class="u-f u-f-jsb u-f-ac" style="width: 170px;">
  624. <div
  625. style="height: 36px;line-height: 36px; width: 200px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
  626. {{ licenseNo }}</div>
  627. <el-button style="cursor: pointer;" type="text" @click="viewfile(oldfileItem)">下载
  628. </el-button>
  629. </div>
  630. </el-col>
  631. </el-row>
  632. </el-row>
  633. </div>
  634. <span slot="footer" class="dialog-footer" >
  635. <el-button size="small" @click="dialogVisible = false">关闭</el-button>
  636. </span>
  637. </el-dialog>
  638. <el-dialog title="订单报价记录" :visible.sync="historyDialogVisible" width="1300px">
  639. <!-- 订单历史轨迹内容区域 -->
  640. <el-table size="small" :data="HistoryList" height="250" border style="width:100%" v-loading="loading"
  641. :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }" highlight-current-row>
  642. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  643. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  644. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  645. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  646. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  647. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  648. <el-table-column prop="orderstatus" label="状态" align="center">
  649. <template slot-scope="scope">
  650. <el-tag v-if="scope.row.orderstatus == '0'" type="success" size="small">报价中</el-tag>
  651. <el-tag v-if="scope.row.orderstatus == '1'" type="warning" size="small">待核保</el-tag>
  652. <el-tag v-if="scope.row.orderstatus == '2'" type="danger" size="small">已核保待缴费</el-tag>
  653. <el-tag v-if="scope.row.orderstatus == '3'" type="danger" size="small">已承保</el-tag>
  654. <el-tag v-if="scope.row.orderstatus == '4'" type="danger" size="small">核保退回</el-tag>
  655. </template>
  656. </el-table-column>
  657. <el-table-column label="操作" align="center" min-width="150" fixed="right">
  658. <template slot-scope="scope">
  659. <el-button type="text" size="small" @click="OrderDetails(scope.row)">查看详情</el-button>
  660. <el-button size="small" type="text" style="color:rgb(240, 12, 10)"
  661. @click="bjdpreview(scope.row.id)">报价单</el-button>
  662. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text" style="color:rgb(240, 12, 10)"
  663. @click="carcode(scope.row.id)">付款码</el-button>
  664. <el-button size="mini" type="text" v-if="scope.row.orderstatus == '2' && ['紫金财险'].includes(scope.row.inscompany)"
  665. @click="cancelorder(scope.row)" style="color:#f56c6c">撤单</el-button>
  666. <el-button type="text" size="mini" v-if="scope.row.orderstatus == '2'" @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  667. <el-button size="mini" type="text"
  668. v-if="scope.row.orderstatus == '2' && ['恒邦财险', '众安财险', '中国人寿', '安盛天平', '紫金财险'].includes(scope.row.inscompany)"
  669. @click="querystatus(scope.row)" style="color:#f56c6c">状态更新</el-button>
  670. <el-button size="mini" type="text"
  671. v-if="scope.row.orderstatus == '2' && scope.row.inscompany=='永诚财险'"
  672. @click="refreshStatus(scope.row)" style="color:#f56c6c">状态更新</el-button>
  673. <el-button size="mini" type="text"
  674. v-if="scope.row.orderstatus == '1' && scope.row.inscompany=='永诚财险'"
  675. @click="refreshStatus(scope.row)" style="color:#f56c6c">更新订单</el-button>
  676. <el-button size="mini" type="text"
  677. v-if="scope.row.orderstatus == '1' && scope.row.inscompany=='中煤财险'"
  678. @click="updateStatus(scope.row)" style="color:#f56c6c">更新订单</el-button>
  679. <el-button size="mini" type="text"
  680. v-if="scope.row.orderstatus == '1' && scope.row.inscompany=='华泰财险'"
  681. @click="updateStatusHuatai(scope.row)" style="color:#f56c6c">更新订单</el-button>
  682. <el-button size="mini" type="text"
  683. v-if="scope.row.orderstatus == '2' && scope.row.inscompany=='华泰财险'"
  684. @click="updateOrderInfoHuatai(scope.row)" style="color:#f56c6c">状态更新</el-button>
  685. <el-button size="mini" type="text"
  686. v-if="scope.row.orderstatus == '2' && scope.row.inscompany=='国任财险'"
  687. @click="refreshStatusGuoren(scope.row)" style="color:#f56c6c">状态更新</el-button>
  688. <el-button size="mini" type="text"
  689. v-if="scope.row.orderstatus == '1' && scope.row.inscompany=='国任财险'"
  690. @click="refreshStatusGuoren(scope.row)" style="color:#f56c6c">更新订单</el-button>
  691. <el-button size="mini" type="text"
  692. v-if="scope.row.orderstatus == '1' && scope.row.inscompany=='大家财险'"
  693. @click="refreshStatusDajia(scope.row)" style="color:#f56c6c">更新订单</el-button>
  694. <el-button size="mini" type="text"
  695. v-if="scope.row.orderstatus == '2' && scope.row.inscompany=='大家财险'"
  696. @click="refreshStatusDajia(scope.row)" style="color:#f56c6c">状态更新</el-button>
  697. </template>
  698. </el-table-column>
  699. </el-table>
  700. <span slot="footer" class="dialog-footer">
  701. <el-button size="small" type="primary" style="background: #DE504C;border: 1px solid #DE504C;"
  702. @click="historyDialogVisible = false">关 闭</el-button>
  703. </span>
  704. </el-dialog>
  705. <!-- 任务转发内容区域 -->
  706. <el-dialog title="订单任务转发" :visible.sync="taskForwardDialogVisible" width="800px" @close="closeTaskForward">
  707. <div class="u-f-ac" style="height:40px;background-color: #F5F5F7;padding-left: 30px;">
  708. 订单号:{{ taskForwardData.orderNo }} </div>
  709. <el-form :model="taskForwardData" label-width="100px" size="small" style="text-align:left;">
  710. <el-row style="margin-top: 20px;padding: 0px 20px;">
  711. <el-col :span="10">
  712. <el-form-item label="任务接收人" prop="auditid">
  713. <el-select size="small" style="width: 100%" filterable v-model="taskForwardData.auditId" placeholder="请选择"
  714. @change="changeAudit">
  715. <el-option v-for="item in staffList" :key="item.userId" :label="item.name" :value="item.userId">
  716. </el-option>
  717. </el-select>
  718. </el-form-item>
  719. </el-col>
  720. </el-row>
  721. </el-form>
  722. <span slot="footer" class="dialog-footer">
  723. <el-button size="small" type="primary" style="background: #5EB2D3;border: 1px solid #5EB2D3;"
  724. @click="comfirmTaskForward">确 定</el-button>
  725. </span>
  726. </el-dialog>
  727. <el-dialog :visible.sync="bjddialogVisible" width="570px" top="1vh" v-if="queryOrders">
  728. <div class="bjdbody" id='pdfContentsDiv'>
  729. <div class="bjdCarMessage">
  730. <div class="bjdCarMessage1">
  731. <img src="../../../static/bjdcar.png" class="align" alt style="width:60px;height:60px;" />
  732. <div class="dis f-c" style="height:100%">
  733. <span>{{ queryOrders.carinfo.licenseNo }}</span>
  734. <span>{{ queryOrders.carinfo.modelcname }}</span>
  735. </div>
  736. </div>
  737. <div class="bjdCarMessage2">
  738. <ul>
  739. <li>
  740. <div class="bjdCarMessage2_car dis">
  741. <span>订单号:</span>
  742. <span>{{ queryOrders.orderno }}</span>
  743. </div>
  744. </li>
  745. <li>
  746. <div class="bjdCarMessage2_car dis">
  747. <span>车主姓名:</span>
  748. <span>{{ queryOrders.ownerinfo.name }}</span>
  749. </div>
  750. </li>
  751. <li>
  752. <div class="bjdCarMessage2_car dis">
  753. <span>投保人姓名:</span>
  754. <span>{{ queryOrders.applyinfo.name }}</span>
  755. </div>
  756. </li>
  757. <li>
  758. <div class="bjdCarMessage2_car dis">
  759. <span>被保人姓名:</span>
  760. <span>{{ queryOrders.insureinfo.name }}</span>
  761. </div>
  762. </li>
  763. <li>
  764. <div class="bjdCarMessage2_car dis">
  765. <span>发动机号:</span>
  766. <span>{{ queryOrders.carinfo.engineNo }}</span>
  767. </div>
  768. </li>
  769. <li>
  770. <div class="bjdCarMessage2_car dis">
  771. <span>车架号:</span>
  772. <span>{{ queryOrders.carinfo.vinNo }}</span>
  773. </div>
  774. </li>
  775. <li>
  776. <div class="bjdCarMessage2_car dis">
  777. <span>座位数:</span>
  778. <span>{{ queryOrders.carinfo.seatCount }}</span>
  779. </div>
  780. </li>
  781. <li v-show="queryOrders.jqstartdate">
  782. <div class="bjdCarMessage2_car " style="flex-direction: column;">
  783. <span>车辆交强险保险期间:</span>
  784. <span style="margin-top:5px;">{{ queryOrders.jqstartdate }} 至 {{ queryOrders.jqenddate }}</span>
  785. </div>
  786. </li>
  787. <li v-show="queryOrders.systartdate">
  788. <div class="bjdCarMessage2_car " style="flex-direction: column;">
  789. <span>车辆商业险保险期间:</span>
  790. <span style="margin-top:5px;">{{ queryOrders.systartdate }} 至 {{ queryOrders.syenddate }}</span>
  791. </div>
  792. </li>
  793. </ul>
  794. </div>
  795. </div>
  796. <div class="bjdCarSum">
  797. <div class="dis align jus">
  798. <span>应缴金额</span>
  799. <span style="color:rgb(255, 30, 7);font-size:16px;">¥{{ queryOrders.sumpremium }}</span>
  800. </div>
  801. <div class="dis align jus" v-show="queryOrders.jqpremium">
  802. <span>交强险</span>
  803. <span>¥{{ queryOrders.jqpremium }}</span>
  804. </div>
  805. <div class="dis align jus" v-show="queryOrders.taxamount">
  806. <span>车船税</span>
  807. <span>¥{{ queryOrders.taxamount }}</span>
  808. </div>
  809. <div class="dis align jus" v-show="queryOrders.sypremium">
  810. <span>车辆商业险</span>
  811. <span>¥{{ queryOrders.sypremium }}</span>
  812. </div>
  813. <div class="dis align jus" v-show="queryOrders.jypremium">
  814. <span>驾意险</span>
  815. <span>¥{{ queryOrders.jypremium }}</span>
  816. </div>
  817. <div class="dis align jus" v-show="queryOrders.jqdiscountrate">
  818. <span>交强险优惠比例</span>
  819. <span style="color:#ff8605;">{{ queryOrders.jqdiscountrate }}%</span>
  820. </div>
  821. <div class="dis align jus" v-show="queryOrders.sydiscountrate">
  822. <span>商业险优惠比例</span>
  823. <span style="color:#ff8605;">{{ queryOrders.sydiscountrate }}%</span>
  824. </div>
  825. <div style="border:none;" v-show="queryOrders.sypremium">
  826. <div class="Risk">
  827. <div class="Risk_title dis align jus">
  828. <div>
  829. <span>商业险险别</span>
  830. </div>
  831. <div>
  832. <span>保险金额</span>
  833. </div>
  834. <div>
  835. <span>保费</span>
  836. </div>
  837. </div>
  838. <div class="Risk_data dis align jus" v-for="(kindinfoitem, kindinfoindex) in queryOrders.kindinfo"
  839. :key="kindinfoindex">
  840. <template>
  841. <div>
  842. <span>{{ kindinfoitem.kindName }}</span>
  843. </div>
  844. <div v-if="['D4', 'SY_FJ_YBW2'].includes(kindinfoitem.kindCode)">
  845. <span>{{ kindinfoitem.unitAmount }}</span>/<span>{{ queryOrders.carinfo.seatCount - 1 }}座</span>
  846. </div>
  847. <div v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(kindinfoitem.kindCode)">
  848. <span>{{ kindinfoitem.deductibleRate }}</span>
  849. </div>
  850. <div v-else>
  851. <span>{{ kindinfoitem.amount }}</span>
  852. </div>
  853. <div>
  854. <span>¥{{ kindinfoitem.coveragePremium }}</span>
  855. </div>
  856. </template>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. <div class="flex f-c" style="padding:5px 0; color:#fff;margin-bottom:15px;">
  862. <span style="margin-bottom:10px;">报价时间:</span>
  863. <span>注:本报价单仅供参考,最终以出单价格为准。</span>
  864. </div>
  865. <div class="bjdfooter dis align">
  866. <img :src="logoImg" class="align" alt style="width:60px;height:60px;" />
  867. <div class="dis f-c jus" style="height:100%">
  868. <span>{{ queryOrders.inscompany }}</span>
  869. </div>
  870. </div>
  871. </div>
  872. <div class="display">
  873. <el-button size="small" style="width:100px;" @click="copybjd()" >截图</el-button>
  874. <el-button size="small" style="width:100px;" @click="bjddialogVisible = false">关闭</el-button>
  875. </div>
  876. </el-dialog>
  877. <el-dialog :visible.sync="codedialogVisible" width="400px" top="10vh" class="saomazhifucodeClass">
  878. <div class="ORcodebody">
  879. <div class="code_title dis align">
  880. <span>扫码付款</span>
  881. </div>
  882. <div style="padding:0 20px">
  883. <div class="ORcode ">
  884. <div style="padding:5px;position: relative;">
  885. <!-- <div v-show="['永安财险', '人保财险', '永诚财险', '中煤财险','华泰财险', '众安财险', '紫金财险','中国人寿'].includes(inscompany)" id="qrcode"
  886. ref="qrcode">
  887. </div>
  888. <img v-show="['恒邦财险','安盛天平','国任财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" /> -->
  889. <div id="qrcode" ref="qrcode"></div>
  890. </div>
  891. </div>
  892. </div>
  893. <div class="ORtitle dis f-c align ">
  894. <div>
  895. <span>保险公司:</span>
  896. <span>{{ inscompany }}</span>
  897. </div>
  898. <div>
  899. <span>车牌号:</span>
  900. <span>{{ licenseNo }}</span>
  901. </div>
  902. <div>
  903. <span>投保人:</span>
  904. <span>{{ applyName }}</span>
  905. </div>
  906. <div>
  907. <span style="color:#f75c00">总金额:</span>
  908. <span style="color:#f75c00">{{ sumpremium }}</span>
  909. </div>
  910. <div v-show="jqpremium">
  911. <span>交强:</span>
  912. <span>{{ jqpremium }}</span>
  913. </div>
  914. <div v-show="sypremium">
  915. <span>商业:</span>
  916. <span>{{ sypremium }}</span>
  917. </div>
  918. <div v-show="taxamount">
  919. <span>车船税:</span>
  920. <span>{{ taxamount }}</span>
  921. </div>
  922. <div v-show="jqstartdate">
  923. <span>交强险起保日期:</span>
  924. <span>{{ jqstartdate }}</span>
  925. </div>
  926. <div v-show="systartdate">
  927. <span>商业险起保日期:</span>
  928. <span>{{ systartdate }}</span>
  929. </div>
  930. <div v-if="jypremium">
  931. <span>非车险:</span>
  932. <span>{{ jypremium }}</span>
  933. </div>
  934. </div>
  935. <div class="display">
  936. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  937. </div>
  938. </div>
  939. </el-dialog>
  940. </div>
  941. </template>
  942. <script>
  943. import CommonUtil from "@/utils/comutil.js";
  944. import {
  945. pathToBase64,
  946. base64ToPath
  947. } from '@/common/image-tools-base64.js';
  948. import QRCode from "qrcodejs2";
  949. import Cookies from "js-cookie"
  950. import { formatWithSeperator, format } from "@/utils/datetime.js";
  951. import html2Canvas from 'html2canvas'
  952. export default {
  953. name: 'taskpool',
  954. computed: {
  955. registerDateFormat() {
  956. let date = new Date(this.orderInfo.carinfo.registerDate);
  957. let year = date.getFullYear();
  958. let month = date.getMonth() + 1;
  959. let day = date.getDate();
  960. return year + '-' + month + '-' + day;
  961. },
  962. issueDateFormat() {
  963. let date = new Date(this.orderInfo.carinfo.issueDate);
  964. let year = date.getFullYear();
  965. let month = date.getMonth() + 1;
  966. let day = date.getDate();
  967. return year + '-' + month + '-' + day;
  968. }
  969. },
  970. data() {
  971. return {
  972. logoImg: "",//报价单保险公司logo图
  973. feeDetailInfo:[],//费用明细信息
  974. loading: false, //加载事件
  975. totalComapny: [],//全部机构
  976. payMoney: "",//合计金额
  977. ordersList: [], //展示页面上的订单列表数据
  978. pageNum: 1, //当前页码
  979. pageSize: 20, //每页数据条数
  980. totalSize: 0, //全部的数据条数
  981. codedialogVisible: false,//付款码
  982. bjddialogVisible: false,//报价单
  983. dialogVisible: false, //是否显示订单信息框
  984. orderInfo: { //选中的订单
  985. ownerinfo: {},
  986. carinfo: {},
  987. applyinfo: {},
  988. insureinfo: {},
  989. kindinfo: [],
  990. riskinfo: [],
  991. ownerinfo: {},
  992. orderCommissionVo:{},
  993. },
  994. carImageList: [],//车辆影像
  995. ownerImageList: [],//车主影像
  996. policyImageList: [],//投保人影像
  997. insuredImageList: [],//被保人影像
  998. carCheckImageList: [],//验车照影像
  999. // 影像控制
  1000. pic1Control: false,
  1001. pic2Control: false,
  1002. pic3Control: false,
  1003. pic4Control: false,
  1004. pic5Control: false,
  1005. insureListForm: [],//险种信息的原始版本,当回写时使用
  1006. transferRightList: [],
  1007. //查询的表单
  1008. queryForm: {
  1009. "deptId": "",
  1010. "licenseNo": "",
  1011. "frameNo": "",
  1012. "engineNo": "",
  1013. "userid": "",
  1014. "username": "",
  1015. "riskCode": "",
  1016. "startDate": "",
  1017. "endDate": "",
  1018. "policyStartDate": "",
  1019. "policyEndDate": "",
  1020. "insureName": "",
  1021. "auditId": "",
  1022. "quoteNo": "",
  1023. "orderNo": "",
  1024. "quoteDate": "",
  1025. "policyDate": "",
  1026. "orderStatus": "4",
  1027. "editId": "",
  1028. "pageNum": 1,
  1029. "pageSize": 20,
  1030. "insCompany":""
  1031. },
  1032. sendBackDialogVisible: false,//控制退回修改弹框
  1033. sendBackData: [],
  1034. sendBackValue: [],
  1035. addSendBackValue: '',
  1036. showInsureList: false,
  1037. historyDialogVisible: false,
  1038. history: {
  1039. taskid: "",
  1040. company: "",
  1041. product: "",
  1042. totalmoney: "",
  1043. active: "",
  1044. data: []
  1045. },
  1046. HistoryList: [],//报价轨迹lsit
  1047. // 任务转发
  1048. staffList: [],
  1049. taskForwardDialogVisible: false,
  1050. taskForwardData: {
  1051. orderNo: "",
  1052. auditId: "",
  1053. operatorId: '',
  1054. },
  1055. //文件上传的文件
  1056. oldfileList: [],
  1057. quoteno: "", //报价号
  1058. orderno: "", //订单号
  1059. queryOrders: "", //核保详情
  1060. inscompany: "", //保险公司名称
  1061. licenseNo: "", //车牌号
  1062. applyName: "", //车主名字
  1063. orderstatus: "", //订单状态
  1064. sumpremium: "", //保费合计
  1065. jqpremium: "",//交强
  1066. sypremium: "",//商业
  1067. jypremium:'',//驾意险
  1068. taxamount: "",//车船税
  1069. jqstartdate: "",//交强时间
  1070. systartdate: "",//商业时间
  1071. mobile: "",//投保人手机号
  1072. paycodeimg: "",//展示二维码
  1073. companyList:[], //保险公司
  1074. }
  1075. },
  1076. created() {
  1077. this.$api.letter.gainTopList().then(res=>{
  1078. this.companyList=res.data
  1079. })
  1080. this.peopleid = Cookies.get('user');
  1081. if (this.peopleid != 'admin') {
  1082. this.peopledeptid = Cookies.get('user').split('D')[0];
  1083. } else {
  1084. this.peopledeptid = '9';
  1085. }
  1086. this.getAllCompany();// 获取机构数据
  1087. this.getOrderList()// 数据列表
  1088. this.getAllStaff()//获取任务转发列表
  1089. },
  1090. methods: {
  1091. //预览文件
  1092. viewfile(index) {
  1093. let name = index.fileurl.lastIndexOf("\/")
  1094. fetch(index.fileurl)
  1095. .then(response => response.blob())
  1096. .then(blob => {
  1097. this.saveAs(blob, index.fileurl.substring(name + 1, index.fileurl.length))
  1098. })
  1099. .catch(error => {
  1100. });
  1101. // const a = document.createElement('a')
  1102. // a.style.display = 'none'
  1103. // a.href = index.fileurl
  1104. // a.target = '_ blank';
  1105. // a.download = this.licenseNo+ '.pdf'; // 下载文件的名字
  1106. // document.body.appendChild(a)
  1107. // a.click()
  1108. },
  1109. OrderDetails(item) {
  1110. this.carImageList = [];
  1111. this.ownerImageList = []; //车主影像
  1112. this.policyImageList = []; //投保人影像
  1113. this.insuredImageList = []; //被保人影像
  1114. this.carCheckImageList = []; //验车照影像
  1115. // 影像控制
  1116. this.pic1Control = false;
  1117. this.pic2Control = false;
  1118. this.pic3Control = false;
  1119. this.pic4Control = false;
  1120. this.pic5Control = false;
  1121. for (let i = 0; i < this.global.insureList.length; i++) {
  1122. this.global.insureList[i].coveragePremium = "";
  1123. this.global.insureList[i].amount = 0;
  1124. }
  1125. let params = {
  1126. companyId: item.id,
  1127. }
  1128. this.$api.letter.getByCompanyId(params).then((res) => {
  1129. if (res.code == 200) {
  1130. this.licenseNo = res.data.licenseno;//车牌号
  1131. this.inscompany = res.data.inscompany;//保险公司
  1132. if( res.data.accidentInfo){
  1133. res.data.accidentInfo.constructor === Object?[res.data.accidentInfo]:res.data.accidentInfo
  1134. }
  1135. Object.assign(this.orderInfo, res.data);
  1136. for (let i = 0; i < this.orderInfo.riskinfo.length; i++) {
  1137. if (this.orderInfo.riskinfo[i].riskCode == "0510") {
  1138. for (let j = 0; j < this.orderInfo.kindinfo.length; j++) {
  1139. for (let m = 0; m < this.global.insureList.length; m++) {
  1140. if (
  1141. this.orderInfo.kindinfo[j].kindCode ==
  1142. this.global.insureList[m].kindCode
  1143. ) {
  1144. this.global.insureList[m].coveragePremium =
  1145. this.orderInfo.kindinfo[j].coveragePremium;
  1146. if (this.orderInfo.kindinfo[j].kindCode == "B") {
  1147. this.global.insureList[9].amtList[0].value =
  1148. this.orderInfo.kindinfo[j].amount;
  1149. }
  1150. if (this.orderInfo.kindinfo[j].kindCode == "A") {
  1151. this.global.insureList[m].amount = "1";
  1152. } else if (this.global.insureList[m].kindCode == "D4") {
  1153. this.global.insureList[m].amount =
  1154. this.orderInfo.kindinfo[j].unitAmount;
  1155. } else if (
  1156. this.global.insureList[m].isMainRisk ||
  1157. this.global.insureList[m].kindCode == "BD" ||
  1158. this.global.insureList[m].kindCode == "L"
  1159. ) {
  1160. this.global.insureList[m].amount =
  1161. this.orderInfo.kindinfo[j].amount;
  1162. } else {
  1163. this.global.insureList[m].amount =
  1164. this.orderInfo.kindinfo[j].deductibleRate;
  1165. }
  1166. }
  1167. }
  1168. }
  1169. }
  1170. }
  1171. // 获取影像
  1172. this.$api.letter.findByQuoteNo(item.quoteno).then((resImage) => {
  1173. Object.keys(resImage.data).forEach((keys) => {
  1174. if (resImage.data[keys]) {
  1175. resImage.data[keys].url =resImage.data[keys].url? process.env.BASE_URL + resImage.data[keys].url:null;
  1176. switch (keys) {
  1177. case 'C01':
  1178. case 'D01':
  1179. resImage.data[keys].url?this.carImageList.push(resImage.data[keys].url):''
  1180. break;
  1181. case 'C02':
  1182. case 'D02':
  1183. resImage.data[keys].url? this.ownerImageList.push(resImage.data[keys].url):''
  1184. break;
  1185. case 'C03':
  1186. case 'D03':
  1187. resImage.data[keys].url?this.policyImageList.push(resImage.data[keys].url):''
  1188. break;
  1189. case 'C04':
  1190. case 'D04':
  1191. resImage.data[keys].url?this.insuredImageList.push(resImage.data[keys].url):''
  1192. break;
  1193. default:
  1194. break;
  1195. }
  1196. }
  1197. })
  1198. })
  1199. this.pic1Control = false;
  1200. this.pic2Control = false;
  1201. this.pic3Control = false;
  1202. this.pic4Control = false;
  1203. this.pic5Control = false;
  1204. this.oldfileList = [];
  1205. switch (res.data.inscompany) {
  1206. case "永安财险":
  1207. if (this.orderInfo.jqpolicyno) {
  1208. this.$api.letter.getPolicyPrint({
  1209. companyId: item.id,
  1210. policytype: "jq"
  1211. }).then((res) => {//交强保单
  1212. if (res.data) {
  1213. let result = res.data.replace(/[\r\n]/g, "");
  1214. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1215. base64ToPath(pdfBase64).then((path) => {
  1216. if(path){
  1217. this.oldfileList.push({
  1218. fileTitle: "交强电子保单",
  1219. filename: this.orderInfo.jqpolicyno,
  1220. fileurl: path,
  1221. });
  1222. }
  1223. });
  1224. }
  1225. });
  1226. this.$api.letter.getPolicyPrint2({
  1227. companyId: item.id,
  1228. policytype: "jq"
  1229. }).then((res) => {//交强保单
  1230. if (res.data) {
  1231. let result = res.data.replace(/[\r\n]/g, "");
  1232. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1233. base64ToPath(pdfBase64).then((path) => {
  1234. if(path){
  1235. this.oldfileList.push({
  1236. fileTitle: "交强电子标志",
  1237. filename: this.orderInfo.jqpolicyno,
  1238. fileurl: path,
  1239. });
  1240. }
  1241. });
  1242. }
  1243. });
  1244. }
  1245. if (this.orderInfo.sypolicyno) {
  1246. this.$api.letter.getPolicyPrint({
  1247. companyId: item.id,
  1248. policytype: "sy"
  1249. }).then((res) => {//商业保单
  1250. if (res.data) {
  1251. let result = res.data.replace(/[\r\n]/g, "");
  1252. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1253. base64ToPath(pdfBase64).then((path) => {
  1254. if(path){
  1255. this.oldfileList.push({
  1256. fileTitle: "商业电子保单",
  1257. filename: this.orderInfo.sypolicyno,
  1258. fileurl: path,
  1259. });
  1260. }
  1261. });
  1262. }
  1263. });
  1264. }
  1265. break;
  1266. case "华泰财险":
  1267. if (this.orderInfo.jqpolicyno) {
  1268. this.$api.letter.HuataigetPolicyPrint({
  1269. companyId: item.id,
  1270. riskCode: "0507",
  1271. type: '2',//2:保单
  1272. }).then(res => {
  1273. if (res.data) {
  1274. if(res.data.jqxPolicyUrl){
  1275. this.oldfileList.push({
  1276. fileTitle: "交强电子保单",
  1277. filename: this.orderInfo.jqpolicyno,
  1278. fileurl: res.data.jqxPolicyUrl,
  1279. });
  1280. }
  1281. if (res.data.jqxFlagUrl) {
  1282. this.oldfileList.push({
  1283. fileTitle: "交强电子标志",
  1284. filename: this.orderInfo.jqpolicyno,
  1285. fileurl: res.data.jqxFlagUrl,
  1286. });
  1287. }
  1288. }
  1289. })
  1290. }
  1291. if (this.orderInfo.sypolicyno) {
  1292. this.$api.letter.HuataigetPolicyPrint({
  1293. companyId: item.id,
  1294. riskCode: "0510",
  1295. type: '2',//2:保单
  1296. }).then(res => {
  1297. if (res.data && res.data.syxPolicyUrl) {
  1298. this.oldfileList.push({
  1299. fileTitle: "商业电子保单",
  1300. filename: this.orderInfo.sypolicyno,
  1301. fileurl: res.data.syxPolicyUrl,
  1302. });
  1303. }
  1304. })
  1305. }
  1306. break;
  1307. case "中煤财险":
  1308. if (this.orderInfo.jqpolicyno) {
  1309. this.$api.letter.ZhongmeigetPolicyPrint({
  1310. companyId: item.id,
  1311. riskCode: "0507",
  1312. type: '2',//2:保单
  1313. }).then(res => {
  1314. if (res.data && res.data[0]
  1315. ) {
  1316. this.oldfileList.push({
  1317. fileTitle: "交强电子保单",
  1318. filename: this.orderInfo.jqpolicyno,
  1319. fileurl: res.data[0],
  1320. });
  1321. }
  1322. })
  1323. this.$api.letter.ZhongmeigetPolicyPrint({
  1324. companyId: item.id,
  1325. riskCode: "0507",
  1326. type: '1',// 1:标志
  1327. }).then(res => {
  1328. if (res.data && res.data[0]) {
  1329. this.oldfileList.push({
  1330. fileTitle: "交强电子标志",
  1331. filename: this.orderInfo.jqpolicyno,
  1332. fileurl: res.data[0],
  1333. });
  1334. }
  1335. })
  1336. }
  1337. if (this.orderInfo.sypolicyno) {
  1338. this.$api.letter.ZhongmeigetPolicyPrint({
  1339. companyId: item.id,
  1340. riskCode: "0510",
  1341. type: '2',//2:保单
  1342. }).then(res => {
  1343. if (res.data && res.data[0]) {
  1344. this.oldfileList.push({
  1345. fileTitle: "商业电子保单",
  1346. filename: this.orderInfo.sypolicyno,
  1347. fileurl: res.data[0],
  1348. });
  1349. }
  1350. })
  1351. }
  1352. break;
  1353. case "永诚财险":
  1354. if (this.orderInfo.jqpolicyno) {
  1355. this.$api.letter.yongchenggetPolicyPrint({
  1356. companyId: item.id,
  1357. riskCode: "0507",
  1358. type: '2',//2:保单
  1359. }).then(res => {
  1360. if (res.data) {
  1361. if(res.data.jqUrl){
  1362. this.oldfileList.push({
  1363. fileTitle: "交强电子保单",
  1364. filename: this.orderInfo.jqpolicyno,
  1365. fileurl: res.data.jqUrl,
  1366. });
  1367. }
  1368. if (res.data.jqFlagUrl) {
  1369. this.oldfileList.push({
  1370. fileTitle: "交强电子标志",
  1371. filename: this.orderInfo.jqpolicyno,
  1372. fileurl: res.data.jqFlagUrl,
  1373. });
  1374. }
  1375. }
  1376. })
  1377. }
  1378. if (this.orderInfo.sypolicyno) {
  1379. this.$api.letter.yongchenggetPolicyPrint({
  1380. companyId: item.id,
  1381. riskCode: "0510",
  1382. type: '2',//2:保单
  1383. }).then(res => {
  1384. if (res.data && res.data.syUrl) {
  1385. this.oldfileList.push({
  1386. fileTitle: "商业电子保单",
  1387. filename: this.orderInfo.sypolicyno,
  1388. fileurl: res.data.syUrl,
  1389. });
  1390. }
  1391. })
  1392. }
  1393. if (this.orderInfo.crossInsurance.length > 0) {
  1394. this.orderInfo.crossInsurance.map(ele => {
  1395. this.$api.letter.yongchenggetPolicyPrint({
  1396. companyId: item.id,
  1397. policyNumber: ele.policyNumber,
  1398. riskCode: "0513",
  1399. type: '2',//2:保单
  1400. }).then(res => {
  1401. if (res.data) {
  1402. this.oldfileList.push({
  1403. fileTitle: "驾意险保单",
  1404. filename: ele.policyNumber,
  1405. fileurl: res.data.jyUrl,
  1406. });
  1407. }
  1408. })
  1409. })
  1410. }
  1411. break;
  1412. case "国任财险":
  1413. if (this.orderInfo.jqpolicyno) {
  1414. this.$api.letter.guoRengetPolicyPrint({
  1415. companyId: item.id,
  1416. riskCode: "0507",
  1417. type: '2',//2:保单
  1418. }).then(res => {
  1419. if (res.data) {
  1420. this.oldfileList.push({
  1421. fileTitle: "交强电子保单",
  1422. filename: this.orderInfo.jqpolicyno,
  1423. fileurl: res.data,
  1424. });
  1425. }
  1426. })
  1427. this.$api.letter.guoRengetPolicyPrint({
  1428. companyId: item.id,
  1429. riskCode: "0507",
  1430. type: '1',//1:标志
  1431. }).then(res => {
  1432. if (res.data) {
  1433. this.oldfileList.push({
  1434. fileTitle: "交强电子标志",
  1435. filename: this.orderInfo.jqpolicyno,
  1436. fileurl: res.data,
  1437. });
  1438. }
  1439. })
  1440. }
  1441. if (this.orderInfo.sypolicyno) {
  1442. this.$api.letter.guoRengetPolicyPrint({
  1443. companyId: item.id,
  1444. riskCode: "0510",
  1445. type: '2',//2:保单
  1446. }).then(res => {
  1447. if (res.data) {
  1448. this.oldfileList.push({
  1449. fileTitle: "商业电子保单",
  1450. filename: this.orderInfo.sypolicyno,
  1451. fileurl: res.data,
  1452. });
  1453. }
  1454. })
  1455. }
  1456. if (this.orderInfo.crossInsurance.length > 0) {
  1457. this.orderInfo.crossInsurance.map(ele => {
  1458. this.$api.letter.guoRengetPolicyPrint({
  1459. companyId: item.id,
  1460. policyNumber: ele.policyNumber,
  1461. riskCode: "0513",
  1462. type: '2',//2:保单
  1463. }).then(res => {
  1464. if (res.data) {
  1465. this.oldfileList.push({
  1466. fileTitle: "驾意险保单",
  1467. filename: ele.policyNumber,
  1468. fileurl: res.data,
  1469. });
  1470. }
  1471. })
  1472. })
  1473. }
  1474. break;
  1475. case "紫金财险":
  1476. if (this.orderInfo.jqpolicyno) {
  1477. this.$api.letter.zijingetPolicyPrint({
  1478. companyId: item.id,
  1479. riskCode: "0507",
  1480. type: '2',//2:保单
  1481. }).then(res => {
  1482. if (res.data) {
  1483. this.oldfileList.push({
  1484. fileTitle: "交强电子保单",
  1485. filename: this.orderInfo.jqpolicyno,
  1486. fileurl: res.data,
  1487. });
  1488. }
  1489. })
  1490. this.$api.letter.zijingetPolicyPrint({
  1491. companyId: item.id,
  1492. riskCode: "0507",
  1493. type: '1',//1:标志
  1494. }).then(res => {
  1495. if (res.data) {
  1496. this.oldfileList.push({
  1497. fileTitle: "交强电子标志",
  1498. filename: this.orderInfo.jqpolicyno,
  1499. fileurl: res.data,
  1500. });
  1501. }
  1502. })
  1503. }
  1504. if (this.orderInfo.sypolicyno) {
  1505. this.$api.letter.zijingetPolicyPrint({
  1506. companyId: item.id,
  1507. riskCode: "0510",
  1508. type: '2',//2:保单
  1509. }).then(res => {
  1510. if (res.data) {
  1511. this.oldfileList.push({
  1512. fileTitle: "商业电子保单",
  1513. filename: this.orderInfo.sypolicyno,
  1514. fileurl: res.data,
  1515. });
  1516. }
  1517. })
  1518. }
  1519. if (this.orderInfo.crossInsurance.length > 0) {
  1520. this.orderInfo.crossInsurance.map(ele => {
  1521. this.$api.letter.zijingetPolicyPrint({
  1522. companyId: item.id,
  1523. policyNumber: ele.policyNumber,
  1524. riskCode: "0513",
  1525. type: '2',//2:保单
  1526. }).then(res => {
  1527. if (res.data) {
  1528. this.oldfileList.push({
  1529. fileTitle: "驾意险保单",
  1530. filename: ele.policyNumber,
  1531. fileurl: res.data,
  1532. });
  1533. }
  1534. })
  1535. })
  1536. }
  1537. break;
  1538. case "恒邦财险":
  1539. case "安盛天平":
  1540. case "中国人寿":
  1541. case "众安财险":
  1542. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  1543. this.$api.letter.pythongetPolicyPrint({
  1544. subOrderNo: item.id,
  1545. }).then(res => {
  1546. if (res.data) {
  1547. if (res.data.jqxPolicyUrl) {
  1548. this.oldfileList.push({
  1549. fileTitle: "交强电子保单",
  1550. filename: this.orderInfo.jqpolicyno,
  1551. fileurl: res.data.jqxPolicyUrl,
  1552. });
  1553. }
  1554. if (res.data.jqxFlagUrl) {
  1555. this.oldfileList.push({
  1556. fileTitle: "交强电子标志",
  1557. filename: this.orderInfo.jqpolicyno,
  1558. fileurl: res.data.jqxFlagUrl,
  1559. });
  1560. }
  1561. }
  1562. if (res.data.syxPolicyUrl) {
  1563. this.oldfileList.push({
  1564. fileTitle: "商业电子保单",
  1565. filename: this.orderInfo.sypolicyno,
  1566. fileurl: res.data.syxPolicyUrl,
  1567. });
  1568. }
  1569. if (res.data.jyxInfoList && res.data.jyxInfoList.length>0) {
  1570. res.data.jyxInfoList.forEach(val=>{
  1571. this.oldfileList.push({
  1572. fileTitle: "驾意险保单",
  1573. filename: 'xxxxxxxxxxxxxxxxxxxxxx',
  1574. fileurl: val.jyx_policy_url,
  1575. });
  1576. })
  1577. }
  1578. })
  1579. }
  1580. break;
  1581. case "大家财险":
  1582. if (this.orderInfo.jqpolicyno) {
  1583. this.$api.letter.obtainWarranty({
  1584. companyId: item.id,
  1585. riskCode: "0507",
  1586. type: '2',//2:保单
  1587. }).then(res => {
  1588. if (res.data) {
  1589. this.oldfileList.push({
  1590. fileTitle: "交强电子保单",
  1591. filename: this.orderInfo.jqpolicyno,
  1592. fileurl: res.data,
  1593. });
  1594. }
  1595. })
  1596. this.$api.letter.obtainWarranty({
  1597. companyId: item.id,
  1598. riskCode: "0507",
  1599. type: '1',//1:标志
  1600. }).then(res => {
  1601. if (res.data) {
  1602. this.oldfileList.push({
  1603. fileTitle: "交强电子标志",
  1604. filename: this.orderInfo.jqpolicyno,
  1605. fileurl: res.data,
  1606. });
  1607. }
  1608. })
  1609. }
  1610. if (this.orderInfo.sypolicyno) {
  1611. this.$api.letter.obtainWarranty({
  1612. companyId: item.id,
  1613. riskCode: "0510",
  1614. type: '2',//2:保单
  1615. }).then(res => {
  1616. if (res.data) {
  1617. this.oldfileList.push({
  1618. fileTitle: "商业电子保单",
  1619. filename: this.orderInfo.sypolicyno,
  1620. fileurl: res.data,
  1621. });
  1622. }
  1623. })
  1624. }
  1625. if (this.orderInfo.crossInsurance.length > 0) {
  1626. this.orderInfo.crossInsurance.map(ele => {
  1627. this.$api.letter.zijingetPolicyPrint({
  1628. companyId: item.id,
  1629. policyNumber: ele.policyNumber,
  1630. riskCode: "0513",
  1631. type: '2',//2:保单
  1632. }).then(res => {
  1633. if (res.data) {
  1634. this.oldfileList.push({
  1635. fileTitle: "驾意险保单",
  1636. filename: ele.policyNumber,
  1637. fileurl: res.data,
  1638. });
  1639. }
  1640. })
  1641. })
  1642. }
  1643. break;
  1644. default:
  1645. }
  1646. //赋值费用信息
  1647. this.feeDetailInfo=res.data.orderFeeResult;
  1648. this.showInsureList = false;
  1649. this.dialogVisible = true; //在页面上显示订单
  1650. } else {
  1651. this.$message.error("订单获取失败");
  1652. }
  1653. });
  1654. },
  1655. cancelorder(item) {
  1656. this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
  1657. if(res.code==200){
  1658. this.$message({
  1659. message: res.msg,
  1660. type: 'success'
  1661. });
  1662. this.findPage()
  1663. }
  1664. })
  1665. },
  1666. //y永城查询缴费状态
  1667. refreshStatus(item){
  1668. this.$api.letter.orderStatusyongcheng( item.id ).then(res => {
  1669. if(res.code==200){
  1670. this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
  1671. this.loading = true;
  1672. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1673. if (res.code == "200") {
  1674. this.loading = false;
  1675. this.pageResult = res.data.content;
  1676. this.pageNum = res.data.pageNum;
  1677. this.totalSize = res.data.totalSize;
  1678. this.pageResult.forEach(val => {
  1679. this.$set(val, "expanded", false);
  1680. });
  1681. } else {
  1682. this.loading = false;
  1683. }
  1684. })
  1685. }
  1686. else{
  1687. this.$message({ message:res.msg, type: "error" })
  1688. }
  1689. })
  1690. },
  1691. // 国任查询缴费状态
  1692. refreshStatusGuoren(item){
  1693. this.$api.letter.updateOrderInfoGuoren( {companyId:item.id} ).then(res => {
  1694. if(res.code==200){
  1695. this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
  1696. this.loading = true;
  1697. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1698. if (res.code == "200") {
  1699. this.loading = false;
  1700. this.pageResult = res.data.content;
  1701. this.pageNum = res.data.pageNum;
  1702. this.totalSize = res.data.totalSize;
  1703. this.pageResult.forEach(val => {
  1704. this.$set(val, "expanded", false);
  1705. });
  1706. } else {
  1707. this.loading = false;
  1708. }
  1709. })
  1710. }
  1711. else{
  1712. this.$message({ message:res.msg, type: "error" })
  1713. }
  1714. })
  1715. },
  1716. // 大家刷新核保状态
  1717. refreshStatusDajia(item){
  1718. this.$api.letter.updateOrderInfoDajia( {companyId:item.id} ).then(res => {
  1719. if(res.code==200){
  1720. this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
  1721. this.loading = true;
  1722. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1723. if (res.code == "200") {
  1724. this.loading = false;
  1725. this.pageResult = res.data.content;
  1726. this.pageNum = res.data.pageNum;
  1727. this.totalSize = res.data.totalSize;
  1728. this.pageResult.forEach(val => {
  1729. this.$set(val, "expanded", false);
  1730. });
  1731. } else {
  1732. this.loading = false;
  1733. }
  1734. })
  1735. }
  1736. else{
  1737. this.$message({ message:res.msg, type: "error" })
  1738. }
  1739. })
  1740. },
  1741. //华泰刷新核保状态
  1742. updateStatusHuatai(item){
  1743. this.$api.letter.orderStatushuatai( {companyId:item.id} ).then(res => {
  1744. if(res.code==200){
  1745. this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
  1746. this.loading = true;
  1747. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1748. if (res.code == "200") {
  1749. this.loading = false;
  1750. this.pageResult = res.data.content;
  1751. this.pageNum = res.data.pageNum;
  1752. this.totalSize = res.data.totalSize;
  1753. this.pageResult.forEach(val => {
  1754. this.$set(val, "expanded", false);
  1755. });
  1756. } else {
  1757. this.loading = false;
  1758. }
  1759. })
  1760. }
  1761. else{
  1762. this.$message({ message:res.msg, type: "error" })
  1763. }
  1764. })
  1765. },
  1766. //华泰更新订单状态
  1767. updateOrderInfoHuatai(item){
  1768. this.$api.letter.updateOrderInfoHuatai( {companyId:item.id} ).then(res => {
  1769. if(res.code==200){
  1770. this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
  1771. this.loading = true;
  1772. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1773. if (res.code == "200") {
  1774. this.loading = false;
  1775. this.pageResult = res.data.content;
  1776. this.pageNum = res.data.pageNum;
  1777. this.totalSize = res.data.totalSize;
  1778. this.pageResult.forEach(val => {
  1779. this.$set(val, "expanded", false);
  1780. });
  1781. } else {
  1782. this.loading = false;
  1783. }
  1784. })
  1785. }
  1786. else{
  1787. this.$message({ message:res.msg, type: "error" })
  1788. }
  1789. })
  1790. },
  1791. //中煤查询缴费状态
  1792. updateStatus(item){
  1793. this.$api.letter.orderStatuszhongmei( {companyId:item.id} ).then(res => {
  1794. if(res.code==200){
  1795. this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
  1796. this.loading = true;
  1797. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1798. if (res.code == "200") {
  1799. this.loading = false;
  1800. this.pageResult = res.data.content;
  1801. this.pageNum = res.data.pageNum;
  1802. this.totalSize = res.data.totalSize;
  1803. this.pageResult.forEach(val => {
  1804. this.$set(val, "expanded", false);
  1805. });
  1806. } else {
  1807. this.loading = false;
  1808. }
  1809. })
  1810. }
  1811. else{
  1812. this.$message({ message:res.msg, type: "error" })
  1813. }
  1814. })
  1815. },
  1816. //查询缴费状态
  1817. querystatus(item) {
  1818. if (item.inscompany == '紫金财险') {
  1819. this.$api.letter.getOrderDetail({ companyId: item.id }).then(res => {
  1820. if (res.code == '200') {
  1821. this.$message({ message: res.msg, type: "success" })
  1822. this.loading = true;
  1823. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1824. if (res.code == "200") {
  1825. this.loading = false;
  1826. this.pageResult = res.data.content;
  1827. this.pageNum = res.data.pageNum;
  1828. this.totalSize = res.data.totalSize;
  1829. this.pageResult.forEach(val => {
  1830. this.$set(val, "expanded", false);
  1831. });
  1832. } else {
  1833. this.loading = false;
  1834. }
  1835. })
  1836. } else {
  1837. this.$message({ message: res.msg, type: "error" })
  1838. }
  1839. })
  1840. } else {
  1841. this.$api.letter.pychonverifyPayment({ subOrderNo: item.id }).then(res => {
  1842. if (res.code == '200') {
  1843. this.$message({ message: "订单支付成功,正在更改状态", type: "success" })
  1844. this.loading = true;
  1845. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1846. if (res.code == "200") {
  1847. this.loading = false;
  1848. this.pageResult = res.data.content;
  1849. this.pageNum = res.data.pageNum;
  1850. this.totalSize = res.data.totalSize;
  1851. this.pageResult.forEach(val => {
  1852. this.$set(val, "expanded", false);
  1853. });
  1854. } else {
  1855. this.loading = false;
  1856. }
  1857. })
  1858. } else {
  1859. this.$message({ message: res.msg, type: "error" })
  1860. }
  1861. })
  1862. }
  1863. },
  1864. toChinesNum(num) {
  1865. let changeNum = [
  1866. "零", "1", "2", "3", "4", "5", "6", "7", "8", "9"
  1867. ];
  1868. let unit = ["", "0", "00", "000", "0000"];
  1869. num = parseInt(num);
  1870. let getWan = temp => {
  1871. let strArr = temp
  1872. .toString()
  1873. .split("")
  1874. .reverse();
  1875. let newNum = "";
  1876. let newArr = [];
  1877. strArr.forEach((item, index) => {
  1878. newArr.unshift(
  1879. item === "0" ? changeNum[item] : changeNum[item] + unit[index]
  1880. );
  1881. });
  1882. let numArr = [];
  1883. newArr.forEach((m, n) => {
  1884. if (m !== "零") numArr.push(n);
  1885. });
  1886. if (newArr.length > 1) {
  1887. newArr.forEach((m, n) => {
  1888. if (newArr[newArr.length - 1] === "零") {
  1889. if (n <= numArr[numArr.length - 1]) {
  1890. newNum += m;
  1891. }
  1892. } else {
  1893. newNum += m;
  1894. }
  1895. });
  1896. } else {
  1897. newNum = newArr[0];
  1898. }
  1899. return newNum;
  1900. };
  1901. let overWan = Math.floor(num / 10000);
  1902. let noWan = num % 10000;
  1903. if (noWan.toString().length < 4) {
  1904. noWan = "0" + noWan;
  1905. }
  1906. return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
  1907. },
  1908. getAllStaff() {
  1909. var that = this;
  1910. var personRequest = { //查询的默认条件
  1911. pageNum: 1,
  1912. pageSize: 9999999,
  1913. columnFilters: {
  1914. "deptId": {
  1915. "name": "deptId",
  1916. "value": "99"
  1917. },
  1918. "containsSubDept": {
  1919. "name": "containsSubDept",
  1920. "value": 1
  1921. },
  1922. "usertype": {
  1923. "name": "usertype",
  1924. "value": "A"
  1925. },
  1926. "status": {
  1927. "name": "status",
  1928. "value": "4"
  1929. }
  1930. }
  1931. }
  1932. this.$api.user.findPage(personRequest).then((res) => {
  1933. if (res.code == 200) {
  1934. if (res.data.content.length > 0) {
  1935. that.staffList = [];
  1936. Object.assign(that.staffList, res.data.content);
  1937. } else {
  1938. that.staffList = [];
  1939. }
  1940. } else {
  1941. that.staffList = [];
  1942. }
  1943. })
  1944. },
  1945. getAllCompany: function () {
  1946. // 获取数据
  1947. this.$api.dept.findLeftDeptTree(this.peopledeptid).then(res => {
  1948. for (let i = 0; i < res.data.length; i++) {
  1949. if (res.data[i].id.indexOf('D') < 0) {
  1950. this.totalComapny.push(res.data[i]);
  1951. }
  1952. }
  1953. });
  1954. },
  1955. // 跳转页面锚链接Start
  1956. jump(obj) {
  1957. var s = document.getElementById(obj);
  1958. var parent = s.parentNode
  1959. for (let i = 0; i < parent.childNodes.length; i++) {
  1960. if (parent.childNodes[i].tagName == 'DIV') {
  1961. if (parent.childNodes[i].childNodes[0].classList.contains("active")) {
  1962. parent.childNodes[i].childNodes[0].classList.remove("active");
  1963. }
  1964. }
  1965. }
  1966. s.childNodes[0].classList.add("active");
  1967. },
  1968. // 跳转页面锚链接End
  1969. //条件查询
  1970. queryGetOrderList() {
  1971. this.queryForm.pageNum = 1;
  1972. this.queryForm.pageSize = 20;
  1973. this.getOrderList();
  1974. },
  1975. // 获取提交核保请求订单信息Start
  1976. getOrderList: function () {
  1977. this.ordersList=[];
  1978. this.$api.task.findPage(this.queryForm).then(res => {
  1979. this.ordersList = res.data.content;
  1980. this.totalSize = res.data.totalSize;
  1981. });
  1982. },
  1983. // 获取提交核保请求订单信息End
  1984. handleCurrentChange(val) {//页数
  1985. this.pageNum = val;
  1986. this.queryForm.pageNum = val;
  1987. this.getOrderList();
  1988. },
  1989. handleSizeChange(val) {//条数
  1990. this.pageSize = val;
  1991. this.pageNum = 1;
  1992. this.queryForm.pageNum = 1;
  1993. this.queryForm.pageSize = val;
  1994. this.getOrderList();
  1995. },
  1996. //报价单
  1997. bjdpreview(companyId) {
  1998. let params = {
  1999. companyId: companyId
  2000. };
  2001. this.$api.letter.getByCompanyId(params).then(res => {
  2002. if (res.code == "200") {
  2003. var data = res.data;
  2004. if (data.kindinfo != null) {
  2005. data.kindinfo.map((ele, index) => {
  2006. switch (ele.kindCode) {
  2007. case "A":
  2008. if (ele.amount == 1) {
  2009. ele.amount = "投保"
  2010. } else {
  2011. ele.amount = ele.amount
  2012. }
  2013. break;
  2014. case "D4":
  2015. case "SY_FJ_YBW2":
  2016. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  2017. break;
  2018. case "MJ1":
  2019. case "MJ2":
  2020. case "MJ3":
  2021. case "MJ4":
  2022. ele.deductibleRate = ele.deductibleRate + "%";
  2023. break;
  2024. default:
  2025. ele.amount = this.toChinesNum(ele.amount);
  2026. }
  2027. return ele;
  2028. });
  2029. }
  2030. this.queryOrders = data;
  2031. this.logoImg = this.iconfftter(res.data.inscompany)
  2032. this.bjddialogVisible = true;
  2033. }
  2034. });
  2035. },
  2036. iconfftter(icon) {
  2037. return CommonUtil.getDataName({
  2038. dataList: this.global.insCompanyList,
  2039. value: "name",
  2040. label: "icon",
  2041. data: icon,
  2042. });
  2043. },
  2044. // 截图粘贴
  2045. copybjd(){
  2046. let that=this
  2047. html2Canvas(document.getElementById('pdfContentsDiv') , {
  2048. allowTaint: true,
  2049. taintTest: false,
  2050. }).then(function (canvas) {
  2051. let base64Data = ''
  2052. // let blob = null
  2053. base64Data = canvas.toDataURL('image/png', 1)
  2054. const date = new Date()
  2055. const saveInfo = {
  2056. download: date.getTime() + `.png`,
  2057. href: base64Data,
  2058. }
  2059. const element = document.createElement('a')
  2060. element.style.display = 'none'
  2061. for (const key in saveInfo) {
  2062. element.setAttribute(key, saveInfo[key])
  2063. }
  2064. document.body.appendChild(element)
  2065. element.click()
  2066. setTimeout(() => {
  2067. document.body.removeChild(element)
  2068. }, 300)
  2069. })
  2070. },
  2071. // 撤销二维码
  2072. revokeCode(id){
  2073. this.$api.letter.getRevokeQrCode(id).then(res => {
  2074. if(res.code==200){
  2075. this.$message({
  2076. message: res.msg,
  2077. type: 'success'
  2078. });
  2079. this.historyDialogVisible=false;
  2080. }
  2081. })
  2082. },
  2083. //二维码
  2084. carcode(id) {
  2085. this.$api.letter.getQrCode(id).then(res => {
  2086. if (res.code == '200') {
  2087. this.inscompany = res.data.inscompany;//保险公司
  2088. this.sumpremium = res.data.sumpremium;//总价
  2089. this.licenseNo = res.data.cPlateNo;//车牌号
  2090. this.applyName = res.data.cInsuredNme;//车主
  2091. this.jqpremium = res.data.jqpremium;//交强
  2092. this.sypremium = res.data.sypremium;//商业
  2093. this.taxamount = res.data.taxamount;//车船税
  2094. this.jypremium = res.data.jypremium;//驾意险
  2095. this.jqstartdate = res.data.jqstartdate;//交强起保日期
  2096. this.systartdate = res.data.systartdate;//商业起保日期
  2097. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  2098. this.$nextTick(() => {
  2099. this.creatQrCode(res.data.qrCodeUrl);
  2100. });
  2101. this.codedialogVisible = true;
  2102. } else {
  2103. this.$message({ message: res.msg, type: "warning" })
  2104. }
  2105. })
  2106. },
  2107. creatQrCode(text) {
  2108. if (this.qrcode) {
  2109. this.qrcode.clear();
  2110. this.qrcode.makeCode(text);
  2111. } else {
  2112. this.qrcode = new QRCode("qrcode", {
  2113. text: text,
  2114. width: 180,
  2115. height: 180,
  2116. colorDark: "#000000",
  2117. colorLight: "#ffffff",
  2118. correctLevel: QRCode.CorrectLevel.H,
  2119. });
  2120. }
  2121. },
  2122. //查看详情
  2123. qoutedetail(companyId) {
  2124. let params = {
  2125. companyId: companyId
  2126. };
  2127. this.$api.letter.getByCompanyId(params).then(res => {
  2128. if (res.code == "200") {
  2129. var data = res.data;
  2130. data.kindinfo.map((ele, index) => {
  2131. switch (ele.kindCode) {
  2132. case "A":
  2133. ele.amount = "投保";
  2134. break;
  2135. case "D4":
  2136. case "SY_FJ_YBW2":
  2137. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  2138. break;
  2139. case "MJ1":
  2140. case "MJ2":
  2141. case "MJ3":
  2142. case "MJ4":
  2143. ele.deductibleRate = ele.deductibleRate + "%";
  2144. break;
  2145. default:
  2146. ele.amount = this.toChinesNum(ele.amount);
  2147. }
  2148. return ele;
  2149. });
  2150. this.queryOrders = data;
  2151. //赋值费用信息
  2152. this.feeDetailInfo=data.orderFeeResult;
  2153. }
  2154. });
  2155. this.dialogVisible = true;
  2156. },
  2157. //获取一个订单的全部信息End
  2158. getHistoryList(orderNo) {
  2159. this.$api.letter.getByOrderNo({ orderNo: orderNo }).then((res) => {
  2160. this.HistoryList = res.data.insAreaCompanyList;
  2161. //赋值quoteno字段,查看详情获取影像使用
  2162. this.HistoryList.map((ele, index) => {
  2163. ele.quoteno=res.data.quoteno;
  2164. });
  2165. })
  2166. this.historyDialogVisible = true;
  2167. },
  2168. //订单修改
  2169. CloseEdit(orderno) {
  2170. this.$api.letter.getByOrderNo({ orderNo: orderno }).then((res) => {
  2171. this.$router.push({ path: '/task/daikeLetter', query: { data: res.data } })
  2172. })
  2173. },
  2174. // 打开任务转发
  2175. openTaskForward(orderno) {
  2176. this.taskForwardData.orderNo = orderno;
  2177. this.taskForwardData.operatorId = this.peopleid;
  2178. this.taskForwardDialogVisible = true;
  2179. },
  2180. comfirmTaskForward() {
  2181. if (!this.taskForwardData.auditId) {
  2182. return this.$message({ type: 'info', message: '请选择任务接收人' });
  2183. }
  2184. this.$confirm('是否确认转发任务?', '提示', {}).then(() => {
  2185. this.$api.task.forwarding(this.taskForwardData).then(res => {
  2186. if (res.code == '200') {
  2187. this.$message({ type: 'success', message: res.msg });
  2188. this.getOrderList();
  2189. this.taskForwardDialogVisible = false;
  2190. }else{
  2191. this.$message.error(res.msg);
  2192. }
  2193. })
  2194. }).catch(() => {
  2195. })
  2196. },
  2197. changeAudit(e) {
  2198. // for (let i = 0; i < this.staffList.length; i++) {
  2199. // if (this.staffList[i].id == e) {
  2200. // this.taskForwardData.auditname = this.staffList[i].name;
  2201. // }
  2202. // }
  2203. },
  2204. closeTaskForward() {
  2205. for (let key in this.taskForwardData) {
  2206. this.taskForwardData[key] = "";
  2207. }
  2208. this.taskForwardDialogVisible = false;
  2209. },
  2210. }
  2211. }
  2212. </script>
  2213. <style>
  2214. .saomazhifucodeClass .el-dialog__body,
  2215. .saomazhifucodeClass .el-dialog__header {
  2216. padding: 0;
  2217. }
  2218. </style>
  2219. <style scoped lang="scss">
  2220. /* 检索区Start */
  2221. .ORcodebody {
  2222. width: 100%;
  2223. height: auto;
  2224. box-sizing: border-box;
  2225. }
  2226. .code_title {
  2227. width: 100%;
  2228. height: 50px;
  2229. background-color: #fdcb08;
  2230. justify-content: center;
  2231. &>span {
  2232. font-size: 22px;
  2233. color: #000;
  2234. font-weight: bold;
  2235. }
  2236. }
  2237. .ORcode {
  2238. width: 100%;
  2239. background: #fff;
  2240. height: auto;
  2241. display: flex;
  2242. justify-content: center;
  2243. align-items: center;
  2244. padding: 30px;
  2245. box-sizing: border-box;
  2246. border-bottom: 6px dotted #fdcb08;
  2247. &>div {
  2248. width: 180px;
  2249. height: 180px;
  2250. border: 1px solid #000;
  2251. border-radius: 5px;
  2252. }
  2253. }
  2254. .ORtitle {
  2255. background: #fff;
  2256. width: 100%;
  2257. padding: 20px;
  2258. box-sizing: border-box;
  2259. border-bottom: 1px solid #f2f2f2;
  2260. &>div {
  2261. width: 100%;
  2262. margin: 10px 0;
  2263. font-weight: bold;
  2264. font-size: 14px;
  2265. display: flex;
  2266. align-items: center;
  2267. &>span {
  2268. &:nth-child(1) {
  2269. color: #979797;
  2270. text-align: end;
  2271. width: 150px;
  2272. }
  2273. &:nth-child(2) {
  2274. color: #000;
  2275. margin-left: 10px;
  2276. }
  2277. }
  2278. }
  2279. }
  2280. .queryForm {
  2281. background: #f2f7fc;
  2282. position: relative;
  2283. border: 1px solid #ddd;
  2284. border-radius: 10px;
  2285. margin-top: 15px;
  2286. margin-bottom: 15px;
  2287. padding: 10px 20px 0;
  2288. &:before {
  2289. content: attr(title);
  2290. position: absolute;
  2291. left: 10%;
  2292. transform: translate(-50%, -120%);
  2293. padding: 0 10px;
  2294. background-color: #fff;
  2295. }
  2296. }
  2297. /* 检索区End */
  2298. /* 页面的整体布局 */
  2299. .page-container {
  2300. margin: 0px 10px;
  2301. }
  2302. .task {
  2303. border-color: #a6a6a6;
  2304. line-height: 25px;
  2305. font-size: 14px;
  2306. margin-bottom: 10px;
  2307. .row {
  2308. margin-bottom: 10px;
  2309. line-height: 28px;
  2310. font-size: 12px;
  2311. .label {
  2312. padding: 0 10px;
  2313. }
  2314. }
  2315. }
  2316. .task_bottom {
  2317. margin-top: 10px;
  2318. }
  2319. .leftContainer {
  2320. width: 80px;
  2321. position: fixed;
  2322. top: 79px;
  2323. left: 30px;
  2324. .el-col {
  2325. width: 80px;
  2326. height: 80px;
  2327. border-bottom: 1px solid #4d5c6f;
  2328. background: #526176;
  2329. cursor: pointer;
  2330. color: #a6aeb9;
  2331. border-radius: 0;
  2332. a {
  2333. display: block;
  2334. color: #a6aeb9;
  2335. text-decoration: none;
  2336. &:hover {
  2337. color: #fff;
  2338. }
  2339. &.active {
  2340. color: #fff;
  2341. }
  2342. }
  2343. i {
  2344. font-size: 30px;
  2345. margin: 15px 0px 5px;
  2346. }
  2347. }
  2348. }
  2349. .rightContainer {
  2350. width: calc(100vw - 160px);
  2351. margin-left: 100px;
  2352. .header {
  2353. .el-col {
  2354. font-size: 18px;
  2355. font-weight: bold;
  2356. }
  2357. }
  2358. .bodyTitle {
  2359. height: 40px;
  2360. background: #f3f3f3;
  2361. border: 1px solid #dddddd;
  2362. &>label {
  2363. margin: 0px 15px;
  2364. font-weight: bold;
  2365. }
  2366. }
  2367. .el-card {
  2368. margin-bottom: 15px;
  2369. }
  2370. }
  2371. .rightContainer #demo2 .body,
  2372. .rightContainer #demo5 .body,
  2373. .rightContainer #demo6 .body,
  2374. .rightContainer #demo7 .body,
  2375. .rightContainer #demo8 .body,
  2376. .rightContainer #demo9 .body,
  2377. .rightContainer #demo10 .body,
  2378. .rightContainer #demo11 .body {
  2379. border: 1px solid #ddd;
  2380. padding: 15px;
  2381. border-top: none;
  2382. }
  2383. .imageStyle {
  2384. display: inline-block;
  2385. width: 100px;
  2386. height: 100px;
  2387. box-shadow: #ddd 0px 0px 5px;
  2388. margin-left: 20px;
  2389. }
  2390. .el-transfer-panel {
  2391. width: calc(100%/3) !important;
  2392. }
  2393. .body {
  2394. .el-row {
  2395. margin-bottom: 15px;
  2396. .el-col {
  2397. label {
  2398. text-align: right;
  2399. width: 80px;
  2400. font-size: 14px;
  2401. width: 100%;
  2402. line-height: 36px;
  2403. display: inline-block;
  2404. box-sizing: border-box;
  2405. padding-right: 15px;
  2406. }
  2407. }
  2408. }
  2409. }
  2410. .disabledInput {
  2411. width: 80% !important;
  2412. max-width: 200px;
  2413. background-color: #f5f7fa;
  2414. text-align: center !important;
  2415. border: 1px solid #e4e7ed;
  2416. color: #c0c4cc;
  2417. cursor: not-allowed;
  2418. border-radius: 4px;
  2419. box-sizing: border-box;
  2420. padding: 0px 10px;
  2421. height: 36px;
  2422. margin: 0px 10%;
  2423. }
  2424. .Risk {
  2425. width: 100%;
  2426. height: auto;
  2427. display: flex;
  2428. flex-direction: column;
  2429. align-items: center;
  2430. font-size: 12px;
  2431. }
  2432. .Risk_title {
  2433. width: 100%;
  2434. height: 40px;
  2435. &>div {
  2436. background: rgb(199, 20, 45);
  2437. color: rgb(255, 255, 255);
  2438. height: 100%;
  2439. font-weight: 500;
  2440. width: 33.3%;
  2441. padding: 10px 20px;
  2442. box-sizing: border-box;
  2443. border: #fff solid 1px;
  2444. display: flex;
  2445. justify-content: center;
  2446. align-items: center;
  2447. border-bottom: none;
  2448. &:nth-child(1) {
  2449. border-top-left-radius: 10px;
  2450. }
  2451. &:nth-child(2) {
  2452. border-left: none;
  2453. border-right: none;
  2454. }
  2455. &:nth-child(3) {
  2456. border-top-right-radius: 10px;
  2457. }
  2458. }
  2459. }
  2460. .Risk_data {
  2461. width: 100%;
  2462. height: 40px;
  2463. &>div {
  2464. background: #fbf6f7;
  2465. color: rgb(51, 51, 51);
  2466. height: 100%;
  2467. font-weight: 500;
  2468. width: 33.3%;
  2469. padding: 10px 20px;
  2470. box-sizing: border-box;
  2471. border: #fff solid 1px;
  2472. display: flex;
  2473. justify-content: center;
  2474. align-items: center;
  2475. border-bottom: none;
  2476. &:nth-child(2) {
  2477. border-left: none;
  2478. border-right: none;
  2479. }
  2480. }
  2481. }
  2482. .bjdbody {
  2483. width: 100%;
  2484. height: auto;
  2485. background-color: rgb(199, 20, 45);
  2486. padding: 20px 10px 0 10px;
  2487. box-sizing: border-box;
  2488. border-radius: 8px;
  2489. }
  2490. .bjdCarMessage,
  2491. .bjdCarSum {
  2492. width: 100%;
  2493. height: auto;
  2494. background-color: #fff;
  2495. border-radius: 8px;
  2496. margin-bottom: 10px;
  2497. padding-bottom: 10px;
  2498. }
  2499. .bjdfooter {
  2500. border-top: 1px solid #fff;
  2501. padding: 10px;
  2502. box-sizing: border-box;
  2503. color: #fff;
  2504. }
  2505. .bjdCarSum {
  2506. &>div {
  2507. width: 100%;
  2508. padding: 15px 20px;
  2509. box-sizing: border-box;
  2510. font-weight: bold;
  2511. color: #000;
  2512. border-bottom: 1px solid #f2f2f2;
  2513. }
  2514. }
  2515. .bjdCarMessage1 {
  2516. height: 80px;
  2517. padding: 16px;
  2518. box-sizing: border-box;
  2519. border-bottom: 1px solid #f2f2f2;
  2520. display: flex;
  2521. align-items: center;
  2522. color: #000;
  2523. .f-c {
  2524. &>span {
  2525. &:nth-child(1) {
  2526. font-size: 18px;
  2527. font-weight: bold;
  2528. }
  2529. }
  2530. }
  2531. }
  2532. .bjdCarMessage1>img,
  2533. .bjdfooter>img {
  2534. margin-right: 30px;
  2535. }
  2536. .bjdCarMessage1 .f-c>span:nth-child(2),
  2537. .bjdCarMessage1 .f-c>span:nth-child(3) {
  2538. font-size: 12px;
  2539. margin-top: 5px;
  2540. }
  2541. .bjdCarMessage2_car {
  2542. &>span {
  2543. &:nth-child(1) {
  2544. color: #000;
  2545. font-weight: bold;
  2546. }
  2547. &:nth-child(2) {
  2548. color: #999;
  2549. }
  2550. }
  2551. }
  2552. .bjdCarMessage2 {
  2553. &>ul {
  2554. li {
  2555. margin: 20px 0;
  2556. }
  2557. }
  2558. }
  2559. .display {
  2560. display: flex;
  2561. justify-content: center;
  2562. align-items: center;
  2563. padding: 10px;
  2564. box-sizing: border-box;
  2565. }
  2566. .dis {
  2567. display: flex;
  2568. }
  2569. .align {
  2570. align-items: center;
  2571. }
  2572. .jus {
  2573. justify-content: space-between;
  2574. }
  2575. .headers {
  2576. display: flex;
  2577. align-items: center;
  2578. justify-content: space-between;
  2579. flex-wrap: wrap;
  2580. margin: 5px 0;
  2581. font-weight: bold;
  2582. color: #333;
  2583. }
  2584. /* 内容待定 */
  2585. .headers_Custom {
  2586. div {
  2587. padding: 5px 30px;
  2588. font-size: 16px;
  2589. &>span {
  2590. color: rgb(226, 118, 10);
  2591. }
  2592. }
  2593. }
  2594. .back {
  2595. color: #303133;
  2596. font-weight: 700;
  2597. }
  2598. .icon-img {
  2599. display: block;
  2600. width: 30px;
  2601. height: 30px;
  2602. }
  2603. .Enclosure {
  2604. width: 100%;
  2605. background-color: #fff;
  2606. padding: 20px;
  2607. box-sizing: border-box;
  2608. margin-bottom: 15px;
  2609. border-radius: 6px;
  2610. border: 1px solid #ebeef5;
  2611. transition: all 0.2s ease-in-out;
  2612. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  2613. }
  2614. .FeeEnclosure{
  2615. /deep/ table {
  2616. width: 100% !important;
  2617. }
  2618. /deep/ .cell {
  2619. text-align: center;
  2620. }
  2621. /deep/ .el-table__empty-block{
  2622. width: 100% !important;
  2623. }
  2624. }
  2625. /deep/ {
  2626. .el-input {
  2627. &.is-disabled {
  2628. .el-input__inner {
  2629. color: #333;
  2630. }
  2631. }
  2632. }
  2633. }
  2634. </style>