TaskpoolAll.vue 101 KB

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