processing.vue 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322
  1. <template>
  2. <div class="againAssign">
  3. <div class="conentBox">
  4. <div class="header">处理方案</div>
  5. <div v-if="modelData.incident.id" class="conent">
  6. <div class="navBar">
  7. <div
  8. class="fl"
  9. :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
  10. >
  11. <a
  12. :class="{ active: actives == 'info' }"
  13. href="javascript:;"
  14. @click="toInfo('info')"
  15. >事件信息</a
  16. >
  17. </div>
  18. <!-- <div
  19. class="fl"
  20. :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
  21. >
  22. <a
  23. :class="{ active: actives == 'handlerLog' }"
  24. href="javascript:;"
  25. @click="toInfo('handlerLog')"
  26. >处理日志</a>
  27. </div> -->
  28. <div
  29. class="fl"
  30. :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
  31. >
  32. <a
  33. :class="{ active: actives == 'progress' }"
  34. href="javascript:;"
  35. @click="toInfo('progress')"
  36. >处理进度</a
  37. >
  38. </div>
  39. <div
  40. class="fl"
  41. v-if="modelData.incident.handlerUser.id == loginUser.id"
  42. >
  43. <a
  44. :class="{ active: actives == 'handlerInfo' }"
  45. href="javascript:;"
  46. @click="toInfo('handlerInfo')"
  47. >处理信息</a
  48. >
  49. </div>
  50. </div>
  51. <div class="label headtop" id="info">事件信息</div>
  52. <div class="info">
  53. <div class="head">
  54. <p>
  55. <i class="iconfont icon-zuixinbaoxiu newPapir"></i>
  56. 事件编号:{{ modelData.incident.incidentsign }}
  57. <span class="fr btn chulizhong">{{
  58. modelData.incident.state.name
  59. }}</span>
  60. </p>
  61. </div>
  62. <p>
  63. <span class="fl">事件分类</span>
  64. <span class="fr">{{ modelData.incident.category.category }}</span>
  65. </p>
  66. <!-- <p>
  67. <span class="fl">事件主题</span>
  68. <span class="fr">{{modelData.incident.title}}</span>
  69. </p> -->
  70. <p class="desc">
  71. <span class="fl">事件描述</span>
  72. <span
  73. class="grayFont fr"
  74. v-html="modelData.incident.description"
  75. ></span>
  76. </p>
  77. <div class="shows" id="shows">
  78. <p v-if="valConfig == 2">
  79. <span class="fl">报修科室</span>
  80. <span class="fr">{{
  81. modelData.incident.department
  82. ? modelData.incident.department.dept
  83. : ""
  84. }}</span>
  85. </p>
  86. <p v-if="valConfig == 1">
  87. <span class="fl">报修人</span>
  88. <span class="fr">{{ modelData.incident.requester.name }}</span>
  89. </p>
  90. <p v-if="valConfig == 2">
  91. <span class="fl">联系人</span>
  92. <span class="fr">{{ modelData.incident.contacts }}</span>
  93. </p>
  94. <p>
  95. <span class="fl">联系电话</span>
  96. <span
  97. class="fr"
  98. v-if="!modelData.incident.contactsInformation"
  99. ></span>
  100. <span class="fr" v-if="modelData.incident.contactsInformation"
  101. ><a :href="'tel:' + modelData.incident.contactsInformation"
  102. ><i class="iconfont icon-shouji"></i
  103. >{{ modelData.incident.contactsInformation }}</a
  104. ></span
  105. >
  106. </p>
  107. <p>
  108. <span class="fl">联系地址</span>
  109. <span class="fr">{{ modelData.incident.houseNumber || "" }}</span>
  110. </p>
  111. <p class="boeder_B">
  112. <span class="fl">事件来源</span>
  113. <span class="fr">{{ modelData.incident.source.name }}</span>
  114. </p>
  115. <!-- <p>
  116. <span class="fl">影响度</span>
  117. <span class="fr">{{modelData.incident.influence?modelData.incident.influence.name:''}}</span>
  118. </p>
  119. <p>
  120. <span class="fl">紧急度</span>
  121. <span class="fr">{{modelData.incident.emergency?modelData.incident.emergency.name:''}}</span>
  122. </p> -->
  123. <p>
  124. <span class="fl">受理人</span>
  125. <span class="fr">{{
  126. modelData.incident.acceptUser
  127. ? modelData.incident.acceptUser.name
  128. : ""
  129. }}</span>
  130. </p>
  131. <p>
  132. <span class="fl">处理人</span>
  133. <span class="fr">{{
  134. modelData.incident.handlerUser
  135. ? modelData.incident.handlerUser.name
  136. : ""
  137. }}</span>
  138. </p>
  139. <p>
  140. <span class="fl">处理人电话</span>
  141. <span class="fr" v-if="!modelData.incident.handlerUser"></span>
  142. <span class="fr" v-if="modelData.incident.handlerUser"
  143. ><a :href="'tel:' + modelData.incident.handlerUser.phone"
  144. ><i class="iconfont icon-shouji"></i
  145. >{{ modelData.incident.handlerUser.phone }}</a
  146. ></span
  147. >
  148. </p>
  149. <p>
  150. <span class="fl">优先级</span>
  151. <span class="fr">{{
  152. modelData.incident.priority
  153. ? modelData.incident.priority.name
  154. : ""
  155. }}</span>
  156. </p>
  157. <p>
  158. <span class="fl">逾期响应时间</span>
  159. <span class="fr">{{
  160. modelData.incident.overdueResponseDate
  161. }}</span>
  162. </p>
  163. <p>
  164. <span class="fl">逾期解决时间</span>
  165. <span class="fr">{{ modelData.incident.overdueTime }}</span>
  166. </p>
  167. <p>
  168. <span class="fl">区域</span>
  169. <span class="fr">{{
  170. modelData.incident.place
  171. ? modelData.incident.place.area.area
  172. : "--"
  173. }}</span>
  174. </p>
  175. <p class="boeder_B">
  176. <span class="fl">地点</span>
  177. <span class="fr">{{
  178. modelData.incident.place ? modelData.incident.place.place : "--"
  179. }}</span>
  180. </p>
  181. <div v-if="hcsjList.length">
  182. <p>耗材</p>
  183. <div class="hcTable">
  184. <table>
  185. <tr>
  186. <td>耗材名称</td>
  187. <td>价格</td>
  188. <td>数量</td>
  189. </tr>
  190. <tr v-for="(item, i) in hcsjList" :key="i">
  191. <td>{{ item.consumable.name }}</td>
  192. <td>{{ item.extra1 }}</td>
  193. <td>{{ item.consumablesSum }}</td>
  194. </tr>
  195. </table>
  196. </div>
  197. </div>
  198. <p v-if="wxIncidentWithCmdb == 1">
  199. <span class="fl">资产</span>
  200. <span class="fr">{{ modelData.incident.assetId || "无" }}</span>
  201. </p>
  202. <!-- <p v-if="modelData.incident.synergeticReason">
  203. <span class="fl" >协同原因</span>
  204. <span class="fr">{{modelData.incident.synergeticReason}}</span>
  205. </p>
  206. <p v-if="modelData.isupreason">
  207. <span class="fl">升级原因</span>
  208. <span class="fr">{{modelData.isupreason}}</span>
  209. </p>
  210. <p v-if="modelData.transferReason">
  211. <span class="fl">转派原因</span>
  212. <span class="fr" >{{modelData.transferReason}}</span>
  213. </p> -->
  214. </div>
  215. <p class="info_hide">
  216. <span class="fl hide" @click="hides()" v-if="!item_hides"
  217. >展开详情 >></span
  218. >
  219. <span class="fl hide" @click="hides()" v-if="item_hides"
  220. >隐藏详情<<</span
  221. >
  222. </p>
  223. <div class="imgs-container" v-if="imgs.length">
  224. <div class="imgs-cont">
  225. <img
  226. v-if="
  227. img.suffix == 'jpeg' ||
  228. img.suffix == 'jpg' ||
  229. img.suffix == 'gif' ||
  230. img.suffix == 'png' ||
  231. img.suffix == 'svg' ||
  232. img.suffix == 'pdf'
  233. "
  234. :src="img.previewUrl"
  235. v-for="(img, index) in imgs"
  236. class="imgs"
  237. />
  238. <p v-else>
  239. <a :href="[img.previewUrl]">{{ img.name }}</a>
  240. </p>
  241. </div>
  242. </div>
  243. <!-- <HandlerLog :data="modelData.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
  244. <div class="label" id="progress">处理进度</div>
  245. <div
  246. :class="{ progress: true, progressHide: !pro_hides }"
  247. id="progressBox"
  248. >
  249. <div class="progress_info" v-for="item in progressInfo">
  250. <div class="progress_info_L">{{ item.activityName }}</div>
  251. <div class="progress_info_R">
  252. <div class="time">
  253. <i
  254. :class="{
  255. iconfont: true,
  256. 'icon-icon_weizuo': item.endTime != '',
  257. 'icon-icon_zhengzaijinx': item.endTime == '',
  258. }"
  259. ></i>
  260. <span class="text1">
  261. {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
  262. <template v-if="item.userName">
  263. ,{{ item.userName }}
  264. </template>
  265. </span>
  266. </div>
  267. <div :class="{ cont: true, blue: item.endTime != '' }">
  268. <p class="text2" v-if="item.desc" v-html="item.desc"></p>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <p class="info_hide">
  274. <span class="fl hide" @click="proHides()">{{
  275. pro_hides ? "隐藏详情 <<" : "展开详情 >>"
  276. }}</span>
  277. </p>
  278. <div v-if="modelData.incident.handlerUser.id == loginUser.id">
  279. <div class="label" id="handlerInfo">处理信息</div>
  280. <!-- 添加耗材 start -->
  281. <div style="margin-top:16px;margin-bottom:16px;">
  282. <div v-for="(item, i) in hcList" :key="i" class="hcList">
  283. <cube-select
  284. placeholder="请选择耗材"
  285. class="hcItem"
  286. v-model="item.assetConsumablesId"
  287. :options="hcs"
  288. ></cube-select>
  289. <cube-input
  290. type="number"
  291. v-model="item.extra1"
  292. placeholder="请输入价格"
  293. class="hcItem"
  294. ></cube-input>
  295. <cube-input
  296. type="number"
  297. v-model="item.consumablesSum"
  298. placeholder="请输入数量"
  299. class="hcItem"
  300. ></cube-input>
  301. <span
  302. class="icon iconfont icon-shanchu hcItemClose"
  303. @click="removeHc(item.id)"
  304. ></span>
  305. </div>
  306. </div>
  307. <div
  308. class="addHc"
  309. @click="addHc()"
  310. v-if="incidentWithConsumable == 1"
  311. >
  312. <i class="cubeic-add"></i>增加耗材
  313. </div>
  314. <!-- 添加耗材 end -->
  315. <div class="handlerInfo">
  316. <cube-form
  317. :model="model"
  318. @validate="validateHandler"
  319. @submit="submitHandler"
  320. >
  321. <cube-form-group>
  322. <!-- <cube-form-item :field="fields[12]" class="btn_plcaeholde"> -->
  323. <!-- <cube-button @click="showDatePicker">{{model.dateValue || 'Please select date'}}</cube-button> -->
  324. <!-- <date-picker ref="datePicker" :min="[2008, 8, 8]" :max="[2020, 10, 20]" @select="dateSelectHandler"></date-picker> -->
  325. <!-- </cube-form-item> -->
  326. <!-- <cube-form-item :field="fields[13]" class="btn_plcaeholde"></cube-form-item> -->
  327. <div class="handleRadio">
  328. <cube-radio-group
  329. v-model="order"
  330. :options="handleTypes"
  331. position="right"
  332. :hollow-style="true"
  333. />
  334. </div>
  335. <cube-form-item
  336. :field="fields[0]"
  337. v-if="order == 1"
  338. ></cube-form-item>
  339. <cube-form-item
  340. :field="fields[1]"
  341. class="btn_plcaeholde"
  342. v-if="order == 1"
  343. >
  344. <cube-button @click="showCategoryPicker()">{{
  345. selectedCategoryTxt
  346. ? selectedCategoryTxt
  347. : "请选择事件分类"
  348. }}</cube-button>
  349. </cube-form-item>
  350. <cube-form-item
  351. :field="fields[2]"
  352. v-if="order == 1"
  353. ></cube-form-item>
  354. <cube-form-item
  355. :field="fields[3]"
  356. class="incidentTitle"
  357. v-if="order == 1"
  358. >
  359. <div class="titleRefer">
  360. <textarea
  361. class="titleTxtArea fl"
  362. placeholder="请输入处理方案"
  363. v-model="incidentTitle"
  364. @input="inpTitle()"
  365. ></textarea>
  366. <span class="abtn fl" @click="referKnowledge()"
  367. >引入知识库</span
  368. >
  369. </div>
  370. </cube-form-item>
  371. <div class="label formLabel" v-if="order == 1">
  372. 报修图片
  373. <span>(最多可上传3张JPG或PNG,每张不能超过10M)</span>
  374. </div>
  375. <div class="uplod" v-if="order == 1">
  376. <cube-upload
  377. ref="upload"
  378. :max="3"
  379. :action="action"
  380. :simultaneous-uploads="3"
  381. @files-added="filesAdded"
  382. @file-submitted="fileSubmitted"
  383. />
  384. </div>
  385. <cube-form-item
  386. :field="fields[4]"
  387. v-if="order == 1"
  388. ></cube-form-item>
  389. <cube-form-item
  390. :field="fields[5]"
  391. class="btn_plcaeholde"
  392. v-if="order == 1 && !!model.knowledge"
  393. ></cube-form-item>
  394. <cube-form-item
  395. :field="fields[14]"
  396. v-if="order == 1"
  397. ></cube-form-item>
  398. <cube-form-item
  399. :field="fields[10]"
  400. v-if="order == 1 && !!model.isHelper"
  401. >
  402. <div class="synerBox">
  403. <cube-checkbox-group
  404. v-model="synergeticChecked"
  405. :options="synergeticList"
  406. />
  407. </div>
  408. </cube-form-item>
  409. <cube-form-item
  410. :field="fields[11]"
  411. v-if="order == 1 && !!model.isHelper"
  412. ></cube-form-item>
  413. <cube-form-item
  414. :field="fields[6]"
  415. v-if="order == 2"
  416. ></cube-form-item>
  417. <!-- <cube-form-item
  418. :field="fields[15]"
  419. v-if="order == 5"
  420. ></cube-form-item> -->
  421. <cube-form-item
  422. :field="fields[7]"
  423. v-if="order == 2"
  424. ></cube-form-item>
  425. <cube-form-item
  426. :field="fields[8]"
  427. v-if="order == 3"
  428. ></cube-form-item>
  429. <cube-form-item
  430. :field="fields[9]"
  431. v-if="order == 3"
  432. ></cube-form-item>
  433. <!-- <cube-form-item
  434. :field="fields[16]"
  435. class="incidentTitle"
  436. >
  437. <div class="titleRefer">
  438. <textarea
  439. style="margin-top:0.1rem;width:100%;"
  440. class="titleTxtArea fl"
  441. placeholder="请输入处理日志"
  442. v-model="handlerLog"
  443. ></textarea>
  444. </div>
  445. </cube-form-item> -->
  446. </cube-form-group>
  447. <cube-form-group class="sub">
  448. <cube-button type="submit" @click="subVali()"
  449. >提交</cube-button
  450. >
  451. </cube-form-group>
  452. </cube-form>
  453. </div>
  454. </div>
  455. </div>
  456. </div>
  457. <load-ing v-if="!modelData.incident.id"></load-ing>
  458. <promp-ting
  459. :conents="promptingConent"
  460. :status="promptingStatus"
  461. ></promp-ting>
  462. </div>
  463. </div>
  464. </template>
  465. <script>
  466. import CubePage from "./../components/cube-page.vue";
  467. import CubeButtonGroup from "./../components/cube-button-group.vue";
  468. import DatePicker from "./../components/date-picker.vue";
  469. import CubeExtendPopup from "./../components/extend-popup.vue";
  470. import LoadIng from "./../views/loading.vue";
  471. import PrompTing from "./../views/prompting.vue";
  472. // import HandlerLog from "./../views/handlerLog.vue";
  473. // import host from '../request/host'
  474. // 知识库类型
  475. const solution = {
  476. props: {
  477. value: {
  478. default() {
  479. return [];
  480. },
  481. },
  482. },
  483. data() {
  484. return {
  485. selected: [],
  486. selectData: [],
  487. initVal: JSON.parse(localStorage.getItem("solution")) || [0, 0, 0],
  488. };
  489. },
  490. render(createElement) {
  491. return createElement(
  492. "cube-button",
  493. {
  494. on: {
  495. click: this.showPicker,
  496. },
  497. },
  498. this.selected.length
  499. ? this.selected[this.selected.length - 1]
  500. : "请选择知识库类型"
  501. );
  502. },
  503. created() {
  504. this.getTree();
  505. },
  506. mounted() {},
  507. methods: {
  508. showPicker() {
  509. this.picker.show();
  510. },
  511. selectHandler(selectedVal, selectedIndex, selectedTxt) {
  512. var selected = [];
  513. selectedTxt.forEach(function (v, i) {
  514. if (v != "") {
  515. selected.push(v);
  516. }
  517. });
  518. this.selected = selected;
  519. this.$emit("input", selectedVal);
  520. localStorage.setItem("solution", JSON.stringify(selectedIndex));
  521. },
  522. // 获取事件分类数据
  523. getTree() {
  524. let that = this;
  525. that.$http
  526. .post("service/solution/fetchDataList/solutionType", {
  527. idx: 0,
  528. sum: 100,
  529. })
  530. .then(function (res) {
  531. // console.log(res);
  532. var list = res.data.list;
  533. var tree = [];
  534. list.forEach((v, i) => {
  535. if (!v.parent) {
  536. tree[i] = {
  537. value: v.id,
  538. text: v.typeName,
  539. children: [],
  540. };
  541. } else {
  542. tree.forEach((val, idx) => {
  543. if (
  544. v.parent &&
  545. !v.parent.parent &&
  546. val.text == v.parent.typeName
  547. ) {
  548. tree[idx].children.push({
  549. value: v.id,
  550. text: v.typeName,
  551. children: [],
  552. });
  553. } else if (v.parent.parent) {
  554. tree[idx].children.forEach((value, index) => {
  555. if (value.text == v.parent.typeName) {
  556. tree[idx].children[index].children.push({
  557. value: v.id,
  558. text: v.typeName,
  559. });
  560. }
  561. });
  562. }
  563. });
  564. }
  565. });
  566. that.selectData = tree;
  567. that.picker = that.$createCascadePicker({
  568. title: "知识库类型选择",
  569. data: that.selectData,
  570. selectedIndex: that.initVal,
  571. onSelect: that.selectHandler,
  572. });
  573. });
  574. },
  575. },
  576. };
  577. export default {
  578. data() {
  579. return {
  580. loginUser: JSON.parse(localStorage.getItem("loginUser")),
  581. incidentWithConsumable: localStorage.getItem("incidentWithConsumable"), //是否绑定耗材
  582. wxIncidentWithCmdb: localStorage.getItem("wxIncidentWithCmdb"), //是否绑定资产
  583. valConfig: JSON.parse(localStorage.getItem("valConfig")) - 0, //报修主体
  584. id: "",
  585. resignComment: "", //重新指派原因
  586. item_hides: false,
  587. actives: "info",
  588. processInstanceId: "",
  589. progressInfo: [], //处理进度
  590. imgs: [], //图片
  591. model: {}, //提交数据
  592. validity: {},
  593. valid: undefined,
  594. action: {
  595. target:
  596. this.$host + "/service/common/common/uploadAttachment/incident/",
  597. data: {},
  598. },
  599. isUploading: false,
  600. loadShow: false,
  601. pro_hides: false, //展开/收起处理进度
  602. name: "",
  603. phone: "",
  604. label: "incidentInfo", //顶部快速定位
  605. modelData: {
  606. incident: {},
  607. }, //上传的model
  608. incidentTitle: "", //处理方案
  609. handlerLog: "", //处理日志
  610. referenceInfo: {}, //引用信息
  611. selectedCategoryTxt: "", //事件分类选中展示
  612. selectedAreaId: "", //区域选中id--seimin
  613. selectedAreaName: "", //区域选中名称--seimin
  614. selectedPlaceId: "", //地点选中id--seimin
  615. selectedPlaceName: "", //地点选中名称--seimin
  616. model: {
  617. handleCategory: "", //处理方式
  618. closecode: "", //关闭代码
  619. category: [], //确认事件分类
  620. handleDescription: "", //处理方案
  621. knowledge: false, //是否提交知识库
  622. isHelper: false, //是否需要协同
  623. solutionType: [], //知识库类型
  624. handlerUser: "", //升级/转派对象
  625. isupreason: "", //升级原因
  626. transferReason: "", //转派原因
  627. synergeticChecked: [], //选中协同对象
  628. synergeticReason: "", //协同原因
  629. selectArea: "",
  630. selectPlace: "",
  631. },
  632. // showPrompting:false,
  633. promptingConent: "",
  634. promptingStatus: "",
  635. order: 1, //处理方式 1:直接处理,2:升级,3:转派,4:协同
  636. handleCategoryArr: [], //处理方式数组
  637. closecodeArr: [], //关闭代码数组
  638. // handlerUserArr: [], //处理人数组
  639. synergeticList: [], //协同对象列表
  640. synergeticChecked: [], //选中协同对象
  641. handleTypes: [
  642. {
  643. label: "直接处理",
  644. value: 1,
  645. },
  646. {
  647. label: "升级",
  648. value: 2,
  649. },
  650. {
  651. label: "转派",
  652. value: 3,
  653. },
  654. // {
  655. // label: "指派",
  656. // value: 5
  657. // }
  658. // {
  659. // label: "协同",
  660. // value: 4
  661. // }
  662. ],
  663. vali: false,
  664. fields: [
  665. {
  666. type: "select",
  667. modelKey: "handleCategory",
  668. label: "处理方式:",
  669. props: {
  670. options: this.handleCategoryArr,
  671. title: "请选择处理方式",
  672. placeholder: "请选择处理方式",
  673. },
  674. rules: {
  675. required: true,
  676. },
  677. },
  678. {
  679. component: "button",
  680. modelKey: "category",
  681. label: "确认事件分类:",
  682. rules: {
  683. required: true,
  684. },
  685. },
  686. {
  687. type: "select",
  688. modelKey: "closecode",
  689. label: "关闭代码:",
  690. props: {
  691. options: this.closecodeArr,
  692. title: "请选择关闭代码",
  693. placeholder: "请选择关闭代码",
  694. },
  695. rules: {
  696. required: true,
  697. },
  698. },
  699. {
  700. type: "textarea",
  701. modelKey: "handleDescription",
  702. label: "处理方案:",
  703. props: {
  704. placeholder: "请填写处理方案",
  705. },
  706. rules: {
  707. required: true,
  708. },
  709. debounce: 100,
  710. },
  711. {
  712. type: "switch",
  713. modelKey: "knowledge",
  714. label: "是否提交知识库:",
  715. rules: {
  716. required: false,
  717. },
  718. },
  719. {
  720. component: solution,
  721. modelKey: "solutionType",
  722. label: "知识库类型:",
  723. rules: {
  724. required: true,
  725. },
  726. messages: {
  727. required: "",
  728. },
  729. },
  730. {
  731. type: "select",
  732. modelKey: "handlerUser",
  733. label: "升级对象:",
  734. props: {
  735. options: [],
  736. placeholder: "请选择升级对象",
  737. },
  738. rules: {
  739. required: true,
  740. },
  741. },
  742. {
  743. type: "input",
  744. modelKey: "isupreason",
  745. label: "升级原因:",
  746. props: {
  747. placeholder: "请输入升级原因",
  748. },
  749. rules: {
  750. required: true,
  751. },
  752. },
  753. {
  754. type: "select",
  755. modelKey: "handlerUser",
  756. label: "转派对象:",
  757. props: {
  758. options: [],
  759. placeholder: "请选择转派对象",
  760. },
  761. rules: {
  762. required: true,
  763. },
  764. },
  765. {
  766. type: "input",
  767. modelKey: "transferReason",
  768. label: "转派原因:",
  769. props: {
  770. placeholder: "请输入转派原因",
  771. },
  772. rules: {
  773. required: true,
  774. },
  775. },
  776. {
  777. type: "checkbox-group",
  778. modelKey: "synergeticChecked",
  779. label: "协同对象:",
  780. props: {
  781. options: [],
  782. placeholder: "请选择协同对象",
  783. },
  784. rules: {
  785. required: false,
  786. },
  787. },
  788. {
  789. type: "input",
  790. modelKey: "synergeticReason",
  791. label: "协同原因:",
  792. props: {
  793. placeholder: "请输入协同原因",
  794. },
  795. rules: {
  796. required: false,
  797. },
  798. },
  799. {
  800. type: "select",
  801. modelKey: "selectArea",
  802. label: "区域:",
  803. props: {
  804. options: [],
  805. title: "请选择区域:",
  806. placeholder: "请选择区域:",
  807. },
  808. events: {
  809. change: (id, index, text) => {
  810. // console.log(id,index,text,9999)
  811. this.getPlaceList(id).then((res) => {
  812. this.selectedAreaId = id;
  813. this.selectedAreaName = text;
  814. // {{modelData.incident.place?modelData.incident.place.area.area:'--'}}
  815. console.log(this.modelData, "asad");
  816. if (this.modelData.incident.place) {
  817. this.$set(this.modelData.incident.place, "area", {
  818. id,
  819. area: text,
  820. });
  821. } else {
  822. this.$set(this.modelData.incident, "place", {
  823. area: {
  824. id,
  825. area: text,
  826. },
  827. });
  828. }
  829. });
  830. },
  831. },
  832. rules: {
  833. required: true,
  834. },
  835. },
  836. {
  837. type: "select",
  838. modelKey: "selectPlace",
  839. label: "地点:",
  840. props: {
  841. options: [],
  842. title: "请选择地点:",
  843. placeholder: "请选择地点:",
  844. },
  845. events: {
  846. change: (id, index, text) => {
  847. this.selectedPlaceId = id;
  848. this.selectedPlaceName = text;
  849. this.$set(
  850. this.modelData.incident,
  851. "houseNumber",
  852. this.selectedAreaName + this.selectedPlaceName
  853. );
  854. if (this.modelData.incident.place) {
  855. this.$set(this.modelData.incident.place, "place", text);
  856. this.$set(this.modelData.incident.place, "id", id);
  857. } else {
  858. this.$set(this.modelData.incident, "place", {
  859. id,
  860. place: text,
  861. });
  862. }
  863. },
  864. },
  865. rules: {
  866. required: true,
  867. },
  868. },
  869. {
  870. type: "switch",
  871. modelKey: "isHelper",
  872. label: "是否需要协同:",
  873. rules: {
  874. required: false,
  875. },
  876. },
  877. {
  878. type: "select",
  879. modelKey: "handlerUser",
  880. label: "指派对象:",
  881. props: {
  882. options: [],
  883. placeholder: "请选择指派对象",
  884. },
  885. rules: {
  886. required: true,
  887. },
  888. },
  889. {
  890. type: "textarea",
  891. modelKey: "handlerLog",
  892. label: "处理日志:",
  893. props: {
  894. placeholder: "请填写处理日志",
  895. },
  896. rules: {
  897. required: false,
  898. },
  899. debounce: 100,
  900. },
  901. ],
  902. hcList: [], //绑定的耗材列表
  903. idMock: 0, //自增id,mock
  904. hcs: [], //耗材列表
  905. hcsjList: [], //绑定的耗材列表,展示
  906. };
  907. },
  908. watch: {
  909. // 监听synergeticChecked变化
  910. synergeticChecked: {
  911. handler: function (n, o) {
  912. this.model.synergeticChecked = n;
  913. },
  914. },
  915. },
  916. components: {
  917. LoadIng,
  918. // HandlerLog
  919. },
  920. methods: {
  921. // 获取耗材列表
  922. getHcs() {
  923. this.$http
  924. .post("service/bpm/data/fetchDataList/consumable", {
  925. idx: 0,
  926. sum: 1000,
  927. consumable: {isInventory:1},
  928. })
  929. .then((res) => {
  930. if (res.data.status == 200) {
  931. this.hcs = res.data.list.map((v) => ({
  932. value: v.id,
  933. text: v.name,
  934. }));
  935. }
  936. });
  937. },
  938. // 增加耗材
  939. addHc() {
  940. let sourceId = this.modelData.incident.id;
  941. // consumablesSum 耗材数量
  942. // assetConsumablesId 耗材id
  943. // sourceId 事件id
  944. this.hcList.push({
  945. id: ++this.idMock,
  946. type: 2,
  947. consumablesSum: null,
  948. assetConsumablesId: null,
  949. sourceId,
  950. extra1: null,
  951. source: 1627,
  952. });
  953. },
  954. // 删除耗材
  955. removeHc(id) {
  956. this.hcList = this.hcList.filter((v) => v.id != id);
  957. },
  958. //获取区域
  959. getAreaList() {
  960. return new Promise((resolve, reject) => {
  961. this.$http
  962. .post("service/user/data/fetchDataList/area", { idx: 0, sum: 1000 })
  963. .then((res) => {
  964. if (res.data.status == 200) {
  965. let arr = res.data.list.map((item) => {
  966. return { value: item.id, text: item.area };
  967. });
  968. // console.log(arr,2222)
  969. // this.selectedAreaArr = arr;
  970. this.fields.forEach((item) => {
  971. if (item.modelKey === "selectArea") {
  972. item.props.options = arr;
  973. }
  974. });
  975. resolve(res);
  976. }
  977. });
  978. });
  979. },
  980. //根据区域获取地点
  981. getPlaceList(id) {
  982. return new Promise((resolve, reject) => {
  983. this.$http
  984. .post("service/user/data/fetchDataList/place", {
  985. idx: 0,
  986. sum: 1000,
  987. place: { area: { id } },
  988. })
  989. .then((res) => {
  990. if (res.data.status == 200) {
  991. let arr = res.data.list.map((item) => {
  992. return { value: item.id, text: item.place };
  993. });
  994. // console.log(arr,2222)
  995. // this.selectedAreaArr = arr;
  996. this.fields.forEach((item) => {
  997. if (item.modelKey === "selectPlace") {
  998. item.props.options = arr;
  999. }
  1000. });
  1001. resolve(res);
  1002. }
  1003. });
  1004. });
  1005. },
  1006. // 获取事件数据
  1007. getParamsData() {
  1008. var that = this;
  1009. that.$http
  1010. .get(
  1011. "/service/form/renderForm/handlerform/" +
  1012. that.processInstanceId +
  1013. "/" +
  1014. that.loginUser.id +
  1015. "/" +
  1016. that.id,
  1017. {}
  1018. )
  1019. .then(function (res) {
  1020. console.log(res.data, 666);
  1021. that.modelData = res.data.model;
  1022. //seimin
  1023. localStorage.setItem("modelData", JSON.stringify(that.modelData));
  1024. });
  1025. },
  1026. // 获取图片
  1027. getImgs() {
  1028. var that = this;
  1029. that.$http
  1030. .get(
  1031. "service/common/common/listAttachment/incident/" +
  1032. that.processInstanceId,
  1033. {}
  1034. )
  1035. .then(function (res) {
  1036. that.imgs = res.data.data.splice(0, 3);
  1037. });
  1038. },
  1039. // 事件分类回显
  1040. setCategory() {
  1041. let that = this;
  1042. // console.log(898);
  1043. // console.log(that.modelData.incident.category);
  1044. // let cate = that.modelData.incident.category;
  1045. if (localStorage.getItem("referenceInfo")) {
  1046. that.referenceInfo = JSON.parse(localStorage.getItem("referenceInfo"));
  1047. // that.incidentTitle = that.model.handleDescription =
  1048. // that.referenceInfo.content;
  1049. //baba
  1050. var selectedVal = []; //存id,对应value
  1051. var selectedIndex = []; //存索引
  1052. var selectedTxt = []; //存名称
  1053. if (this.referenceInfo.category) {
  1054. console.log(this.selectData, "所有事件分类");
  1055. console.log(this.referenceInfo.category, "返回的数据");
  1056. var category = this.referenceInfo.category;
  1057. selectedVal = [category.id]; //存id,对应value
  1058. // selectedVal
  1059. if (category.parentCategory) {
  1060. //上级
  1061. selectedVal.unshift(category.parentCategory.id);
  1062. if (category.parentCategory.parentCategory) {
  1063. //上上级
  1064. selectedVal.unshift(category.parentCategory.parentCategory.id);
  1065. }
  1066. }
  1067. // selectedIndex selectedTxt
  1068. //一级
  1069. if (selectedVal[0]) {
  1070. this.selectData.forEach(function (v, i) {
  1071. if (v.value == selectedVal[0]) {
  1072. selectedIndex.push(i);
  1073. selectedTxt.push(v.text);
  1074. }
  1075. });
  1076. // 二级
  1077. if (selectedVal[1]) {
  1078. this.selectData[selectedIndex[0].toString()].children.forEach(
  1079. function (v, i) {
  1080. if (v.value == selectedVal[1]) {
  1081. selectedIndex.push(i);
  1082. selectedTxt.push(v.text);
  1083. }
  1084. }
  1085. );
  1086. // 三级
  1087. if (selectedVal[2]) {
  1088. this.selectData[selectedIndex[0].toString()].children[
  1089. selectedIndex[1].toString()
  1090. ].children.forEach(function (v, i) {
  1091. if (v.value == selectedVal[2]) {
  1092. selectedIndex.push(i);
  1093. selectedTxt.push(v.text);
  1094. }
  1095. });
  1096. }
  1097. }
  1098. }
  1099. console.log(selectedVal, selectedIndex, selectedTxt, "获取的数据");
  1100. }
  1101. //回显
  1102. var selected = [];
  1103. selectedTxt.forEach(function (v, i) {
  1104. if (v != "") {
  1105. selected.push(v);
  1106. }
  1107. });
  1108. this.selected = selected;
  1109. this.selectedCategoryTxt = selected.length
  1110. ? selected[selected.length - 1]
  1111. : "";
  1112. this.model.category = selectedVal;
  1113. localStorage.setItem("category", JSON.stringify(selectedIndex));
  1114. localStorage.setItem("categoryVal", JSON.stringify(selectedVal));
  1115. localStorage.setItem(
  1116. "selectedCategoryTxt",
  1117. JSON.stringify(this.selectedCategoryTxt)
  1118. );
  1119. }
  1120. },
  1121. // 获取处理进度
  1122. getProgressInfo() {
  1123. var that = this;
  1124. that.$http
  1125. .post(
  1126. "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
  1127. {}
  1128. )
  1129. .then(function (res) {
  1130. console.log(res.data);
  1131. that.progressInfo = res.data.data;
  1132. //处理日志startcaca
  1133. if (that.modelData.incident.handlerLogs) {
  1134. //添加日志
  1135. that.modelData.incident.handlerLogs.forEach((v) => {
  1136. that.progressInfo.push({
  1137. startTime: v.opTime,
  1138. endTime: 1,
  1139. desc: v.opValue,
  1140. userName: v.userName,
  1141. activityName: "事件处理",
  1142. });
  1143. });
  1144. }
  1145. //处理数据
  1146. that.progressInfo.forEach((v) => {
  1147. if (!v.endTime) {
  1148. v.endTime = 1;
  1149. }
  1150. v.startTime = new Date(v.startTime).getTime();
  1151. });
  1152. var kaishi = that.progressInfo.shift();
  1153. var jiedan = that.progressInfo.shift();
  1154. that.progressInfo.sort(function (o, c) {
  1155. return c.startTime - o.startTime;
  1156. });
  1157. that.progressInfo.length && (that.progressInfo[0].endTime = "");
  1158. that.progressInfo.push(jiedan);
  1159. that.progressInfo.push(kaishi);
  1160. console.log(that.progressInfo);
  1161. //处理日志end
  1162. });
  1163. },
  1164. //隐藏显示详情
  1165. hides() {
  1166. this.item_hides = !this.item_hides;
  1167. $("#shows").slideToggle();
  1168. },
  1169. // 处理进度隐藏/展开
  1170. proHides() {
  1171. if (!this.pro_hides) {
  1172. $("#progressBox").animate({
  1173. height: $("#progressBox")[0].scrollHeight,
  1174. });
  1175. } else {
  1176. $("#progressBox").animate({ height: "1.7rem" });
  1177. }
  1178. this.pro_hides = !this.pro_hides;
  1179. },
  1180. // 快速定位
  1181. toInfo(id) {
  1182. this.actives = id;
  1183. $("body,html").animate(
  1184. {
  1185. scrollTop:
  1186. $("#" + id).offset().top -
  1187. $(".header")[0].offsetHeight -
  1188. $(".navBar")[0].offsetHeight,
  1189. },
  1190. 260
  1191. );
  1192. },
  1193. // 输入处理方案
  1194. inpTitle() {
  1195. this.model.handleDescription = this.incidentTitle;
  1196. },
  1197. subVali() {
  1198. this.vali = true;
  1199. },
  1200. // 获取处理方式
  1201. getHandleCategory() {
  1202. var that = this;
  1203. this.$http
  1204. .post("service/common/common/getDictionary", {
  1205. key: "incident_handleCategory",
  1206. type: "list",
  1207. })
  1208. .then(function (res) {
  1209. res.data.forEach(function (v, i) {
  1210. that.handleCategoryArr.push({
  1211. text: v.name,
  1212. value: v.id,
  1213. });
  1214. });
  1215. that.fields[0].props.options = that.handleCategoryArr;
  1216. });
  1217. },
  1218. // 获取关闭代码
  1219. getClosecode() {
  1220. var that = this;
  1221. this.$http
  1222. .post("service/common/common/getDictionary", {
  1223. key: "incident_closecode",
  1224. type: "list",
  1225. })
  1226. .then(function (res) {
  1227. res.data.forEach(function (v, i) {
  1228. that.closecodeArr.push({
  1229. text: v.desc,
  1230. value: v.id,
  1231. });
  1232. });
  1233. that.fields[2].props.options = that.closecodeArr;
  1234. });
  1235. },
  1236. // 获取指派对象baba
  1237. getZpUser() {
  1238. var that = this;
  1239. var postData = {
  1240. idx: 0,
  1241. sum: 1000,
  1242. user: {
  1243. roledata: { rolecode: "first-line support" },
  1244. roledata2: { rolecode: "second-line support" },
  1245. selectType: "1",
  1246. },
  1247. };
  1248. this.$http
  1249. .post("service/user/data/fetchDataList/user", postData)
  1250. .then(function (res) {
  1251. var handlerUserArr = [];
  1252. res.data.list.forEach(function (v, i) {
  1253. handlerUserArr.push({
  1254. text: v.name,
  1255. value: v.id,
  1256. });
  1257. });
  1258. that.fields[15].props.options = handlerUserArr;
  1259. });
  1260. },
  1261. // 获取升级对象
  1262. getUpUser() {
  1263. var that = this;
  1264. var postData = {
  1265. idx: 0,
  1266. sum: 1000,
  1267. user: {
  1268. roledata: { rolecode: "second-line support" },
  1269. selectType: "1",
  1270. },
  1271. };
  1272. this.$http
  1273. .post("service/user/data/fetchDataList/user", postData)
  1274. .then(function (res) {
  1275. var handlerUserArr = [];
  1276. res.data.list.forEach(function (v, i) {
  1277. handlerUserArr.push({
  1278. text: v.name,
  1279. value: v.id,
  1280. });
  1281. });
  1282. that.fields[6].props.options = handlerUserArr;
  1283. });
  1284. },
  1285. // 获取转派对象
  1286. getRotateUser() {
  1287. var that = this;
  1288. var postData = {
  1289. idx: 0,
  1290. sum: 1000,
  1291. user: {
  1292. roledata: { rolecode: "first-line support" },
  1293. selectType: "1",
  1294. },
  1295. };
  1296. this.$http
  1297. .post("service/user/data/fetchDataList/user", postData)
  1298. .then(function (res) {
  1299. var handlerUserArr = [];
  1300. res.data.list.forEach(function (v, i) {
  1301. handlerUserArr.push({
  1302. text: v.name,
  1303. value: v.id,
  1304. });
  1305. });
  1306. that.fields[8].props.options = handlerUserArr;
  1307. });
  1308. },
  1309. // 获取协同对象
  1310. getSynerUser() {
  1311. var that = this;
  1312. var postData = {
  1313. idx: 0,
  1314. sum: 1000,
  1315. };
  1316. this.$http
  1317. .post("service/user/data/fetchDataList/user", postData)
  1318. .then(function (res) {
  1319. var handlerUserArr = [];
  1320. res.data.list.forEach(function (v, i) {
  1321. handlerUserArr.push({
  1322. label: v.name,
  1323. value: v.id,
  1324. });
  1325. });
  1326. that.fields[10].props.options = handlerUserArr;
  1327. that.synergeticList = handlerUserArr;
  1328. });
  1329. },
  1330. // 获取页面数据
  1331. getMessage() {
  1332. var that = this;
  1333. if (localStorage.getItem("model")) {
  1334. that.model = JSON.parse(localStorage.getItem("model"));
  1335. }
  1336. if (localStorage.getItem("modelData")) {
  1337. that.modelData = JSON.parse(localStorage.getItem("modelData"));
  1338. }
  1339. if (localStorage.getItem("referenceInfo")) {
  1340. that.referenceInfo = JSON.parse(localStorage.getItem("referenceInfo"));
  1341. that.incidentTitle = that.model.handleDescription =
  1342. that.referenceInfo.content;
  1343. }
  1344. if (localStorage.getItem("order")) {
  1345. that.order = localStorage.getItem("order") - 0;
  1346. }
  1347. if (localStorage.getItem("selectedCategoryTxt")) {
  1348. that.selectedCategoryTxt = JSON.parse(
  1349. localStorage.getItem("selectedCategoryTxt")
  1350. );
  1351. }
  1352. that.getProgressInfo();
  1353. },
  1354. // 事件分类
  1355. showCategoryPicker() {
  1356. this.categoryPicker.show();
  1357. },
  1358. selectCategoryHandler(selectedVal, selectedIndex, selectedTxt) {
  1359. console.log(selectedVal, selectedIndex, selectedTxt);
  1360. var selected = [];
  1361. selectedTxt.forEach(function (v, i) {
  1362. if (v != "") {
  1363. selected.push(v);
  1364. }
  1365. });
  1366. this.selected = selected;
  1367. this.selectedCategoryTxt = selected.length
  1368. ? selected[selected.length - 1]
  1369. : "";
  1370. this.model.category = selectedVal;
  1371. localStorage.setItem("category", JSON.stringify(selectedIndex));
  1372. localStorage.setItem("categoryVal", JSON.stringify(selectedVal));
  1373. localStorage.setItem(
  1374. "selectedCategoryTxt",
  1375. JSON.stringify(this.selectedCategoryTxt)
  1376. );
  1377. },
  1378. getIncidentcategory() {
  1379. var that = this;
  1380. this.$http
  1381. .post("service/bpm/data/fetchDataList/incidentcategory", {
  1382. idx: 0,
  1383. sum: 1000,
  1384. })
  1385. .then(function (res) {
  1386. var list = res.data.list;
  1387. var tree = [];
  1388. list.forEach((v, i) => {
  1389. if (!v.parent) {
  1390. tree[i] = {
  1391. value: v.id,
  1392. text: v.category,
  1393. children: [],
  1394. };
  1395. } else {
  1396. tree.forEach((val, idx) => {
  1397. if (
  1398. v.parent &&
  1399. !v.parent.parent &&
  1400. val.text == v.parent.category
  1401. ) {
  1402. tree[idx].children.push({
  1403. value: v.id,
  1404. text: v.category,
  1405. children: [],
  1406. });
  1407. } else if (v.parent.parent) {
  1408. tree[idx].children.forEach((value, index) => {
  1409. if (value.text == v.parent.category) {
  1410. tree[idx].children[index].children.push({
  1411. value: v.id,
  1412. text: v.category,
  1413. });
  1414. }
  1415. });
  1416. }
  1417. });
  1418. }
  1419. });
  1420. if (!localStorage.getItem("category")) {
  1421. let cate = that.modelData.incident.category;
  1422. let cateGrand =
  1423. cate.parentCategory &&
  1424. cate.parentCategory.parentCategory &&
  1425. cate.parentCategory.parentCategory.id;
  1426. let cateFa = cate.parentCategory && cate.parentCategory.id;
  1427. let cateSelf = cate.id;
  1428. console.log(cate, tree);
  1429. var i1 = 0,
  1430. i2 = 0,
  1431. i3 = 0;
  1432. var selectedVal = [];
  1433. var selectedIndex = [];
  1434. var selectedTxt = [];
  1435. tree.forEach((v, i) => {
  1436. if (v.value == cateGrand) {
  1437. selectedVal.push(v.value);
  1438. selectedIndex.push(i);
  1439. selectedTxt.push(v.text);
  1440. v.children.forEach((va, ind) => {
  1441. if (va.value == cateFa) {
  1442. selectedVal.push(va.value);
  1443. selectedIndex.push(ind);
  1444. selectedTxt.push(va.text);
  1445. va.children.forEach((val, idx) => {
  1446. if (val.value == cateSelf) {
  1447. selectedVal.push(val.value);
  1448. selectedIndex.push(idx);
  1449. selectedTxt.push(val.text);
  1450. }
  1451. });
  1452. }
  1453. });
  1454. }
  1455. });
  1456. console.log(selectedVal, selectedIndex, selectedTxt);
  1457. // console.log(i1,i2,i3);
  1458. // var cateData=[i1,i2,i3]
  1459. that.selectData = tree;
  1460. // 获取事件分类并设置
  1461. that.setCategory();
  1462. that.categoryPicker = that.$createCascadePicker({
  1463. title: "事件分类选择",
  1464. data: that.selectData,
  1465. selectedIndex: selectedIndex,
  1466. onSelect: that.selectCategoryHandler,
  1467. });
  1468. setTimeout(() => {
  1469. that.selectCategoryHandler(
  1470. selectedVal,
  1471. selectedIndex,
  1472. selectedTxt
  1473. );
  1474. }, 500);
  1475. } else {
  1476. that.selectData = tree;
  1477. // 获取事件分类并设置
  1478. that.setCategory();
  1479. that.categoryPicker = that.$createCascadePicker({
  1480. title: "事件分类选择",
  1481. data: that.selectData,
  1482. selectedIndex: JSON.parse(localStorage.getItem("category")) || [
  1483. 0, 0, 0,
  1484. ],
  1485. onSelect: that.selectCategoryHandler,
  1486. });
  1487. that.model.category = JSON.parse(
  1488. localStorage.getItem("categoryVal")
  1489. );
  1490. }
  1491. });
  1492. },
  1493. // 暂时存值
  1494. setLocalStroageData() {
  1495. var that = this;
  1496. var a1 = [],
  1497. a2 = [],
  1498. a3 = [],
  1499. category = [],
  1500. solutionType = [],
  1501. synergeticChecked = [];
  1502. that.model.category.forEach(function (v, i) {
  1503. if (v) {
  1504. a1.push(v);
  1505. }
  1506. });
  1507. category = a1;
  1508. that.model.solutionType.forEach(function (v, i) {
  1509. if (v) {
  1510. a2.push(v);
  1511. }
  1512. });
  1513. solutionType = a2;
  1514. that.synergeticChecked.forEach(function (v, i) {
  1515. a3.push({ id: v });
  1516. });
  1517. synergeticChecked = a3;
  1518. that.modelData.incident.category = {
  1519. id: category[category.length - 1],
  1520. };
  1521. that.modelData.loginUser = that.loginUser;
  1522. if (that.order == 1) {
  1523. // 直接处理
  1524. that.modelData.handler_code = "resolve";
  1525. that.modelData.msgflag = "申请关闭";
  1526. that.modelData.submit = "申请关闭";
  1527. that.modelData.incident.handleDescription =
  1528. that.model.handleDescription;
  1529. that.modelData.incident.handleCategory = {
  1530. id: that.model.handleCategory,
  1531. };
  1532. that.modelData.incident.closecode = { id: that.model.closecode };
  1533. that.modelData.isSolution = that.model.knowledge;
  1534. that.modelData.bpm_activiti = {
  1535. solutionType: {
  1536. id: solutionType[solutionType.length - 1],
  1537. },
  1538. };
  1539. // 协同
  1540. that.modelData.incident.synergeticReason = that.model.synergeticReason;
  1541. delete that.modelData.isupreason;
  1542. delete that.modelData.examine;
  1543. delete that.modelData.assignee;
  1544. delete that.modelData.transferReason;
  1545. that.modelData.incident.synergetic = synergeticChecked;
  1546. } else if (that.order == 2) {
  1547. // 升级
  1548. that.modelData.handler_code = "function";
  1549. that.modelData.msgflag = "升级";
  1550. that.modelData.submit = "升级";
  1551. that.modelData.isupreason = that.model.isupreason;
  1552. that.modelData.assignee = that.model.handlerUser;
  1553. that.modelData.examine = {
  1554. upgradeAuditor: { id: that.modelData.assignee },
  1555. };
  1556. delete that.modelData.transferReason;
  1557. delete that.modelData.incident.synergetic;
  1558. delete that.modelData.incident.synergeticReason;
  1559. if (that.modelData.isSolution) {
  1560. delete that.modelData.isSolution;
  1561. }
  1562. } else if (that.order == 3) {
  1563. // 转派
  1564. that.modelData.handler_code = "forward";
  1565. that.modelData.msgflag = "转派";
  1566. that.modelData.submit = "转派";
  1567. that.modelData.transferReason = that.model.transferReason;
  1568. that.modelData.assignee = that.model.handlerUser;
  1569. delete that.modelData.isupreason;
  1570. delete that.modelData.examine;
  1571. delete that.modelData.incident.synergetic;
  1572. delete that.modelData.incident.synergeticReason;
  1573. if (that.modelData.isSolution) {
  1574. delete that.modelData.isSolution;
  1575. }
  1576. }
  1577. that.model.fileUrl = "url";
  1578. that.loadShow = true;
  1579. },
  1580. // 处理方案引入知识库
  1581. referKnowledge() {
  1582. var that = this;
  1583. if (!that.model.handleDescription) {
  1584. alert("请输入处理方案");
  1585. return;
  1586. }
  1587. that.setLocalStroageData();
  1588. localStorage.setItem("modelData", JSON.stringify(that.modelData));
  1589. localStorage.setItem("model", JSON.stringify(that.model));
  1590. localStorage.setItem("order", that.order);
  1591. this.$router.push({
  1592. name: "ReferenceList",
  1593. params: { data: that.model.handleDescription },
  1594. });
  1595. },
  1596. // 新增耗材
  1597. addHcPost() {
  1598. //添加耗材发送请求 start
  1599. let data = JSON.parse(JSON.stringify(this.hcList));
  1600. data.forEach((v) => {
  1601. delete v.id;
  1602. });
  1603. return this.$http.post("service/cmdb/inOutStore/out", { data });
  1604. //添加耗材发送请求 end
  1605. },
  1606. async basePost() {
  1607. if (this.hcList.length) {
  1608. let flag = this.hcList.every(
  1609. (v) => v.consumablesSum && v.assetConsumablesId && v.extra1
  1610. );
  1611. if (!flag) {
  1612. this.$createDialog({
  1613. type: "alert",
  1614. title: "请填写必填项",
  1615. content: "耗材信息填写不完整",
  1616. icon: "cubeic-wrong",
  1617. }).show();
  1618. return;
  1619. }
  1620. console.log(this.hcList);
  1621. let re = await this.addHcPost();
  1622. if (re.data.status != 200) {
  1623. this.$createDialog({
  1624. type: "alert",
  1625. title: "提示",
  1626. content: re.data.msg,
  1627. icon: "cubeic-wrong",
  1628. }).show();
  1629. return;
  1630. }
  1631. }
  1632. let that = this;
  1633. if (this.order == 5) {
  1634. that.$http
  1635. .post(
  1636. "service/bpm/bpm/delegateTask/" + that.modelData.incident.taskId,
  1637. { assginee: that.model.handlerUser }
  1638. )
  1639. .then(function (res) {
  1640. if (res.data) {
  1641. $("#fade").fadeIn();
  1642. that.promptingConent = "恭喜您,提交成功!";
  1643. that.promptingStatus = true;
  1644. that.dialog = that
  1645. .$createDialog({
  1646. type: "alert",
  1647. title: "提交成功",
  1648. content: "点击返回首页",
  1649. icon: "cubeic-right",
  1650. onConfirm: (e, promptValue) => {
  1651. that.$router.push({ path: "/main" });
  1652. },
  1653. })
  1654. .show();
  1655. localStorage.removeItem("category");
  1656. localStorage.removeItem("model");
  1657. localStorage.removeItem("modelData");
  1658. localStorage.removeItem("referenceInfo");
  1659. localStorage.removeItem("solution");
  1660. localStorage.removeItem("order");
  1661. setTimeout(function () {
  1662. $("#fade").fadeOut();
  1663. }, 2000);
  1664. } else {
  1665. $("#fade").fadeIn();
  1666. that.promptingConent = "系统错误,请稍后再试!";
  1667. that.promptingStatus = false;
  1668. that.loadShow = false;
  1669. that.dialog = that
  1670. .$createDialog({
  1671. type: "alert",
  1672. title: "系统错误,请稍后再试!",
  1673. content: "点击返回首页",
  1674. icon: "cubeic-wrong",
  1675. onConfirm: (e, promptValue) => {
  1676. that.$router.push({ path: "/main" });
  1677. },
  1678. })
  1679. .show();
  1680. setTimeout(function () {
  1681. $("#fade").fadeOut();
  1682. }, 2000);
  1683. }
  1684. });
  1685. } else {
  1686. that.$http
  1687. .post(
  1688. "service/bpm/bpm/completeTask/" +
  1689. that.modelData.incident.taskId +
  1690. "/" +
  1691. that.loginUser.id,
  1692. that.modelData
  1693. )
  1694. .then(function (res) {
  1695. if (res.data) {
  1696. setTimeout(function () {
  1697. that.$refs.upload.start();
  1698. }, 100);
  1699. $("#fade").fadeIn();
  1700. that.promptingConent = "恭喜您,提交成功!";
  1701. that.promptingStatus = true;
  1702. that.dialog = that
  1703. .$createDialog({
  1704. type: "alert",
  1705. title: "提交成功",
  1706. content: "点击返回首页",
  1707. icon: "cubeic-right",
  1708. onConfirm: (e, promptValue) => {
  1709. that.$router.push({ path: "/main" });
  1710. },
  1711. })
  1712. .show();
  1713. localStorage.removeItem("category");
  1714. localStorage.removeItem("model");
  1715. localStorage.removeItem("modelData");
  1716. localStorage.removeItem("referenceInfo");
  1717. localStorage.removeItem("solution");
  1718. localStorage.removeItem("order");
  1719. setTimeout(function () {
  1720. $("#fade").fadeOut();
  1721. }, 2000);
  1722. } else {
  1723. $("#fade").fadeIn();
  1724. that.promptingConent = "系统错误,请稍后再试!";
  1725. that.promptingStatus = false;
  1726. that.loadShow = false;
  1727. that.dialog = that
  1728. .$createDialog({
  1729. type: "alert",
  1730. title: "系统错误,请稍后再试!",
  1731. content: "点击返回首页",
  1732. icon: "cubeic-wrong",
  1733. onConfirm: (e, promptValue) => {
  1734. that.$router.push({ path: "/main" });
  1735. },
  1736. })
  1737. .show();
  1738. setTimeout(function () {
  1739. $("#fade").fadeOut();
  1740. }, 2000);
  1741. }
  1742. });
  1743. }
  1744. },
  1745. // 提交
  1746. submitHandler() {
  1747. var that = this;
  1748. that.setLocalStroageData();
  1749. // that.modelData.incident.place = {
  1750. // area:{
  1751. // id:this.selectedAreaId,
  1752. // area:this.selectedAreaName
  1753. // },
  1754. // id:this.selectedPlaceId,
  1755. // place:this.selectedPlaceName
  1756. // };//增加区域地点
  1757. console.log(that.model, that.modelData, 11111);
  1758. // console.log(this.selectedPlaceId,this.selectedAreaId,8888);//2020年4月25日16:12:55
  1759. that.model.fileUrl = "url";
  1760. that.loadShow = true;
  1761. //填写了处理日志,并且是处理中状态
  1762. if (
  1763. that.handlerLog &&
  1764. that.handlerLog.trim() &&
  1765. that.modelData.incident.state.value == "handler"
  1766. ) {
  1767. that.$http
  1768. .post("service/bpm/data/addData/operationLog", {
  1769. operationLog: {
  1770. opType: "handlerLog",
  1771. opValue: that.handlerLog,
  1772. extra1: that.modelData.incident.id,
  1773. },
  1774. })
  1775. .then(function (result1) {
  1776. that.basePost();
  1777. });
  1778. } else {
  1779. that.basePost();
  1780. }
  1781. event.preventDefault();
  1782. },
  1783. validateHandler(result) {
  1784. // console.log(result);
  1785. this.validity = result.validity;
  1786. this.valid = result.valid;
  1787. // if (this.vali == true) {
  1788. // $("#fade").fadeIn();
  1789. // this.promptingConent = "提交失败,请填写必填信息!";
  1790. // this.promptingStatus = false;
  1791. // setTimeout(function() {
  1792. // $("#fade").fadeOut();
  1793. // }, 2000);
  1794. // }
  1795. // this.vali = false;
  1796. },
  1797. dateSelectHandler(selectedVal) {
  1798. this.model.dateValue = new Date(
  1799. selectedVal[0],
  1800. selectedVal[1] - 1,
  1801. selectedVal[2]
  1802. ).toDateString();
  1803. },
  1804. filesAdded(files) {
  1805. let hasIgnore = false;
  1806. const maxSize = 1000 * 1024 * 1024; // 1M
  1807. for (let k in files) {
  1808. const file = files[k];
  1809. if (file.size > maxSize) {
  1810. file.ignore = true;
  1811. hasIgnore = true;
  1812. }
  1813. }
  1814. hasIgnore &&
  1815. this.$createToast({
  1816. type: "warn",
  1817. time: 1000,
  1818. txt: "不能上传超过100M的文件",
  1819. }).show();
  1820. // 暂停上传
  1821. this.$refs.upload.pause();
  1822. },
  1823. fileSubmitted(files) {
  1824. this.action.data = { fileName: files.name };
  1825. },
  1826. // 获取事件上绑定的耗材
  1827. getHcBySj() {
  1828. this.$http
  1829. .post("service/cmdb/storeList", {
  1830. data: { type: 2, source: "1627", sourceId: this.id },
  1831. })
  1832. .then((result) => {
  1833. if (result.data.status == 200) {
  1834. this.hcsjList = result.data.data;
  1835. }
  1836. });
  1837. },
  1838. },
  1839. created() {
  1840. this.processInstanceId = this.$route.params.data
  1841. ? this.$route.params.data.processInstanceId
  1842. : JSON.parse(localStorage.getItem("modelData")).incident
  1843. .processInstanceId;
  1844. this.id = this.$route.params.data
  1845. ? this.$route.params.data.id
  1846. : JSON.parse(localStorage.getItem("modelData")).incident.id;
  1847. this.action.target += this.processInstanceId;
  1848. this.getParamsData();
  1849. this.getHcs();
  1850. if (this.incidentWithConsumable == 1) {
  1851. this.getHcBySj();
  1852. }
  1853. this.getImgs();
  1854. // 处理方式
  1855. this.getHandleCategory();
  1856. // 关闭代码
  1857. this.getClosecode();
  1858. // 升级对象
  1859. this.getUpUser();
  1860. // 指派对象
  1861. this.getZpUser();
  1862. // 转派对象
  1863. this.getRotateUser();
  1864. // 协同对象
  1865. this.getSynerUser();
  1866. // 获取页面数据
  1867. this.getMessage();
  1868. // 事件分类
  1869. this.getIncidentcategory();
  1870. },
  1871. mounted() {
  1872. console.log(this.modelData, this.model, 999);
  1873. // 获取区域列表
  1874. // this.getAreaList().then(res=>{
  1875. // if(this.modelData.incident.place){
  1876. // // 获取地点列表
  1877. // this.getPlaceList(this.modelData.incident.place.area.id)
  1878. // .then(res1=>{
  1879. // this.selectedAreaId = this.modelData.incident.place.area.id;
  1880. // this.selectedAreaName = this.modelData.incident.place.area.area;
  1881. // this.model.selectArea = this.modelData.incident.place.area.id;
  1882. // this.selectedPlaceId = this.modelData.incident.place.id;
  1883. // this.selectedPlaceName = this.modelData.incident.place.place;
  1884. // this.model.selectPlace = this.modelData.incident.place.id;
  1885. // });
  1886. // }
  1887. // })
  1888. },
  1889. components: {
  1890. CubePage,
  1891. CubeButtonGroup,
  1892. DatePicker,
  1893. // JsonView
  1894. CubeExtendPopup,
  1895. LoadIng,
  1896. PrompTing,
  1897. // HandlerLog
  1898. },
  1899. };
  1900. </script>
  1901. <style>
  1902. .hcList {
  1903. display: flex;
  1904. align-items: center;
  1905. margin-top: 0.1rem;
  1906. }
  1907. .hcItem {
  1908. flex: 4;
  1909. margin: 0 0.05rem;
  1910. }
  1911. .hcItemClose {
  1912. flex: 1;
  1913. font-size: 0.4rem;
  1914. }
  1915. .addHc {
  1916. width: 90%;
  1917. height: 1rem;
  1918. margin: 0 auto;
  1919. border: 0.02rem solid #ccc;
  1920. display: flex;
  1921. justify-content: center;
  1922. align-items: center;
  1923. }
  1924. .addHc .cubeic-add {
  1925. font-size: 0.8rem;
  1926. }
  1927. .newIncident .cube-form-group {
  1928. border-bottom: 0.02rem solid rgb(245, 245, 245);
  1929. }
  1930. .newIncident .sub .cube-btn {
  1931. margin-top: 1.1rem;
  1932. }
  1933. .btn_plcaeholde .cube-btn {
  1934. padding-left: 0;
  1935. padding-right: 0;
  1936. text-align: left;
  1937. color: inherit;
  1938. background: none;
  1939. border: none;
  1940. }
  1941. .btn_plcaeholde .cube-btn:active {
  1942. background-color: #fff;
  1943. }
  1944. .btn_plcaeholde .cube-btn::after {
  1945. content: ">";
  1946. float: right;
  1947. margin-right: 0.15rem;
  1948. }
  1949. .cube-form_standard .cube-upload-def .cube-upload-btn,
  1950. .cube-form_standard .cube-upload-def .cube-upload-file {
  1951. margin-left: 3% !important;
  1952. }
  1953. .sub .cube-btn {
  1954. background-color: #005395 !important;
  1955. width: 90%;
  1956. margin: 0 auto;
  1957. border-radius: 8px;
  1958. }
  1959. .cube-picker-wheel-item {
  1960. text-overflow: ellipsis;
  1961. }
  1962. </style>
  1963. <style lang="less" scoped>
  1964. .header {
  1965. width: 100%;
  1966. height: 0.88rem;
  1967. line-height: 0.88rem;
  1968. text-align: center;
  1969. color: #fff;
  1970. font-size: 0.37rem;
  1971. background: linear-gradient(#2e2f32, #414246);
  1972. position: fixed;
  1973. top: 0;
  1974. z-index: 6;
  1975. }
  1976. .incidentTitle {
  1977. .titleRefer {
  1978. display: flex;
  1979. align-items: center;
  1980. justify-content: space-between;
  1981. .titleTxtArea {
  1982. font-size: 0.3rem;
  1983. color: #333;
  1984. height: 2rem;
  1985. width: 62%;
  1986. &:focus {
  1987. outline: none;
  1988. }
  1989. }
  1990. .abtn {
  1991. display: inline-block;
  1992. width: 37%;
  1993. text-align: center;
  1994. height: 0.48rem;
  1995. color: #005395;
  1996. font-size: 0.28rem;
  1997. }
  1998. }
  1999. }
  2000. .form-custom {
  2001. .cube-form-item {
  2002. .cube-btn {
  2003. padding-left: 0;
  2004. padding-right: 0;
  2005. text-align: left;
  2006. color: inherit;
  2007. background: none;
  2008. border: none;
  2009. }
  2010. }
  2011. }
  2012. .label {
  2013. background-color: rgb(238, 238, 238);
  2014. height: 0.6rem;
  2015. line-height: 0.6rem;
  2016. padding-left: 0.2rem;
  2017. font-size: 0.24rem;
  2018. color: #666666;
  2019. span {
  2020. font-size: 0.2rem;
  2021. display: inline-block;
  2022. margin-left: 0.08rem;
  2023. color: #999999;
  2024. }
  2025. &.formLabel {
  2026. background-color: #fff;
  2027. }
  2028. }
  2029. .zhidu {
  2030. display: flex;
  2031. height: 0.7rem;
  2032. line-height: 0.7rem;
  2033. border-bottom: 0.02rem solid rgb(245, 245, 245);
  2034. div:nth-child(1) {
  2035. width: 27.5%;
  2036. padding-left: 6%;
  2037. }
  2038. }
  2039. .bgColor {
  2040. background-color: white;
  2041. &.newIncident {
  2042. padding-top: 1.84rem;
  2043. }
  2044. }
  2045. .uplod {
  2046. padding: 0 0.24rem;
  2047. border-bottom: 0.02rem solid rgb(245, 245, 245);
  2048. }
  2049. .handleRadio {
  2050. border-bottom: 0.02rem solid rgb(245, 245, 245);
  2051. }
  2052. .synerBox {
  2053. height: 3rem;
  2054. overflow: scroll;
  2055. }
  2056. i.iconfont.blue {
  2057. color: #005395;
  2058. // &::after {
  2059. // content: "";
  2060. // width: 0.01rem;
  2061. // height: 0.4rem;
  2062. // background: #005395;
  2063. // position: relative;
  2064. // display: block;
  2065. // left: 0.14rem;
  2066. // }
  2067. }
  2068. .againAssign {
  2069. .header {
  2070. width: 100%;
  2071. height: 0.88rem;
  2072. line-height: 0.88rem;
  2073. text-align: center;
  2074. color: #fff;
  2075. font-size: 0.37rem;
  2076. background: linear-gradient(#2e2f32, #414246);
  2077. position: fixed;
  2078. top: 0;
  2079. z-index: 6;
  2080. }
  2081. .navBar {
  2082. width: 100%;
  2083. height: 0.96rem;
  2084. line-height: 0.96rem;
  2085. background-color: #fafafa;
  2086. font-size: 0.28rem;
  2087. position: fixed;
  2088. top: 0.88rem;
  2089. z-index: 9;
  2090. div {
  2091. width: 33.33%;
  2092. text-align: center;
  2093. &.p50 {
  2094. width: 49.99%;
  2095. }
  2096. a {
  2097. display: inline-block;
  2098. height: 0.9rem;
  2099. width: 1.7rem;
  2100. padding: 0 0.1rem;
  2101. &.active {
  2102. color: #005395;
  2103. border-bottom: 0.06rem solid #005395;
  2104. }
  2105. }
  2106. }
  2107. }
  2108. .headtop {
  2109. margin-top: 1.84rem;
  2110. }
  2111. .label {
  2112. background-color: #eeeeee;
  2113. height: 0.6rem;
  2114. line-height: 0.58rem;
  2115. padding-left: 0.2rem;
  2116. font-size: 0.24rem;
  2117. color: #666666;
  2118. span {
  2119. font-size: 0.2rem;
  2120. display: inline-block;
  2121. margin-left: 0.08rem;
  2122. color: #999999;
  2123. }
  2124. &.formLabel {
  2125. background-color: #fff;
  2126. }
  2127. }
  2128. .conentBox {
  2129. width: 100%;
  2130. .conent {
  2131. font-size: 0.32rem;
  2132. font-weight: 400;
  2133. line-height: 0.45rem;
  2134. // border-bottom: 0.16rem solid #e5e5e5;
  2135. .shows {
  2136. display: none;
  2137. }
  2138. .boeder_B {
  2139. border-bottom: 0.01rem solid #ccc;
  2140. }
  2141. p {
  2142. &.desc {
  2143. overflow: hidden;
  2144. }
  2145. .grayFont {
  2146. width: 75%;
  2147. text-align: right;
  2148. overflow-x: scroll;
  2149. }
  2150. }
  2151. .bottom {
  2152. overflow: hidden;
  2153. line-height: 0.86rem;
  2154. border-bottom: 0.01rem solid #e6e6e6;
  2155. font-size: 0.24rem;
  2156. color: #999;
  2157. padding: 0 0.24rem 0 0.48rem;
  2158. }
  2159. .info {
  2160. color: #999;
  2161. font-size: 0.28rem;
  2162. overflow: hidden;
  2163. .head {
  2164. border-bottom: 0.01rem solid #e6e6e6;
  2165. p {
  2166. padding: 0.24rem 0.3rem;
  2167. i {
  2168. color: #00559d;
  2169. }
  2170. }
  2171. }
  2172. p {
  2173. line-height: 0.4rem;
  2174. padding: 0.1rem 0.24rem;
  2175. overflow: hidden;
  2176. .overflowEllipsis2 {
  2177. margin-left: 1.96rem;
  2178. }
  2179. }
  2180. .info_hide {
  2181. padding: 0.2rem 0.24rem;
  2182. border-bottom: 0.01rem solid #e6e6e6;
  2183. .hide {
  2184. color: #00559d;
  2185. }
  2186. }
  2187. .imgs-container {
  2188. a {
  2189. color: #03c !important;
  2190. &:visited {
  2191. color: #551a8b !important;
  2192. }
  2193. }
  2194. img {
  2195. width: 1.5rem;
  2196. height: 1.5rem;
  2197. margin-right: 0.7rem;
  2198. &:nth-child(1) {
  2199. margin-left: 0.75rem;
  2200. }
  2201. }
  2202. }
  2203. .progress {
  2204. padding: 0.2rem 0.2rem;
  2205. overflow: hidden;
  2206. transition-duration: 0.2s;
  2207. transition-timing-function: linear;
  2208. &.progressHide {
  2209. height: 1.7rem;
  2210. }
  2211. .progress_info {
  2212. overflow: hidden;
  2213. margin-bottom: 0.1rem;
  2214. &:nth-last-child(1) {
  2215. .cont {
  2216. border: none !important;
  2217. }
  2218. }
  2219. .progress_info_L {
  2220. float: left;
  2221. color: #333;
  2222. max-width: 18%;
  2223. }
  2224. .progress_info_R {
  2225. float: right;
  2226. margin-left: 0.09rem;
  2227. width: 80%;
  2228. font-size: 0.25rem;
  2229. .time {
  2230. i {
  2231. margin-left: -0.15rem;
  2232. &.icon-icon_weizuo {
  2233. color: #005495;
  2234. }
  2235. &.icon-icon_zhengzaijinx {
  2236. color: #48a843;
  2237. font-size: 0.37rem;
  2238. }
  2239. }
  2240. span {
  2241. margin-left: 0.15rem;
  2242. }
  2243. }
  2244. .cont {
  2245. border-left: 1px solid #999;
  2246. padding-left: 0.4rem;
  2247. min-height: 0.4rem;
  2248. &.blue {
  2249. border-left: 1px solid #005395;
  2250. }
  2251. }
  2252. .text1 {
  2253. font-size: 0.15rem;
  2254. }
  2255. .text2 {
  2256. color: #666;
  2257. word-break: break-all;
  2258. }
  2259. p {
  2260. padding: 0;
  2261. }
  2262. }
  2263. }
  2264. }
  2265. }
  2266. .txtLabel {
  2267. width: 100%;
  2268. overflow: hidden;
  2269. padding: 0.32rem 0.24rem 0.32rem 0.32rem;
  2270. .txt {
  2271. width: 30%;
  2272. color: #666;
  2273. }
  2274. .cube-textarea-wrapper {
  2275. width: 62%;
  2276. }
  2277. }
  2278. .sub {
  2279. background: #ececec;
  2280. .cube-btn {
  2281. background-color: #005395 !important;
  2282. width: 90%;
  2283. margin: 0.2rem auto;
  2284. border-radius: 8px;
  2285. }
  2286. }
  2287. }
  2288. }
  2289. .showwrap {
  2290. width: 75%;
  2291. text-align: right;
  2292. }
  2293. }
  2294. </style>