index.vue 22 KB

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