index.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  1. <template>
  2. <div class="app-container">
  3. <el-row :gutter="20">
  4. <!--部门数据-->
  5. <el-col v-show="!showMatterView" style="width: 30%;" :xs="24" class="matter-content">
  6. <div class="head-container left-search-div">
  7. <el-input v-model="matterName" placeholder="请输入审查事项名称" clearable size="small"
  8. prefix-icon="el-icon-search"/>
  9. <el-button type="primary" size="small" @click="handleSearchClick">查询</el-button>
  10. </div>
  11. <div class="head-container" style="overflow: auto; height: calc(100% - 50px);">
  12. <el-tree v-show="stepViewFlag" :load="loadDeptNode" :props="defaultProps" :expand-on-click-node="false"
  13. ref="tree" node-key="id" lazy accordion highlight-current
  14. :default-expanded-keys="defaultExpandedKeys" @node-click="handleNodeClick">
  15. <template slot-scope="{ node, data }">
  16. <span class="custom-tree-node" :class="{ 'is-dept': !data.isMatter, 'is-matter': data.isMatter }"
  17. :title="data.deptName ? data.deptName : data.itemName">
  18. <i class="el-icon" :class="data.isMatter ? 'el-icon-tickets' : 'el-icon-office-building'"></i>
  19. <span>{{ data.deptName ? data.deptName : data.itemName }}</span>
  20. </span>
  21. </template>
  22. </el-tree>
  23. <el-tree v-show="!stepViewFlag" :data="searchMatterList" :props="defaultProps" :expand-on-click-node="false"
  24. ref="searchTree" node-key="id" :lazy="false" accordion default-expand-all highlight-current
  25. @node-click="handleNodeClick">
  26. <template slot-scope="{ node, data }">
  27. <span class="custom-tree-node" :class="{ 'is-dept': !data.isMatter, 'is-matter': data.isMatter }"
  28. :title="data.deptName ? data.deptName : data.itemName">
  29. <i class="el-icon" :class="data.isMatter ? 'el-icon-tickets' : 'el-icon-office-building'"></i>
  30. <span>{{ data.deptName ? data.deptName : data.itemName }}</span>
  31. </span>
  32. </template>
  33. </el-tree>
  34. </div>
  35. </el-col>
  36. <el-col class="matter-content" style="margin-left: 5px; margin-right: 5px; width: 30px;">
  37. <i v-show="showMatterView" class="el-icon-d-arrow-right"
  38. style="color: #409eff; cursor: pointer; position: absolute; top: 49%; transform: translateX(-20%);"
  39. @click="changeView(false)"
  40. title="展开"></i>
  41. <i v-show="!showMatterView" class="el-icon-d-arrow-left"
  42. style="color: #409eff; cursor: pointer; position: absolute; top: 49%; transform: translateX(-20%);"
  43. @click="changeView(true)"
  44. title="收起"></i>
  45. </el-col>
  46. <el-col :xs="24" class="matter-content"
  47. :style="showMatterView ? 'width: calc(100% - 40px);' : 'width: calc(70% - 40px);'">
  48. <template v-if="preQuestionPart">
  49. <div class="matter-title-h" style="font-style: italic; color: #00afff; margin-bottom: -10px;"
  50. :title="currMatter.itemName">
  51. <i class="el-icon-collection"></i>&nbsp;&nbsp;{{ currMatter.itemName }}
  52. </div>
  53. <el-divider></el-divider>
  54. <el-alert :title="currMatterQuestion.desc" type="success" class="matter-title" :closable="false">
  55. </el-alert>
  56. <el-row class="pre-question-div" style="margin-top: 20px;overflow-y: scroll;height: calc(100% - 120px);">
  57. <template v-for="option in currMatterQuestion.preQuestionOptionList">
  58. <el-row style="display: flex; justify-content: center; margin: 10px;">
  59. <el-button type="primary" plain class="text-wrap-button" style="width: 50%;"
  60. @click="handleOptionClick(option, $event)">{{
  61. option.desc
  62. }}
  63. </el-button>
  64. </el-row>
  65. </template>
  66. </el-row>
  67. </template>
  68. <template v-if="preMaterialPart">
  69. <el-row>
  70. <el-button type="primary" size="mini" @click="handleDealWith">受理</el-button>
  71. <el-button type="warning" size="mini" @click="handleConnDesktop">远程连接</el-button>
  72. </el-row>
  73. <el-row id="print_material" style="height: 100%; padding: 10px;">
  74. <h2 style="font-style: italic; color: #00afff; margin-bottom: -10px; font-size: 16px;" class="qzprblem"
  75. :title="currMatter.itemName">
  76. <i class="el-icon-collection"></i>&nbsp;&nbsp; {{ currMatter.itemName }}
  77. </h2>
  78. <el-divider></el-divider>
  79. <el-row style="overflow: auto; height: calc(100% - 120px);">
  80. <el-row>
  81. <label style="color: #00afff;">一、申请条件</label>
  82. <div class="matter-material" v-html="currMaterial.conditions"></div>
  83. </el-row>
  84. <el-row style="margin-top: 20px;">
  85. <label style="color: #00afff;">二、现有办理方式</label>
  86. <div class="matter-material" v-html="currMaterial.dealWith"></div>
  87. </el-row>
  88. <el-row style="margin-top: 20px;">
  89. <label style="color: #00afff;">三、材料说明</label>
  90. <div class="matter-material" style="display: flex;">
  91. <div style="width: 30%;">
  92. <ul class="material-list" style="margin-right: 5px;">
  93. <li v-for="item in currMaterial.materialList" @click="handleMaterialItem($event, item)"
  94. class="material-item">
  95. {{ item.listName }}
  96. </li>
  97. </ul>
  98. </div>
  99. <div class="material-line" :style="lineHeight"></div>
  100. <div style="width: 69%; padding: 10px;">
  101. <div v-show="showMaterialInfo" class="material-content">
  102. <template
  103. v-if="!hasRichTextContent(currMaterialInfo.memo) && (!currMaterialInfo.imgList || currMaterialInfo.imgList.length == 0)">
  104. <div style="margin: 10px; color: #aea6a3">暂无数据</div>
  105. </template>
  106. <template v-if="hasRichTextContent(currMaterialInfo.memo)">
  107. <label>审查要点</label>
  108. <div v-html="currMaterialInfo.memo" style="margin: 10px;"></div>
  109. </template>
  110. <div v-for="(url, i) in currMaterialInfo.imgList">
  111. <!-- <label>示例图{{ i + 1 }}</label>-->
  112. <div class="demo-image__lazy" style="margin: 10px;">
  113. <el-image :src="url" lazy :preview-src-list="currMaterialInfo.imgList"
  114. @load="loadImgSuccess"></el-image>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </el-row>
  121. <!-- <el-row style="margin-top: 20px;">-->
  122. <!-- <label style="color: #00afff;">四、材料说明</label>-->
  123. <!-- <div class="matter-material" v-html="currMaterial.desc"></div>-->
  124. <!-- </el-row>-->
  125. <el-row style="margin-top: 20px;">
  126. <label>所属部门:<span style="font-weight: 400;">{{ currMatter.dept.deptName }}</span></label>
  127. </el-row>
  128. <el-row>
  129. <label>联系人员:<span style="font-weight: 400;">{{ currMatter.contacts }}</span></label>
  130. </el-row>
  131. <el-row>
  132. <label>联系电话:<span style="font-weight: 400;">{{ currMatter.contactsPhone }}</span></label>
  133. </el-row>
  134. </el-row>
  135. </el-row>
  136. <el-row id="print_ycxgzd" style="height: auto; padding: 10px;">
  137. <el-row style="overflow: auto; height: calc(100% - 120px);">
  138. <div class="matter-material" style="background-color: #fff;" v-html="currMatterPrintInfo"></div>
  139. </el-row>
  140. </el-row>
  141. <el-row id="print_ycxgzd_fail" style="height: auto; padding: 10px;">
  142. <el-row style="overflow: auto; height: calc(100% - 120px);">
  143. <div class="matter-material" style="background-color: #fff;" v-html="currMatterFailPrintInfo"></div>
  144. </el-row>
  145. </el-row>
  146. <el-row id="print_ycxgzd_deny" style="height: auto; padding: 10px;">
  147. <el-row style="overflow: auto; height: calc(100% - 120px);">
  148. <div class="matter-material" style="background-color: #fff;" v-html="currMatterDenyPrintInfo"></div>
  149. </el-row>
  150. </el-row>
  151. </template>
  152. </el-col>
  153. </el-row>
  154. <el-dialog :title="(currDesktop ? currDesktop.desktopName : '远程连接') | ellipsis"
  155. :close-on-click-modal="false" @close="closeConnDesktop"
  156. :visible.sync="showDesktopConn" width="100%" class="desktop-dialog">
  157. <el-row>
  158. <el-button type="danger" size="mini" style="margin-bottom: 10px;" icon="el-icon-error"
  159. @click="closeConnDesktop">断开连接
  160. </el-button>
  161. </el-row>
  162. <el-row :gutter="20">
  163. <i-frame style="height: calc(100vh - 165px)" :src="vncDesktopPath"/>
  164. </el-row>
  165. </el-dialog>
  166. <el-dialog title="远程连接" :visible.sync="dialogDesktopVisible" :close-on-click-modal="false"
  167. class="vnc-desktop-dialog">
  168. <el-form>
  169. <el-form-item label="服务器" label-width="80px">
  170. <el-select v-model="vncDesktop" filterable popper-class="popper-class"
  171. :popper-append-to-body="false" @change="handleChange"
  172. placeholder="请选择远程服务器" style="width: 100%;">
  173. <el-option
  174. v-for="item in desktopOptions"
  175. :key="item.id"
  176. :label="item.desktopName"
  177. :title="item.desktopName"
  178. :value="item.id">
  179. </el-option>
  180. </el-select>
  181. <div>IP地址:{{ currDesktop ? currDesktop.vncIp : '' }}</div>
  182. </el-form-item>
  183. </el-form>
  184. <div slot="footer" class="dialog-footer">
  185. <el-button @click="handleBtnCancel">取 消</el-button>
  186. <el-button type="primary" @click="handleBtnConn">确 定</el-button>
  187. </div>
  188. </el-dialog>
  189. <el-dialog title="受理单" :visible.sync="dialogDealWithFormVisible" :close-on-click-modal="false" width="800px">
  190. <el-form :model="dealWithForm" ref="dealWithForm" :rules="dealWithFormRules" label-width="120px"
  191. style="height: 60vh; overflow-y: auto;">
  192. <el-form-item label="受理编号" prop="serialNumber">
  193. <el-input v-model="dealWithForm.serialNumber" readonly></el-input>
  194. </el-form-item>
  195. <el-form-item label="办理类型" prop="withType">
  196. <el-radio-group v-model="dealWithForm.withType">
  197. <el-radio :label="1">个人</el-radio>
  198. <el-radio :label="2">企业</el-radio>
  199. </el-radio-group>
  200. </el-form-item>
  201. <el-form-item :label="dealWithForm.withType == 1 ? '姓名' : '联系人'" prop="contacts">
  202. <el-input v-model="dealWithForm.contacts" maxlength="20"></el-input>
  203. </el-form-item>
  204. <el-form-item :label="dealWithForm.withType == 1 ? '身份证号码' : '社会信用代码'" prop="idCard">
  205. <el-input v-model="dealWithForm.idCard" maxlength="50"></el-input>
  206. </el-form-item>
  207. <el-form-item label="联系电话" prop="phone">
  208. <el-input v-model="dealWithForm.phone" maxlength="11"></el-input>
  209. </el-form-item>
  210. <el-table
  211. ref="multipleTable"
  212. :data="dealWithForm.materials"
  213. tooltip-effect="dark"
  214. style="width: 100%"
  215. @selection-change="handleSelectionChange">
  216. <el-table-column type="selection" width="55"></el-table-column>
  217. <el-table-column label="材料名称" prop="listName"></el-table-column>
  218. <el-table-column label="理由" width="200">
  219. <template slot-scope="scope">
  220. <el-input v-if="!scope.row.reasonFlag" v-model="scope.row.reason"></el-input>
  221. </template>
  222. </el-table-column>
  223. <el-table-column label="操作" width="120">
  224. <template slot-scope="scope">
  225. <el-button v-if="scope.row.verification === 1 && scope.row.reasonFlag" type="primary" size="mini"
  226. :disabled="scope.row.manualVerifyId > 0 ? true : false" :key="dealWithKey"
  227. @click="handleManualVerify(scope.row, $event)">{{ scope.row.manualVerifyId > 0 ? '核验中' : '人工核验' }}</el-button>
  228. </template>
  229. </el-table-column>
  230. </el-table>
  231. </el-form>
  232. <div slot="footer" class="dialog-footer">
  233. <el-button type="success" @click="handlePrintDealWith('print_suc')">受理通知单</el-button>
  234. <el-button type="info" @click="handlePrintDealWith('print_fail')">补正材料告知书</el-button>
  235. <el-button type="danger" @click="handlePrintDealWith('print_deny')">不予受理通知书</el-button>
  236. <el-button id="print_suc" type="success" v-print="printSuccessObj" style="display: none;">受理通知单</el-button>
  237. <el-button id="print_fail" type="info" v-print="printFailObj" style="display: none;">补正材料告知书</el-button>
  238. <el-button id="print_deny" type="info" v-print="printDenyObj" style="display: none;">不予受理通知书</el-button>
  239. <el-button type="warning" @click="handleBtnSaveDealWith(1)">物料流转</el-button>
  240. <el-button type="primary" @click="handleBtnSaveDealWith(0)">保存</el-button>
  241. <el-button @click="handleCancelDealWith">取消</el-button>
  242. </div>
  243. </el-dialog>
  244. <!-- 物料流转单打印 -->
  245. <el-dialog title="物料流转单打印" :visible.sync="dealDetailDialog" :close-on-click-modal="false" width="60%"
  246. destroy-on-close append-to-body>
  247. <el-button type="primary" size="small" icon="el-icon-printer" v-print="printObj" style="margin-left: 85%;margin-bottom: 10px;">打印</el-button>
  248. <el-row style="height: 70vh; overflow: auto;">
  249. <el-descriptions v-if="currDealRecord" id="print_deal_detail" class="margin-top" style="width: 100%; overflow: auto;" :column="3"
  250. border :key="detailKey">
  251. <el-descriptions-item :span="3" label-style="width:110px;">
  252. <template slot="label">
  253. <i class="el-icon-price-tag"></i>
  254. 受理编号
  255. </template>
  256. {{ currDealRecord.serialNumber }}
  257. </el-descriptions-item>
  258. <el-descriptions-item :span="3">
  259. <template slot="label">
  260. <i class="el-icon-full-screen"></i>
  261. 条形码
  262. </template>
  263. <el-image :src="'data:image/png;base64,' + currDealRecord.barcode" style="width: 300px;"></el-image>
  264. </el-descriptions-item>
  265. <el-descriptions-item :span="3">
  266. <template slot="label">
  267. <i class="el-icon-tickets"></i>
  268. 事项名称
  269. </template>
  270. {{ currDealRecord.itemName }}
  271. </el-descriptions-item>
  272. <el-descriptions-item>
  273. <template slot="label">
  274. <i class="el-icon-collection-tag"></i>
  275. 业务类型
  276. </template>
  277. {{ currDealRecord.withType == 1 ? '个人' : '企业' }}
  278. </el-descriptions-item>
  279. <el-descriptions-item>
  280. <template slot="label">
  281. <i class="el-icon-user"></i>
  282. 联系人
  283. </template>
  284. {{ currDealRecord.contacts }}
  285. </el-descriptions-item>
  286. <el-descriptions-item>
  287. <template slot="label">
  288. <i class="el-icon-mobile-phone"></i>
  289. 联系电话
  290. </template>
  291. {{ currDealRecord.phone }}
  292. </el-descriptions-item>
  293. <el-descriptions-item :span="3">
  294. <template slot="label">
  295. <i class="el-icon-postcard"></i>
  296. {{ currDealRecord.withType == 1 ? '身份证号码' : '企业社会信用代码' }}
  297. </template>
  298. {{ currDealRecord.idCard }}
  299. </el-descriptions-item>
  300. <el-descriptions-item>
  301. <template slot="label">
  302. <i class="el-icon-user"></i>
  303. 受理人
  304. </template>
  305. {{ currDealRecord.userName }}
  306. </el-descriptions-item>
  307. <el-descriptions-item :span="2">
  308. <template slot="label">
  309. <i class="el-icon-time"></i>
  310. 受理时间
  311. </template>
  312. {{ currDealRecord.createTime }}
  313. </el-descriptions-item>
  314. <el-descriptions-item :span="3">
  315. <template slot="label">
  316. <i class="el-icon-document-checked"></i>
  317. 已有材料
  318. </template>
  319. <template v-if="this.currDealRecord.materialList && this.currDealRecord.materialList.length > 0">
  320. <ul>
  321. <li v-for="(item) in this.currDealRecord.materialList" v-if="item.reasonFlag">
  322. {{ item.verification === 1 ? (item.listName + '【' + item.dealStatusName + '】') : item.listName }}
  323. </li>
  324. </ul>
  325. </template>
  326. </el-descriptions-item>
  327. <el-descriptions-item :span="3">
  328. <template slot="label">
  329. <i class="el-icon-document-delete"></i>
  330. 缺失材料
  331. </template>
  332. <template v-if="this.currDealRecord.materialList && this.currDealRecord.materialList.length > 0">
  333. <ul>
  334. <li v-for="(item) in this.currDealRecord.materialList" v-if="!item.reasonFlag">
  335. {{ item.listName + ',【原因】:' + item.reason }}
  336. </li>
  337. </ul>
  338. </template>
  339. </el-descriptions-item>
  340. </el-descriptions>
  341. </el-row>
  342. </el-dialog>
  343. </div>
  344. </template>
  345. <script>
  346. // 引入Element UI的Loading服务
  347. import {Loading} from 'element-ui'
  348. import {listDept} from '@/api/system/dept'
  349. import {getMatter, listMatterAll} from '@/api/matter/matter'
  350. import {getQuestion} from '@/api/matter/question'
  351. import {getVncDesktop, listAllVncDesktop} from '@/api/matter/vnc'
  352. import iFrame from '@/components/iFrame/index.vue'
  353. import {mapGetters} from 'vuex'
  354. import {
  355. addDealRecord,
  356. addManualVerify,
  357. addPrintLog,
  358. getDealRecordById, getManualVerifyByIds,
  359. getSerialNumber,
  360. listDealRecord
  361. } from "@/api/matter/record";
  362. import Cookies from "js-cookie";
  363. export default {
  364. name: "Index",
  365. components: {iFrame},
  366. computed: {
  367. ...mapGetters([
  368. 'sidebar'
  369. ])
  370. },
  371. data() {
  372. let validateDealWithUser = (rule, value, callback) => {
  373. if (value === '') {
  374. if (this.dealWithForm.withType == 1) {
  375. callback(new Error('请输入姓名'));
  376. } else {
  377. callback(new Error('请输入联系人'));
  378. }
  379. } else {
  380. callback();
  381. }
  382. };
  383. let validateDealWithIdCard = (rule, value, callback) => {
  384. if (value === '') {
  385. if (this.dealWithForm.withType == 1) {
  386. callback(new Error('请输入身份证号码'));
  387. } else {
  388. callback(new Error('请输入企业社会信用代码'));
  389. }
  390. } else {
  391. if (this.dealWithForm.withType == 1) {
  392. let pattern = /^[1-9]\d{5}(18|19|20|21|22)?\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|[Xx])$/;
  393. if (!pattern.test(value)) {
  394. callback(new Error('身份证号码不正确'));
  395. } else {
  396. callback();
  397. }
  398. } else {
  399. let pattern = /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/;
  400. if (!pattern.test(value)) {
  401. callback(new Error('企业统一社会信用代码不正确'));
  402. } else {
  403. callback();
  404. }
  405. }
  406. }
  407. };
  408. return {
  409. // 审查事项名称
  410. matterName: undefined,
  411. // 左侧显示类型:true 部门树 false 搜索树
  412. stepViewFlag: true,
  413. showMatterView: false,
  414. // 是否前置问题部分
  415. preQuestionPart: false,
  416. // 是否材料部分
  417. preMaterialPart: false,
  418. // 当前选中的审查事项
  419. currMatter: undefined,
  420. // 当前选中的审查事项的问题情况
  421. currMatterQuestion: {},
  422. // 当前选中的审查事项的一次性告知单打印模板(受理通知单)
  423. currMatterPrintInfo: {},
  424. // 当前选中的审查事项的一次性告知单打印模板(补正材料告知书)
  425. currMatterFailPrintInfo: {},
  426. // 当前选中的审查事项的一次性告知单打印模板(不予受理通知书)
  427. currMatterDenyPrintInfo: {},
  428. // 当前选中的审查事项问题选项情况
  429. currMaterial: {},
  430. // 材料清单对应的材料介绍
  431. currMaterialInfo: {},
  432. showMaterialInfo: false,
  433. // 搜索事项数据
  434. searchMatterList: [],
  435. // 远程桌面弹框
  436. dialogDesktopVisible: false,
  437. // 受理单弹框
  438. dialogDealWithFormVisible: false,
  439. // 显示远程连接
  440. showDesktopConn: false,
  441. // 远程连接地址
  442. vncDesktopPath: undefined,
  443. vncDesktop: undefined,
  444. currDesktop: undefined,
  445. lineHeight: undefined,
  446. desktopOptions: [],
  447. defaultProps: {
  448. children: 'children',
  449. label: 'deptName',
  450. isLeaf: 'leaf'
  451. },
  452. defaultExpandedKeys: [100],
  453. treeData: [
  454. {id: 100, deptId: 100, deptName: '南岸区', isMatter: false, children: []},
  455. ],
  456. printSuccessObj: {
  457. id: "print_ycxgzd",
  458. popTitle: "受理通知单",
  459. extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
  460. openCallback(vue) {
  461. vue.savePrintLog('print_ycxgzd', 1)
  462. },
  463. closeCallback(vue) {
  464. }
  465. },
  466. printFailObj: {
  467. id: "print_ycxgzd_fail",
  468. popTitle: "补正材料告知书",
  469. extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
  470. openCallback(vue) {
  471. vue.savePrintLog('print_ycxgzd_fail', 2)
  472. },
  473. closeCallback(vue) {
  474. }
  475. },
  476. printDenyObj: {
  477. id: "print_ycxgzd_deny",
  478. popTitle: "不予受理通知书",
  479. extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
  480. openCallback(vue) {
  481. vue.savePrintLog('print_ycxgzd_deny', 3)
  482. },
  483. closeCallback(vue) {
  484. }
  485. },
  486. dealWithKey: 0,
  487. dealWithForm: {
  488. serialNumber: '',
  489. withType: 1,
  490. contacts: '',
  491. idCard: '',
  492. phone: '',
  493. materials: []
  494. },
  495. dealWithFormRules: {
  496. withType: [
  497. {required: true, message: '请选择办理类型', trigger: 'change'}
  498. ],
  499. contacts: [
  500. {required: true, validator: validateDealWithUser}
  501. ],
  502. idCard: [
  503. {required: true, validator: validateDealWithIdCard}
  504. ],
  505. phone: [
  506. {required: true, message: '请输入手机号码', trigger: 'change'},
  507. {required: true, pattern: /^[1]([3-9])[0-9]{9}$/, message: '请输入正确的手机号', trigger: 'blur'}
  508. ]
  509. },
  510. dealDetailDialog: false,
  511. currDealRecord: null,
  512. detailKey: 0,
  513. printObj: {
  514. id: "print_deal_detail",
  515. popTitle: "打印物料流转单",
  516. extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
  517. beforeOpenCallback() {
  518. },
  519. openCallback(vue) {
  520. vue.savePrintLog('print_deal_detail', 4)
  521. },
  522. closeCallback(vue) {
  523. }
  524. }
  525. };
  526. },
  527. filters: {
  528. ellipsis(value) {
  529. if (!value) return ""
  530. if (value.length > 30) {
  531. return value.slice(0, 30) + '...'
  532. }
  533. return value
  534. }
  535. },
  536. watch: {},
  537. mounted() {
  538. history.pushState(null, null, document.URL);
  539. window.addEventListener('popstate', this.disableBrowserBack);
  540. },
  541. created() {
  542. },
  543. methods: {
  544. getAPIPath() {
  545. return process.env.VUE_APP_BASE_API;
  546. },
  547. disableBrowserBack() {
  548. history.pushState(null, null, document.URL);
  549. },
  550. loadDeptNode(node, resolve) {
  551. if (node.level === 0) {
  552. return resolve(this.treeData);
  553. }
  554. if (node.data.isMatter) return resolve([])
  555. listDept({
  556. parentId: node.data.deptId
  557. }).then(response => {
  558. const data = response.data
  559. listMatterAll({
  560. deptId: node.data.deptId
  561. }).then(response => {
  562. const matterData = response.data
  563. const newArray = matterData.map(obj => ({
  564. ...obj,
  565. isMatter: true,
  566. leaf: true
  567. }));
  568. resolve(data.concat(newArray));
  569. });
  570. });
  571. },
  572. /** 左侧树节点单击事件 **/
  573. handleNodeClick(data) {
  574. let _this = this;
  575. if (!data.isMatter) {
  576. return
  577. }
  578. let loadingInstance = Loading.service({fullscreen: true})
  579. this.currMatter = data
  580. this.preMaterialPart = false
  581. this.preQuestionPart = data.prefixQuestion === 'Y'
  582. getMatter(data.id).then(response => {
  583. loadingInstance.close()
  584. const matterData = response.data
  585. this.currMatter = matterData
  586. // this.showMatterView = true
  587. if (this.sidebar.opened) {
  588. this.$store.dispatch('app/toggleSideBar')
  589. }
  590. if (matterData.prefixQuestion === 'Y') {
  591. this.currMatterQuestion = (matterData.preQuestionList && matterData.preQuestionList.length > 0) ? matterData.preQuestionList[0] : {}
  592. this.changePreQuestionViewHeight()
  593. } else {
  594. // 不跳转问题
  595. this.preQuestionPart = false
  596. this.preMaterialPart = true
  597. this.lineHeight = 'height: auto;'
  598. this.currMaterialInfo = {}
  599. this.showMaterialInfo = false
  600. this.currMaterial = matterData.material ? matterData.material : {}
  601. setTimeout(() => {
  602. let listHeight = document.getElementsByClassName('material-list')[0].clientHeight
  603. _this.lineHeight = 'height: ' + listHeight + 'px;'
  604. })
  605. }
  606. });
  607. },
  608. /**
  609. * 切换前置问题高度视图
  610. */
  611. changePreQuestionViewHeight() {
  612. setTimeout(() => {
  613. let qHeight = document.getElementsByClassName('matter-title-h')[0].clientHeight
  614. let tHeight = document.getElementsByClassName('matter-title')[0].clientHeight
  615. let height = (qHeight - 20) + (tHeight - 40) + 120
  616. document.getElementsByClassName('pre-question-div')[0].style.height = 'calc(100% - ' + height + 'px)'
  617. }, 100)
  618. },
  619. /**
  620. * 切换视图显示
  621. */
  622. changeView(flag) {
  623. this.showMatterView = flag
  624. },
  625. commDrawLayoutPrint(content) {
  626. let nTime = new Date();
  627. let nYear = nTime.getFullYear();
  628. let nMonth = nTime.getMonth() + 1;
  629. let nDay = nTime.getDate();
  630. content = content.replace(/{\$year}/g, nYear)
  631. content = content.replace(/{\$month}/g, nMonth < 10 ? ('0' + nMonth) : nMonth)
  632. content = content.replace(/{\$day}/g, nDay < 10 ? ('0' + nDay) : nDay)
  633. content = content.replace(/{\$matter}/g, this.currMatter.itemName)
  634. const username = Cookies.get("username");
  635. content = content.replace(/{\$dealWithUser}/g, username)
  636. content = content.replace(/{\$approveUser}/g, this.dealWithForm.contacts)
  637. content = content.replace(/{\$serialNumber}/g, this.dealWithForm.serialNumber)
  638. return content
  639. },
  640. /** 受理通知单
  641. * {$year}:当前年
  642. * {$month}:当前月
  643. * {$day}:当前日
  644. * {$matter}:事项名称
  645. * {$materialNum}:材料数量
  646. * {$dealWithUser}:受理人
  647. * {$approveUser}:申请人
  648. * {$serialNumber}:受理编号
  649. */
  650. dealWithPrintInfo(num) {
  651. let printObj = this.currMatter.print ? this.currMatter.print : {}
  652. let pintContent = printObj.content ? printObj.content : ''
  653. pintContent = pintContent.replace(/{\$materialNum}/g, num)
  654. pintContent = this.commDrawLayoutPrint(pintContent)
  655. this.currMatterPrintInfo = pintContent
  656. },
  657. /** 补正材料告知书
  658. * {$year}:当前年
  659. * {$month}:当前月
  660. * {$day}:当前日
  661. * {$matter}:事项名称
  662. * {$materialNum}:提交材料数量
  663. * {$materials}:缺失材料信息
  664. * {$dealWithUser}:受理人
  665. * {$approveUser}:申请人
  666. * {$serialNumber}:不予受理编号
  667. */
  668. dealWithMissPrintInfo() {
  669. let printObj = this.currMatter.print ? this.currMatter.print : {}
  670. let pintContent = printObj.missContent ? printObj.missContent : ''
  671. let materialList = this.dealWithForm.materials
  672. let html = '<div>'
  673. let num = 0, mindex = 0
  674. if (materialList && materialList.length > 0) {
  675. let miss = ''
  676. materialList.forEach((item, index) => {
  677. if (!item.reasonFlag) {
  678. num ++
  679. mindex ++
  680. miss += '<p style="padding: 5px;">' + (mindex) + '. ' + item.listName + (item.reason ? (',【理由】:' + item.reason) : '') + '(□ 材料不齐全&nbsp;&nbsp;&nbsp;&nbsp;□不符合法定形式 )</p>'
  681. }
  682. })
  683. if (miss) {
  684. html += miss
  685. } else {
  686. html += '<p style="padding: 5px;">无</p>'
  687. }
  688. } else {
  689. html += '<p style="padding: 5px;">无</p>'
  690. }
  691. html += '</div>'
  692. pintContent = pintContent.replace(/{\$materials}/g, html)
  693. pintContent = pintContent.replace(/{\$materialNum}/g, materialList.length - num)
  694. pintContent = this.commDrawLayoutPrint(pintContent)
  695. this.currMatterFailPrintInfo = pintContent
  696. },
  697. /** 不予受理通知书
  698. * {$year}:当前年
  699. * {$month}:当前月
  700. * {$day}:当前日
  701. * {$matter}:事项名称
  702. * {$materialNum}:材料数量
  703. * {$dealWithUser}:受理人
  704. * {$approveUser}:申请人
  705. * {$serialNumber}:不予受理编号
  706. * {$reason}:不予受理理由
  707. */
  708. dealWithDenyPrintInfo(reason) {
  709. let printObj = this.currMatter.print ? this.currMatter.print : {}
  710. let pintContent = printObj.denyContent ? printObj.denyContent : ''
  711. let materialList = this.dealWithForm.materials
  712. pintContent = pintContent.replace(/{\$materialNum}/g, materialList.length)
  713. pintContent = pintContent.replace(/{\$reason}/g, reason)
  714. pintContent = this.commDrawLayoutPrint(pintContent)
  715. this.currMatterDenyPrintInfo = pintContent
  716. },
  717. /** 问题选项单击事件 **/
  718. handleOptionClick(data, evt) {
  719. let target = evt.target;
  720. if (target.nodeName == "SPAN") {
  721. target = evt.target.parentNode;
  722. }
  723. target.blur();
  724. // 是否跳转下一项问题
  725. if (data.jumpToMatterId <= 0) {
  726. // 不跳转问题
  727. this.preQuestionPart = false
  728. this.preMaterialPart = true
  729. this.lineHeight = 'height: auto;'
  730. this.currMaterialInfo = {}
  731. this.showMaterialInfo = false
  732. this.currMaterial = data.material ? data.material : {}
  733. return
  734. }
  735. // 继续问题跳转
  736. let loadingInstance = Loading.service({fullscreen: true})
  737. getQuestion(data.jumpToMatterId).then(response => {
  738. loadingInstance.close()
  739. const questionData = response.data
  740. this.currMatterQuestion = questionData ? questionData : {}
  741. this.changePreQuestionViewHeight()
  742. });
  743. },
  744. /** 查询事项 **/
  745. handleSearchClick() {
  746. if (!this.matterName) {
  747. this.stepViewFlag = true
  748. return
  749. }
  750. listMatterAll({
  751. itemName: this.matterName
  752. }).then(response => {
  753. const matterData = response.data
  754. this.stepViewFlag = false
  755. if (matterData.length == 0) {
  756. this.searchMatterList = []
  757. return
  758. }
  759. let deptTree = []
  760. matterData.forEach(data => {
  761. let newItem = {
  762. id: data.dept.deptId,
  763. deptName: data.dept.deptName,
  764. children: []
  765. }
  766. let matterItem = data
  767. matterItem.isMatter = true
  768. matterItem.leaf = true
  769. // 查找或创建部门项
  770. let deptItem = this.findOrCreateDeptItem(deptTree, newItem)
  771. // 检查部门项的子项中是否已存在该事项项
  772. if (!deptItem.children.find(child => child.id === matterItem.id)) {
  773. // 不存在则添加到子项中
  774. deptItem.children.push(matterItem)
  775. }
  776. })
  777. this.searchMatterList = deptTree
  778. });
  779. },
  780. /** 数据判重 **/
  781. findOrCreateDeptItem(deptTree, newItem) {
  782. let deptItem = deptTree.find(item => item.id === newItem.id)
  783. if (!deptItem) {
  784. deptItem = newItem
  785. deptTree.push(deptItem)
  786. }
  787. return deptItem
  788. },
  789. /** 检查富文本是否有内容 */
  790. hasRichTextContent(htmlContent) {
  791. if (!htmlContent) return false;
  792. // 去除HTML标签,只保留纯文本
  793. let textContent = htmlContent.replace(/<[^>]*>/g, '');
  794. // 去除空白字符(包括空格、制表符、换行符等)
  795. let trimmedTextContent = textContent.trim();
  796. // 判断纯文本内容是否非空
  797. return trimmedTextContent !== '';
  798. },
  799. /** 材料清单点击事件 **/
  800. handleMaterialItem(e, item) {
  801. let _this = this
  802. const targetElement = e.target;
  803. this.$el.querySelectorAll('.material-item').forEach(el => {
  804. el.classList.remove('material-selected');
  805. });
  806. targetElement.classList.add('material-selected');
  807. this.showMaterialInfo = true
  808. if (item) {
  809. let imgList = item.imgs ? item.imgs.split('*') : []
  810. item.imgList = imgList.map(item => _this.getAPIPath() + item)
  811. this.currMaterialInfo = item
  812. } else {
  813. this.currMaterialInfo = {}
  814. }
  815. let count = 0;
  816. let checkContentHeight = setInterval(function () {
  817. _this.loadImgSuccess()
  818. count++
  819. if (count > 10) clearInterval(checkContentHeight)
  820. }, 100)
  821. },
  822. loadImgSuccess() {
  823. let height = document.getElementsByClassName('material-content')[0].clientHeight
  824. let listHeight = document.getElementsByClassName('material-list')[0].clientHeight
  825. if (height < listHeight) {
  826. height = listHeight
  827. }
  828. console.log(height, listHeight)
  829. this.lineHeight = 'height: ' + height + 'px;'
  830. },
  831. /** 查询远程桌面列表 */
  832. getVncDesktopList() {
  833. listAllVncDesktop(this.queryParams).then(response => {
  834. this.desktopOptions = response.data;
  835. }
  836. );
  837. },
  838. /** 远程桌面选择事件 **/
  839. handleChange(id) {
  840. this.currDesktop = undefined
  841. getVncDesktop(id).then((response) => {
  842. this.currDesktop = response.data;
  843. });
  844. },
  845. /** 远程桌面 **/
  846. handleConnDesktop() {
  847. this.getVncDesktopList()
  848. this.dialogDesktopVisible = true
  849. },
  850. /** 取消远程桌面连接 **/
  851. handleBtnCancel() {
  852. this.currDesktop = undefined
  853. this.vncDesktop = undefined
  854. this.dialogDesktopVisible = false
  855. this.desktopOptions = []
  856. },
  857. /** 远程桌面连接 **/
  858. handleBtnConn() {
  859. history.pushState(null, null, document.URL);
  860. this.showDesktopConn = true
  861. this.dialogDesktopVisible = false
  862. let vnc = this.currDesktop
  863. if (vnc.path) {
  864. this.vncDesktopPath = vnc.path
  865. } else {
  866. this.vncDesktopPath = 'http://' + vnc.vncIp + ':' + vnc.vncPort
  867. }
  868. },
  869. /** 断开远程连接 **/
  870. closeConnDesktop() {
  871. this.showDesktopConn = false
  872. this.handleBtnCancel()
  873. this.vncDesktopPath = ''
  874. },
  875. /** 受理弹窗 **/
  876. handleDealWith() {
  877. this.dealWithForm.materials = []
  878. if (this.currMaterial.materialList.length > 1 ||
  879. (this.currMaterial.materialList.length == 1 && this.currMaterial.materialList[0].listName !== '无')) {
  880. this.dealWithForm.materials = JSON.parse(JSON.stringify(this.currMaterial.materialList))
  881. }
  882. getSerialNumber().then(response => {
  883. if (response.msg == "success") {
  884. this.dealWithForm.serialNumber = response.data
  885. this.dialogDealWithFormVisible = true
  886. } else {
  887. this.$modal.msgError("网络连接失败,请稍候再试");
  888. }
  889. });
  890. },
  891. /** 人工核验 **/
  892. handleManualVerify(data, event) {
  893. let params = {
  894. "dealStatus": 0,
  895. "matterId": this.currMatter.id,
  896. "materialId": data.id
  897. }
  898. this.$confirm('您正在提交人工核验申请, 是否继续?', '温馨提示', {
  899. confirmButtonText: '确定',
  900. cancelButtonText: '取消',
  901. type: 'warning'
  902. }).then(() => {
  903. addManualVerify(params).then((response) => {
  904. if (response.data > 0) {
  905. this.$modal.msgSuccess("提交成功");
  906. this.dealWithForm.materials.forEach((d) => {
  907. if (d.id === data.id) {
  908. d.manualVerifyId = response.data
  909. }
  910. })
  911. this.$nextTick(() => {
  912. this.dealWithKey ++
  913. })
  914. } else {
  915. this.$modal.msgError("提交失败");
  916. }
  917. });
  918. }).catch(() => {
  919. })
  920. },
  921. /** 打印事件参数校验 **/
  922. handlePrintDealWith(elm) {
  923. this.$refs['dealWithForm'].validate((valid) => {
  924. if (valid) {
  925. if (elm == 'print_suc') {
  926. let materialList = this.dealWithForm.materials
  927. let objs = materialList.filter(obj => obj.reasonFlag)
  928. if (materialList.length > 0 && objs.length == 0) {
  929. this.$modal.msgError("请选择相关材料")
  930. return
  931. }
  932. this.dealWithPrintInfo(objs.length)
  933. document.getElementById(elm).click()
  934. }
  935. if (elm == 'print_fail') {
  936. let materialList = this.dealWithForm.materials
  937. let objs = materialList.filter(obj => !obj.reasonFlag)
  938. if (materialList.length == 0 || objs.length == 0) {
  939. this.$modal.msgError("当前没有缺失材料")
  940. return
  941. }
  942. this.dealWithMissPrintInfo()
  943. document.getElementById(elm).click()
  944. }
  945. if (elm == 'print_deny') {
  946. this.$prompt('请输入不予受理的理由和依据', '温馨提示', {
  947. confirmButtonText: '确定',
  948. cancelButtonText: '取消',
  949. }).then(({ value }) => {
  950. if (!value || !value.trim()) {
  951. this.$modal.msgError("理由和依据不能为空")
  952. return
  953. }
  954. this.dealWithDenyPrintInfo(value)
  955. document.getElementById(elm).click()
  956. }).catch(() => {
  957. })
  958. }
  959. } else {
  960. return false;
  961. }
  962. })
  963. },
  964. /** 取消受理弹出框 **/
  965. handleCancelDealWith() {
  966. this.dialogDealWithFormVisible = false
  967. this.$refs['dealWithForm'].resetFields();
  968. },
  969. printDetail(id) {
  970. let params = {
  971. "id": id
  972. }
  973. getDealRecordById(params).then((response) => {
  974. if (response.data) {
  975. this.currDealRecord = response.data
  976. if (this.currDealRecord.materials) {
  977. let obj = JSON.parse(this.currDealRecord.materials)
  978. let manualVerifyList = []
  979. obj.forEach((item, index) => {
  980. if (item.verification === 1) {
  981. manualVerifyList.push(item.manualVerifyId)
  982. }
  983. })
  984. if (manualVerifyList && manualVerifyList.length > 0) {
  985. getManualVerifyByIds(manualVerifyList).then(response => {
  986. let data = response.data
  987. obj.forEach((item, index) => {
  988. data.forEach((d) => {
  989. if (d.materialId == item.id) {
  990. item.dealStatus = d.dealStatus
  991. item.dealStatusName = d.dealStatus == 1 ? '人工核验通过' : (d.dealStatus == 2 ? '人工核验未通过' : '待核验')
  992. }
  993. })
  994. })
  995. this.$nextTick(() => {
  996. this.currDealRecord.materialList = obj
  997. this.detailKey ++
  998. })
  999. });
  1000. } else {
  1001. this.$nextTick(() => {
  1002. this.currDealRecord.materialList = obj
  1003. this.detailKey ++
  1004. })
  1005. }
  1006. }
  1007. this.dealDetailDialog = true
  1008. return
  1009. }
  1010. this.$modal.msgError("查询数据失败")
  1011. });
  1012. },
  1013. /** 保存受理信息 **/
  1014. handleBtnSaveDealWith(withStatus) {
  1015. this.$refs['dealWithForm'].validate((valid) => {
  1016. if (valid) {
  1017. let tempList = this.dealWithForm.materials
  1018. for (let i = 0; i < tempList.length; i ++) {
  1019. let d = tempList[i]
  1020. if (!d.reasonFlag && !d.reason) {
  1021. this.$modal.msgError("未选择的材料请填写理由")
  1022. return
  1023. }
  1024. if (d.reasonFlag && d.verification == 1 && (!d.manualVerifyId || d.manualVerifyId <= 0)) {
  1025. this.$modal.msgError("选择的材料中包含人工核验材料,请先提交人工审核")
  1026. return
  1027. }
  1028. }
  1029. let data = JSON.parse(JSON.stringify(this.dealWithForm))
  1030. data.serialNumber = this.dealWithForm.serialNumber
  1031. data.withStatus = withStatus
  1032. data.matterId = this.currMatter.id
  1033. data.materials = JSON.stringify(this.dealWithForm.materials)
  1034. addDealRecord(data).then((response) => {
  1035. if (response.code == 200) {
  1036. this.$modal.msgSuccess("保存成功");
  1037. this.handleCancelDealWith()
  1038. if (withStatus == 1) {
  1039. this.printDetail(response.data)
  1040. }
  1041. return
  1042. }
  1043. this.$modal.msgError("保存失败")
  1044. });
  1045. } else {
  1046. return false;
  1047. }
  1048. })
  1049. },
  1050. handleSelectionChange(datas) {
  1051. this.dealWithForm.materials.forEach((m) => {
  1052. m.reasonFlag = false
  1053. datas.forEach((d) => {
  1054. if (d.id === m.id) {
  1055. m.reasonFlag = true
  1056. }
  1057. })
  1058. })
  1059. },
  1060. /** 新增打印日志 **/
  1061. savePrintLog(elm, type) {
  1062. let data = JSON.parse(JSON.stringify(this.dealWithForm))
  1063. data.content = document.getElementById(elm).outerHTML
  1064. data.printType = type
  1065. data.matter = this.currMatter.id
  1066. data.matterName = this.currMatter.itemName
  1067. addPrintLog(data).then((response) => {
  1068. });
  1069. },
  1070. /** 打印材料事件 **/
  1071. handleMaterialPrint() {
  1072. let printContent = document.getElementById('print_material').innerHTML;
  1073. let windowObjectReference = window.open(null, 'Print', 'height=100%,width=100%');
  1074. windowObjectReference.document.write('<html><head><title>审查事项材料清单</title>');
  1075. windowObjectReference.document.write('</head><body >');
  1076. windowObjectReference.document.write(printContent);
  1077. windowObjectReference.document.write('</body></html>');
  1078. windowObjectReference.document.close();
  1079. windowObjectReference.print();
  1080. }
  1081. },
  1082. destroyed() {
  1083. window.removeEventListener("popstate", this.disableBrowserBack, false);
  1084. }
  1085. };
  1086. </script>
  1087. <style scoped>
  1088. @media print {
  1089. #print_material {
  1090. height: 100%;
  1091. }
  1092. }
  1093. .left-search-div {
  1094. display: flex;
  1095. flex-direction: row;
  1096. align-items: center;
  1097. margin-bottom: 20px;
  1098. }
  1099. .matter-content {
  1100. padding: 10px;
  1101. border: 1px solid #cdc9c9;
  1102. height: calc(100vh - 130px);
  1103. }
  1104. .matter-title {
  1105. margin-top: 0px;
  1106. background-color: #E7F0F9;
  1107. color: #217BD3;
  1108. font-weight: 600;
  1109. display: flex;
  1110. justify-content: center;
  1111. }
  1112. .matter-material {
  1113. background-color: #E7F0F9;
  1114. margin-top: 10px;
  1115. min-height: 50px;
  1116. border-radius: 8px;
  1117. font-size: 14px;
  1118. padding: 10px;
  1119. word-wrap: break-word;
  1120. }
  1121. .material-item {
  1122. padding: 5px;
  1123. cursor: pointer;
  1124. color: #82848a;
  1125. }
  1126. .material-selected {
  1127. color: #ffffff;
  1128. background-color: #82848a;
  1129. }
  1130. .el-button--primary.is-plain span {
  1131. letter-spacing: 2px;
  1132. line-height: 18px;
  1133. }
  1134. .custom-tree-node {
  1135. display: flex;
  1136. align-items: center;
  1137. }
  1138. .custom-tree-node .el-icon {
  1139. margin-right: 8px;
  1140. }
  1141. .is-dept .el-icon {
  1142. color: #409eff;
  1143. }
  1144. .is-matter .el-icon {
  1145. color: green;
  1146. }
  1147. .material-line {
  1148. width: 4px;
  1149. border-radius: 2px;
  1150. background: #c0c4cc;
  1151. height: 100%;
  1152. min-height: 50px;
  1153. }
  1154. .text-wrap-button {
  1155. white-space: normal !important;
  1156. word-break: break-all;
  1157. display: flex;
  1158. flex-direction: column;
  1159. align-items: center;
  1160. justify-content: center;
  1161. }
  1162. ::v-deep .popper-class {
  1163. max-width: 300px;
  1164. }
  1165. ::v-deep .el-checkbox__label {
  1166. vertical-align: text-top;
  1167. white-space: normal;
  1168. word-break: break-all;
  1169. width: 100%;
  1170. }
  1171. </style>
  1172. <style>
  1173. .el-alert__title {
  1174. font-size: 18px !important;
  1175. line-height: 36px !important;
  1176. }
  1177. .el-button--primary.is-plain {
  1178. /* color: #575757!important; */
  1179. }
  1180. .el-button--primary.is-plain:focus,
  1181. .el-button--primary.is-plain:hover {
  1182. color: #fff !important;
  1183. }
  1184. .ql-align-center {
  1185. text-align: center;
  1186. }
  1187. .el-divider--horizontal {
  1188. margin: 20px 0;
  1189. }
  1190. .qzprblem {
  1191. overflow: hidden;
  1192. display: -webkit-box;
  1193. -webkit-line-clamp: 2;
  1194. /* 设置最大显示行数 */
  1195. -webkit-box-orient: vertical;
  1196. text-overflow: ellipsis;
  1197. }
  1198. .custom-tree-node {
  1199. width: calc(100% - 20px);
  1200. }
  1201. .custom-tree-node span {
  1202. white-space: nowrap;
  1203. overflow: hidden;
  1204. text-overflow: ellipsis;
  1205. }
  1206. .desktop-dialog {
  1207. height: 100% !important;
  1208. }
  1209. .desktop-dialog > .el-dialog {
  1210. margin-top: 0 !important;
  1211. height: 100% !important;
  1212. }
  1213. .el-dialog__title {
  1214. white-space: nowrap;
  1215. overflow: hidden;
  1216. text-overflow: ellipsis;
  1217. max-width: 100%;
  1218. }
  1219. .desktop-dialog > .el-dialog > .el-dialog__body {
  1220. height: auto;
  1221. }
  1222. .vnc-desktop-dialog > .el-dialog {
  1223. height: auto;
  1224. }
  1225. .vnc-desktop-dialog > .el-dialog > .el-dialog__body {
  1226. height: 120px !important;
  1227. overflow: hidden;
  1228. }
  1229. .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  1230. background-color: #aad6ff;
  1231. }
  1232. .matter-title > .el-alert__content > .el-alert__title {
  1233. line-height: 24px !important;
  1234. }
  1235. </style>