index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  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. class="input_xiala"
  22. >
  23. </el-option>
  24. </el-select>
  25. </el-form-item>
  26. <el-form-item label="" prop="granttime">
  27. <el-date-picker
  28. clearable
  29. size="small"
  30. v-model="queryParams.granttime"
  31. type="date"
  32. value-format="yyyy-MM-dd"
  33. placeholder="请选择配发时间"
  34. @change="item"
  35. :editable="false"
  36. >
  37. </el-date-picker>
  38. </el-form-item>
  39. <el-form-item>
  40. <el-button size="btr" @click="resetQuery" icon="el-icon-refresh"
  41. >重置</el-button
  42. >
  43. </el-form-item>
  44. </el-form>
  45. <el-row :gutter="10" class="mb8">
  46. <el-col :span="1.5">
  47. <el-button
  48. type="primary"
  49. plain
  50. icon="el-icon-plus"
  51. size="mini"
  52. @click="handleAdd"
  53. v-hasPermi="['grassrootsregistration:bdglequip:add']"
  54. >新增</el-button
  55. >
  56. </el-col>
  57. <!-- <el-col :span="1.5">
  58. <el-button
  59. type="success"
  60. plain
  61. icon="el-icon-edit"
  62. size="mini"
  63. :disabled="single"
  64. @click="handleUpdate"
  65. v-hasPermi="['grassrootsregistration:bdglequip:edit']"
  66. >修改</el-button
  67. >
  68. </el-col>
  69. <el-col :span="1.5">
  70. <el-button
  71. type="danger"
  72. plain
  73. icon="el-icon-delete"
  74. size="mini"
  75. :disabled="multiple"
  76. @click="handleDelete"
  77. v-hasPermi="['grassrootsregistration:bdglequip:remove']"
  78. >删除</el-button
  79. >
  80. </el-col>
  81. <el-col :span="1.5">
  82. <el-button
  83. type="warning"
  84. plain
  85. icon="el-icon-download"
  86. size="mini"
  87. :loading="exportLoading"
  88. @click="handleExport"
  89. v-hasPermi="['grassrootsregistration:bdglequip:export']"
  90. >导出</el-button
  91. >
  92. </el-col> -->
  93. </el-row>
  94. <el-table
  95. v-loading="loading"
  96. :data="bdglequipList"
  97. @selection-change="handleSelectionChange"
  98. :header-cell-style="{ background: '#003C69', color: 'white' }"
  99. style="width: 100%"
  100. >
  101. <el-table-column type="selection" width="55" align="center" />
  102. <!-- <el-table-column label="序号" align="center" prop="id" /> -->
  103. <el-table-column label="序号" type="index" width="50" align="center">
  104. <template scope="scope">
  105. <span>{{
  106. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  107. }}</span>
  108. </template>
  109. </el-table-column>
  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="stocknum" />
  117. <el-table-column label="入库时间" align="center" prop="intime" />
  118. <el-table-column label="入库数量" align="center" prop="innum" />
  119. <el-table-column label="出库时间" align="center" prop="outtime" />
  120. <el-table-column label="出库数量" align="center" prop="outnum" />
  121. <el-table-column
  122. label="操作"
  123. align="center"
  124. class-name="small-padding fixed-width"
  125. width="200"
  126. >
  127. <template slot-scope="scope">
  128. <el-button
  129. size="btk"
  130. type="text"
  131. @click="handleChakan(scope.row)"
  132. v-hasPermi="['grassrootsregistration:bdgldiary:edit']"
  133. ><span class="chakan">查看</span></el-button
  134. >
  135. <el-button
  136. size="btu"
  137. type="text"
  138. @click="handleUpdate(scope.row)"
  139. v-hasPermi="['grassrootsregistration:bdglequip:edit']"
  140. ><span class="btu">修改</span></el-button
  141. >
  142. <el-button
  143. size="btd"
  144. type="text"
  145. @click="handleDelete(scope.row)"
  146. v-hasPermi="['grassrootsregistration:bdglequip:remove']"
  147. ><span class="delete">删除</span></el-button
  148. >
  149. </template>
  150. </el-table-column>
  151. </el-table>
  152. <pagination
  153. v-show="total > 0"
  154. :total="total"
  155. :page.sync="queryParams.pageNum"
  156. :limit.sync="queryParams.pageSize"
  157. @pagination="getList"
  158. />
  159. <!-- 添加或修改训练器材/教材登记薄对话框 -->
  160. <el-dialog
  161. :title="title"
  162. :visible.sync="open"
  163. width="1016px"
  164. append-to-body
  165. >
  166. <div class="jiben">基本信息</div>
  167. <el-form
  168. ref="form"
  169. :model="form"
  170. :rules="rules"
  171. label-width="80px"
  172. :inline="true"
  173. >
  174. <el-form-item label="单位" prop="unitId1">
  175. <treeselect
  176. v-model="form.unitId1"
  177. :options="deptOptions"
  178. placeholder="选择单位"
  179. @select="selectPeo"
  180. />
  181. </el-form-item>
  182. <el-form-item label="类型" prop="type">
  183. <el-select v-model="form.type" placeholder="请选择类型">
  184. <el-option
  185. v-for="item in ziDian"
  186. :key="item.dictCode"
  187. :label="item.dictLabel"
  188. :value="item.dictLabel"
  189. :disabled="item.status == 1"
  190. class="input_xiala"
  191. ></el-option>
  192. </el-select>
  193. </el-form-item>
  194. <el-form-item label="物品名称" prop="title">
  195. <el-input v-model="form.title" placeholder="请输入物品名称" />
  196. </el-form-item>
  197. <el-form-item label="配发单位" prop="unitId">
  198. <treeselect
  199. v-model="form.unitId"
  200. :options="deptOption"
  201. placeholder="选择单位"
  202. @select="selectPeos"
  203. />
  204. </el-form-item>
  205. <el-form-item label="配发时间" prop="granttime">
  206. <el-date-picker
  207. clearable
  208. size="small"
  209. v-model="form.granttime"
  210. type="date"
  211. :editable="false"
  212. value-format="yyyy-MM-dd"
  213. placeholder="请选择配发时间"
  214. >
  215. </el-date-picker>
  216. </el-form-item>
  217. <el-form-item label="配发数量" prop="grantnum">
  218. <el-input-number
  219. v-model="form.grantnum"
  220. controls-position="right"
  221. :min="0"
  222. :max="99999999"
  223. ></el-input-number>
  224. </el-form-item>
  225. <el-form-item label="自筹数量" prop="ownnum">
  226. <el-input-number
  227. v-model="form.ownnum"
  228. controls-position="right"
  229. :min="0"
  230. :max="99999999"
  231. ></el-input-number>
  232. </el-form-item>
  233. <el-form-item label="库存数量" prop="stocknum">
  234. <el-input-number
  235. v-model="form.stocknum"
  236. controls-position="right"
  237. :min="0"
  238. :max="99999999"
  239. ></el-input-number>
  240. </el-form-item>
  241. <el-form-item label="入库时间" prop="intime">
  242. <el-date-picker
  243. clearable
  244. size="small"
  245. v-model="form.intime"
  246. type="date"
  247. :editable="false"
  248. value-format="yyyy-MM-dd"
  249. placeholder="请选择入库时间"
  250. >
  251. </el-date-picker>
  252. </el-form-item>
  253. <el-form-item label="入库数量" prop="innum">
  254. <el-input-number
  255. v-model="form.innum"
  256. controls-position="right"
  257. :min="0"
  258. :max="99999999"
  259. ></el-input-number>
  260. </el-form-item>
  261. <el-form-item label="入库经手人" prop="peopleId">
  262. <el-select v-model="form.peopleId" placeholder="请选择入库经手人">
  263. <el-option
  264. v-for="item in renYuan"
  265. :key="item.id"
  266. :label="item.name"
  267. :value="item.id"
  268. :disabled="item.status == 1"
  269. @click.native="ruKu(item.name)"
  270. class="input_xiala"
  271. ></el-option>
  272. </el-select>
  273. </el-form-item>
  274. <el-form-item label="出库时间" prop="outtime">
  275. <el-date-picker
  276. clearable
  277. size="small"
  278. v-model="form.outtime"
  279. type="date"
  280. :editable="false"
  281. value-format="yyyy-MM-dd"
  282. placeholder="请选择出库时间"
  283. >
  284. </el-date-picker>
  285. </el-form-item>
  286. <el-form-item label="出库数量" prop="outnum">
  287. <el-input-number
  288. v-model="form.outnum"
  289. controls-position="right"
  290. :min="0"
  291. :max="99999999"
  292. class="input_xiala"
  293. ></el-input-number>
  294. </el-form-item>
  295. <el-form-item label="出库经手人" prop="peopleId1">
  296. <el-select v-model="form.peopleId1" placeholder="请选择出库经手人">
  297. <el-option
  298. v-for="item in renYuan"
  299. :key="item.id"
  300. :label="item.name"
  301. :value="item.id"
  302. :disabled="item.status == 1"
  303. @click.native="chuKu(item.name)"
  304. class="input_xiala"
  305. ></el-option>
  306. </el-select>
  307. </el-form-item>
  308. <el-form-item label="质量情况" prop="quality">
  309. <el-input v-model="form.quality" placeholder="请输入质量情况" />
  310. </el-form-item>
  311. <div class="jiben">备注</div>
  312. <div class="box4">
  313. <el-input
  314. type="textarea"
  315. :rows="3"
  316. placeholder="请输入内容"
  317. v-model="form.info"
  318. autosize
  319. >
  320. </el-input>
  321. </div>
  322. </el-form>
  323. <div slot="footer" class="dialog-footer">
  324. <el-button @click="resertwo">重置</el-button>
  325. <el-button type="primary" @click="submitForm(1)">确 定</el-button>
  326. </div>
  327. </el-dialog>
  328. <el-dialog
  329. :visible.sync="menuRoleVisible"
  330. :title="title"
  331. append-to-body
  332. id="chakan"
  333. >
  334. <bdglequip
  335. v-if="menuRoleVisible"
  336. ref="menuRole"
  337. :message="wordInfo"
  338. ></bdglequip>
  339. </el-dialog>
  340. </div>
  341. </template>
  342. <script>
  343. import bdglequip from "@/components/look_word/bdglequip.vue";
  344. import {
  345. listBdglequip,
  346. getBdglequip,
  347. delBdglequip,
  348. addBdglequip,
  349. updateBdglequip,
  350. exportBdglequip,
  351. getList,
  352. } from "@/api/grassrootsregistration/bdglequip";
  353. import {
  354. getZhuChiRen,
  355. getShouBu,
  356. } 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. getShouBu().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. .confirm("是否确认删除该数据?")
  659. .then(function () {
  660. return delBdglequip(ids);
  661. })
  662. .then(() => {
  663. this.getList();
  664. this.$modal.msgSuccess("删除成功");
  665. })
  666. .catch(() => {});
  667. },
  668. /** 导出按钮操作 */
  669. handleExport() {
  670. const queryParams = this.queryParams;
  671. this.$modal
  672. .confirm("是否确认导出所有训练器材/教材登记薄数据项?")
  673. .then(() => {
  674. this.exportLoading = true;
  675. return exportBdglequip(queryParams);
  676. })
  677. .then((response) => {
  678. this.$download.name(response.msg);
  679. this.exportLoading = false;
  680. })
  681. .catch(() => {});
  682. },
  683. },
  684. };
  685. </script>
  686. <style scoped>
  687. /* 对话框背景颜色 */
  688. ::v-deep .el-dialog {
  689. background: #004d86 !important;
  690. }
  691. ::v-deep .el-textarea__inner {
  692. width: 920px;
  693. height: 104px;
  694. }
  695. ::v-deep .el-dialog__header {
  696. border-bottom: 1px solid #718a9d;
  697. }
  698. ::v-deep .el-dialog__title {
  699. color: #fff;
  700. font: 18px;
  701. }
  702. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  703. color: #fff;
  704. }
  705. ::v-deep .el-form-item__label {
  706. font: 16px;
  707. color: #fff;
  708. width: 100px !important;
  709. }
  710. ::v-deep .el-input__inner {
  711. /* width: 200px !important;
  712. height: 36px; */
  713. background: transparent;
  714. color: #fff;
  715. border: 1px solid white !important;
  716. border-color: #fff !important;
  717. }
  718. /* 单位框背景颜色 */
  719. ::v-deep .vue-treeselect__control {
  720. background: #004d86 !important;
  721. }
  722. /* 基本信息背景 */
  723. .jiben {
  724. width: 920px;
  725. height: 32px;
  726. background-image: url(../../../images/小标题底.png);
  727. margin-bottom: 25px;
  728. color: #fff;
  729. padding-left: 16px;
  730. line-height: 32px;
  731. }
  732. /*调整表单间距 */
  733. ::v-deep .el-form-item__content {
  734. width: 200px;
  735. }
  736. ::v-deep .el-input__inner {
  737. cursor: pointer !important;
  738. }
  739. /* 底部确定取消按钮 */
  740. ::v-deep .el-dialog__footer {
  741. padding: 30px 50px;
  742. }
  743. ::v-deep .el-dialog__body {
  744. margin: 10px 35px 20px 44px;
  745. padding-top: 20px !important;
  746. box-sizing: border-box;
  747. }
  748. .contents {
  749. padding: 0px 40px !important;
  750. }
  751. /* 下拉菜单 */
  752. .el-dropdown-link {
  753. cursor: pointer;
  754. color: #409eff;
  755. }
  756. .el-icon-arrow-down {
  757. font-size: 12px;
  758. }
  759. /* 刷新图标 */
  760. /* .el-icon-refresh {
  761. width: 76px;
  762. height: 36px;
  763. color: #fff;
  764. background-color: #1d96ff !important;
  765. border-radius: 4px;
  766. border: none;
  767. margin-left: 20px;
  768. font-size: 14px;
  769. } */
  770. /* 下拉菜单字体/背景颜色 */
  771. .el-select-dropdown__item.hover,
  772. .el-select-dropdown__item:hover {
  773. background-color: #004d86;
  774. color: #fff;
  775. }
  776. .el-select-dropdown__item {
  777. color: #fff;
  778. }
  779. /* 时间选择 */
  780. ::v-deep .el-input--small .el-input__inner {
  781. width: 200px;
  782. height: 36px;
  783. line-height: 36px;
  784. }
  785. .el-date-editor.el-input {
  786. width: 200px;
  787. height: 36px;
  788. line-height: 36px;
  789. }
  790. ::v-deep .el-date-editor.el-input .el-input__inner {
  791. height: 36px;
  792. line-height: 36px;
  793. }
  794. /* 单位框背景颜色 */
  795. ::v-deep .vue-treeselect__control {
  796. background: #004d86 !important;
  797. color: #fff;
  798. }
  799. /* 单位下拉菜单选中字体颜色 */
  800. ::v-deep .vue-treeselect__single-value {
  801. color: #fff !important;
  802. }
  803. /* 分页按钮 */
  804. ::v-deep .el-pagination.is-background .el-pager li {
  805. background-color: #004d86;
  806. color: #fff;
  807. }
  808. ::v-deep .el-pagination.is-background .btn-next {
  809. background-color: #004d86;
  810. color: #fff;
  811. }
  812. /* 计数器按钮 */
  813. ::v-deep .el-input-number__increase {
  814. background-color: transparent !important;
  815. border: none;
  816. color: #cccccc;
  817. border-bottom: none !important;
  818. }
  819. ::v-deep .el-input-number__decrease {
  820. background-color: transparent !important;
  821. border: none !important;
  822. color: #cccccc;
  823. }
  824. /* 底部确定取消按钮 */
  825. ::v-deep .el-dialog__footer {
  826. padding: 18px 42px 30px 0px;
  827. margin-right: 30px;
  828. }
  829. /* 增加按钮弹框 */
  830. ::v-deep .el-dialog {
  831. width: 1060px !important;
  832. }
  833. ::v-deep .el-dialog__body {
  834. padding: none !important;
  835. }
  836. ::v-deep .box4 .el-textarea__inner {
  837. min-height: 120px !important;
  838. }
  839. /* 调整输入框提示文字颜色 */
  840. ::v-deep .vue-treeselect__placeholder {
  841. color: #bdbdbd4f !important;
  842. }
  843. ::v-deep input::-webkit-input-placeholder {
  844. color: #bdbdbd4f !important;
  845. }
  846. ::v-deep input:-moz-placeholder {
  847. color: #bdbdbd4f !important;
  848. }
  849. /* 文本域提示文字颜色 */
  850. ::v-deep ::-webkit-input-placeholder {
  851. color: #bdbdbd4f !important;
  852. }
  853. </style>