Underwrite.vue 95 KB

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