index.vue 22 KB

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