Underwrite.vue 96 KB

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