processing.vue 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675
  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 class="fl" :class="{'p50':modelData.incident.handlerUser.id!=loginUser.id}">
  8. <a :class="{active:actives=='info'}" href="javascript:;" @click="toInfo('info')">事件信息</a>
  9. </div>
  10. <div class="fl" :class="{'p50':modelData.incident.handlerUser.id!=loginUser.id}">
  11. <a
  12. :class="{active:actives=='progress'}"
  13. href="javascript:;"
  14. @click="toInfo('progress')"
  15. >处理进度</a>
  16. </div>
  17. <div class="fl" v-if="modelData.incident.handlerUser.id==loginUser.id">
  18. <a
  19. :class="{active:actives=='handlerInfo'}"
  20. href="javascript:;"
  21. @click="toInfo('handlerInfo')"
  22. >处理信息</a>
  23. </div>
  24. </div>
  25. <div class="label headtop" id="info">事件信息</div>
  26. <div class="info">
  27. <div class="head">
  28. <p>
  29. <i class="iconfont icon-zuixinbaoxiu newPapir"></i>
  30. 事件编号:{{modelData.incident.incidentsign}}
  31. <span class="fr btn chulizhong">{{modelData.incident.state.name}}</span>
  32. </p>
  33. </div>
  34. <p>
  35. <span class="fl">事件分类</span>
  36. <span class="fr">{{modelData.incident.category.category}}</span>
  37. </p>
  38. <!-- <p>
  39. <span class="fl">事件主题</span>
  40. <span class="fr">{{modelData.incident.title}}</span>
  41. </p> -->
  42. <p class="desc">
  43. <span class="fl">事件描述</span>
  44. <span class="grayFont fr" v-html="modelData.incident.description"></span>
  45. </p>
  46. <div class="shows" id="shows">
  47. <p v-if="valConfig==2">
  48. <span class="fl">报修科室</span>
  49. <span class="fr">{{modelData.incident.department?modelData.incident.department.dept:''}}</span>
  50. </p>
  51. <p v-if="valConfig==1">
  52. <span class="fl">报修人</span>
  53. <span class="fr">{{modelData.incident.requester.name}}</span>
  54. </p>
  55. <p v-if="valConfig==2">
  56. <span class="fl">联系人</span>
  57. <span class="fr">{{modelData.incident.contacts}}</span>
  58. </p>
  59. <p>
  60. <span class="fl">联系电话</span>
  61. <span class="fr" v-if="!modelData.incident.contactsInformation"></span>
  62. <span class="fr" v-if="modelData.incident.contactsInformation"><a :href="'tel:' + modelData.incident.contactsInformation">{{modelData.incident.contactsInformation}}</a></span>
  63. </p>
  64. <p>
  65. <span class="fl">联系地址</span>
  66. <span class="fr">{{modelData.incident.houseNumber||''}}</span>
  67. </p>
  68. <p class="boeder_B">
  69. <span class="fl">事件来源</span>
  70. <span class="fr">{{modelData.incident.source.name}}</span>
  71. </p>
  72. <!-- <p>
  73. <span class="fl">影响度</span>
  74. <span class="fr">{{modelData.incident.influence?modelData.incident.influence.name:''}}</span>
  75. </p>
  76. <p>
  77. <span class="fl">紧急度</span>
  78. <span class="fr">{{modelData.incident.emergency?modelData.incident.emergency.name:''}}</span>
  79. </p> -->
  80. <p>
  81. <span class="fl">优先级</span>
  82. <span class="fr">{{modelData.incident.priority?modelData.incident.priority.name:''}}</span>
  83. </p>
  84. <p>
  85. <span class="fl">逾期响应时间</span>
  86. <span class="fr">{{modelData.incident.overdueResponseDate}}</span>
  87. </p>
  88. <p>
  89. <span class="fl">逾期解决时间</span>
  90. <span class="fr">{{modelData.incident.overdueTime}}</span>
  91. </p>
  92. <p>
  93. <span class="fl">区域</span>
  94. <span class="fr">{{modelData.incident.place?modelData.incident.place.area.area:'--'}}</span>
  95. </p>
  96. <p>
  97. <span class="fl">地点</span>
  98. <span class="fr">{{modelData.incident.place?modelData.incident.place.place:'--'}}</span>
  99. </p>
  100. <!-- <p v-if="modelData.incident.synergeticReason">
  101. <span class="fl" >协同原因</span>
  102. <span class="fr">{{modelData.incident.synergeticReason}}</span>
  103. </p>
  104. <p v-if="modelData.isupreason">
  105. <span class="fl">升级原因</span>
  106. <span class="fr">{{modelData.isupreason}}</span>
  107. </p>
  108. <p v-if="modelData.transferReason">
  109. <span class="fl">转派原因</span>
  110. <span class="fr" >{{modelData.transferReason}}</span>
  111. </p> -->
  112. </div>
  113. <p class="info_hide">
  114. <span class="fl hide" @click="hides()" v-if="!item_hides">展开详情 >></span>
  115. <span class="fl hide" @click="hides()" v-if="item_hides">隐藏详情<<</span>
  116. </p>
  117. <div class="imgs-container" v-if="imgs.length">
  118. <div class="imgs-cont">
  119. <img v-if='img.suffix=="jpeg"||img.suffix=="jpg"||img.suffix=="gif"||img.suffix=="png"||img.suffix=="svg"||img.suffix=="pdf"' :src="img.previewUrl" v-for="(img, index) in imgs" class="imgs">
  120. <p v-else>
  121. <a :href='[img.previewUrl]'>{{img.name}}</a>
  122. </p>
  123. </div>
  124. </div>
  125. <div class="label" id="progress">处理进度</div>
  126. <div :class="{'progress':true,'progressHide':!pro_hides}" id="progressBox">
  127. <div class="progress_info" v-for="item in progressInfo">
  128. <div class="progress_info_L">{{item.activityName}}</div>
  129. <div class="progress_info_R">
  130. <div class="time">
  131. <i
  132. :class="{'iconfont':true, 'icon-icon_weizuo':item.endTime!='','icon-icon_zhengzaijinx':item.endTime=='' }"
  133. ></i>
  134. <span class="text1">{{item.startTime}}</span>
  135. </div>
  136. <div :class="{'cont':true,'blue':item.endTime!='' }">
  137. <p class="text2" v-if="item.desc">{{item.desc}}</p>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <p class="info_hide">
  143. <span class="fl hide" @click="proHides()">{{pro_hides?'隐藏详情 <<':'展开详情 >>'}}</span>
  144. </p>
  145. <div v-if="modelData.incident.handlerUser.id==loginUser.id">
  146. <div class="label" id="handlerInfo">处理信息</div>
  147. <div class="handlerInfo">
  148. <cube-form :model="model" @validate="validateHandler" @submit="submitHandler">
  149. <cube-form-group>
  150. <!-- <cube-form-item :field="fields[12]" class="btn_plcaeholde"> -->
  151. <!-- <cube-button @click="showDatePicker">{{model.dateValue || 'Please select date'}}</cube-button> -->
  152. <!-- <date-picker ref="datePicker" :min="[2008, 8, 8]" :max="[2020, 10, 20]" @select="dateSelectHandler"></date-picker> -->
  153. <!-- </cube-form-item> -->
  154. <!-- <cube-form-item :field="fields[13]" class="btn_plcaeholde"></cube-form-item> -->
  155. <div class="handleRadio">
  156. <cube-radio-group
  157. v-model="order"
  158. :options="handleTypes"
  159. position="right"
  160. :hollow-style="true"
  161. />
  162. </div>
  163. <cube-form-item :field="fields[0]" v-if="order==1"></cube-form-item>
  164. <cube-form-item :field="fields[1]" class="btn_plcaeholde" v-if="order==1">
  165. <cube-button
  166. @click="showCategoryPicker()"
  167. >{{selectedCategoryTxt?selectedCategoryTxt:'请选择事件分类'}}</cube-button>
  168. </cube-form-item>
  169. <cube-form-item :field="fields[2]" v-if="order==1"></cube-form-item>
  170. <cube-form-item :field="fields[3]" class="incidentTitle" v-if="order==1">
  171. <div class="titleRefer">
  172. <textarea
  173. class="titleTxtArea fl"
  174. placeholder="请输入处理方案"
  175. v-model="incidentTitle"
  176. @input="inpTitle()"
  177. ></textarea>
  178. <span class="abtn fl" @click="referKnowledge()">引入知识库</span>
  179. </div>
  180. </cube-form-item>
  181. <div class="label formLabel" v-if="order==1">
  182. 报修图片
  183. <span>(最多可上传3张JPG或PNG,每张不能超过10M)</span>
  184. </div>
  185. <div class="uplod" v-if="order==1">
  186. <cube-upload
  187. ref="upload"
  188. :max="3"
  189. :action="action"
  190. :simultaneous-uploads="3"
  191. @files-added="filesAdded"
  192. @file-submitted="fileSubmitted"
  193. />
  194. </div>
  195. <cube-form-item :field="fields[4]" v-if="order==1"></cube-form-item>
  196. <cube-form-item
  197. :field="fields[5]"
  198. class="btn_plcaeholde"
  199. v-if="order==1&&!!model.knowledge"
  200. ></cube-form-item>
  201. <cube-form-item :field="fields[10]" v-if="order==1">
  202. <div class="synerBox">
  203. <cube-checkbox-group v-model="synergeticChecked" :options="synergeticList"/>
  204. </div>
  205. </cube-form-item>
  206. <cube-form-item :field="fields[11]" v-if="order==1"></cube-form-item>
  207. <cube-form-item :field="fields[6]" v-if="order==2"></cube-form-item>
  208. <cube-form-item :field="fields[7]" v-if="order==2"></cube-form-item>
  209. <cube-form-item :field="fields[8]" v-if="order==3"></cube-form-item>
  210. <cube-form-item :field="fields[9]" v-if="order==3"></cube-form-item>
  211. </cube-form-group>
  212. <cube-form-group class="sub">
  213. <cube-button type="submit" @click="subVali()">提交</cube-button>
  214. </cube-form-group>
  215. </cube-form>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. <load-ing v-if="!modelData.incident.id"></load-ing>
  221. <promp-ting :conents="promptingConent" :status="promptingStatus"></promp-ting>
  222. </div>
  223. </div>
  224. </template>
  225. <script>
  226. import CubePage from "./../components/cube-page.vue";
  227. import CubeButtonGroup from "./../components/cube-button-group.vue";
  228. import DatePicker from "./../components/date-picker.vue";
  229. import CubeExtendPopup from "./../components/extend-popup.vue";
  230. import LoadIng from "./../views/loading.vue";
  231. import PrompTing from "./../views/prompting.vue";
  232. // import host from '../request/host'
  233. // 知识库类型
  234. const solution = {
  235. props: {
  236. value: {
  237. default() {
  238. return [];
  239. }
  240. }
  241. },
  242. data() {
  243. return {
  244. selected: [],
  245. selectData: [],
  246. initVal: JSON.parse(localStorage.getItem("solution")) || [0, 0, 0]
  247. };
  248. },
  249. render(createElement) {
  250. return createElement(
  251. "cube-button",
  252. {
  253. on: {
  254. click: this.showPicker
  255. }
  256. },
  257. this.selected.length
  258. ? this.selected[this.selected.length - 1]
  259. : "请选择知识库类型"
  260. );
  261. },
  262. created() {
  263. this.getTree();
  264. },
  265. mounted() {},
  266. methods: {
  267. showPicker() {
  268. this.picker.show();
  269. },
  270. selectHandler(selectedVal, selectedIndex, selectedTxt) {
  271. var selected = [];
  272. selectedTxt.forEach(function(v, i) {
  273. if (v != "") {
  274. selected.push(v);
  275. }
  276. });
  277. this.selected = selected;
  278. this.$emit("input", selectedVal);
  279. localStorage.setItem("solution", JSON.stringify(selectedIndex));
  280. },
  281. // 获取事件分类数据
  282. getTree() {
  283. let that = this;
  284. that.$http
  285. .post("service/solution/fetchDataList/solutionType", {
  286. idx: 0,
  287. sum: 100
  288. })
  289. .then(function(res) {
  290. // console.log(res);
  291. var list = res.data.list;
  292. var tree = [];
  293. list.forEach((v, i) => {
  294. if (!v.parent) {
  295. tree[i] = {
  296. value: v.id,
  297. text: v.typeName,
  298. children: []
  299. };
  300. } else {
  301. tree.forEach((val, idx) => {
  302. if (
  303. v.parent &&
  304. !v.parent.parent &&
  305. val.text == v.parent.typeName
  306. ) {
  307. tree[idx].children.push({
  308. value: v.id,
  309. text: v.typeName,
  310. children: []
  311. });
  312. } else if (v.parent.parent) {
  313. tree[idx].children.forEach((value, index) => {
  314. if (value.text == v.parent.typeName) {
  315. tree[idx].children[index].children.push({
  316. value: v.id,
  317. text: v.typeName
  318. });
  319. }
  320. });
  321. }
  322. });
  323. }
  324. });
  325. that.selectData = tree;
  326. that.picker = that.$createCascadePicker({
  327. title: "知识库类型选择",
  328. data: that.selectData,
  329. selectedIndex: that.initVal,
  330. onSelect: that.selectHandler
  331. });
  332. });
  333. }
  334. }
  335. };
  336. export default {
  337. data() {
  338. return {
  339. loginUser: JSON.parse(localStorage.getItem("loginUser")),
  340. valConfig: JSON.parse(localStorage.getItem("valConfig")) - 0, //报修主体
  341. id:'',
  342. resignComment: "", //重新指派原因
  343. item_hides: false,
  344. actives: "info",
  345. processInstanceId: "",
  346. progressInfo: [], //处理进度
  347. imgs: [], //图片
  348. model: {}, //提交数据
  349. validity: {},
  350. valid: undefined,
  351. action: {
  352. target: this.$host+"/service/common/common/uploadAttachment/incident/",
  353. data: {}
  354. },
  355. isUploading: false,
  356. loadShow: false,
  357. pro_hides:false,//展开/收起处理进度
  358. name: "",
  359. phone: "",
  360. label: "incidentInfo", //顶部快速定位
  361. modelData: {
  362. incident: {}
  363. }, //上传的model
  364. incidentTitle: "", //处理方案
  365. referenceInfo: {}, //引用信息
  366. selectedCategoryTxt: "", //事件分类选中展示
  367. selectedAreaId: "", //区域选中id--seimin
  368. selectedAreaName: "", //区域选中名称--seimin
  369. selectedPlaceId: "", //地点选中id--seimin
  370. selectedPlaceName: "", //地点选中名称--seimin
  371. model: {
  372. handleCategory: "", //处理方式
  373. closecode: "", //关闭代码
  374. category: [], //确认事件分类
  375. handleDescription: "", //处理方案
  376. knowledge: false, //是否提交知识库
  377. solutionType: [], //知识库类型
  378. handlerUser: "", //升级/转派对象
  379. isupreason: "", //升级原因
  380. transferReason: "", //转派原因
  381. synergeticChecked: [], //选中协同对象
  382. synergeticReason: "", //协同原因
  383. selectArea:'',
  384. selectPlace:'',
  385. },
  386. // showPrompting:false,
  387. promptingConent: "",
  388. promptingStatus: "",
  389. order: 1, //处理方式 1:直接处理,2:升级,3:转派,4:协同
  390. handleCategoryArr: [], //处理方式数组
  391. closecodeArr: [], //关闭代码数组
  392. // handlerUserArr: [], //处理人数组
  393. synergeticList: [], //协同对象列表
  394. synergeticChecked: [], //选中协同对象
  395. handleTypes: [
  396. {
  397. label: "直接处理",
  398. value: 1
  399. },
  400. {
  401. label: "升级",
  402. value: 2
  403. },
  404. {
  405. label: "转派",
  406. value: 3
  407. }
  408. // {
  409. // label: "协同",
  410. // value: 4
  411. // }
  412. ],
  413. vali: false,
  414. fields: [
  415. {
  416. type: "select",
  417. modelKey: "handleCategory",
  418. label: "处理方式:",
  419. props: {
  420. options: this.handleCategoryArr,
  421. title: "请选择处理方式",
  422. placeholder: "请选择处理方式"
  423. },
  424. rules: {
  425. required: true
  426. }
  427. },
  428. {
  429. component: "button",
  430. modelKey: "category",
  431. label: "确认事件分类:",
  432. rules: {
  433. required: true
  434. }
  435. },
  436. {
  437. type: "select",
  438. modelKey: "closecode",
  439. label: "关闭代码:",
  440. props: {
  441. options: this.closecodeArr,
  442. title: "请选择关闭代码",
  443. placeholder: "请选择关闭代码"
  444. },
  445. rules: {
  446. required: true
  447. }
  448. },
  449. {
  450. type: "textarea",
  451. modelKey: "handleDescription",
  452. label: "处理方案:",
  453. props: {
  454. placeholder: "请填写处理方案"
  455. },
  456. rules: {
  457. required: true
  458. },
  459. debounce: 100
  460. },
  461. {
  462. type: "switch",
  463. modelKey: "knowledge",
  464. label: "是否提交知识库:",
  465. rules: {
  466. required: false
  467. }
  468. },
  469. {
  470. component: solution,
  471. modelKey: "solutionType",
  472. label: "知识库类型:",
  473. rules: {
  474. required: true
  475. },
  476. messages: {
  477. required: ""
  478. }
  479. },
  480. {
  481. type: "select",
  482. modelKey: "handlerUser",
  483. label: "升级对象:",
  484. props: {
  485. options: [],
  486. placeholder: "请选择升级对象"
  487. },
  488. rules: {
  489. required: true
  490. }
  491. },
  492. {
  493. type: "input",
  494. modelKey: "isupreason",
  495. label: "升级原因:",
  496. props: {
  497. placeholder: "请输入升级原因"
  498. },
  499. rules: {
  500. required: true
  501. }
  502. },
  503. {
  504. type: "select",
  505. modelKey: "handlerUser",
  506. label: "转派对象:",
  507. props: {
  508. options: [],
  509. placeholder: "请选择转派对象"
  510. },
  511. rules: {
  512. required: true
  513. }
  514. },
  515. {
  516. type: "input",
  517. modelKey: "transferReason",
  518. label: "转派原因:",
  519. props: {
  520. placeholder: "请输入转派原因"
  521. },
  522. rules: {
  523. required: true
  524. }
  525. },
  526. {
  527. type: "checkbox-group",
  528. modelKey: "synergeticChecked",
  529. label: "协同对象:",
  530. props: {
  531. options: [],
  532. placeholder: "请选择协同对象"
  533. },
  534. rules: {
  535. required: false
  536. }
  537. },
  538. {
  539. type: "input",
  540. modelKey: "synergeticReason",
  541. label: "协同原因:",
  542. props: {
  543. placeholder: "请输入协同原因"
  544. },
  545. rules: {
  546. required: false
  547. }
  548. },
  549. {
  550. type: "select",
  551. modelKey: "selectArea",
  552. label: "区域:",
  553. props: {
  554. options: [],
  555. title: "请选择区域:",
  556. placeholder: "请选择区域:"
  557. },
  558. events:{
  559. change:(id,index,text)=>{
  560. // console.log(id,index,text,9999)
  561. this.getPlaceList(id)
  562. .then(res=>{
  563. this.selectedAreaId = id;
  564. this.selectedAreaName = text;
  565. // {{modelData.incident.place?modelData.incident.place.area.area:'--'}}
  566. console.log(this.modelData,'asad')
  567. if(this.modelData.incident.place){
  568. this.$set(this.modelData.incident.place,'area',{
  569. id,
  570. area:text
  571. })
  572. }else{
  573. this.$set(this.modelData.incident,'place',{
  574. area:{
  575. id,
  576. area:text
  577. }
  578. })
  579. }
  580. })
  581. }
  582. },
  583. rules: {
  584. required: true
  585. }
  586. },
  587. {
  588. type: "select",
  589. modelKey: "selectPlace",
  590. label: "地点:",
  591. props: {
  592. options: [],
  593. title: "请选择地点:",
  594. placeholder: "请选择地点:"
  595. },
  596. events:{
  597. change:(id,index,text)=>{
  598. this.selectedPlaceId = id;
  599. this.selectedPlaceName = text;
  600. this.$set(this.modelData.incident,'houseNumber',this.selectedAreaName+this.selectedPlaceName);
  601. if(this.modelData.incident.place){
  602. this.$set(this.modelData.incident.place,'place',text);
  603. this.$set(this.modelData.incident.place,'id',id);
  604. }else{
  605. this.$set(this.modelData.incident,'place',{
  606. id,
  607. place:text
  608. })
  609. }
  610. }
  611. },
  612. rules: {
  613. required: true
  614. }
  615. },
  616. ]
  617. };
  618. },
  619. watch: {
  620. // 监听synergeticChecked变化
  621. synergeticChecked: {
  622. handler: function(n, o) {
  623. this.model.synergeticChecked = n;
  624. }
  625. }
  626. },
  627. components: {
  628. LoadIng
  629. },
  630. methods: {
  631. //获取区域
  632. getAreaList(){
  633. return new Promise((resolve,reject)=>{
  634. this.$http.post('service/user/data/fetchDataList/area',{"idx":0,"sum":1000})
  635. .then(res=>{
  636. if(res.data.status == 200){
  637. let arr = res.data.list.map(item=>{
  638. return {value:item.id,text:item.area};
  639. });
  640. // console.log(arr,2222)
  641. // this.selectedAreaArr = arr;
  642. this.fields.forEach(item=>{
  643. if(item.modelKey === 'selectArea'){
  644. item.props.options = arr;
  645. }
  646. })
  647. resolve(res);
  648. }
  649. })
  650. })
  651. },
  652. //根据区域获取地点
  653. getPlaceList(id){
  654. return new Promise((resolve,reject)=>{
  655. this.$http.post('service/user/data/fetchDataList/place',{"idx":0,"sum":1000,"place":{"area":{id}}})
  656. .then(res=>{
  657. if(res.data.status == 200){
  658. let arr = res.data.list.map(item=>{
  659. return {value:item.id,text:item.place};
  660. });
  661. // console.log(arr,2222)
  662. // this.selectedAreaArr = arr;
  663. this.fields.forEach(item=>{
  664. if(item.modelKey === 'selectPlace'){
  665. item.props.options = arr;
  666. }
  667. })
  668. resolve(res);
  669. }
  670. })
  671. })
  672. },
  673. // 获取事件数据
  674. getParamsData() {
  675. var that = this;
  676. that.$http
  677. .get(
  678. "/service/form/renderForm/handlerform/" +
  679. that.processInstanceId +
  680. "/" +
  681. that.loginUser.id+'/'+that.id,
  682. {}
  683. )
  684. .then(function(res) {
  685. console.log(res.data,666);
  686. that.modelData = res.data.model;
  687. //seimin
  688. localStorage.setItem('modelData',JSON.stringify(that.modelData))
  689. });
  690. },
  691. // 获取图片
  692. getImgs() {
  693. var that = this;
  694. that.$http
  695. .get(
  696. "service/common/common/listAttachment/incident/" +
  697. that.processInstanceId,
  698. {}
  699. )
  700. .then(function(res) {
  701. that.imgs = res.data.data.splice(0, 3);
  702. });
  703. },
  704. // 事件分类回显
  705. setCategory(){
  706. let that=this;
  707. console.log(898)
  708. console.log(that.modelData.incident.category);
  709. let cate=that.modelData.incident.category;
  710. },
  711. // 获取处理进度
  712. getProgressInfo() {
  713. var that = this;
  714. that.$http
  715. .post(
  716. "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
  717. {}
  718. )
  719. .then(function(res) {
  720. console.log(res.data);
  721. that.progressInfo = res.data.data;
  722. that.progressInfo.reverse();
  723. });
  724. },
  725. //隐藏显示详情
  726. hides() {
  727. this.item_hides = !this.item_hides;
  728. $("#shows").slideToggle();
  729. },
  730. // 处理进度隐藏/展开
  731. proHides(){
  732. if(!this.pro_hides){
  733. $('#progressBox').animate({'height':$('#progressBox')[0].scrollHeight})
  734. }else{
  735. $('#progressBox').animate({'height':'1.7rem'})
  736. }
  737. this.pro_hides=!this.pro_hides;
  738. },
  739. // 快速定位
  740. toInfo(id) {
  741. this.actives = id;
  742. $("body,html").animate(
  743. {
  744. scrollTop:
  745. $("#" + id).offset().top -
  746. $(".header")[0].offsetHeight -
  747. $(".navBar")[0].offsetHeight
  748. },
  749. 260
  750. );
  751. },
  752. // 输入处理方案
  753. inpTitle() {
  754. this.model.handleDescription = this.incidentTitle;
  755. },
  756. subVali() {
  757. this.vali = true;
  758. },
  759. // 获取处理方式
  760. getHandleCategory() {
  761. var that = this;
  762. this.$http
  763. .post("service/common/common/getDictionary", {
  764. key: "incident_handleCategory",
  765. type: "list"
  766. })
  767. .then(function(res) {
  768. res.data.forEach(function(v, i) {
  769. that.handleCategoryArr.push({
  770. text: v.name,
  771. value: v.id
  772. });
  773. });
  774. that.fields[0].props.options = that.handleCategoryArr;
  775. });
  776. },
  777. // 获取关闭代码
  778. getClosecode() {
  779. var that = this;
  780. this.$http
  781. .post("service/common/common/getDictionary", {
  782. key: "incident_closecode",
  783. type: "list"
  784. })
  785. .then(function(res) {
  786. res.data.forEach(function(v, i) {
  787. that.closecodeArr.push({
  788. text: v.desc,
  789. value: v.id
  790. });
  791. });
  792. that.fields[2].props.options = that.closecodeArr;
  793. });
  794. },
  795. // 获取升级对象
  796. getUpUser() {
  797. var that = this;
  798. var postData = {
  799. idx: 0,
  800. sum: 1000,
  801. user: {
  802. roledata: { rolecode: "second-line support" },
  803. selectType: "1"
  804. }
  805. };
  806. this.$http
  807. .post("service/user/data/fetchDataList/user", postData)
  808. .then(function(res) {
  809. var handlerUserArr = [];
  810. res.data.list.forEach(function(v, i) {
  811. handlerUserArr.push({
  812. text: v.name,
  813. value: v.id
  814. });
  815. });
  816. that.fields[6].props.options = handlerUserArr;
  817. });
  818. },
  819. // 获取转派对象
  820. getRotateUser() {
  821. var that = this;
  822. var postData = {
  823. idx: 0,
  824. sum: 1000,
  825. user: {
  826. roledata: { rolecode: "first-line support" },
  827. selectType: "1"
  828. }
  829. };
  830. this.$http
  831. .post("service/user/data/fetchDataList/user", postData)
  832. .then(function(res) {
  833. var handlerUserArr = [];
  834. res.data.list.forEach(function(v, i) {
  835. handlerUserArr.push({
  836. text: v.name,
  837. value: v.id
  838. });
  839. });
  840. that.fields[8].props.options = handlerUserArr;
  841. });
  842. },
  843. // 获取协同对象
  844. getSynerUser() {
  845. var that = this;
  846. var postData = {
  847. idx: 0,
  848. sum: 1000
  849. };
  850. this.$http
  851. .post("service/user/data/fetchDataList/user", postData)
  852. .then(function(res) {
  853. var handlerUserArr = [];
  854. res.data.list.forEach(function(v, i) {
  855. handlerUserArr.push({
  856. label: v.name,
  857. value: v.id
  858. });
  859. });
  860. that.fields[10].props.options = handlerUserArr;
  861. that.synergeticList = handlerUserArr;
  862. });
  863. },
  864. // 获取页面数据
  865. getMessage() {
  866. var that = this;
  867. if (localStorage.getItem("model")) {
  868. that.model = JSON.parse(localStorage.getItem("model"));
  869. }
  870. if (localStorage.getItem("modelData")) {
  871. that.modelData = JSON.parse(localStorage.getItem("modelData"));
  872. }
  873. if (localStorage.getItem("referenceInfo")) {
  874. that.referenceInfo = JSON.parse(localStorage.getItem("referenceInfo"));
  875. that.incidentTitle = that.model.handleDescription =
  876. that.referenceInfo.content;
  877. }
  878. if (localStorage.getItem("order")) {
  879. that.order = localStorage.getItem("order") - 0;
  880. }
  881. if (localStorage.getItem("selectedCategoryTxt")) {
  882. that.selectedCategoryTxt = JSON.parse(localStorage.getItem("selectedCategoryTxt"));
  883. }
  884. },
  885. // 事件分类
  886. showCategoryPicker() {
  887. this.categoryPicker.show();
  888. },
  889. selectCategoryHandler(selectedVal, selectedIndex, selectedTxt) {
  890. console.log(selectedVal, selectedIndex, selectedTxt);
  891. var selected = [];
  892. selectedTxt.forEach(function(v, i) {
  893. if (v != "") {
  894. selected.push(v);
  895. }
  896. });
  897. this.selected = selected;
  898. this.selectedCategoryTxt=selected[selected.length - 1];
  899. this.model.category=selectedVal;
  900. localStorage.setItem("category", JSON.stringify(selectedIndex));
  901. localStorage.setItem("categoryVal", JSON.stringify(selectedVal));
  902. localStorage.setItem("selectedCategoryTxt", JSON.stringify(this.selectedCategoryTxt));
  903. },
  904. getIncidentcategory() {
  905. var that = this;
  906. this.$http
  907. .post("service/bpm/data/fetchDataList/incidentcategory", {
  908. idx: 0,
  909. sum: 1000
  910. })
  911. .then(function(res) {
  912. var list = res.data.list;
  913. var tree = [];
  914. list.forEach((v, i) => {
  915. if (!v.parent) {
  916. tree[i] = {
  917. value: v.id,
  918. text: v.category,
  919. children: []
  920. };
  921. } else {
  922. tree.forEach((val, idx) => {
  923. if (
  924. v.parent &&
  925. !v.parent.parent &&
  926. val.text == v.parent.category
  927. ) {
  928. tree[idx].children.push({
  929. value: v.id,
  930. text: v.category,
  931. children: []
  932. });
  933. } else if (v.parent.parent) {
  934. tree[idx].children.forEach((value, index) => {
  935. if (value.text == v.parent.category) {
  936. tree[idx].children[index].children.push({
  937. value: v.id,
  938. text: v.category
  939. });
  940. }
  941. });
  942. }
  943. });
  944. }
  945. });
  946. // 获取事件分类并设置
  947. // that.setCategory()
  948. if(!localStorage.getItem("category")){
  949. let cate=that.modelData.incident.category;
  950. let cateGrand=cate.parentCategory&&cate.parentCategory.parentCategory&&cate.parentCategory.parentCategory.id;
  951. let cateFa=cate.parentCategory&&cate.parentCategory.id;
  952. let cateSelf=cate.id;
  953. console.log(cate,tree)
  954. var i1=0,i2=0,i3=0;
  955. var selectedVal=[];
  956. var selectedIndex=[];
  957. var selectedTxt=[];
  958. tree.forEach((v,i)=>{
  959. if(v.value==cateGrand){
  960. selectedVal.push(v.value);
  961. selectedIndex.push(i);
  962. selectedTxt.push(v.text);
  963. v.children.forEach((va,ind)=>{
  964. if(va.value==cateFa){
  965. selectedVal.push(va.value);
  966. selectedIndex.push(ind);
  967. selectedTxt.push(va.text);
  968. va.children.forEach((val,idx)=>{
  969. if(val.value==cateSelf){
  970. selectedVal.push(val.value);
  971. selectedIndex.push(idx);
  972. selectedTxt.push(val.text);
  973. }
  974. })
  975. }
  976. })
  977. }
  978. })
  979. console.log(selectedVal, selectedIndex, selectedTxt);
  980. // console.log(i1,i2,i3);
  981. // var cateData=[i1,i2,i3]
  982. that.selectData = tree;
  983. that.categoryPicker = that.$createCascadePicker({
  984. title: "事件分类选择",
  985. data: that.selectData,
  986. selectedIndex: selectedIndex,
  987. onSelect: that.selectCategoryHandler
  988. });
  989. setTimeout(() => {
  990. that.selectCategoryHandler(selectedVal, selectedIndex, selectedTxt)
  991. }, 500);
  992. }else{
  993. that.selectData = tree;
  994. that.categoryPicker = that.$createCascadePicker({
  995. title: "事件分类选择",
  996. data: that.selectData,
  997. selectedIndex: JSON.parse(localStorage.getItem("category")) || [0, 0, 0],
  998. onSelect: that.selectCategoryHandler
  999. });
  1000. that.model.category=JSON.parse(localStorage.getItem("categoryVal"))
  1001. }
  1002. });
  1003. },
  1004. // 暂时存值
  1005. setLocalStroageData() {
  1006. var that = this;
  1007. var a1 = [],
  1008. a2 = [],
  1009. a3 = [],
  1010. category = [],
  1011. solutionType = [],
  1012. synergeticChecked = [];
  1013. that.model.category.forEach(function(v, i) {
  1014. if (v) {
  1015. a1.push(v);
  1016. }
  1017. });
  1018. category = a1;
  1019. that.model.solutionType.forEach(function(v, i) {
  1020. if (v) {
  1021. a2.push(v);
  1022. }
  1023. });
  1024. solutionType = a2;
  1025. that.synergeticChecked.forEach(function(v, i) {
  1026. a3.push({ id: v });
  1027. });
  1028. synergeticChecked = a3;
  1029. that.modelData.incident.category = {
  1030. id: category[category.length - 1]
  1031. };
  1032. that.modelData.loginUser=that.loginUser;
  1033. if (that.order == 1) {
  1034. // 直接处理
  1035. that.modelData.handler_code = "resolve";
  1036. that.modelData.incident.handleDescription =
  1037. that.model.handleDescription;
  1038. that.modelData.incident.handleCategory = {
  1039. id: that.model.handleCategory
  1040. };
  1041. that.modelData.incident.closecode = { id: that.model.closecode };
  1042. that.modelData.isSolution=that.model.knowledge;
  1043. that.modelData.bpm_activiti = {
  1044. solutionType: {
  1045. id: solutionType[solutionType.length - 1]
  1046. }
  1047. };
  1048. // 协同
  1049. that.modelData.incident.synergeticReason = that.model.synergeticReason;
  1050. delete that.modelData.isupreason;
  1051. delete that.modelData.examine;
  1052. delete that.modelData.assignee;
  1053. delete that.modelData.transferReason;
  1054. that.modelData.incident.synergetic = synergeticChecked;
  1055. } else if (that.order == 2) {
  1056. // 升级
  1057. that.modelData.handler_code = "function";
  1058. that.modelData.isupreason = that.model.isupreason;
  1059. that.modelData.assignee = that.model.handlerUser;
  1060. that.modelData.examine={upgradeAuditor:{id:that.modelData.assignee}};
  1061. delete that.modelData.transferReason;
  1062. delete that.modelData.incident.synergetic;
  1063. delete that.modelData.incident.synergeticReason;
  1064. if(that.modelData.isSolution){
  1065. delete that.modelData.isSolution
  1066. }
  1067. } else if (that.order == 3) {
  1068. // 转派
  1069. that.modelData.handler_code = "forward";
  1070. that.modelData.transferReason = that.model.transferReason;
  1071. that.modelData.assignee = that.model.handlerUser;
  1072. delete that.modelData.isupreason;
  1073. delete that.modelData.examine;
  1074. delete that.modelData.incident.synergetic;
  1075. delete that.modelData.incident.synergeticReason;
  1076. if(that.modelData.isSolution){
  1077. delete that.modelData.isSolution
  1078. }
  1079. }
  1080. that.model.fileUrl = "url";
  1081. that.loadShow = true;
  1082. },
  1083. // 处理方案引入知识库
  1084. referKnowledge() {
  1085. var that = this;
  1086. if (!that.model.handleDescription){
  1087. alert('请输入处理方案');
  1088. return;
  1089. };
  1090. that.setLocalStroageData();
  1091. localStorage.setItem("modelData", JSON.stringify(that.modelData));
  1092. localStorage.setItem("model", JSON.stringify(that.model));
  1093. localStorage.setItem("order", that.order);
  1094. this.$router.push({
  1095. name: "ReferenceList",
  1096. params: { data: that.model.handleDescription }
  1097. });
  1098. },
  1099. // 提交
  1100. submitHandler() {
  1101. var that = this;
  1102. that.setLocalStroageData();
  1103. // that.modelData.incident.place = {
  1104. // area:{
  1105. // id:this.selectedAreaId,
  1106. // area:this.selectedAreaName
  1107. // },
  1108. // id:this.selectedPlaceId,
  1109. // place:this.selectedPlaceName
  1110. // };//增加区域地点
  1111. // console.log(that.modelData,11111);
  1112. // console.log(this.selectedPlaceId,this.selectedAreaId,8888);//2020年4月25日16:12:55
  1113. that.model.fileUrl = "url";
  1114. that.loadShow = true;
  1115. that.$http
  1116. .post(
  1117. "service/bpm/bpm/completeTask/" +
  1118. that.modelData.incident.taskId +
  1119. "/" +
  1120. that.loginUser.id,
  1121. that.modelData
  1122. )
  1123. .then(function(res) {
  1124. if (res.data) {
  1125. setTimeout(function() {
  1126. that.$refs.upload.start();
  1127. }, 100);
  1128. $("#fade").fadeIn();
  1129. that.promptingConent = "恭喜您,提交成功!";
  1130. that.promptingStatus = true;
  1131. that.dialog = that
  1132. .$createDialog({
  1133. type: "alert",
  1134. title: "提交成功",
  1135. content: "点击返回首页",
  1136. icon: "cubeic-right",
  1137. onConfirm: (e, promptValue) => {
  1138. that.$router.push({ path: "/main" });
  1139. }
  1140. })
  1141. .show();
  1142. localStorage.removeItem("category");
  1143. localStorage.removeItem("model");
  1144. localStorage.removeItem("modelData");
  1145. localStorage.removeItem("referenceInfo");
  1146. localStorage.removeItem("solution");
  1147. localStorage.removeItem("order");
  1148. setTimeout(function() {
  1149. $("#fade").fadeOut();
  1150. }, 2000);
  1151. } else {
  1152. $("#fade").fadeIn();
  1153. that.promptingConent = "系统错误,请稍后再试!";
  1154. that.promptingStatus = false;
  1155. that.loadShow = false;
  1156. that.dialog = that
  1157. .$createDialog({
  1158. type: "alert",
  1159. title: "系统错误,请稍后再试!",
  1160. content: "点击返回首页",
  1161. icon: "cubeic-wrong",
  1162. onConfirm: (e, promptValue) => {
  1163. that.$router.push({ path: "/main" });
  1164. }
  1165. })
  1166. .show();
  1167. setTimeout(function() {
  1168. $("#fade").fadeOut();
  1169. }, 2000);
  1170. }
  1171. });
  1172. event.preventDefault();
  1173. },
  1174. validateHandler(result) {
  1175. // console.log(result);
  1176. this.validity = result.validity;
  1177. this.valid = result.valid;
  1178. // if (this.vali == true) {
  1179. // $("#fade").fadeIn();
  1180. // this.promptingConent = "提交失败,请填写必填信息!";
  1181. // this.promptingStatus = false;
  1182. // setTimeout(function() {
  1183. // $("#fade").fadeOut();
  1184. // }, 2000);
  1185. // }
  1186. // this.vali = false;
  1187. },
  1188. dateSelectHandler(selectedVal) {
  1189. this.model.dateValue = new Date(
  1190. selectedVal[0],
  1191. selectedVal[1] - 1,
  1192. selectedVal[2]
  1193. ).toDateString();
  1194. },
  1195. filesAdded(files) {
  1196. let hasIgnore = false;
  1197. const maxSize = 1000 * 1024 * 1024; // 1M
  1198. for (let k in files) {
  1199. const file = files[k];
  1200. if (file.size > maxSize) {
  1201. file.ignore = true;
  1202. hasIgnore = true;
  1203. }
  1204. }
  1205. hasIgnore &&
  1206. this.$createToast({
  1207. type: "warn",
  1208. time: 1000,
  1209. txt: "不能上传超过100M的文件"
  1210. }).show();
  1211. // 暂停上传
  1212. this.$refs.upload.pause();
  1213. },
  1214. fileSubmitted(files) {
  1215. this.action.data = { fileName: files.name };
  1216. }
  1217. },
  1218. created() {
  1219. this.processInstanceId = this.$route.params.data
  1220. ? this.$route.params.data.processInstanceId
  1221. : JSON.parse(localStorage.getItem("modelData")).incident
  1222. .processInstanceId;
  1223. this.id=this.$route.params.data?this.$route.params.data.id:JSON.parse(localStorage.getItem("modelData")).incident.id;
  1224. this.action.target += this.processInstanceId;
  1225. this.getParamsData();
  1226. this.getProgressInfo();
  1227. this.getImgs();
  1228. // 处理方式
  1229. this.getHandleCategory();
  1230. // 关闭代码
  1231. this.getClosecode();
  1232. // 升级对象
  1233. this.getUpUser();
  1234. // 转派对象
  1235. this.getRotateUser();
  1236. // 协同对象
  1237. this.getSynerUser();
  1238. // 获取页面数据
  1239. this.getMessage();
  1240. // 事件分类
  1241. this.getIncidentcategory();
  1242. },
  1243. mounted() {
  1244. console.log(this.modelData,this.model,999);
  1245. // 获取区域列表
  1246. // this.getAreaList().then(res=>{
  1247. // if(this.modelData.incident.place){
  1248. // // 获取地点列表
  1249. // this.getPlaceList(this.modelData.incident.place.area.id)
  1250. // .then(res1=>{
  1251. // this.selectedAreaId = this.modelData.incident.place.area.id;
  1252. // this.selectedAreaName = this.modelData.incident.place.area.area;
  1253. // this.model.selectArea = this.modelData.incident.place.area.id;
  1254. // this.selectedPlaceId = this.modelData.incident.place.id;
  1255. // this.selectedPlaceName = this.modelData.incident.place.place;
  1256. // this.model.selectPlace = this.modelData.incident.place.id;
  1257. // });
  1258. // }
  1259. // })
  1260. },
  1261. components: {
  1262. CubePage,
  1263. CubeButtonGroup,
  1264. DatePicker,
  1265. // JsonView
  1266. CubeExtendPopup,
  1267. LoadIng,
  1268. PrompTing
  1269. }
  1270. };
  1271. </script>
  1272. <style >
  1273. .newIncident .cube-form-group {
  1274. border-bottom: 0.02rem solid rgb(245, 245, 245);
  1275. }
  1276. .newIncident .sub .cube-btn {
  1277. margin-top: 1.1rem;
  1278. }
  1279. .btn_plcaeholde .cube-btn {
  1280. padding-left: 0;
  1281. padding-right: 0;
  1282. text-align: left;
  1283. color: inherit;
  1284. background: none;
  1285. border: none;
  1286. }
  1287. .btn_plcaeholde .cube-btn:active {
  1288. background-color: #fff;
  1289. }
  1290. .btn_plcaeholde .cube-btn::after {
  1291. content: ">";
  1292. float: right;
  1293. margin-right: 0.15rem;
  1294. }
  1295. .cube-form_standard .cube-upload-def .cube-upload-btn,
  1296. .cube-form_standard .cube-upload-def .cube-upload-file {
  1297. margin-left: 3% !important;
  1298. }
  1299. .sub .cube-btn {
  1300. background-color: #005395 !important;
  1301. width: 90%;
  1302. margin: 0 auto;
  1303. border-radius: 8px;
  1304. }
  1305. .cube-picker-wheel-item {
  1306. text-overflow: ellipsis;
  1307. }
  1308. </style>
  1309. <style lang="less" scoped>
  1310. .header {
  1311. width: 100%;
  1312. height: 0.88rem;
  1313. line-height: 0.88rem;
  1314. text-align: center;
  1315. color: #fff;
  1316. font-size: 0.37rem;
  1317. background: linear-gradient(#2e2f32, #414246);
  1318. position: fixed;
  1319. top: 0;
  1320. z-index: 6;
  1321. }
  1322. .incidentTitle {
  1323. .titleRefer {
  1324. display: flex;
  1325. align-items: center;
  1326. justify-content: space-between;
  1327. .titleTxtArea {
  1328. font-size: 0.3rem;
  1329. color: #333;
  1330. height: auto;
  1331. width: 62%;
  1332. &:focus {
  1333. outline: none;
  1334. }
  1335. }
  1336. .abtn {
  1337. display: inline-block;
  1338. width: 37%;
  1339. text-align: center;
  1340. height: 0.48rem;
  1341. color: #005395;
  1342. font-size: 0.28rem;
  1343. }
  1344. }
  1345. }
  1346. .form-custom {
  1347. .cube-form-item {
  1348. .cube-btn {
  1349. padding-left: 0;
  1350. padding-right: 0;
  1351. text-align: left;
  1352. color: inherit;
  1353. background: none;
  1354. border: none;
  1355. }
  1356. }
  1357. }
  1358. .label {
  1359. background-color: rgb(238, 238, 238);
  1360. height: 0.6rem;
  1361. line-height: 0.6rem;
  1362. padding-left: 0.2rem;
  1363. font-size: 0.24rem;
  1364. color: #666666;
  1365. span {
  1366. font-size: 0.2rem;
  1367. display: inline-block;
  1368. margin-left: 0.08rem;
  1369. color: #999999;
  1370. }
  1371. &.formLabel {
  1372. background-color: #fff;
  1373. }
  1374. }
  1375. .zhidu {
  1376. display: flex;
  1377. height: 0.7rem;
  1378. line-height: 0.7rem;
  1379. border-bottom: 0.02rem solid rgb(245, 245, 245);
  1380. div:nth-child(1) {
  1381. width: 27.5%;
  1382. padding-left: 6%;
  1383. }
  1384. }
  1385. .bgColor {
  1386. background-color: white;
  1387. &.newIncident {
  1388. padding-top: 1.84rem;
  1389. }
  1390. }
  1391. .uplod {
  1392. padding: 0 0.24rem;
  1393. border-bottom: 0.02rem solid rgb(245, 245, 245);
  1394. }
  1395. .handleRadio {
  1396. border-bottom: 0.02rem solid rgb(245, 245, 245);
  1397. }
  1398. .synerBox {
  1399. height: 3rem;
  1400. overflow: scroll;
  1401. }
  1402. i.iconfont.blue {
  1403. color: #005395;
  1404. // &::after {
  1405. // content: "";
  1406. // width: 0.01rem;
  1407. // height: 0.4rem;
  1408. // background: #005395;
  1409. // position: relative;
  1410. // display: block;
  1411. // left: 0.14rem;
  1412. // }
  1413. }
  1414. .againAssign {
  1415. .header {
  1416. width: 100%;
  1417. height: 0.88rem;
  1418. line-height: 0.88rem;
  1419. text-align: center;
  1420. color: #fff;
  1421. font-size: 0.37rem;
  1422. background: linear-gradient(#2e2f32, #414246);
  1423. position: fixed;
  1424. top: 0;
  1425. z-index: 6;
  1426. }
  1427. .navBar {
  1428. width: 100%;
  1429. height: 0.96rem;
  1430. line-height: 0.96rem;
  1431. background-color: #fafafa;
  1432. font-size: 0.28rem;
  1433. position: fixed;
  1434. top: 0.88rem;
  1435. z-index: 9;
  1436. div {
  1437. width: 33.33%;
  1438. text-align: center;
  1439. &.p50{
  1440. width: 49.99%;
  1441. }
  1442. a {
  1443. display: inline-block;
  1444. height: 0.9rem;
  1445. width: 1.7rem;
  1446. padding: 0 0.1rem;
  1447. &.active {
  1448. color: #005395;
  1449. border-bottom: 0.06rem solid #005395;
  1450. }
  1451. }
  1452. }
  1453. }
  1454. .headtop {
  1455. margin-top: 1.84rem;
  1456. }
  1457. .label {
  1458. background-color: #eeeeee;
  1459. height: 0.6rem;
  1460. line-height: 0.58rem;
  1461. padding-left: 0.2rem;
  1462. font-size: 0.24rem;
  1463. color: #666666;
  1464. span {
  1465. font-size: 0.2rem;
  1466. display: inline-block;
  1467. margin-left: 0.08rem;
  1468. color: #999999;
  1469. }
  1470. &.formLabel {
  1471. background-color: #fff;
  1472. }
  1473. }
  1474. .conentBox {
  1475. width: 100%;
  1476. .conent {
  1477. font-size: 0.32rem;
  1478. font-weight: 400;
  1479. line-height: 0.45rem;
  1480. // border-bottom: 0.16rem solid #e5e5e5;
  1481. .shows {
  1482. display: none;
  1483. }
  1484. .boeder_B {
  1485. border-bottom: 0.01rem solid #ccc;
  1486. }
  1487. p {
  1488. &.desc{
  1489. overflow: hidden;
  1490. }
  1491. .grayFont {
  1492. width: 75%;
  1493. text-align: right;
  1494. overflow-x: scroll;
  1495. }
  1496. }
  1497. .bottom {
  1498. overflow: hidden;
  1499. line-height: 0.86rem;
  1500. border-bottom: 0.01rem solid #e6e6e6;
  1501. font-size: 0.24rem;
  1502. color: #999;
  1503. padding: 0 0.24rem 0 0.48rem;
  1504. }
  1505. .info {
  1506. color: #999;
  1507. font-size: 0.28rem;
  1508. overflow: hidden;
  1509. .head {
  1510. border-bottom: 0.01rem solid #e6e6e6;
  1511. p {
  1512. padding: 0.24rem 0.3rem;
  1513. i {
  1514. color: #00559d;
  1515. }
  1516. }
  1517. }
  1518. p {
  1519. line-height: 0.4rem;
  1520. padding: 0.1rem 0.24rem;
  1521. overflow: hidden;
  1522. .overflowEllipsis2 {
  1523. margin-left: 1.96rem;
  1524. }
  1525. }
  1526. .info_hide {
  1527. padding: 0.2rem 0.24rem;
  1528. border-bottom: 0.01rem solid #e6e6e6;
  1529. .hide {
  1530. color: #00559d;
  1531. }
  1532. }
  1533. .imgs-container{
  1534. a{
  1535. color:#03c !important;
  1536. &:visited{
  1537. color: #551a8b !important;
  1538. }
  1539. }
  1540. img {
  1541. width: 1.5rem;
  1542. height: 1.5rem;
  1543. margin-right: 0.7rem;
  1544. &:nth-child(1) {
  1545. margin-left: 0.75rem;
  1546. }
  1547. }
  1548. }
  1549. .progress {
  1550. padding: 0.2rem 0.2rem;
  1551. overflow: hidden;
  1552. transition-duration: .2s;
  1553. transition-timing-function: linear;
  1554. &.progressHide{
  1555. height: 1.7rem;
  1556. }
  1557. .progress_info {
  1558. overflow: hidden;
  1559. margin-bottom: 0.1rem;
  1560. &:nth-last-child(1) {
  1561. .cont {
  1562. border: none !important;
  1563. }
  1564. }
  1565. .progress_info_L {
  1566. float: left;
  1567. color: #333;
  1568. max-width: 18%;
  1569. }
  1570. .progress_info_R {
  1571. float: right;
  1572. margin-left: 0.09rem;
  1573. width: 80%;
  1574. font-size: 0.25rem;
  1575. .time {
  1576. i {
  1577. margin-left: -0.15rem;
  1578. &.icon-icon_weizuo {
  1579. color: #005495;
  1580. }
  1581. &.icon-icon_zhengzaijinx {
  1582. color: #48a843;
  1583. font-size: 0.37rem;
  1584. }
  1585. }
  1586. span {
  1587. margin-left: 0.15rem;
  1588. }
  1589. }
  1590. .cont {
  1591. border-left: 1px solid #999;
  1592. padding-left: 0.4rem;
  1593. min-height: 0.4rem;
  1594. &.blue {
  1595. border-left: 1px solid #005395;
  1596. }
  1597. }
  1598. .text1 {
  1599. font-size: 0.15rem;
  1600. }
  1601. .text2 {
  1602. color: #666;
  1603. }
  1604. p {
  1605. padding: 0;
  1606. }
  1607. }
  1608. }
  1609. }
  1610. }
  1611. .txtLabel {
  1612. width: 100%;
  1613. overflow: hidden;
  1614. padding: 0.32rem 0.24rem 0.32rem 0.32rem;
  1615. .txt {
  1616. width: 30%;
  1617. color: #666;
  1618. }
  1619. .cube-textarea-wrapper {
  1620. width: 62%;
  1621. }
  1622. }
  1623. .sub {
  1624. background: #ececec;
  1625. .cube-btn {
  1626. background-color: #005395 !important;
  1627. width: 90%;
  1628. margin: 0.2rem auto;
  1629. border-radius: 8px;
  1630. }
  1631. }
  1632. }
  1633. }
  1634. .showwrap {
  1635. width: 75%;
  1636. text-align: right;
  1637. }
  1638. }
  1639. </style>