index.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="68px"
  9. >
  10. <el-form-item prop="unitId">
  11. <el-select
  12. v-model="queryParams.peopleId"
  13. placeholder="请选择用车人姓名"
  14. @change="handleQuery"
  15. filterable
  16. class="input_xiala"
  17. >
  18. <el-option
  19. v-for="item in renYuans"
  20. :key="item.id"
  21. :label="item.name"
  22. :value="item.id"
  23. class="input_xiala"
  24. >
  25. </el-option>
  26. </el-select>
  27. </el-form-item>
  28. <el-form-item>
  29. <!-- <el-button
  30. type="primary"
  31. icon="el-icon-search"
  32. size="mini"
  33. @click="handleQuery"
  34. >搜索</el-button
  35. > -->
  36. <el-button size="btr" @click="resetQuery">重置</el-button>
  37. </el-form-item>
  38. </el-form>
  39. <el-row :gutter="10" class="mb8">
  40. <el-col :span="1.5">
  41. <el-button
  42. type="primary"
  43. plain
  44. icon="el-icon-plus"
  45. size="mini"
  46. @click="handleAdd"
  47. v-hasPermi="['militaryvehicleManagement:thebusApply:add']"
  48. >新增</el-button
  49. >
  50. </el-col>
  51. <el-col :span="1.5">
  52. <el-button
  53. type="success"
  54. plain
  55. icon="el-icon-edit"
  56. size="mini"
  57. :disabled="single"
  58. @click="handleUpdate"
  59. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  60. >修改</el-button
  61. >
  62. </el-col>
  63. <el-col :span="1.5">
  64. <el-button
  65. type="danger"
  66. plain
  67. icon="el-icon-delete"
  68. size="mini"
  69. :disabled="multiple"
  70. @click="handleDelete"
  71. v-hasPermi="['militaryvehicleManagement:thebusApply:remove']"
  72. >删除</el-button
  73. >
  74. </el-col>
  75. <el-col :span="1.5">
  76. <el-button
  77. class="box"
  78. type="warning"
  79. plain
  80. icon="el-icon-download"
  81. size="mini"
  82. :loading="exportLoading"
  83. @click="handleExport"
  84. v-hasPermi="['militaryvehicleManagement:thebusApply:export']"
  85. >导出</el-button
  86. >
  87. </el-col>
  88. <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
  89. </el-row>
  90. <!-- 列表选项 -->
  91. <el-table
  92. v-loading="loading"
  93. :data="thebusApplyList"
  94. @selection-change="handleSelectionChange"
  95. :header-cell-style="{ background: '#003C69', color: 'white' }"
  96. >
  97. <el-table-column type="selection" width="55" align="center" />
  98. <el-table-column label="序号" align="center" prop="id">
  99. <template scope="scope">
  100. <span>{{
  101. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  102. }}</span>
  103. </template>
  104. </el-table-column>
  105. <el-table-column label="人数" align="center" prop="peopleCount" />
  106. <el-table-column label="单位" align="center" prop="unitName" />
  107. <el-table-column label="人员名称" align="center" prop="peopleName" />
  108. <el-table-column
  109. label="联系方式"
  110. align="center"
  111. prop="contact"
  112. width="130"
  113. />
  114. <el-table-column label="外出事由" align="center" prop="cause" />
  115. <el-table-column
  116. label="营级审批人"
  117. align="center"
  118. prop="unitPeopleName"
  119. width="90"
  120. />
  121. <el-table-column label="营级审批状态" align="center" width="100">
  122. <template slot-scope="scope">
  123. <el-col v-if="scope.row.unitPeopleState == 1" style="color: #ffba00"
  124. >未处理</el-col
  125. >
  126. <el-col v-if="scope.row.unitPeopleState == 2" style="color: #13ce66"
  127. >已审批</el-col
  128. >
  129. <el-col
  130. v-if="scope.row.unitPeopleState == 3"
  131. :title="scope.row.unitPeopleRemark"
  132. style="color: #00eaff"
  133. >已驳回</el-col
  134. >
  135. <el-col
  136. v-if="scope.row.unitPeopleState == 4"
  137. :title="scope.row.unitPeopleRemark"
  138. style="color: #1d96ff"
  139. >特殊审批</el-col
  140. >
  141. </template>
  142. </el-table-column>
  143. <el-table-column label="初审状态" align="center">
  144. <template slot-scope="scope">
  145. <el-col v-if="scope.row.chushenState == 1" style="color: #ffba00"
  146. >未处理</el-col
  147. >
  148. <el-col v-if="scope.row.chushenState == 2" style="color: #13ce66"
  149. >已审批</el-col
  150. >
  151. <el-col
  152. v-if="scope.row.chushenState == 3"
  153. :title="scope.row.chushenRemark"
  154. style="color: #00eaff"
  155. >已驳回</el-col
  156. >
  157. <el-col
  158. v-if="scope.row.chushenState == 4"
  159. :title="scope.row.chushenRemark"
  160. style="color: #1d96ff"
  161. >特殊审批</el-col
  162. >
  163. </template>
  164. </el-table-column>
  165. <el-table-column
  166. label="一级审批人"
  167. align="center"
  168. prop="peopleoneName"
  169. width="90"
  170. />
  171. <el-table-column label="一级审批状态" align="center" width="100">
  172. <template slot-scope="scope">
  173. <el-col v-if="scope.row.peopleoneState == 1" style="color: #ffba00"
  174. >未处理</el-col
  175. >
  176. <el-col v-if="scope.row.peopleoneState == 2" style="color: #13ce66"
  177. >已审批</el-col
  178. >
  179. <el-col
  180. v-if="scope.row.peopleoneState == 3"
  181. :title="scope.row.peopleoneRemark"
  182. style="color: #00eaff"
  183. >已驳回</el-col
  184. >
  185. <el-col
  186. v-if="scope.row.peopleoneState == 4"
  187. :title="scope.row.peopleoneRemark"
  188. style="color: #1d96ff"
  189. >特殊审批</el-col
  190. >
  191. </template>
  192. </el-table-column>
  193. <el-table-column
  194. label="二级审批人"
  195. align="center"
  196. prop="peopletwoName"
  197. width="90"
  198. />
  199. <el-table-column label="二级审批状态" align="center" width="100">
  200. <template slot-scope="scope">
  201. <el-col v-if="scope.row.peopletwoState == 1" style="color: #ffba00"
  202. >未处理</el-col
  203. >
  204. <el-col v-if="scope.row.peopletwoState == 2" style="color: #13ce66"
  205. >已审批</el-col
  206. >
  207. <el-col
  208. v-if="scope.row.peopletwoState == 3"
  209. :title="scope.row.peopletwoRemark"
  210. style="color: #00eaff"
  211. >已驳回</el-col
  212. >
  213. <el-col
  214. v-if="scope.row.peopletwoState == 4"
  215. :title="scope.row.peopletwoRemark"
  216. style="color: #1d96ff"
  217. >特殊审批</el-col
  218. >
  219. </template>
  220. </el-table-column>
  221. <el-table-column
  222. label="三级审批人"
  223. align="center"
  224. prop="peoplethreeName"
  225. width="90"
  226. />
  227. <el-table-column label="三级审批状态" align="center" width="100">
  228. <template slot-scope="scope">
  229. <el-col v-if="scope.row.peoplethreeState == 1" style="color: #ffba00"
  230. >未处理</el-col
  231. >
  232. <el-col v-if="scope.row.peoplethreeState == 2" style="color: #13ce66"
  233. >已审批</el-col
  234. >
  235. <el-col
  236. v-if="scope.row.peoplethreeState == 3"
  237. :title="scope.row.peoplethreeRemark"
  238. style="color: #00eaff"
  239. >已驳回</el-col
  240. >
  241. <el-col
  242. v-if="scope.row.peoplethreeState == 4"
  243. :title="scope.row.peoplethreeRemark"
  244. style="color: #1d96ff"
  245. >特殊审批</el-col
  246. >
  247. </template>
  248. </el-table-column>
  249. <el-table-column
  250. fixed="right"
  251. label="操作"
  252. align="center"
  253. class-name="small-padding fixed-width"
  254. width="200"
  255. >
  256. <template slot-scope="scope">
  257. <div v-if="scope.row.isTeShu == '1'">
  258. <!-- 1 -->
  259. <el-button
  260. size="bts"
  261. type="text"
  262. v-if="
  263. scope.row.peopleoneState == '1' &&
  264. scope.row.shenpijiedian == '3'
  265. "
  266. @click="handleTeShuShenPi(scope.row)"
  267. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  268. style="width: 100px"
  269. >特殊审批</el-button
  270. >
  271. <!-- 2 -->
  272. <el-button
  273. size="bts"
  274. type="text"
  275. v-if="
  276. scope.row.peopletwoState == '1' &&
  277. scope.row.shenpijiedian == '4'
  278. "
  279. @click="handleTeShuShenPi(scope.row)"
  280. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  281. >特殊审批</el-button
  282. >
  283. <!-- 3 -->
  284. <el-button
  285. size="bts"
  286. type="text"
  287. v-if="
  288. scope.row.peoplethreeState == '1' &&
  289. scope.row.shenpijiedian == '5'
  290. "
  291. @click="handleTeShuShenPi(scope.row)"
  292. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  293. >特殊审批</el-button
  294. >
  295. </div>
  296. <div v-if="scope.row.status == '1' && scope.row.isCaoZuo == '0'">
  297. <!-- 1 -->
  298. <el-button
  299. size="btc"
  300. type="text"
  301. v-if="
  302. scope.row.unitPeopleState == '1' &&
  303. scope.row.shenpijiedian == '1' &&
  304. scope.row.yingjicaozuoren == 'yingji'
  305. "
  306. @click="handleShenPi(scope.row)"
  307. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  308. >审批</el-button
  309. >
  310. <!-- 2 -->
  311. <el-button
  312. size="btc"
  313. type="text"
  314. v-if="
  315. scope.row.chushenState == '1' &&
  316. scope.row.shenpijiedian == '2' &&
  317. scope.row.chushenyuan == 'chushen'
  318. "
  319. @click="handleShenPi(scope.row)"
  320. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  321. >审批</el-button
  322. >
  323. <!-- 3 -->
  324. <el-button
  325. size="btc"
  326. type="text"
  327. v-if="
  328. scope.row.peopleoneState == '1' &&
  329. scope.row.shenpijiedian == '3'
  330. "
  331. @click="handleShenPi(scope.row)"
  332. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  333. >审批</el-button
  334. >
  335. <!-- 4 -->
  336. <el-button
  337. size="btc"
  338. type="text"
  339. v-if="
  340. scope.row.peopletwoState == '1' &&
  341. scope.row.shenpijiedian == '4'
  342. "
  343. @click="handleShenPi(scope.row)"
  344. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  345. >审批</el-button
  346. >
  347. <!-- 5 -->
  348. <el-button
  349. size="btc"
  350. type="text"
  351. v-if="
  352. scope.row.peoplethreeState == '1' &&
  353. scope.row.shenpijiedian == '5'
  354. "
  355. @click="handleShenPi(scope.row)"
  356. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  357. >审批</el-button
  358. >
  359. </div>
  360. <el-button
  361. size="btu"
  362. type="text"
  363. @click="handleUpdate(scope.row)"
  364. v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
  365. >修改</el-button
  366. >
  367. <el-button
  368. size="btd"
  369. type="text"
  370. @click="handleDelete(scope.row)"
  371. v-hasPermi="['militaryvehicleManagement:thebusApply:remove']"
  372. >删除</el-button
  373. >
  374. </template>
  375. </el-table-column>
  376. </el-table>
  377. <pagination
  378. v-show="total > 0"
  379. :total="total"
  380. :page.sync="queryParams.pageNum"
  381. :limit.sync="queryParams.pageSize"
  382. @pagination="getList"
  383. />
  384. <!-- 添加或修改用车申请对话框 -->
  385. <el-dialog
  386. :title="title"
  387. :visible.sync="open"
  388. width="500px"
  389. append-to-body
  390. :close-on-click-modal="false"
  391. >
  392. <el-form
  393. ref="form"
  394. :model="form"
  395. :rules="rules"
  396. label-width="80px"
  397. inline
  398. >
  399. <el-form-item label="单位" prop="unitId">
  400. <treeselect
  401. v-model="form.unitId"
  402. :options="treeList"
  403. placeholder="选择单位"
  404. @select="selectPeo"
  405. />
  406. </el-form-item>
  407. <el-form-item label="人数" prop="peopleCount">
  408. <el-input v-model="form.peopleCount" placeholder="请输入人数" />
  409. </el-form-item>
  410. <el-form-item label="人员名称" prop="peopleId">
  411. <el-select
  412. v-model="form.peopleId"
  413. placeholder="请选择人员名称"
  414. filterable
  415. >
  416. <el-option
  417. v-for="(item, i) in renYuan"
  418. :key="i"
  419. :label="item.name"
  420. :value="item.id"
  421. @click.native="cheRen(item.name)"
  422. class="input_xiala"
  423. >
  424. </el-option>
  425. </el-select>
  426. </el-form-item>
  427. <el-form-item label="联系方式" prop="contact">
  428. <el-input v-model="form.contact" placeholder="请输入联系方式" />
  429. </el-form-item>
  430. <el-form-item label="外出事由" prop="cause">
  431. <el-input v-model="form.cause" placeholder="请输入外出事由" />
  432. </el-form-item>
  433. <el-form-item label="用车开始时间" prop="authStime">
  434. <el-date-picker
  435. clearable
  436. size="small"
  437. v-model="form.authStime"
  438. type="datetime"
  439. placeholder="用车开始时间"
  440. >
  441. </el-date-picker>
  442. </el-form-item>
  443. <el-form-item label="用车结束时间" prop="authEtime">
  444. <el-date-picker
  445. clearable
  446. size="small"
  447. v-model="form.authEtime"
  448. type="datetime"
  449. placeholder="用车结束时间"
  450. >
  451. </el-date-picker>
  452. </el-form-item>
  453. <el-form-item label="所在单位审批" prop="unitPeopleId">
  454. <el-select
  455. v-model="form.unitPeopleId"
  456. placeholder="请选择所在单位审批人"
  457. filterable
  458. >
  459. <el-option
  460. v-for="(item, i) in userRen"
  461. :key="i"
  462. :label="item.nickName"
  463. :value="item.userId"
  464. @click.native="yinJi(item.nickName)"
  465. class="input_xiala"
  466. >
  467. </el-option>
  468. </el-select>
  469. </el-form-item>
  470. <el-form-item label="审批模板" prop="thebusThemplateId">
  471. <el-select
  472. v-model="form.thebusThemplateId"
  473. placeholder="请选择审批模板"
  474. filterable
  475. >
  476. <el-option
  477. v-for="(item, i) in shenPi"
  478. :key="i"
  479. :label="item.shenpiname"
  480. :value="item.id"
  481. @click.native="shenPiThemplate(item)"
  482. class="input_xiala"
  483. >
  484. </el-option>
  485. </el-select>
  486. </el-form-item>
  487. <el-form-item label="一级审批人" prop="people1Id">
  488. <el-input
  489. v-model="form.peopleoneName"
  490. placeholder="请输入一级审批人"
  491. class="input_xiala"
  492. readonly
  493. />
  494. </el-form-item>
  495. <el-form-item label="二级审批人" prop="people2Id">
  496. <el-input
  497. v-model="form.peopletwoName"
  498. placeholder="请输入二级审批人"
  499. class="input_xiala"
  500. readonly
  501. />
  502. </el-form-item>
  503. <el-form-item label="三级审批人" prop="people3Id">
  504. <el-input
  505. v-model="form.peoplethreeName"
  506. placeholder="请输入三级审批人"
  507. class="input_xiala"
  508. readonly
  509. />
  510. </el-form-item>
  511. <div class="jiben">出车路线</div>
  512. <el-form-item prop="route">
  513. <el-input
  514. v-model="form.route"
  515. type="textarea"
  516. placeholder="请输入出车路线"
  517. />
  518. </el-form-item>
  519. </el-form>
  520. <div slot="footer" class="dialog-footer">
  521. <el-button type="primary" @click="submitForm">确 定</el-button>
  522. <el-button @click="cancel" size="btn">取 消</el-button>
  523. </div>
  524. </el-dialog>
  525. <!-- 审批对话框 -->
  526. <el-dialog
  527. :title="title"
  528. :visible.sync="opens"
  529. width="500px"
  530. append-to-body
  531. :close-on-click-modal="false"
  532. >
  533. <el-form
  534. ref="forms"
  535. :model="form"
  536. :rules="formRules"
  537. label-width="80px"
  538. inline
  539. >
  540. <el-form-item label="单位" prop="unitId">
  541. <treeselect
  542. v-model="form.unitId"
  543. :options="treeList"
  544. placeholder="选择单位"
  545. @select="selectPeo"
  546. />
  547. </el-form-item>
  548. <el-form-item label="人数" prop="peopleCount">
  549. <el-input v-model="form.peopleCount" placeholder="请输入人数" />
  550. </el-form-item>
  551. <el-form-item label="人员名称" prop="peopleId">
  552. <el-select
  553. v-model="form.peopleId"
  554. placeholder="请选择人员名称"
  555. filterable
  556. >
  557. <el-option
  558. v-for="(item, i) in renYuan"
  559. :key="i"
  560. :label="item.name"
  561. :value="item.id"
  562. @click.native="cheRen(item.name)"
  563. >
  564. </el-option>
  565. </el-select>
  566. </el-form-item>
  567. <el-form-item label="联系方式" prop="contact">
  568. <el-input v-model="form.contact" placeholder="请输入联系方式" />
  569. </el-form-item>
  570. <el-form-item label="外出事由" prop="cause">
  571. <el-input v-model="form.cause" placeholder="请输入外出事由" />
  572. </el-form-item>
  573. <el-form-item label="用车开始时间" prop="authStime">
  574. <el-date-picker
  575. clearable
  576. size="small"
  577. v-model="form.authStime"
  578. type="datetime"
  579. placeholder="用车开始时间"
  580. >
  581. </el-date-picker>
  582. </el-form-item>
  583. <el-form-item label="用车结束时间" prop="authEtime">
  584. <el-date-picker
  585. clearable
  586. size="small"
  587. v-model="form.authEtime"
  588. type="datetime"
  589. placeholder="用车结束时间"
  590. >
  591. </el-date-picker>
  592. </el-form-item>
  593. <el-form-item label="所在单位审批" prop="unitPeopleId">
  594. <el-select
  595. v-model="form.unitPeopleId"
  596. placeholder="请选择所在单位审批人"
  597. filterable
  598. >
  599. <el-option
  600. v-for="(item, i) in userRen"
  601. :key="i"
  602. :label="item.nickName"
  603. :value="item.userId"
  604. @click.native="yinJi(item.nickName)"
  605. >
  606. </el-option>
  607. </el-select>
  608. </el-form-item>
  609. <el-form-item label="审批模板" prop="thebusThemplateId">
  610. <el-select
  611. v-model="form.thebusThemplateId"
  612. placeholder="请选择审批模板"
  613. filterable
  614. >
  615. <el-option
  616. v-for="(item, i) in shenPi"
  617. :key="i"
  618. :label="item.shenpiname"
  619. :value="item.id"
  620. @click.native="shenPiThemplate(item)"
  621. >
  622. </el-option>
  623. </el-select>
  624. </el-form-item>
  625. <el-form-item label="一级审批人" prop="people1Id">
  626. <el-input
  627. v-model="form.peopleoneName"
  628. placeholder="请输入一级审批人"
  629. readonly
  630. />
  631. </el-form-item>
  632. <el-form-item label="二级审批人" prop="people2Id">
  633. <el-input
  634. v-model="form.peopletwoName"
  635. placeholder="请输入二级审批人"
  636. readonly
  637. />
  638. </el-form-item>
  639. <el-form-item label="三级审批人" prop="people3Id">
  640. <el-input
  641. v-model="form.peoplethreeName"
  642. placeholder="请输入三级审批人"
  643. readonly
  644. />
  645. </el-form-item>
  646. <div class="jiben">出车路线</div>
  647. <el-form-item prop="route">
  648. <el-input
  649. v-model="form.route"
  650. type="textarea"
  651. placeholder="请输入出车路线"
  652. />
  653. </el-form-item>
  654. <div class="jiben">不通过原因</div>
  655. <el-form-item prop="routes">
  656. <el-input v-model="form.routes" type="textarea" />
  657. </el-form-item>
  658. </el-form>
  659. <div slot="footer" class="dialog-footer">
  660. <el-button type="primary" @click="submitFormShenPi">通过</el-button>
  661. <el-button @click="cancelShenPi" size="btn">不通过</el-button>
  662. </div>
  663. </el-dialog>
  664. <!-- 特殊审批对话框 -->
  665. <el-dialog
  666. :title="title"
  667. :visible.sync="opensTe"
  668. width="500px"
  669. append-to-body
  670. :close-on-click-modal="false"
  671. >
  672. <el-form
  673. ref="formsTe"
  674. :model="form"
  675. :rules="formRulesTe"
  676. label-width="80px"
  677. inline
  678. >
  679. <el-form-item label="单位" prop="unitId">
  680. <treeselect
  681. v-model="form.unitId"
  682. :options="treeList"
  683. placeholder="选择单位"
  684. @select="selectPeo"
  685. />
  686. </el-form-item>
  687. <el-form-item label="人数" prop="peopleCount">
  688. <el-input v-model="form.peopleCount" placeholder="请输入人数" />
  689. </el-form-item>
  690. <el-form-item label="人员名称" prop="peopleId">
  691. <el-select
  692. v-model="form.peopleId"
  693. placeholder="请选择人员名称"
  694. filterable
  695. >
  696. <el-option
  697. v-for="(item, i) in renYuan"
  698. :key="i"
  699. :label="item.name"
  700. :value="item.id"
  701. @click.native="cheRen(item.name)"
  702. >
  703. </el-option>
  704. </el-select>
  705. </el-form-item>
  706. <el-form-item label="联系方式" prop="contact">
  707. <el-input v-model="form.contact" placeholder="请输入联系方式" />
  708. </el-form-item>
  709. <el-form-item label="外出事由" prop="cause">
  710. <el-input v-model="form.cause" placeholder="请输入外出事由" />
  711. </el-form-item>
  712. <el-form-item label="用车开始时间" prop="authStime">
  713. <el-date-picker
  714. clearable
  715. size="small"
  716. v-model="form.authStime"
  717. type="datetime"
  718. placeholder="用车开始时间"
  719. >
  720. </el-date-picker>
  721. </el-form-item>
  722. <el-form-item label="用车结束时间" prop="authEtime">
  723. <el-date-picker
  724. clearable
  725. size="small"
  726. v-model="form.authEtime"
  727. type="datetime"
  728. placeholder="用车结束时间"
  729. >
  730. </el-date-picker>
  731. </el-form-item>
  732. <el-form-item label="所在单位审批" prop="unitPeopleId">
  733. <el-select
  734. v-model="form.unitPeopleId"
  735. placeholder="请选择所在单位审批人"
  736. filterable
  737. >
  738. <el-option
  739. v-for="(item, i) in userRen"
  740. :key="i"
  741. :label="item.nickName"
  742. :value="item.userId"
  743. @click.native="yinJi(item.nickName)"
  744. >
  745. </el-option>
  746. </el-select>
  747. </el-form-item>
  748. <el-form-item label="审批模板" prop="thebusThemplateId">
  749. <el-select
  750. v-model="form.thebusThemplateId"
  751. placeholder="请选择审批模板"
  752. filterable
  753. >
  754. <el-option
  755. v-for="(item, i) in shenPi"
  756. :key="i"
  757. :label="item.shenpiname"
  758. :value="item.id"
  759. @click.native="shenPiThemplate(item)"
  760. >
  761. </el-option>
  762. </el-select>
  763. </el-form-item>
  764. <el-form-item label="一级审批人" prop="people1Id">
  765. <el-input
  766. v-model="form.peopleoneName"
  767. placeholder="请输入一级审批人"
  768. />
  769. </el-form-item>
  770. <el-form-item label="二级审批人" prop="people2Id">
  771. <el-input
  772. v-model="form.peopletwoName"
  773. placeholder="请输入二级审批人"
  774. />
  775. </el-form-item>
  776. <el-form-item label="三级审批人" prop="people3Id">
  777. <el-input
  778. v-model="form.peoplethreeName"
  779. placeholder="请输入三级审批人"
  780. />
  781. </el-form-item>
  782. <div class="jiben">出车路线</div>
  783. <el-form-item prop="route">
  784. <el-input
  785. v-model="form.route"
  786. type="textarea"
  787. placeholder="请输入出车路线"
  788. />
  789. </el-form-item>
  790. <div class="jiben">特殊审批原因</div>
  791. <el-form-item prop="teShuYuanYing">
  792. <el-input v-model="form.teShuYuanYing" type="textarea" />
  793. </el-form-item>
  794. <div class="jiben">不通过原因</div>
  795. <el-form-item prop="routes">
  796. <el-input v-model="form.routes" type="textarea" />
  797. </el-form-item>
  798. </el-form>
  799. <div slot="footer" class="dialog-footer">
  800. <el-button type="primary" @click="submitFormTeShenPi">通过</el-button>
  801. <el-button @click="cancelTeShenPi" size="btn">不通过</el-button>
  802. </div>
  803. </el-dialog>
  804. </div>
  805. </template>
  806. <script>
  807. import {
  808. listThebusApply,
  809. getThebusApply,
  810. delThebusApply,
  811. addThebusApply,
  812. updateThebusApply,
  813. exportThebusApply,
  814. exportThebusYin,
  815. exportThebusChu,
  816. exportThebusOne,
  817. exportThebusTwo,
  818. exportThebusThree,
  819. } from "@/api/militaryvehicleManagement/thebusApply";
  820. // 导入树形结构
  821. import Treeselect from "@riophae/vue-treeselect";
  822. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  823. import { getZhuChiRen, getDept } from "@/api/militaryvehicleManagement/thebus";
  824. import {
  825. listThebusConfig,
  826. getThebusUser,
  827. } from "@/api/militaryvehicleManagement/thebusConfig";
  828. import { getAll } from "@/api/grassrootsregistration/bdglmeeting";
  829. export default {
  830. name: "ThebusApply",
  831. components: {
  832. Treeselect,
  833. },
  834. data() {
  835. return {
  836. // 遮罩层
  837. loading: true,
  838. // 导出遮罩层
  839. exportLoading: false,
  840. // 选中数组
  841. ids: [],
  842. // 非单个禁用
  843. single: true,
  844. // 非多个禁用
  845. multiple: true,
  846. // 显示搜索条件
  847. showSearch: true,
  848. // 总条数
  849. total: 0,
  850. // 用车申请表格数据
  851. thebusApplyList: [],
  852. // 弹出层标题
  853. title: "",
  854. // 是否显示弹出层
  855. open: false,
  856. // 查询参数
  857. queryParams: {
  858. pageNum: 1,
  859. pageSize: 10,
  860. model: null,
  861. unitId: null,
  862. peopleId: null,
  863. thebusId: null,
  864. contact: null,
  865. cause: null,
  866. authStime: null,
  867. authEtime: null,
  868. thebusThemplateId: null,
  869. people1Id: null,
  870. people1State: null,
  871. people1Remark: null,
  872. people1Authtime: null,
  873. people2Id: null,
  874. people2State: null,
  875. people2Remark: null,
  876. people2Authtime: null,
  877. people3Id: null,
  878. people3State: null,
  879. people3Remark: null,
  880. people3Authtime: null,
  881. status: null,
  882. outstatus: null,
  883. adminId: null,
  884. createtime: null,
  885. updatetime: null,
  886. driver: null,
  887. driverContact: null,
  888. peopleCount: null,
  889. unitPeopleId: null,
  890. unitPeopleState: null,
  891. unitPeopleRemark: null,
  892. chushenState: null,
  893. chushenRemark: null,
  894. },
  895. // 表单参数
  896. form: {},
  897. // 表单校验
  898. rules: {},
  899. // 树形列表
  900. treeList: [],
  901. // 人员列表
  902. renYuan: [],
  903. // 获取营级审批人
  904. userRen: [],
  905. // 审批模板
  906. shenPi: [],
  907. // 审批是否显示弹出层
  908. opens: false,
  909. // 审批表单校验
  910. formRules: {
  911. routes: [
  912. { required: true, message: "请输入不通过原因", trigger: "blur" },
  913. ],
  914. },
  915. // 特殊审批是否显示弹出层
  916. opensTe: false,
  917. // 特殊审批表单校验·
  918. formRulesTe: {
  919. routes: [
  920. { required: true, message: "请输入不通过原因", trigger: "blur" },
  921. ],
  922. teShuYuanYing: [
  923. { required: true, message: "请输特殊审批原因", trigger: "blur" },
  924. ],
  925. },
  926. // 用车审批状态
  927. carApprova: [],
  928. teJi: true,
  929. // 外面的人员
  930. renYuans: [],
  931. };
  932. },
  933. created() {
  934. this.getList();
  935. this.getSuo();
  936. },
  937. mounted() {},
  938. methods: {
  939. // 获取搜索所有人
  940. getSuo() {
  941. getAll().then((res) => {
  942. this.renYuans = res.rows;
  943. });
  944. },
  945. // 特殊审批通过
  946. submitFormTeShenPi() {
  947. this.$refs["formsTe"].validateField("teShuYuanYing", (valid) => {
  948. if (!valid) {
  949. if (this.form.id != null) {
  950. if (this.form.shenpijiedian == "1") {
  951. this.form.isTongguo = "0";
  952. this.form.yjtsYuanyin = this.form.teShuYuanYing;
  953. this.form.isTeShu = "1";
  954. exportThebusYin(this.form).then((response) => {
  955. this.$modal.msgSuccess("审批成功");
  956. this.opensTe = false;
  957. this.getList();
  958. });
  959. } else if (this.form.shenpijiedian == "2") {
  960. this.form.isTongguo = "0";
  961. this.form.cstsYuanyin = this.form.teShuYuanYing;
  962. this.form.isTeShu = "1";
  963. exportThebusChu(this.form).then((response) => {
  964. this.$modal.msgSuccess("审批成功");
  965. this.opensTe = false;
  966. this.getList();
  967. });
  968. } else if (this.form.shenpijiedian == "3") {
  969. this.form.isTongguo = "0";
  970. this.form.ojtsYuanyin = this.form.teShuYuanYing;
  971. this.form.isTeShu = "1";
  972. exportThebusOne(this.form).then((response) => {
  973. this.$modal.msgSuccess("审批成功");
  974. this.getList();
  975. this.opensTe = false;
  976. });
  977. } else if (this.form.shenpijiedian == "4") {
  978. this.form.isTongguo = "0";
  979. this.form.tjtsYuanyin = this.form.teShuYuanYing;
  980. this.form.isTeShu = "1";
  981. exportThebusTwo(this.form).then((response) => {
  982. this.$modal.msgSuccess("审批成功");
  983. this.getList();
  984. this.opensTe = false;
  985. });
  986. } else if (this.form.shenpijiedian == "5") {
  987. this.form.isTongguo = "0";
  988. this.form.sjtsYuanyin = this.form.teShuYuanYing;
  989. this.form.isTeShu = "1";
  990. exportThebusThree(this.form).then((response) => {
  991. this.$modal.msgSuccess("审批成功");
  992. this.getList();
  993. this.opensTe = false;
  994. });
  995. }
  996. }
  997. }
  998. });
  999. },
  1000. // 特殊审批不通过
  1001. cancelTeShenPi() {
  1002. this.$refs["formsTe"].validate((valid) => {
  1003. if (valid) {
  1004. if (this.form.id != null) {
  1005. if (this.form.shenpijiedian == "1") {
  1006. this.form.isTongguo = "1";
  1007. this.form.yjtsYuanyin = this.form.teShuYuanYing;
  1008. this.form.isTeShu = "1";
  1009. exportThebusYin(this.form).then((response) => {
  1010. this.$modal.msgSuccess("审批成功");
  1011. this.opensTe = false;
  1012. this.getList();
  1013. });
  1014. } else if (this.form.shenpijiedian == "2") {
  1015. this.form.isTongguo = "1";
  1016. this.form.cstsYuanyin = this.form.teShuYuanYing;
  1017. this.form.isTeShu = "1";
  1018. exportThebusChu(this.form).then((response) => {
  1019. this.$modal.msgSuccess("审批成功");
  1020. this.opensTe = false;
  1021. this.getList();
  1022. });
  1023. } else if (this.form.shenpijiedian == "3") {
  1024. this.form.isTongguo = "1";
  1025. this.form.ojtsYuanyin = this.form.teShuYuanYing;
  1026. this.form.isTeShu = "1";
  1027. exportThebusOne(this.form).then((response) => {
  1028. this.$modal.msgSuccess("审批成功");
  1029. this.getList();
  1030. this.opensTe = false;
  1031. });
  1032. } else if (this.form.shenpijiedian == "4") {
  1033. this.form.isTongguo = "1";
  1034. this.form.tjtsYuanyin = this.form.teShuYuanYing;
  1035. this.form.isTeShu = "1";
  1036. exportThebusTwo(this.form).then((response) => {
  1037. this.$modal.msgSuccess("审批成功");
  1038. this.getList();
  1039. this.opensTe = false;
  1040. });
  1041. } else if (this.form.shenpijiedian == "5") {
  1042. this.form.isTongguo = "1";
  1043. this.form.sjtsYuanyin = this.form.teShuYuanYing;
  1044. this.form.isTeShu = "1";
  1045. exportThebusThree(this.form).then((response) => {
  1046. this.$modal.msgSuccess("审批成功");
  1047. this.getList();
  1048. this.opensTe = false;
  1049. });
  1050. }
  1051. }
  1052. }
  1053. });
  1054. },
  1055. // 特殊审批按钮
  1056. handleTeShuShenPi(row) {
  1057. this.reset();
  1058. this.getTreeList();
  1059. this.getYingJi();
  1060. this.getShenPi();
  1061. const id = row.id || this.ids;
  1062. getThebusApply(id).then((response) => {
  1063. this.form = response.data;
  1064. this.getRen(this.form.unitId);
  1065. this.opensTe = true;
  1066. this.title = "审批用车申请";
  1067. });
  1068. },
  1069. // 审批通过
  1070. submitFormShenPi() {
  1071. if (this.form.shenpijiedian == "1") {
  1072. console.log("营级");
  1073. this.form.isTongguo = "0";
  1074. if (this.form.id != null) {
  1075. exportThebusYin(this.form).then((response) => {
  1076. this.$modal.msgSuccess("审批成功");
  1077. this.opens = false;
  1078. this.getList();
  1079. });
  1080. return;
  1081. }
  1082. } else if (this.form.shenpijiedian == "2") {
  1083. console.log("初级");
  1084. this.form.isTongguo = "0";
  1085. exportThebusChu(this.form).then((response) => {
  1086. this.$modal.msgSuccess("审批成功");
  1087. this.opens = false;
  1088. this.getList();
  1089. });
  1090. return;
  1091. } else if (this.form.shenpijiedian == "3") {
  1092. this.form.isTongguo = "0";
  1093. console.log("一级");
  1094. exportThebusOne(this.form).then((response) => {
  1095. this.$modal.msgSuccess("审批成功");
  1096. this.getList();
  1097. this.opens = false;
  1098. });
  1099. return;
  1100. } else if (this.form.shenpijiedian == "4") {
  1101. this.form.isTongguo = "0";
  1102. console.log("二级");
  1103. exportThebusTwo(this.form).then((response) => {
  1104. this.$modal.msgSuccess("审批成功");
  1105. this.getList();
  1106. this.opens = false;
  1107. });
  1108. return;
  1109. } else if (this.form.shenpijiedian == "5") {
  1110. this.form.isTongguo = "0";
  1111. console.log("三级");
  1112. exportThebusThree(this.form).then((response) => {
  1113. this.$modal.msgSuccess("审批成功");
  1114. this.getList();
  1115. this.opens = false;
  1116. });
  1117. }
  1118. },
  1119. // 审批不通过
  1120. cancelShenPi() {
  1121. this.$refs["forms"].validate((valid) => {
  1122. if (valid) {
  1123. if (this.form.shenpijiedian == "1") {
  1124. this.form.isTongguo = "1";
  1125. this.form.unitPeopleRemark = this.form.routes;
  1126. exportThebusYin(this.form).then((res) => {
  1127. this.opens = false;
  1128. this.getList();
  1129. });
  1130. return;
  1131. } else if (this.form.shenpijiedian == "2") {
  1132. this.form.isTongguo = "1";
  1133. this.form.chushenRemark = this.form.routes;
  1134. exportThebusChu(this.form).then((res) => {
  1135. this.opens = false;
  1136. this.getList();
  1137. });
  1138. return;
  1139. } else if (this.form.shenpijiedian == "3") {
  1140. this.form.isTongguo = "1";
  1141. this.form.peopleoneRemark = this.form.routes;
  1142. exportThebusOne(this.form).then((res) => {
  1143. this.opens = false;
  1144. this.getList();
  1145. });
  1146. return;
  1147. } else if (this.form.shenpijiedian == "4") {
  1148. this.form.isTongguo = "1";
  1149. this.form.peopletwoRemark = this.form.routes;
  1150. exportThebusTwo(this.form).then((res) => {
  1151. this.opens = false;
  1152. this.getList();
  1153. });
  1154. return;
  1155. } else if (this.form.shenpijiedian == "5") {
  1156. this.form.isTongguo = "1";
  1157. this.form.peoplethreeRemark = this.form.routes;
  1158. exportThebusThree(this.form).then((res) => {
  1159. this.opens = false;
  1160. this.getList();
  1161. });
  1162. }
  1163. }
  1164. });
  1165. },
  1166. // 审批按钮
  1167. handleShenPi(row) {
  1168. console.log(row);
  1169. this.reset();
  1170. this.getTreeList();
  1171. this.getYingJi();
  1172. this.getShenPi();
  1173. const id = row.id || this.ids;
  1174. getThebusApply(id).then((response) => {
  1175. this.form = response.data;
  1176. this.getRen(this.form.unitId);
  1177. this.opens = true;
  1178. this.title = "审批用车申请";
  1179. });
  1180. },
  1181. // 选择营级人员触发
  1182. yinJi(name) {
  1183. this.form.unitPeopleName = name;
  1184. },
  1185. // 选择审批模板触发
  1186. shenPiThemplate(data) {
  1187. this.$set(this.form, "peopleoneName", data.oneshenpirenname);
  1188. this.$set(this.form, "peopletwoName", data.twoshenpirenname);
  1189. this.$set(this.form, "peoplethreeName", data.threeshenpirenname);
  1190. this.$set(this.form, "peopleoneId", data.onshenpirenid);
  1191. this.$set(this.form, "peopletwoId", data.twoshenpirenid);
  1192. this.$set(this.form, "peoplethreeId", data.threeshenpirenid);
  1193. },
  1194. // 获取审批模板列表
  1195. getShenPi() {
  1196. listThebusConfig().then((response) => {
  1197. console.log();
  1198. this.shenPi = response.rows;
  1199. });
  1200. },
  1201. // 获取营级审批
  1202. getYingJi() {
  1203. getThebusUser().then((res) => {
  1204. this.userRen = res.rows;
  1205. });
  1206. },
  1207. // 选择人员触发
  1208. cheRen(name) {
  1209. this.form.peopleName = name;
  1210. },
  1211. // 获取人员列表
  1212. getRen(id) {
  1213. getZhuChiRen(id).then((res) => {
  1214. this.renYuan = res.data;
  1215. });
  1216. },
  1217. // 获取单位列表
  1218. getTreeList() {
  1219. getDept().then((res) => {
  1220. this.treeList = res.data;
  1221. });
  1222. },
  1223. // 选择部门单位触发
  1224. selectPeo(data) {
  1225. this.form.unitName = data.label;
  1226. this.getRen(data.id);
  1227. },
  1228. /** 查询用车申请列表 */
  1229. getList() {
  1230. this.loading = true;
  1231. listThebusApply(this.queryParams).then((response) => {
  1232. console.log(
  1233. (response.rows.unitPeopleState == "1" ||
  1234. response.rows.status == "1") &&
  1235. response.rows.isCaoZuo != null
  1236. );
  1237. this.thebusApplyList = response.rows;
  1238. this.total = response.total;
  1239. this.loading = false;
  1240. });
  1241. },
  1242. // 取消按钮
  1243. cancel() {
  1244. this.open = false;
  1245. this.reset();
  1246. },
  1247. // 表单重置
  1248. reset() {
  1249. this.form = {
  1250. id: null,
  1251. model: null,
  1252. unitId: null,
  1253. peopleId: null,
  1254. thebusId: null,
  1255. contact: null,
  1256. cause: null,
  1257. authStime: null,
  1258. authEtime: null,
  1259. thebusThemplateId: null,
  1260. people1Id: null,
  1261. people1State: null,
  1262. people1Remark: null,
  1263. people1Authtime: null,
  1264. people2Id: null,
  1265. people2State: null,
  1266. people2Remark: null,
  1267. people2Authtime: null,
  1268. people3Id: null,
  1269. people3State: null,
  1270. people3Remark: null,
  1271. people3Authtime: null,
  1272. status: null,
  1273. outstatus: null,
  1274. adminId: null,
  1275. createtime: null,
  1276. updatetime: null,
  1277. driver: null,
  1278. driverContact: null,
  1279. peopleCount: null,
  1280. unitPeopleId: null,
  1281. unitPeopleState: null,
  1282. unitPeopleRemark: null,
  1283. chushenState: null,
  1284. chushenRemark: null,
  1285. };
  1286. this.resetForm("form");
  1287. },
  1288. /** 搜索按钮操作 */
  1289. handleQuery() {
  1290. this.queryParams.pageNum = 1;
  1291. this.getList();
  1292. },
  1293. /** 重置按钮操作 */
  1294. resetQuery() {
  1295. this.queryParams.peopleId = null;
  1296. this.resetForm("queryForm");
  1297. this.handleQuery();
  1298. },
  1299. // 多选框选中数据
  1300. handleSelectionChange(selection) {
  1301. this.ids = selection.map((item) => item.id);
  1302. this.single = selection.length !== 1;
  1303. this.multiple = !selection.length;
  1304. },
  1305. /** 新增按钮操作 */
  1306. handleAdd() {
  1307. this.reset();
  1308. this.getYingJi();
  1309. this.getShenPi();
  1310. this.getTreeList();
  1311. this.open = true;
  1312. this.title = "添加用车申请";
  1313. },
  1314. /** 修改按钮操作 */
  1315. handleUpdate(row) {
  1316. this.reset();
  1317. this.getTreeList();
  1318. this.getYingJi();
  1319. this.getShenPi();
  1320. const id = row.id || this.ids;
  1321. getThebusApply(id).then((response) => {
  1322. this.form = response.data;
  1323. this.getRen(this.form.unitId);
  1324. this.open = true;
  1325. this.title = "修改用车申请";
  1326. });
  1327. },
  1328. /** 提交按钮 */
  1329. submitForm() {
  1330. this.$refs["form"].validate((valid) => {
  1331. if (valid) {
  1332. if (this.form.id != null) {
  1333. updateThebusApply(this.form).then((response) => {
  1334. this.$modal.msgSuccess("修改成功");
  1335. this.open = false;
  1336. this.getList();
  1337. });
  1338. } else {
  1339. addThebusApply(this.form).then((response) => {
  1340. this.$modal.msgSuccess("新增成功");
  1341. this.open = false;
  1342. this.getList();
  1343. });
  1344. }
  1345. }
  1346. });
  1347. },
  1348. /** 删除按钮操作 */
  1349. handleDelete(row) {
  1350. const ids = row.id || this.ids;
  1351. this.$modal
  1352. .confirm("是否确认删除用车申请的数据项?")
  1353. .then(function () {
  1354. return delThebusApply(ids);
  1355. })
  1356. .then(() => {
  1357. this.getList();
  1358. this.$modal.msgSuccess("删除成功");
  1359. })
  1360. .catch(() => {});
  1361. },
  1362. /** 导出按钮操作 */
  1363. handleExport() {
  1364. const queryParams = this.queryParams;
  1365. this.$modal
  1366. .confirm("是否确认导出所有用车申请数据项?")
  1367. .then(() => {
  1368. this.exportLoading = true;
  1369. return exportThebusApply(queryParams);
  1370. })
  1371. .then((response) => {
  1372. this.$download.name(response.msg);
  1373. this.exportLoading = false;
  1374. })
  1375. .catch(() => {});
  1376. },
  1377. },
  1378. };
  1379. </script>
  1380. <style scoped>
  1381. /* 对话框背景颜色 */
  1382. ::v-deep .el-dialog {
  1383. background: #004d86 !important;
  1384. width: 800px !important;
  1385. }
  1386. ::v-deep .el-textarea__inner {
  1387. width: 920px;
  1388. height: 104px;
  1389. margin: auto;
  1390. }
  1391. ::v-deep .el-dialog__header {
  1392. border-bottom: 1px solid #718a9d;
  1393. }
  1394. ::v-deep .el-dialog__title {
  1395. color: #fff;
  1396. font: 18px;
  1397. }
  1398. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  1399. color: #fff;
  1400. }
  1401. ::v-deep .el-form-item__label {
  1402. font: 16px;
  1403. color: #fff;
  1404. width: 100px !important;
  1405. }
  1406. ::v-deep .el-input__inner {
  1407. /* width: 200px !important;
  1408. height: 36px; */
  1409. background: transparent;
  1410. color: #fff;
  1411. }
  1412. /* 单位框背景颜色 */
  1413. ::v-deep .vue-treeselect__control {
  1414. background: #004d86 !important;
  1415. }
  1416. /* 基本信息背景 */
  1417. .jiben {
  1418. width: 920px;
  1419. height: 32px;
  1420. background-image: url(../../../images/小标题底.png);
  1421. margin-bottom: 25px;
  1422. color: #fff;
  1423. padding-left: 16px;
  1424. line-height: 32px;
  1425. }
  1426. /*调整表单间距 */
  1427. ::v-deep .el-form-item__content {
  1428. width: 200px;
  1429. }
  1430. ::v-deep .el-input__inner {
  1431. cursor: pointer !important;
  1432. }
  1433. /* 底部确定取消按钮 */
  1434. ::v-deep .el-dialog__footer {
  1435. padding: 30px 50px;
  1436. }
  1437. ::v-deep .el-dialog__body {
  1438. margin: 10px 24px 20px 30px;
  1439. padding-top: 20px !important;
  1440. box-sizing: border-box;
  1441. /* padding: 30px 12px 30px 28px; */
  1442. }
  1443. .contents {
  1444. padding: 0px 40px !important;
  1445. }
  1446. /* 下拉菜单 */
  1447. .el-dropdown-link {
  1448. cursor: pointer;
  1449. color: #409eff;
  1450. }
  1451. .el-icon-arrow-down {
  1452. font-size: 12px;
  1453. }
  1454. /* 下拉菜单字体/背景颜色 */
  1455. .el-select-dropdown__item.hover,
  1456. .el-select-dropdown__item:hover {
  1457. background-color: #004d86;
  1458. color: #fff;
  1459. }
  1460. .el-select-dropdown__item {
  1461. color: #fff;
  1462. }
  1463. /* 时间选择 */
  1464. ::v-deep .el-input--small .el-input__inner {
  1465. width: 200px;
  1466. height: 36px;
  1467. line-height: 36px;
  1468. }
  1469. .el-date-editor.el-input {
  1470. width: 200px;
  1471. height: 36px;
  1472. line-height: 36px;
  1473. }
  1474. ::v-deep .el-date-editor.el-input .el-input__inner {
  1475. height: 36px;
  1476. line-height: 36px;
  1477. }
  1478. /* 单位框背景颜色 */
  1479. ::v-deep .vue-treeselect__control {
  1480. background: #004d86 !important;
  1481. color: #fff;
  1482. }
  1483. /* 单位下拉菜单选中字体颜色 */
  1484. ::v-deep .vue-treeselect__single-value {
  1485. color: #fff !important;
  1486. }
  1487. /* 分页按钮 */
  1488. ::v-deep .el-pagination.is-background .el-pager li {
  1489. background-color: #004d86;
  1490. color: #fff;
  1491. }
  1492. ::v-deep .el-pagination.is-background .btn-next {
  1493. background-color: #004d86;
  1494. color: #fff;
  1495. }
  1496. /* 底部确定取消按钮 */
  1497. ::v-deep .el-dialog__footer {
  1498. padding: 18px 50px;
  1499. margin-right: 28px;
  1500. }
  1501. /* 增加按钮弹框 */
  1502. ::v-deep .el-dialog {
  1503. width: 1060px !important;
  1504. }
  1505. ::v-deep .el-dialog__body {
  1506. padding: 30px 35px;
  1507. }
  1508. /* 小手样式 */
  1509. ::v-deep .el-table__cell {
  1510. cursor: pointer;
  1511. }
  1512. .el-button--mini {
  1513. width: 80px !important;
  1514. border: 1px solid transparent;
  1515. padding: 3px 8px;
  1516. font-size: 14px;
  1517. line-height: 1.5;
  1518. border-radius: 3px;
  1519. color: #fff;
  1520. background-color: #1890ff;
  1521. }
  1522. /* 调整输入框提示文字颜色 */
  1523. ::v-deep .vue-treeselect__placeholder {
  1524. color: #bdbdbd4f !important;
  1525. }
  1526. ::v-deep input::-webkit-input-placeholder {
  1527. color: #bdbdbd4f !important;
  1528. }
  1529. ::v-deep input:-moz-placeholder {
  1530. color: #bdbdbd4f !important;
  1531. }
  1532. /* 右侧上浮框 */
  1533. ::v-deep .el-table .el-table__body .el-table__row.hover-row td {
  1534. background-color: #004d86;
  1535. }
  1536. /* 文本域提示文字颜色 */
  1537. ::v-deep ::-webkit-input-placeholder {
  1538. color: #bdbdbd4f !important;
  1539. }
  1540. /* 审批按钮样式 */
  1541. ::v-deep .cell {
  1542. display: flex !important;
  1543. }
  1544. .box {
  1545. background-color: #ffba00 !important;
  1546. }
  1547. </style>