index.vue 23 KB

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