index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  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 label="" prop="unitId1">
  11. <el-select
  12. v-model="queryParams.unitId1"
  13. placeholder="请输入单位"
  14. @change="company"
  15. >
  16. <el-option
  17. v-for="item in BuMeng"
  18. :key="item.deptId"
  19. :label="item.deptName"
  20. :value="item.deptId"
  21. >
  22. </el-option>
  23. </el-select>
  24. </el-form-item>
  25. <el-form-item label="" prop="granttime">
  26. <!-- <el-date-picker
  27. v-model="queryParams.granttime"
  28. type="date"
  29. :editable="false"
  30. placeholder="选择日期"
  31. @change="item"
  32. >
  33. </el-date-picker> -->
  34. <el-date-picker
  35. clearable
  36. size="small"
  37. v-model="queryParams.granttime"
  38. type="date"
  39. value-format="yyyy-MM-dd"
  40. placeholder="选择召开时间"
  41. @change="item"
  42. :editable="false"
  43. >
  44. </el-date-picker>
  45. </el-form-item>
  46. <el-form-item>
  47. <el-button size="btr" @click="resetQuery" icon="el-icon-refresh"
  48. >重置</el-button
  49. >
  50. </el-form-item>
  51. </el-form>
  52. <el-row :gutter="10" class="mb8">
  53. <el-col :span="1.5">
  54. <el-button
  55. type="primary"
  56. plain
  57. icon="el-icon-plus"
  58. size="mini"
  59. @click="handleAdd"
  60. v-hasPermi="['grassrootsregistration:bdglequip:add']"
  61. >新增</el-button
  62. >
  63. </el-col>
  64. <!-- <el-col :span="1.5">
  65. <el-button
  66. type="success"
  67. plain
  68. icon="el-icon-edit"
  69. size="mini"
  70. :disabled="single"
  71. @click="handleUpdate"
  72. v-hasPermi="['grassrootsregistration:bdglequip:edit']"
  73. >修改</el-button
  74. >
  75. </el-col>
  76. <el-col :span="1.5">
  77. <el-button
  78. type="danger"
  79. plain
  80. icon="el-icon-delete"
  81. size="mini"
  82. :disabled="multiple"
  83. @click="handleDelete"
  84. v-hasPermi="['grassrootsregistration:bdglequip:remove']"
  85. >删除</el-button
  86. >
  87. </el-col>
  88. <el-col :span="1.5">
  89. <el-button
  90. type="warning"
  91. plain
  92. icon="el-icon-download"
  93. size="mini"
  94. :loading="exportLoading"
  95. @click="handleExport"
  96. v-hasPermi="['grassrootsregistration:bdglequip:export']"
  97. >导出</el-button
  98. >
  99. </el-col> -->
  100. </el-row>
  101. <el-table
  102. v-loading="loading"
  103. :data="bdglequipList"
  104. @selection-change="handleSelectionChange"
  105. :header-cell-style="{ background: '#003C69', color: 'white' }"
  106. style="width: 100%"
  107. >
  108. <el-table-column type="selection" width="55" align="center" />
  109. <el-table-column label="序号" align="center" prop="id" />
  110. <el-table-column label="单位" align="center" prop="unitName" />
  111. <el-table-column label="类型" align="center" prop="type" />
  112. <el-table-column label="物品名称" align="center" prop="title" />
  113. <el-table-column label="配发单位" align="center" prop="unitName1" />
  114. <el-table-column label="配发时间" align="center" prop="granttime" />
  115. <el-table-column label="配发数量" align="center" prop="grantnum" />
  116. <!-- <el-table-column label="自筹数量" align="center" prop="ownnum" /> -->
  117. <el-table-column label="库存数量" align="center" prop="stocknum" />
  118. <el-table-column label="入库时间" align="center" prop="intime" />
  119. <el-table-column label="入库数量" align="center" prop="innum" />
  120. <!-- <el-table-column label="入库经手人" align="center" prop="peopleId" /> -->
  121. <el-table-column label="出库时间" align="center" prop="outtime" />
  122. <el-table-column label="出库数量" align="center" prop="outnum" />
  123. <!-- <el-table-column label="出库经手人" align="center" prop="peopleId1" />
  124. <el-table-column label="质量情况" align="center" prop="quality" /> -->
  125. <!-- <el-table-column label="备注" align="center" prop="info" /> -->
  126. <!-- <el-table-column label="操作时间" align="center" prop="createtime" />
  127. <el-table-column label="操作人" align="center" prop="adminId" /> -->
  128. <el-table-column
  129. label="操作"
  130. align="center"
  131. class-name="small-padding fixed-width"
  132. width="200"
  133. >
  134. <template slot-scope="scope">
  135. <el-button
  136. size="btk"
  137. type="text"
  138. @click="handleChakan(scope.row)"
  139. v-hasPermi="['grassrootsregistration:bdgldiary:edit']"
  140. ><span class="chakan">查看</span></el-button
  141. >
  142. <el-button
  143. size="btu"
  144. type="text"
  145. @click="handleUpdate(scope.row)"
  146. v-hasPermi="['grassrootsregistration:bdglequip:edit']"
  147. ><span class="btu">修改</span></el-button
  148. >
  149. <el-button
  150. size="btd"
  151. type="text"
  152. @click="handleDelete(scope.row)"
  153. v-hasPermi="['grassrootsregistration:bdglequip:remove']"
  154. ><span class="delete">删除</span></el-button
  155. >
  156. </template>
  157. </el-table-column>
  158. </el-table>
  159. <pagination
  160. v-show="total > 0"
  161. :total="total"
  162. :page.sync="queryParams.pageNum"
  163. :limit.sync="queryParams.pageSize"
  164. @pagination="getList"
  165. />
  166. <!-- 添加或修改训练器材/教材登记薄对话框 -->
  167. <el-dialog
  168. :title="title"
  169. :visible.sync="open"
  170. width="1016px"
  171. append-to-body
  172. >
  173. <div class="jiben">基本信息</div>
  174. <el-form
  175. ref="form"
  176. :model="form"
  177. :rules="rules"
  178. label-width="80px"
  179. :inline="true"
  180. >
  181. <el-form-item label="单位" prop="unitId1">
  182. <treeselect
  183. v-model="form.unitId1"
  184. :options="deptOptions"
  185. placeholder="选择单位"
  186. @select="selectPeo"
  187. />
  188. </el-form-item>
  189. <el-form-item label="类型" prop="type">
  190. <el-select v-model="form.type" placeholder="请选择类型">
  191. <el-option
  192. v-for="item in ziDian"
  193. :key="item.dictCode"
  194. :label="item.dictLabel"
  195. :value="item.dictLabel"
  196. :disabled="item.status == 1"
  197. ></el-option>
  198. </el-select>
  199. </el-form-item>
  200. <el-form-item label="物品名称" prop="title">
  201. <el-input v-model="form.title" placeholder="请输入物品名称" />
  202. </el-form-item>
  203. <el-form-item label="配发单位" prop="unitId">
  204. <treeselect
  205. v-model="form.unitId"
  206. :options="deptOption"
  207. placeholder="选择单位"
  208. @select="selectPeos"
  209. />
  210. </el-form-item>
  211. <el-form-item label="配发时间" prop="granttime">
  212. <el-date-picker
  213. clearable
  214. size="small"
  215. v-model="form.granttime"
  216. type="date"
  217. :editable="false"
  218. value-format="yyyy-MM-dd"
  219. placeholder="选择配发时间"
  220. >
  221. </el-date-picker>
  222. </el-form-item>
  223. <el-form-item label="配发数量" prop="grantnum">
  224. <el-input-number
  225. v-model="form.grantnum"
  226. controls-position="right"
  227. :min="0"
  228. :max="99999999"
  229. ></el-input-number>
  230. </el-form-item>
  231. <el-form-item label="自筹数量" prop="ownnum">
  232. <el-input-number
  233. v-model="form.ownnum"
  234. controls-position="right"
  235. :min="0"
  236. :max="99999999"
  237. ></el-input-number>
  238. </el-form-item>
  239. <el-form-item label="库存数量" prop="stocknum">
  240. <el-input-number
  241. v-model="form.stocknum"
  242. controls-position="right"
  243. :min="0"
  244. :max="99999999"
  245. ></el-input-number>
  246. </el-form-item>
  247. <el-form-item label="入库时间" prop="intime">
  248. <el-date-picker
  249. clearable
  250. size="small"
  251. v-model="form.intime"
  252. type="date"
  253. :editable="false"
  254. value-format="yyyy-MM-dd"
  255. placeholder="选择配发时间"
  256. >
  257. </el-date-picker>
  258. </el-form-item>
  259. <el-form-item label="入库数量" prop="innum">
  260. <el-input-number
  261. v-model="form.innum"
  262. controls-position="right"
  263. :min="0"
  264. :max="99999999"
  265. ></el-input-number>
  266. </el-form-item>
  267. <el-form-item label="入库经手人" prop="peopleId">
  268. <el-select v-model="form.peopleId" placeholder="请选择入库经手人">
  269. <el-option
  270. v-for="item in renYuan"
  271. :key="item.id"
  272. :label="item.name"
  273. :value="item.id"
  274. :disabled="item.status == 1"
  275. @click.native="ruKu(item.name)"
  276. ></el-option>
  277. </el-select>
  278. </el-form-item>
  279. <el-form-item label="出库时间" prop="outtime">
  280. <el-date-picker
  281. clearable
  282. size="small"
  283. v-model="form.outtime"
  284. type="date"
  285. :editable="false"
  286. value-format="yyyy-MM-dd"
  287. placeholder="选择配发时间"
  288. >
  289. </el-date-picker>
  290. </el-form-item>
  291. <el-form-item label="出库数量" prop="outnum">
  292. <el-input-number
  293. v-model="form.outnum"
  294. controls-position="right"
  295. :min="0"
  296. :max="99999999"
  297. ></el-input-number>
  298. </el-form-item>
  299. <el-form-item label="出库经手人" prop="peopleId1">
  300. <el-select v-model="form.peopleId1" placeholder="请选择出库经手人">
  301. <el-option
  302. v-for="item in renYuan"
  303. :key="item.id"
  304. :label="item.name"
  305. :value="item.id"
  306. :disabled="item.status == 1"
  307. @click.native="chuKu(item.name)"
  308. ></el-option>
  309. </el-select>
  310. </el-form-item>
  311. <el-form-item label="质量情况" prop="quality">
  312. <el-input v-model="form.quality" placeholder="请输入质量情况" />
  313. </el-form-item>
  314. <div class="jiben">备注</div>
  315. <div class="box4">
  316. <el-input
  317. type="textarea"
  318. :rows="3"
  319. placeholder="请输入内容"
  320. v-model="form.info"
  321. autosize
  322. >
  323. </el-input>
  324. </div>
  325. </el-form>
  326. <div slot="footer" class="dialog-footer">
  327. <el-button @click="resertwo">重置</el-button>
  328. <el-button type="primary" @click="submitForm(1)">确 定</el-button>
  329. </div>
  330. </el-dialog>
  331. <el-dialog
  332. :visible.sync="menuRoleVisible"
  333. :title="title"
  334. append-to-body
  335. id="chakan"
  336. >
  337. <bdglequip
  338. v-if="menuRoleVisible"
  339. ref="menuRole"
  340. :message="wordInfo"
  341. ></bdglequip>
  342. </el-dialog>
  343. </div>
  344. </template>
  345. <script>
  346. import bdglequip from "@/components/look_word/bdglequip.vue";
  347. import {
  348. listBdglequip,
  349. getBdglequip,
  350. delBdglequip,
  351. addBdglequip,
  352. updateBdglequip,
  353. exportBdglequip,
  354. getList,
  355. } from "@/api/grassrootsregistration/bdglequip";
  356. import { getZhuChiRen } from "@/api/grassrootsregistration/bdglmeeting";
  357. import { getDicts } from "@/api/system/dict/data";
  358. import { getDept, getDept2 } from "@/api/grassrootsregistration/bdglmeeting";
  359. // 导入树形结构
  360. import Treeselect from "@riophae/vue-treeselect";
  361. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  362. export default {
  363. name: "Bdglequip",
  364. components: {
  365. Treeselect,
  366. bdglequip,
  367. },
  368. data() {
  369. return {
  370. //查看页面
  371. menuRoleVisible: false,
  372. wordInfo: {},
  373. //判断关闭
  374. style: "2",
  375. // 遮罩层
  376. loading: true,
  377. // 导出遮罩层
  378. exportLoading: false,
  379. // 选中数组
  380. ids: [],
  381. // 非单个禁用
  382. single: true,
  383. // 非多个禁用
  384. multiple: true,
  385. // 显示搜索条件
  386. showSearch: true,
  387. // 总条数
  388. total: 0,
  389. // 训练器材/教材登记薄表格数据
  390. bdglequipList: [],
  391. // 弹出层标题
  392. title: "",
  393. // 是否显示弹出层
  394. open: false,
  395. // 查询参数
  396. queryParams: {
  397. pageNum: 1,
  398. pageSize: 10,
  399. type: null,
  400. title: null,
  401. unitId: null,
  402. granttime: null,
  403. grantnum: null,
  404. ownnum: null,
  405. stocknum: null,
  406. intime: null,
  407. innum: null,
  408. peopleId: null,
  409. outtime: null,
  410. outnum: null,
  411. peopleId1: null,
  412. quality: null,
  413. info: null,
  414. unitId1: null,
  415. createtime: null,
  416. adminId: null,
  417. },
  418. // 表单参数
  419. form: {},
  420. // 表单校验
  421. rules: {
  422. unitId1: [
  423. { required: true, message: "单位名称不能为空", trigger: "blur" },
  424. ],
  425. type: [{ required: true, message: "类型不能为空", trigger: "blur" }],
  426. unitId: [
  427. { required: true, message: "配发单位不能为空", trigger: "blur" },
  428. ],
  429. },
  430. roleOptions: [],
  431. //人员
  432. renYuan: [],
  433. // 树形1
  434. deptOptions: [],
  435. // 树形2
  436. deptOption: [],
  437. // 树形配置对象
  438. defaultProps: {
  439. children: "children",
  440. label: "label",
  441. },
  442. // 查询字典
  443. dictType: {
  444. dictType: "xunLian",
  445. },
  446. // 字典的列表
  447. ziDian: [],
  448. // 搜索的部门
  449. BuMeng: [],
  450. // 派发单位获取
  451. PaiFa: [],
  452. // 派发单位
  453. defaultProp: {
  454. children: "children",
  455. label: "deptName",
  456. },
  457. };
  458. },
  459. created() {
  460. this.getList();
  461. this.getBumen();
  462. },
  463. methods: {
  464. // 重置表单人员
  465. ChongZhiRen() {
  466. (this.form.peopleId = null), (this.form.peopleId1 = null);
  467. },
  468. // 获取主持人
  469. getZhuChi(id) {
  470. getZhuChiRen(id).then((res) => {
  471. this.renYuan = res.data;
  472. });
  473. },
  474. // 单位选择时触发
  475. selectPeo(val) {
  476. this.ChongZhiRen();
  477. this.form.unitId1 = val.id;
  478. this.getZhuChi(this.form.unitId1);
  479. },
  480. // 查询配发部门列表
  481. getPaiFa() {
  482. getList().then((res) => {
  483. this.PaiFa = res.data;
  484. });
  485. },
  486. // 外面时间搜索
  487. item() {
  488. this.getList();
  489. },
  490. // 外面搜索单位
  491. company() {
  492. this.getList();
  493. },
  494. // 查询搜索单位
  495. getBumen() {
  496. getDept().then((res) => {
  497. this.BuMeng = res.data;
  498. });
  499. },
  500. // 查询电子产品
  501. getdict() {
  502. getDicts(this.dictType.dictType).then((res) => {
  503. this.ziDian = res.data;
  504. });
  505. },
  506. // 入库选中触发
  507. ruKu(name) {
  508. this.form.peopleName = name;
  509. },
  510. // 出库选中触发
  511. chuKu(name) {
  512. this.form.people1Name = name;
  513. },
  514. // 配发单位选中触发
  515. selectPeos(val) {
  516. this.form.unitId = val.id;
  517. this.getZhuChi(this.form.unitId);
  518. },
  519. /** 查询部门下拉树结构 */
  520. getTreeselect() {
  521. getDept().then((response) => {
  522. this.deptOptions = response.data;
  523. });
  524. },
  525. /** 查询部门下拉树结构2 */
  526. getTreeselect2() {
  527. getDept2().then((response) => {
  528. this.deptOption = response.data;
  529. console.log(response, 2);
  530. });
  531. },
  532. /** 查询训练器材/教材登记薄列表 */
  533. getList() {
  534. this.loading = true;
  535. listBdglequip(this.queryParams).then((response) => {
  536. this.bdglequipList = response.rows;
  537. this.total = response.total;
  538. this.loading = false;
  539. });
  540. },
  541. // 取消按钮
  542. cancel() {
  543. this.open = false;
  544. this.reset();
  545. },
  546. // 表单重置
  547. reset() {
  548. this.form = {
  549. id: null,
  550. type: null,
  551. title: null,
  552. unitId: null,
  553. granttime: null,
  554. grantnum: null,
  555. ownnum: null,
  556. stocknum: null,
  557. intime: null,
  558. innum: null,
  559. peopleId: null,
  560. outtime: null,
  561. outnum: null,
  562. peopleId1: null,
  563. quality: null,
  564. info: null,
  565. unitId1: null,
  566. createtime: null,
  567. adminId: null,
  568. };
  569. this.resetForm("form");
  570. },
  571. /** 搜索按钮操作 */
  572. handleQuery() {
  573. this.queryParams.pageNum = 1;
  574. this.getList();
  575. },
  576. /** 重置按钮操作 */
  577. resetQuery() {
  578. this.resetForm("queryForm");
  579. this.handleQuery();
  580. },
  581. /** 对话框重置按钮操作 */
  582. resertwo() {
  583. this.reset();
  584. },
  585. // 多选框选中数据
  586. handleSelectionChange(selection) {
  587. this.ids = selection.map((item) => item.id);
  588. this.single = selection.length !== 1;
  589. this.multiple = !selection.length;
  590. },
  591. /** 新增按钮操作 */
  592. handleAdd() {
  593. //人员
  594. (this.renYuan = []), this.getTreeselect();
  595. this.getTreeselect2();
  596. this.getPaiFa();
  597. this.getdict();
  598. this.reset();
  599. this.open = true;
  600. this.style = 2;
  601. this.title = "添加训练器材/教材登记薄";
  602. },
  603. /** 修改按钮操作 */
  604. handleUpdate(row) {
  605. this.form.unitId = row.unitId;
  606. this.getZhuChi(this.form.unitId);
  607. this.getTreeselect();
  608. this.getTreeselect2();
  609. this.getBumen();
  610. this.getdict();
  611. this.reset();
  612. const id = row.id || this.ids;
  613. getBdglequip(id).then((response) => {
  614. this.form = response.data;
  615. this.getZhuChi(response.data.unitId);
  616. this.getZhuChi(response.data.unitId1);
  617. this.open = true;
  618. this.title = "修改训练器材/教材登记薄";
  619. });
  620. },
  621. //查看按钮操作
  622. handleChakan(row) {
  623. // 是否隐藏按钮
  624. this.opens = false;
  625. const id = row.id || this.ids;
  626. getBdglequip(id).then((response) => {
  627. this.wordInfo = response.data;
  628. this.title = "查看文件管理登计本";
  629. this.menuRoleVisible = true;
  630. });
  631. },
  632. /** 提交按钮 */
  633. submitForm(style) {
  634. this.style = style;
  635. this.$refs["form"].validate((valid) => {
  636. if (valid) {
  637. if (this.form.id != null) {
  638. updateBdglequip(this.form).then((response) => {
  639. this.$modal.msgSuccess("修改成功");
  640. this.open = false;
  641. this.getList();
  642. });
  643. } else {
  644. addBdglequip(this.form).then((response) => {
  645. this.$modal.msgSuccess("新增成功");
  646. this.open = false;
  647. this.getList();
  648. });
  649. }
  650. }
  651. });
  652. },
  653. /** 删除按钮操作 */
  654. handleDelete(row) {
  655. const ids = row.id || this.ids;
  656. this.$modal
  657. .confirm('是否确认删除训练器材/教材登记薄编号为"' + ids + '"的数据项?')
  658. .then(function () {
  659. return delBdglequip(ids);
  660. })
  661. .then(() => {
  662. this.getList();
  663. this.$modal.msgSuccess("删除成功");
  664. })
  665. .catch(() => {});
  666. },
  667. /** 导出按钮操作 */
  668. handleExport() {
  669. const queryParams = this.queryParams;
  670. this.$modal
  671. .confirm("是否确认导出所有训练器材/教材登记薄数据项?")
  672. .then(() => {
  673. this.exportLoading = true;
  674. return exportBdglequip(queryParams);
  675. })
  676. .then((response) => {
  677. this.$download.name(response.msg);
  678. this.exportLoading = false;
  679. })
  680. .catch(() => {});
  681. },
  682. },
  683. };
  684. </script>
  685. <style scoped>
  686. /* 对话框背景颜色 */
  687. ::v-deep .el-dialog {
  688. background: #004d86 !important;
  689. }
  690. ::v-deep .el-textarea__inner {
  691. width: 920px;
  692. height: 104px;
  693. }
  694. ::v-deep .el-dialog__header {
  695. border-bottom: 1px solid #718a9d;
  696. }
  697. ::v-deep .el-dialog__title {
  698. color: #fff;
  699. font: 18px;
  700. }
  701. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  702. color: #fff;
  703. }
  704. ::v-deep .el-form-item__label {
  705. font: 16px;
  706. color: #fff;
  707. width: 100px !important;
  708. }
  709. ::v-deep .el-input__inner {
  710. /* width: 200px !important;
  711. height: 36px; */
  712. background: transparent;
  713. color: #fff;
  714. border: 1px solid white !important;
  715. }
  716. /* 单位框背景颜色 */
  717. ::v-deep .vue-treeselect__control {
  718. background: #004d86 !important;
  719. }
  720. /* 基本信息背景 */
  721. .jiben {
  722. width: 920px;
  723. height: 32px;
  724. background-image: url(../../../images/小标题底.png);
  725. margin-bottom: 25px;
  726. color: #fff;
  727. padding-left: 16px;
  728. line-height: 32px;
  729. }
  730. /*调整表单间距 */
  731. ::v-deep .el-form-item__content {
  732. width: 200px;
  733. }
  734. ::v-deep .el-input__inner {
  735. cursor: pointer !important;
  736. }
  737. /* 底部确定取消按钮 */
  738. ::v-deep .el-dialog__footer {
  739. padding: 30px 50px;
  740. }
  741. ::v-deep .el-dialog__body {
  742. margin: 10px 30px 20px 50px;
  743. padding-top: 20px !important;
  744. box-sizing: border-box;
  745. /* padding: 30px 12px 30px 28px; */
  746. }
  747. .contents {
  748. padding: 0px 40px !important;
  749. }
  750. /* 下拉菜单 */
  751. .el-dropdown-link {
  752. cursor: pointer;
  753. color: #409eff;
  754. }
  755. .el-icon-arrow-down {
  756. font-size: 12px;
  757. }
  758. /* 刷新图标 */
  759. /* .el-icon-refresh {
  760. width: 76px;
  761. height: 36px;
  762. color: #fff;
  763. background-color: #1d96ff !important;
  764. border-radius: 4px;
  765. border: none;
  766. margin-left: 20px;
  767. font-size: 14px;
  768. } */
  769. /* 下拉菜单字体/背景颜色 */
  770. .el-select-dropdown__item.hover,
  771. .el-select-dropdown__item:hover {
  772. background-color: #004d86;
  773. color: #fff;
  774. }
  775. .el-select-dropdown__item {
  776. color: #fff;
  777. }
  778. /* 时间选择 */
  779. ::v-deep .el-input--small .el-input__inner {
  780. width: 200px;
  781. height: 36px;
  782. line-height: 36px;
  783. }
  784. .el-date-editor.el-input {
  785. width: 200px;
  786. height: 36px;
  787. line-height: 36px;
  788. }
  789. ::v-deep .el-date-editor.el-input .el-input__inner {
  790. height: 36px;
  791. line-height: 36px;
  792. }
  793. /* 单位框背景颜色 */
  794. ::v-deep .vue-treeselect__control {
  795. background: #004d86 !important;
  796. color: #fff;
  797. }
  798. /* 单位下拉菜单选中字体颜色 */
  799. ::v-deep .vue-treeselect__single-value {
  800. color: #fff !important;
  801. }
  802. /* 分页按钮 */
  803. ::v-deep .el-pagination.is-background .el-pager li {
  804. background-color: #004d86;
  805. color: #fff;
  806. }
  807. ::v-deep .el-pagination.is-background .btn-next {
  808. background-color: #004d86;
  809. color: #fff;
  810. }
  811. /* 计数器按钮 */
  812. ::v-deep .el-input-number__increase {
  813. background-color: transparent !important;
  814. border: none;
  815. color: #cccccc;
  816. border-bottom: none !important;
  817. }
  818. ::v-deep .el-input-number__decrease {
  819. background-color: transparent !important;
  820. border: none !important;
  821. color: #cccccc;
  822. }
  823. /* 底部确定取消按钮 */
  824. ::v-deep .el-dialog__footer {
  825. padding: 18px 42px 30px 0px;
  826. margin-right: 30px;
  827. }
  828. /* 增加按钮弹框 */
  829. ::v-deep .el-dialog {
  830. width: 1060px !important;
  831. }
  832. ::v-deep .el-dialog__body {
  833. padding: none !important;
  834. }
  835. ::v-deep .box4 .el-textarea__inner {
  836. min-height: 120px !important;
  837. }
  838. /* 调整输入框提示文字颜色 */
  839. ::v-deep .vue-treeselect__placeholder {
  840. color: #bdbdbd4f !important;
  841. }
  842. ::v-deep input::-webkit-input-placeholder {
  843. color: #bdbdbd4f !important;
  844. }
  845. ::v-deep input:-moz-placeholder {
  846. color: #bdbdbd4f !important;
  847. }
  848. </style>