index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869
  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 prop="unitName">
  11. <el-input
  12. placeholder="请输入单位"
  13. v-model="queryParams.unitName"
  14. @input="handleQuery"
  15. />
  16. </el-form-item>
  17. <el-form-item prop="name">
  18. <el-input
  19. v-model="queryParams.name"
  20. placeholder="请输入名称"
  21. clearable
  22. size="small"
  23. @input="handleQuery"
  24. />
  25. </el-form-item>
  26. <el-form-item>
  27. <el-button size="btr" @click="resetQuery">重置</el-button>
  28. </el-form-item>
  29. </el-form>
  30. <el-row :gutter="10" class="mb8">
  31. <el-col :span="1.5">
  32. <el-button
  33. type="primary"
  34. plain
  35. icon="el-icon-plus"
  36. size="mini"
  37. @click="handleAdd"
  38. v-hasPermi="['grassrootsregistration:bdglpublicproperty:add']"
  39. >新增</el-button
  40. >
  41. </el-col>
  42. <!-- <el-col :span="1.5">
  43. <el-button
  44. type="success"
  45. plain
  46. icon="el-icon-edit"
  47. size="mini"
  48. :disabled="single"
  49. @click="handleUpdate"
  50. v-hasPermi="['grassrootsregistration:bdglpublicproperty:edit']"
  51. >修改</el-button
  52. >
  53. </el-col>
  54. <el-col :span="1.5">
  55. <el-button
  56. type="danger"
  57. plain
  58. icon="el-icon-delete"
  59. size="mini"
  60. :disabled="multiple"
  61. @click="handleDelete"
  62. v-hasPermi="['grassrootsregistration:bdglpublicproperty:remove']"
  63. >删除</el-button
  64. >
  65. </el-col>
  66. <el-col :span="1.5">
  67. <el-button
  68. type="warning"
  69. plain
  70. icon="el-icon-download"
  71. size="mini"
  72. :loading="exportLoading"
  73. @click="handleExport"
  74. v-hasPermi="['grassrootsregistration:bdglpublicproperty:export']"
  75. >导出</el-button
  76. >
  77. </el-col> -->
  78. </el-row>
  79. <el-table
  80. v-loading="loading"
  81. :data="bdglpublicpropertyList"
  82. @selection-change="handleSelectionChange"
  83. :header-cell-style="{ background: '#003C69', color: 'white' }"
  84. style="width: 100%"
  85. >
  86. <el-table-column type="selection" width="55" align="center" />
  87. <!-- <el-table-column label="序号" align="center" prop="id" /> -->
  88. <el-table-column label="序号" type="index" width="50" align="center">
  89. <template scope="scope">
  90. <span>{{
  91. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  92. }}</span>
  93. </template>
  94. </el-table-column>
  95. <el-table-column
  96. label="单位"
  97. align="center"
  98. prop="unitName"
  99. width="150"
  100. />
  101. <el-table-column label="名称" align="center" prop="name" />
  102. <el-table-column label="规格型号" align="center" prop="version" />
  103. <el-table-column label="数量" align="center" prop="quantity" />
  104. <el-table-column label="单价" align="center" prop="price" />
  105. <el-table-column label="总价" align="center" prop="totalPrice" />
  106. <el-table-column
  107. label="装备时间"
  108. align="center"
  109. prop="equipTime"
  110. width="180"
  111. >
  112. <template slot-scope="scope">
  113. <span>{{ parseTime(scope.row.equipTime, "{y}-{m}-{d}") }}</span>
  114. </template>
  115. </el-table-column>
  116. <el-table-column label="保管人" align="center" prop="peopleName" />
  117. <el-table-column label="取得方式" align="center" prop="acquire" />
  118. <el-table-column label="质量状况" align="center" prop="quality" />
  119. <el-table-column label="放置地点" align="center" prop="address" />
  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:bdglpublicproperty:edit']"
  139. ><span class="edit">修改</span></el-button
  140. >
  141. <el-button
  142. size="btd"
  143. type="text"
  144. @click="handleDelete(scope.row)"
  145. v-hasPermi="['grassrootsregistration:bdglpublicproperty: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="1125px"
  163. append-to-body
  164. :close-on-click-modal="false"
  165. >
  166. <el-form
  167. ref="form"
  168. :model="form"
  169. :rules="rules"
  170. label-width="80px"
  171. :inline="true"
  172. >
  173. <div class="jiben">基本信息</div>
  174. <el-form-item label="单位" prop="unitId">
  175. <treeselect
  176. v-model="form.unitId"
  177. :options="deptOptions"
  178. placeholder="请选择单位"
  179. @select="selectPeo"
  180. />
  181. </el-form-item>
  182. <el-form-item label="名称" prop="name">
  183. <el-input v-model="form.name" placeholder="请输入名称" />
  184. </el-form-item>
  185. <el-form-item label="规格型号" prop="version">
  186. <el-input v-model="form.version" placeholder="请输入规格型号" />
  187. </el-form-item>
  188. <el-form-item label="数量" prop="quantity">
  189. <el-input
  190. v-model="form.quantity"
  191. controls-position="right"
  192. oninput="value=value.replace(/[^\d]/g,'')"
  193. @blur="shuLiang"
  194. ></el-input>
  195. </el-form-item>
  196. <el-form-item label="单价" prop="price">
  197. <el-input
  198. v-model="form.price"
  199. controls-position="right"
  200. oninput="value=value.replace(/[^\d]/g,'')"
  201. @blur="danJia"
  202. ></el-input>
  203. </el-form-item>
  204. <el-form-item label="总价" prop="totalPrice">
  205. <el-input
  206. v-model="form.totalPrice"
  207. controls-position="right"
  208. readonly
  209. ></el-input>
  210. </el-form-item>
  211. <el-form-item label="来源" prop="source">
  212. <el-input v-model="form.source"></el-input>
  213. </el-form-item>
  214. <el-form-item label="借用情况" prop="borrowingSituation">
  215. <el-input v-model="form.borrowingSituation"></el-input>
  216. </el-form-item>
  217. <el-form-item label="使用情况" prop="usage">
  218. <el-input v-model="form.usage"></el-input>
  219. </el-form-item>
  220. <el-form-item label="归还情况" prop="returnSituation">
  221. <el-input v-model="form.returnSituation"></el-input>
  222. </el-form-item>
  223. <el-form-item label="装备时间" prop="equipTime">
  224. <el-date-picker
  225. clearable
  226. size="small"
  227. v-model="form.equipTime"
  228. type="date"
  229. :editable="false"
  230. value-format="yyyy-MM-dd"
  231. placeholder="请选择装备时间"
  232. @change="timeDay"
  233. >
  234. </el-date-picker>
  235. </el-form-item>
  236. <el-form-item label="保管人" prop="peopleId">
  237. <el-select
  238. v-model="form.peopleId"
  239. placeholder="请选择保管人"
  240. clearable
  241. >
  242. <el-option
  243. v-for="item in roleOptions"
  244. :key="item.id"
  245. :label="item.name"
  246. :value="item.id"
  247. :disabled="item.status == 1"
  248. @click.native="baoGuan(item.name)"
  249. class="input_xiala"
  250. ></el-option>
  251. </el-select>
  252. </el-form-item>
  253. <el-form-item label="取得方式" prop="acquire">
  254. <el-input v-model="form.acquire" placeholder="请输入取得方式" />
  255. </el-form-item>
  256. <el-form-item label="质量状况" prop="quality">
  257. <el-input v-model="form.quality" placeholder="请输入质量状况" />
  258. </el-form-item>
  259. <el-form-item label="放置地点" prop="address">
  260. <el-input v-model="form.address" placeholder="请输入放置地点" />
  261. </el-form-item>
  262. <div class="jiben">备注</div>
  263. <div class="box4">
  264. <el-input
  265. type="textarea"
  266. :rows="3"
  267. placeholder="请输入内容"
  268. v-model="form.remark"
  269. autosize
  270. >
  271. </el-input>
  272. </div>
  273. </el-form>
  274. <div slot="footer" class="dialog-footer">
  275. <el-button type="primary" @click="submitForm(1)">确 定</el-button>
  276. <el-button @click="cancel" size="btn">取消</el-button>
  277. </div>
  278. </el-dialog>
  279. <el-dialog
  280. :visible.sync="menuRoleVisible"
  281. :title="title"
  282. append-to-body
  283. id="chakan"
  284. :close-on-click-modal="false"
  285. width="1107px"
  286. >
  287. <bdglpublicproperty
  288. v-if="menuRoleVisible"
  289. ref="menuRole"
  290. :message="wordInfo"
  291. ></bdglpublicproperty>
  292. </el-dialog>
  293. </div>
  294. </template>
  295. <script>
  296. import bdglpublicproperty from "@/components/look_word/bdglpublicproperty.vue";
  297. import {
  298. listBdglpublicproperty,
  299. getBdglpublicproperty,
  300. delBdglpublicproperty,
  301. addBdglpublicproperty,
  302. updateBdglpublicproperty,
  303. exportBdglpublicproperty,
  304. publiccpropertyunits,
  305. } from "@/api/grassrootsregistration/bdglpublicproperty";
  306. import {
  307. getZhuChiRen,
  308. getShouBu,
  309. } from "@/api/grassrootsregistration/bdglmeeting";
  310. // 导入树形结构
  311. import Treeselect from "@riophae/vue-treeselect";
  312. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  313. import { getDept } from "@/api/grassrootsregistration/bdgleven";
  314. import { jieZhiList } from "@/api/grassrootsregistration/bdgldiary";
  315. export default {
  316. name: "Bdglpublicproperty",
  317. components: {
  318. Treeselect,
  319. bdglpublicproperty,
  320. },
  321. data() {
  322. return {
  323. //查看页面
  324. menuRoleVisible: false,
  325. wordInfo: [],
  326. //判断关闭
  327. style: "2",
  328. // 遮罩层
  329. loading: true,
  330. // 导出遮罩层
  331. exportLoading: false,
  332. // 选中数组
  333. ids: [],
  334. // 非单个禁用
  335. single: true,
  336. // 非多个禁用
  337. multiple: true,
  338. // 显示搜索条件
  339. showSearch: true,
  340. // 总条数
  341. total: 0,
  342. // 营产,公物管理登记簿表格数据
  343. bdglpublicpropertyList: [],
  344. // 弹出层标题
  345. title: "",
  346. // 是否显示弹出层
  347. open: false,
  348. // 查询参数
  349. queryParams: {
  350. pageNum: 1,
  351. pageSize: 10,
  352. name: null,
  353. version: null,
  354. quantity: null,
  355. price: null,
  356. totalPrice: null,
  357. equipTime: null,
  358. peopleId: null,
  359. acquire: null,
  360. quality: null,
  361. address: null,
  362. unitId: null,
  363. createtime: null,
  364. updatetime: null,
  365. },
  366. // 表单参数
  367. form: {},
  368. // 表单校验
  369. rules: {
  370. unitId: [
  371. { required: true, message: "单位名称不能为空", trigger: "blur" },
  372. ],
  373. equipTime: [
  374. { required: true, message: "装备时间不能为空", trigger: "blur" },
  375. ],
  376. },
  377. //下拉
  378. options: [],
  379. // 获取单位树形
  380. deptOptions: [],
  381. // 人员的列表
  382. roleOptions: [],
  383. // 获取单位列表
  384. deptOptionss: [],
  385. form1: {},
  386. // 当月日期
  387. current_month: [],
  388. // 下月日期
  389. current_month1: [],
  390. // 日期开关状态
  391. dayTime: null,
  392. };
  393. },
  394. created() {
  395. this.getList();
  396. this.getdept();
  397. this.getYear();
  398. // 获取当月
  399. this.getDay();
  400. // 获取下月
  401. this.getDayX();
  402. jieZhiList().then((res) => {
  403. this.dayTime = res.rows[0].time;
  404. });
  405. },
  406. methods: {
  407. // 获取当月日期
  408. getDay() {
  409. // 获取标准时间
  410. let now = new Date();
  411. // 年
  412. var year = new Date().getFullYear();
  413. // 月
  414. var month = new Date().getMonth() + 1;
  415. // 日
  416. var day = new Date(year, month, 0).getDate();
  417. // console.log(now);
  418. let current_month_num = day;
  419. this.current_month = [];
  420. for (let i = 1; i <= current_month_num; i++) {
  421. let day = now.setDate(i);
  422. let date = new Date(day); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  423. let Y = date.getFullYear() + "-";
  424. let M =
  425. (date.getMonth() + 1 < 10
  426. ? "0" + (date.getMonth() + 1)
  427. : date.getMonth() + 1) + "-";
  428. let D =
  429. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + "";
  430. this.current_month.push(Y + M + D);
  431. // console.log(this.current_month);
  432. }
  433. },
  434. // 获取下个月日期
  435. getDayX() {
  436. // 获取标准时间
  437. let now = new Date();
  438. // 年
  439. var year = new Date().getFullYear();
  440. // 月
  441. var month = new Date().getMonth() + 2;
  442. // 日
  443. var day = new Date(year, month, 0).getDate();
  444. let current_month_num1 = day;
  445. for (let i = 1; i <= current_month_num1; i++) {
  446. let day = now.setDate(i);
  447. let date = new Date(day); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  448. let Y = date.getFullYear() + "-";
  449. let M =
  450. (date.getMonth() + 2 < 10
  451. ? "0" + (date.getMonth() + 2)
  452. : date.getMonth() + 2) + "-";
  453. let D =
  454. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + "";
  455. this.current_month.push(Y + M + D);
  456. }
  457. },
  458. timeDay(val) {
  459. var date1 = Math.round(new Date(val) / 1000);
  460. // 获取本月第一天 00:00:00
  461. var now = new Date();
  462. var firstDay = new Date(now.getFullYear(), now.getMonth(), 1, 0, 0, 0);
  463. var monthStart = Math.round(firstDay.getTime() / 1000);
  464. // 获取本月最后一天 23:59:59
  465. var lastDay = new Date(now.getFullYear(), now.getMonth() + 1, 0, 23, 59, 59);
  466. var monthEnd = Math.round(lastDay.getTime() / 1000);
  467. if (this.dayTime == 1) {
  468. if (date1 > monthEnd || date1 < monthStart) {
  469. this.$confirm("请在规定时间内填写", "提示", {
  470. confirmButtonText: "确定",
  471. cancelButtonText: "取消",
  472. type: "warning",
  473. })
  474. .then(() => {
  475. this.form.recordDate = null;
  476. })
  477. .catch(() => {
  478. this.form.recordDate = null;
  479. });
  480. }
  481. }
  482. },
  483. // 获取当前年
  484. getYear() {
  485. var myDate = new Date();
  486. var tYear = myDate.getFullYear();
  487. this.form1.year = tYear;
  488. },
  489. // 数量输入完毕失去焦点触发
  490. shuLiang() {
  491. if (this.form.price !== null && this.form.quantity !== null) {
  492. this.form.totalPrice = this.form.price * this.form.quantity;
  493. }
  494. },
  495. // 单价失去焦点触发
  496. danJia() {
  497. if (this.form.price !== null && this.form.quantity !== null) {
  498. this.form.totalPrice = this.form.price * this.form.quantity;
  499. }
  500. },
  501. // 搜索单位触发
  502. host() {
  503. this.getList();
  504. },
  505. // //获取部门列表
  506. getdept() {
  507. getShouBu().then((res) => {
  508. this.deptOptionss = res.data;
  509. });
  510. },
  511. // 选中保管人触发
  512. baoGuan(name) {
  513. this.form.peopleName = name;
  514. },
  515. // 重置表单人员
  516. ChongZhiRen() {
  517. this.form.peopleId = null;
  518. },
  519. // 单位选择触发
  520. selectPeo(val) {
  521. this.ChongZhiRen();
  522. this.form.unitId = val.id;
  523. this.getZhuChi(this.form.unitId);
  524. },
  525. // 获取人员
  526. getZhuChi(id) {
  527. getZhuChiRen(id).then((res) => {
  528. this.roleOptions = res.data;
  529. });
  530. },
  531. /** 查询部门下拉树结构 */
  532. getTreeselect() {
  533. getDept().then((response) => {
  534. this.deptOptions = response.data;
  535. });
  536. },
  537. /** 查询营产,公物管理登记簿列表 */
  538. getList() {
  539. this.loading = true;
  540. listBdglpublicproperty(this.queryParams).then((response) => {
  541. this.bdglpublicpropertyList = response.rows;
  542. this.total = response.total;
  543. this.loading = false;
  544. });
  545. },
  546. // 取消按钮
  547. cancel() {
  548. this.open = false;
  549. this.reset();
  550. },
  551. // 表单重置
  552. reset() {
  553. this.form = {
  554. id: null,
  555. name: null,
  556. version: null,
  557. quantity: null,
  558. price: null,
  559. totalPrice: null,
  560. equipTime: null,
  561. peopleId: null,
  562. acquire: null,
  563. quality: null,
  564. address: null,
  565. remark: null,
  566. unitId: null,
  567. createtime: null,
  568. updatetime: null,
  569. };
  570. this.resetForm("form");
  571. },
  572. /** 搜索按钮操作 */
  573. handleQuery() {
  574. this.queryParams.pageNum = 1;
  575. this.getList();
  576. },
  577. /** 重置按钮操作 */
  578. resetQuery() {
  579. this.resetForm("queryForm");
  580. this.handleQuery();
  581. },
  582. /** 对话框重置按钮操作 */
  583. resertwo() {
  584. this.reset();
  585. },
  586. // 多选框选中数据
  587. handleSelectionChange(selection) {
  588. this.ids = selection.map((item) => item.id);
  589. this.single = selection.length !== 1;
  590. this.multiple = !selection.length;
  591. },
  592. /** 新增按钮操作 */
  593. handleAdd() {
  594. // 人员的列表
  595. (this.roleOptions = []), this.getTreeselect();
  596. this.reset();
  597. this.open = true;
  598. this.style = 2;
  599. this.title = "添加营产,公物管理登记簿";
  600. },
  601. /** 修改按钮操作 */
  602. handleUpdate(row) {
  603. this.getTreeselect();
  604. this.reset();
  605. this.form.unitId = row.unitId;
  606. this.getZhuChi(this.form.unitId);
  607. const id = row.id || this.ids;
  608. getBdglpublicproperty(id).then((response) => {
  609. this.form = response.data;
  610. this.open = true;
  611. this.title = "修改营产,公物管理登记簿";
  612. });
  613. },
  614. //查看按钮操作
  615. handleChakan(row) {
  616. this.form1.unitid = row.unitId;
  617. // 是否隐藏按钮
  618. this.opens = false;
  619. publiccpropertyunits(this.form1).then((response) => {
  620. this.wordInfo = response.data;
  621. this.title = "查看营产/公物管理登记簿";
  622. this.menuRoleVisible = true;
  623. });
  624. },
  625. /** 提交按钮 */
  626. submitForm(style) {
  627. this.style = style;
  628. this.$refs["form"].validate((valid) => {
  629. if (valid) {
  630. if (this.form.id != null) {
  631. updateBdglpublicproperty(this.form).then((response) => {
  632. this.$modal.msgSuccess("修改成功");
  633. this.open = false;
  634. this.getList();
  635. });
  636. } else {
  637. addBdglpublicproperty(this.form).then((response) => {
  638. this.$modal.msgSuccess("新增成功");
  639. this.open = false;
  640. this.getList();
  641. });
  642. }
  643. }
  644. });
  645. },
  646. /** 删除按钮操作 */
  647. handleDelete(row) {
  648. const ids = row.id || this.ids;
  649. this.$modal
  650. // .confirm(
  651. // '是否确认删除营产,公物管理登记簿编号为"' + ids + '"的数据项?'
  652. // )
  653. .confirm("是否确认删除该数据?")
  654. .then(function () {
  655. return delBdglpublicproperty(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 exportBdglpublicproperty(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. border-color: #fff !important;
  712. }
  713. /* 单位框背景颜色 */
  714. ::v-deep .vue-treeselect__control {
  715. background: #004d86 !important;
  716. }
  717. /* 基本信息背景 */
  718. .jiben {
  719. width: 920px;
  720. height: 32px;
  721. background-image: url(../../../images/小标题底.png);
  722. margin-bottom: 25px;
  723. color: #fff;
  724. padding-left: 16px;
  725. line-height: 32px;
  726. }
  727. /*调整表单间距 */
  728. ::v-deep .el-form-item__content {
  729. width: 200px;
  730. }
  731. ::v-deep .el-input__inner {
  732. cursor: pointer !important;
  733. }
  734. /* 底部确定取消按钮 */
  735. ::v-deep .el-dialog__footer {
  736. padding: 30px 50px;
  737. }
  738. ::v-deep .el-dialog__body {
  739. margin: 10px 30px 20px 87px;
  740. padding-top: 20px !important;
  741. box-sizing: border-box;
  742. /* padding: 30px 12px 30px 28px; */
  743. }
  744. .contents {
  745. padding: 0px 40px !important;
  746. }
  747. /* 下拉菜单 */
  748. .el-dropdown-link {
  749. cursor: pointer;
  750. color: #409eff;
  751. }
  752. .el-icon-arrow-down {
  753. font-size: 12px;
  754. }
  755. /* 刷新图标 */
  756. /* .el-icon-refresh {
  757. width: 76px;
  758. height: 36px;
  759. color: #fff;
  760. background-color: #1d96ff !important;
  761. border-radius: 4px;
  762. border: none;
  763. margin-left: 20px;
  764. font-size: 14px;
  765. } */
  766. /* 下拉菜单字体/背景颜色 */
  767. .el-select-dropdown__item.hover,
  768. .el-select-dropdown__item:hover {
  769. background-color: #004d86;
  770. color: #fff;
  771. }
  772. .el-select-dropdown__item {
  773. color: #fff;
  774. }
  775. /* 时间选择 */
  776. ::v-deep .el-input--small .el-input__inner {
  777. width: 200px;
  778. height: 36px;
  779. line-height: 36px;
  780. }
  781. .el-date-editor.el-input {
  782. width: 200px;
  783. height: 36px;
  784. line-height: 36px;
  785. }
  786. ::v-deep .el-date-editor.el-input .el-input__inner {
  787. height: 36px;
  788. line-height: 36px;
  789. }
  790. /* 单位框背景颜色 */
  791. ::v-deep .vue-treeselect__control {
  792. background: #004d86 !important;
  793. color: #fff;
  794. }
  795. /* 单位下拉菜单选中字体颜色 */
  796. ::v-deep .vue-treeselect__single-value {
  797. color: #fff !important;
  798. }
  799. /* 分页按钮 */
  800. ::v-deep .el-pagination.is-background .el-pager li {
  801. background-color: #004d86;
  802. color: #fff;
  803. }
  804. ::v-deep .el-pagination.is-background .btn-next {
  805. background-color: #004d86;
  806. color: #fff;
  807. }
  808. /* 计数器按钮 */
  809. ::v-deep .el-input-number__increase {
  810. background-color: transparent !important;
  811. border: none;
  812. color: #cccccc;
  813. border-bottom: none !important;
  814. }
  815. ::v-deep .el-input-number__decrease {
  816. background-color: transparent !important;
  817. border: none !important;
  818. color: #cccccc;
  819. }
  820. /* 底部确定取消按钮 */
  821. ::v-deep .el-dialog__footer {
  822. padding: 18px 42px 30px 0px;
  823. margin-right: 61px;
  824. }
  825. /* 增加按钮弹框 */
  826. ::v-deep .el-dialog {
  827. width: 1060px;
  828. }
  829. ::v-deep .el-dialog__body {
  830. padding: none !important;
  831. }
  832. /* ::v-deep .el-table--enable-row-transition .el-table__body td.el-table__cell{
  833. background: #004d86;
  834. } */
  835. ::v-deep .box4 .el-textarea__inner {
  836. min-height: 120px !important;
  837. }
  838. /* 调整输入框提示文字颜色 */
  839. ::v-deep .vue-treeselect__placeholder {
  840. color: #bdbdbd4f !important;
  841. }
  842. ::v-deep input::-webkit-input-placeholder {
  843. color: #bdbdbd4f !important;
  844. }
  845. ::v-deep input:-moz-placeholder {
  846. color: #bdbdbd4f !important;
  847. }
  848. /* 文本域提示文字颜色 */
  849. ::v-deep ::-webkit-input-placeholder {
  850. color: #bdbdbd4f !important;
  851. }
  852. #chakan /deep/ .el-dialog__body {
  853. padding: 30px 0px 30px 16px;
  854. }
  855. </style>