index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  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="name">
  11. <el-input
  12. v-model="queryParams.name"
  13. placeholder="请选择物品名称"
  14. clearable
  15. size="small"
  16. @input="handleQuery"
  17. />
  18. </el-form-item>
  19. <!-- <el-form-item label="物品类型" prop="wuPinType">
  20. <el-select
  21. v-model="queryParams.wuPinType"
  22. placeholder="请选择物品类型"
  23. clearable
  24. size="small"
  25. >
  26. <el-option
  27. v-for="dict in dict.type.category"
  28. :key="dict.value"
  29. :label="dict.label"
  30. :value="dict.value"
  31. />
  32. </el-select>
  33. </el-form-item>
  34. <el-form-item label="物品名称" prop="name">
  35. <el-select
  36. v-model="queryParams.name"
  37. placeholder="请选择物品名称"
  38. clearable
  39. size="small"
  40. >
  41. <el-option label="请选择字典生成" value="" />
  42. </el-select>
  43. </el-form-item>
  44. <el-form-item label="物资规格" prop="materialSpecification">
  45. <el-input
  46. v-model="queryParams.materialSpecification"
  47. placeholder="请输入物资规格"
  48. clearable
  49. size="small"
  50. @keyup.enter.native="handleQuery"
  51. />
  52. </el-form-item>
  53. <el-form-item label="物资型号" prop="materialXh">
  54. <el-input
  55. v-model="queryParams.materialXh"
  56. placeholder="请输入物资型号"
  57. clearable
  58. size="small"
  59. @keyup.enter.native="handleQuery"
  60. />
  61. </el-form-item>
  62. <el-form-item label="营具类型" prop="yingJuType">
  63. <el-select
  64. v-model="queryParams.yingJuType"
  65. placeholder="请选择营具类型"
  66. clearable
  67. size="small"
  68. >
  69. <el-option label="请选择字典生成" value="" />
  70. </el-select>
  71. </el-form-item> -->
  72. <!-- <el-form-item label="" prop="responsibilityUnit">
  73. <el-input
  74. v-model="queryParams.responsibilityUnit"
  75. placeholder="请输入责任单位"
  76. clearable
  77. size="small"
  78. @keyup.enter.native="handleQuery"
  79. />
  80. </el-form-item> -->
  81. <!-- <el-form-item label="" prop="personLiable">
  82. <el-select
  83. v-model="queryParams.personLiable"
  84. placeholder="请选择责任人"
  85. clearable
  86. size="small"
  87. @change="handleQuery"
  88. >
  89. <el-option
  90. v-for="item in renYuans"
  91. :key="item.id"
  92. :label="item.name"
  93. :value="item.name"
  94. class="input_xiala"
  95. >
  96. </el-option>
  97. </el-select>
  98. </el-form-item> -->
  99. <!-- <el-form-item label="入库数量" prop="putInt">
  100. <el-input
  101. v-model="queryParams.putInt"
  102. placeholder="请输入入库数量"
  103. clearable
  104. size="small"
  105. @keyup.enter.native="handleQuery"
  106. />
  107. </el-form-item>
  108. <el-form-item label="创建人" prop="createName">
  109. <el-input
  110. v-model="queryParams.createName"
  111. placeholder="请输入创建人"
  112. clearable
  113. size="small"
  114. @keyup.enter.native="handleQuery"
  115. />
  116. </el-form-item>
  117. <el-form-item label="入库时间" prop="storageTime">
  118. <el-date-picker
  119. clearable
  120. size="small"
  121. v-model="queryParams.storageTime"
  122. type="date"
  123. value-format="yyyy-MM-dd"
  124. placeholder="选择入库时间"
  125. >
  126. </el-date-picker>
  127. </el-form-item>
  128. <el-form-item label="入库编号" prop="inboundNo">
  129. <el-input
  130. v-model="queryParams.inboundNo"
  131. placeholder="请输入入库编号"
  132. clearable
  133. size="small"
  134. @keyup.enter.native="handleQuery"
  135. />
  136. </el-form-item>
  137. <el-form-item label="存放位置" prop="storageLocation">
  138. <el-input
  139. v-model="queryParams.storageLocation"
  140. placeholder="请输入存放位置"
  141. clearable
  142. size="small"
  143. @keyup.enter.native="handleQuery"
  144. />
  145. </el-form-item>
  146. <el-form-item label="购买时间" prop="buyingTime">
  147. <el-date-picker
  148. clearable
  149. size="small"
  150. v-model="queryParams.buyingTime"
  151. type="date"
  152. value-format="yyyy-MM-dd"
  153. placeholder="选择购买时间"
  154. >
  155. </el-date-picker>
  156. </el-form-item>
  157. <el-form-item label="价值" prop="price">
  158. <el-input
  159. v-model="queryParams.price"
  160. placeholder="请输入价值"
  161. clearable
  162. size="small"
  163. @keyup.enter.native="handleQuery"
  164. />
  165. </el-form-item>
  166. <el-form-item label="库房(待定)" prop="warehouse">
  167. <el-select
  168. v-model="queryParams.warehouse"
  169. placeholder="请选择库房(待定)"
  170. clearable
  171. size="small"
  172. >
  173. <el-option
  174. v-for="dict in dict.type.storage_room"
  175. :key="dict.value"
  176. :label="dict.label"
  177. :value="dict.value"
  178. />
  179. </el-select>
  180. </el-form-item>
  181. <el-form-item label="档案id" prop="archivesId">
  182. <el-input
  183. v-model="queryParams.archivesId"
  184. placeholder="请输入档案id"
  185. clearable
  186. size="small"
  187. @keyup.enter.native="handleQuery"
  188. />
  189. </el-form-item> -->
  190. <el-form-item>
  191. <!-- <el-button type="primary" size="btn" @click="handleQuery"
  192. >搜索</el-button
  193. > -->
  194. <el-button size="btr" @click="resetQuery">重置</el-button>
  195. </el-form-item>
  196. </el-form>
  197. <el-row :gutter="10" class="mb8">
  198. <el-col :span="1.5">
  199. <el-button
  200. type="primary"
  201. plain
  202. icon="el-icon-plus"
  203. size="mini"
  204. @click="handleAdd"
  205. v-hasPermi="['materialManagement:materialRegistration:add']"
  206. >新增</el-button
  207. >
  208. </el-col>
  209. <el-col :span="1.5">
  210. <el-button
  211. type="success"
  212. plain
  213. icon="el-icon-edit"
  214. size="mini"
  215. :disabled="single"
  216. @click="handleUpdate"
  217. v-hasPermi="['materialManagement:materialRegistration:edit']"
  218. >修改</el-button
  219. >
  220. </el-col>
  221. <el-col :span="1.5">
  222. <el-button
  223. type="danger"
  224. plain
  225. icon="el-icon-delete"
  226. size="mini"
  227. :disabled="multiple"
  228. @click="handleDelete"
  229. v-hasPermi="['materialManagement:materialRegistration:remove']"
  230. >删除</el-button
  231. >
  232. </el-col>
  233. <el-col :span="1.5">
  234. <el-button
  235. type="warning"
  236. plain
  237. icon="el-icon-download"
  238. size="mini"
  239. :loading="exportLoading"
  240. @click="handleExport"
  241. v-hasPermi="['materialManagement:materialRegistration:export']"
  242. >导出</el-button
  243. >
  244. </el-col>
  245. <!-- <right-toolbar
  246. :showSearch.sync="showSearch"
  247. @queryTable="getList"
  248. ></right-toolbar> -->
  249. </el-row>
  250. <el-table
  251. v-loading="loading"
  252. :data="materialRegistrationList"
  253. @selection-change="handleSelectionChange"
  254. :header-cell-style="{ background: '#003C69', color: 'white' }"
  255. >
  256. <el-table-column type="selection" width="55" align="center" />
  257. <el-table-column label="序号" align="center" prop="id" />
  258. <!-- <el-table-column label="物品类型" align="center" prop="wuPinType">
  259. <template slot-scope="scope">
  260. <dict-tag
  261. :options="dict.type.category"
  262. :value="scope.row.wuPinType"
  263. />
  264. </template>
  265. </el-table-column> -->
  266. <el-table-column label="物品名称" align="center" prop="name" />
  267. <el-table-column
  268. label="物品规格"
  269. align="center"
  270. prop="materialSpecification"
  271. />
  272. <el-table-column label="物品型号" align="center" prop="materialXh" />
  273. <!-- <el-table-column label="营具类型" align="center" prop="yingJuType">
  274. <template slot-scope="scope">
  275. <dict-tag
  276. :options="dict.type.camp_equipment"
  277. :value="scope.row.yingJuType"
  278. />
  279. </template>
  280. </el-table-column> -->
  281. <!-- <el-table-column
  282. label="责任单位"
  283. align="center"
  284. prop="responsibilityUnit"
  285. /> -->
  286. <el-table-column label="库房" align="center" prop="warehouse" />
  287. <el-table-column label="价值" align="center" prop="price" />
  288. <el-table-column label="入库数量" align="center" prop="putInt" />
  289. <!-- <el-table-column label="创建人" align="center" prop="createName" /> -->
  290. <el-table-column
  291. label="入库时间"
  292. align="center"
  293. prop="storageTime"
  294. width="180"
  295. >
  296. <template slot-scope="scope">
  297. <span>{{ parseTime(scope.row.storageTime, "{y}-{m}-{d}") }}</span>
  298. </template>
  299. </el-table-column>
  300. <!-- <el-table-column label="入库编号" align="center" prop="inboundNo" /> -->
  301. <!-- <el-table-column label="存放位置" align="center" prop="storageLocation" /> -->
  302. <el-table-column
  303. label="购买时间"
  304. align="center"
  305. prop="buyingTime"
  306. width="180"
  307. >
  308. <template slot-scope="scope">
  309. <span>{{ parseTime(scope.row.buyingTime, "{y}-{m}-{d}") }}</span>
  310. </template>
  311. </el-table-column>
  312. <!-- <el-table-column label="备注" align="center" prop="remark" /> -->
  313. <!-- <el-table-column label="库房" align="center" prop="warehouse">
  314. <template slot-scope="scope">
  315. <dict-tag
  316. :options="dict.type.storage_room"
  317. :value="scope.row.warehouse"
  318. />
  319. </template>
  320. </el-table-column> -->
  321. <!-- <el-table-column label="档案id" align="center" prop="archivesId" /> -->
  322. <!-- <el-table-column
  323. label="操作"
  324. align="center"
  325. class-name="small-padding fixed-width"
  326. width="150px"
  327. >
  328. <template slot-scope="scope">
  329. <el-button
  330. size="btu"
  331. type="text"
  332. @click="handleUpdate(scope.row)"
  333. v-hasPermi="['materialManagement:materialRegistration:edit']"
  334. >修改</el-button
  335. >
  336. <el-button
  337. size="btd"
  338. type="text"
  339. @click="handleDelete(scope.row)"
  340. v-hasPermi="['materialManagement:materialRegistration:remove']"
  341. >删除</el-button
  342. >
  343. </template>
  344. </el-table-column> -->
  345. </el-table>
  346. <pagination
  347. v-show="total > 0"
  348. :total="total"
  349. :page.sync="queryParams.pageNum"
  350. :limit.sync="queryParams.pageSize"
  351. @pagination="getList"
  352. />
  353. <!-- 添加或修改物资入库登记对话框 -->
  354. <el-dialog
  355. :title="title"
  356. :visible.sync="open"
  357. width="500px"
  358. append-to-body
  359. :close-on-click-modal="false"
  360. >
  361. <div class="jiben">基本信息</div>
  362. <el-form
  363. ref="form"
  364. :model="form"
  365. :rules="rules"
  366. label-width="80px"
  367. :inline="true"
  368. >
  369. <el-form-item label="物品类型" prop="wuPinType">
  370. <el-select v-model="form.wuPinType" placeholder="请选择物品类型">
  371. <el-option
  372. v-for="dict in dict.type.category"
  373. :key="dict.value"
  374. :label="dict.label"
  375. :value="dict.label"
  376. ></el-option>
  377. </el-select>
  378. </el-form-item>
  379. <el-form-item label="物品名称" prop="name">
  380. <el-select v-model="form.name" placeholder="请选择物品名称">
  381. <!-- <el-option label="请选择字典生成" value="" /> -->
  382. <el-option
  383. v-for="(item, i) in itemlist"
  384. :key="i"
  385. :value="item.name"
  386. :label="item.names"
  387. class="input_xiala"
  388. @click.native="wuPing(item)"
  389. >
  390. </el-option>
  391. </el-select>
  392. </el-form-item>
  393. <el-form-item label="物品规格" prop="materialSpecification">
  394. <el-input
  395. v-model="form.materialSpecification"
  396. placeholder="请输入物品规格"
  397. />
  398. </el-form-item>
  399. <el-form-item label="物品型号" prop="materialXh">
  400. <el-input
  401. v-model="form.materialXh"
  402. placeholder="请输入物品型号"
  403. readonly
  404. />
  405. </el-form-item>
  406. <!-- <el-form-item label="营具类型" prop="yingJuType">
  407. <el-select v-model="form.yingJuType" placeholder="请选择营具类型">
  408. <el-option label="请选择字典生成" value="" />
  409. </el-select>
  410. </el-form-item> -->
  411. <el-form-item label="库房" prop="warehouse">
  412. <el-select v-model="form.warehouse" placeholder="请选择库房">
  413. <el-option
  414. v-for="dict in dict.type.storage_room"
  415. :key="dict.value"
  416. :label="dict.label"
  417. :value="dict.label"
  418. ></el-option>
  419. </el-select>
  420. </el-form-item>
  421. <el-form-item label="存放位置" prop="storageLocation">
  422. <el-input
  423. v-model="form.storageLocation"
  424. placeholder="请输入存放位置"
  425. />
  426. </el-form-item>
  427. <el-form-item label="入库数量" prop="putInt">
  428. <el-input v-model="form.putInt" placeholder="请输入入库数量" />
  429. </el-form-item>
  430. <el-form-item label="入库编号" prop="inboundNo">
  431. <el-input v-model="form.inboundNo" placeholder="请输入入库编号" />
  432. </el-form-item>
  433. <el-form-item label="购买时间" prop="buyingTime">
  434. <el-date-picker
  435. clearable
  436. size="small"
  437. v-model="form.buyingTime"
  438. type="date"
  439. value-format="yyyy-MM-dd"
  440. placeholder="选择购买时间"
  441. >
  442. </el-date-picker>
  443. </el-form-item>
  444. <el-form-item label="入库时间" prop="storageTime">
  445. <el-date-picker
  446. clearable
  447. size="small"
  448. v-model="form.storageTime"
  449. type="date"
  450. value-format="yyyy-MM-dd"
  451. placeholder="选择入库时间"
  452. >
  453. </el-date-picker>
  454. </el-form-item>
  455. <el-form-item label="价值" prop="price">
  456. <el-input v-model="form.price" placeholder="请输入价值" />
  457. </el-form-item>
  458. <div class="jiben">备注</div>
  459. <el-form-item label="" prop="remark">
  460. <el-input
  461. v-model="form.remark"
  462. type="textarea"
  463. placeholder="请输入内容"
  464. />
  465. </el-form-item>
  466. <!-- <el-form-item label="责任单位" prop="responsibilityUnit">
  467. <el-input
  468. v-model="form.responsibilityUnit"
  469. placeholder="请输入责任单位"
  470. />
  471. </el-form-item>
  472. <el-form-item label="责任人" prop="personLiable">
  473. <el-input v-model="form.personLiable" placeholder="请输入责任人" />
  474. </el-form-item>
  475. <el-form-item label="创建人" prop="createName">
  476. <el-input v-model="form.createName" placeholder="请输入创建人" />
  477. </el-form-item>
  478. <el-form-item label="档案id" prop="archivesId">
  479. <el-input v-model="form.archivesId" placeholder="请输入档案id" />
  480. </el-form-item> -->
  481. </el-form>
  482. <div slot="footer" class="dialog-footer">
  483. <el-button type="primary" @click="submitForm">确 定</el-button>
  484. <el-button @click="cancel" size="btn">取 消</el-button>
  485. </div>
  486. </el-dialog>
  487. </div>
  488. </template>
  489. <script>
  490. import {
  491. listMaterialRegistration,
  492. getMaterialRegistration,
  493. delMaterialRegistration,
  494. addMaterialRegistration,
  495. updateMaterialRegistration,
  496. exportMaterialRegistration,
  497. exportMaterialRegWuPingList,
  498. } from "@/api/materialManagement/materialRegistration";
  499. // 所有人员
  500. import { getAll } from "@/api/grassrootsregistration/bdglmeeting";
  501. export default {
  502. name: "MaterialRegistration",
  503. dicts: ["category", "storage_room", "camp_equipment"],
  504. data() {
  505. return {
  506. // 遮罩层
  507. loading: true,
  508. // 导出遮罩层
  509. exportLoading: false,
  510. // 选中数组
  511. ids: [],
  512. // 非单个禁用
  513. single: true,
  514. // 非多个禁用
  515. multiple: true,
  516. // 显示搜索条件
  517. showSearch: true,
  518. // 总条数
  519. total: 0,
  520. // 物资入库登记表格数据
  521. materialRegistrationList: [],
  522. // 弹出层标题
  523. title: "",
  524. // 是否显示弹出层
  525. open: false,
  526. // 查询参数
  527. queryParams: {
  528. pageNum: 1,
  529. pageSize: 10,
  530. wuPinType: null,
  531. name: null,
  532. materialSpecification: null,
  533. materialXh: null,
  534. yingJuType: null,
  535. responsibilityUnit: null,
  536. personLiable: null,
  537. putInt: null,
  538. createName: null,
  539. storageTime: null,
  540. inboundNo: null,
  541. storageLocation: null,
  542. buyingTime: null,
  543. price: null,
  544. warehouse: null,
  545. archivesId: null,
  546. },
  547. // 表单参数
  548. form: {},
  549. // 表单校验
  550. rules: {
  551. name: [{ required: true, message: "请选择物品名称", trigger: "blur" }],
  552. wuPinType: [
  553. { required: true, message: "请选择物品类型", trigger: "blur" },
  554. ],
  555. warehouse: [{ required: true, message: "请选择库房", trigger: "blur" }],
  556. },
  557. // 获取物品名称列表
  558. itemlist: [],
  559. // 外面的人员
  560. renYuans: [],
  561. };
  562. },
  563. created() {
  564. this.getList();
  565. this.getSuo();
  566. },
  567. methods: {
  568. // 编号
  569. planName() {
  570. let date = new Date();
  571. let year = date.getFullYear();
  572. let month =
  573. date.getMonth() + 1 <= 9
  574. ? "0" + (date.getMonth() + 1)
  575. : date.getMonth() + 1;
  576. let day = date.getDate();
  577. let hour = date.getHours() <= 9 ? "0" + date.getHours() : date.getHours();
  578. let minute =
  579. date.getMinutes <= 9 ? "0" + date.getMinutes() : date.getMinutes();
  580. this.form.inboundNo = year + month + day + hour + minute;
  581. },
  582. // 获取搜索所有人
  583. getSuo() {
  584. getAll().then((res) => {
  585. this.renYuans = res.rows;
  586. });
  587. },
  588. // 点击物品名称触发
  589. wuPing(data) {
  590. this.form.archivesId = data.id;
  591. this.form.materialXh = data.materialXh;
  592. this.form.responsibilityUnit = data.responsibilityUnit;
  593. this.form.unitId = data.unitId;
  594. this.planName();
  595. },
  596. // 获取物品名称
  597. getMingCheng() {
  598. exportMaterialRegWuPingList().then((response) => {
  599. this.itemlist = response.rows;
  600. });
  601. },
  602. /** 查询物资入库登记列表 */
  603. getList() {
  604. this.loading = true;
  605. listMaterialRegistration(this.queryParams).then((response) => {
  606. this.materialRegistrationList = response.rows;
  607. this.total = response.total;
  608. this.loading = false;
  609. });
  610. },
  611. // 取消按钮
  612. cancel() {
  613. this.open = false;
  614. this.reset();
  615. },
  616. // 表单重置
  617. reset() {
  618. this.form = {
  619. id: null,
  620. wuPinType: null,
  621. name: null,
  622. materialSpecification: null,
  623. materialXh: null,
  624. yingJuType: null,
  625. responsibilityUnit: null,
  626. personLiable: null,
  627. putInt: null,
  628. createName: null,
  629. createTime: null,
  630. storageTime: null,
  631. inboundNo: null,
  632. storageLocation: null,
  633. buyingTime: null,
  634. price: null,
  635. remark: null,
  636. warehouse: null,
  637. archivesId: null,
  638. };
  639. this.resetForm("form");
  640. },
  641. /** 搜索按钮操作 */
  642. handleQuery() {
  643. this.queryParams.pageNum = 1;
  644. this.getList();
  645. },
  646. /** 重置按钮操作 */
  647. resetQuery() {
  648. this.resetForm("queryForm");
  649. this.handleQuery();
  650. },
  651. // 多选框选中数据
  652. handleSelectionChange(selection) {
  653. this.ids = selection.map((item) => item.id);
  654. this.single = selection.length !== 1;
  655. this.multiple = !selection.length;
  656. },
  657. /** 新增按钮操作 */
  658. handleAdd() {
  659. this.getMingCheng();
  660. this.reset();
  661. this.open = true;
  662. this.title = "添加物资入库登记";
  663. },
  664. /** 修改按钮操作 */
  665. handleUpdate(row) {
  666. this.reset();
  667. const id = row.id || this.ids;
  668. getMaterialRegistration(id).then((response) => {
  669. this.form = response.data;
  670. this.open = true;
  671. this.title = "修改物资入库登记";
  672. });
  673. },
  674. /** 提交按钮 */
  675. submitForm() {
  676. this.$refs["form"].validate((valid) => {
  677. if (valid) {
  678. if (this.form.id != null) {
  679. updateMaterialRegistration(this.form).then((response) => {
  680. this.$modal.msgSuccess("修改成功");
  681. this.open = false;
  682. this.getList();
  683. });
  684. } else {
  685. this.form.total = this.form.putInt;
  686. addMaterialRegistration(this.form).then((response) => {
  687. this.$modal.msgSuccess("新增成功");
  688. this.open = false;
  689. this.getList();
  690. });
  691. }
  692. }
  693. });
  694. },
  695. /** 删除按钮操作 */
  696. handleDelete(row) {
  697. const ids = row.id || this.ids;
  698. this.$modal
  699. .confirm('是否确认删除物资入库登记编号为"' + ids + '"的数据项?')
  700. .then(function () {
  701. return delMaterialRegistration(ids);
  702. })
  703. .then(() => {
  704. this.getList();
  705. this.$modal.msgSuccess("删除成功");
  706. })
  707. .catch(() => {});
  708. },
  709. /** 导出按钮操作 */
  710. handleExport() {
  711. const queryParams = this.queryParams;
  712. this.$modal
  713. .confirm("是否确认导出所有物资入库登记数据项?")
  714. .then(() => {
  715. this.exportLoading = true;
  716. return exportMaterialRegistration(queryParams);
  717. })
  718. .then((response) => {
  719. this.$download.name(response.msg);
  720. this.exportLoading = false;
  721. })
  722. .catch(() => {});
  723. },
  724. },
  725. };
  726. </script>
  727. <style scoped>
  728. /* 对话框背景颜色 */
  729. ::v-deep .el-dialog {
  730. width: 1016px !important;
  731. background: #004d86 !important;
  732. }
  733. ::v-deep .el-textarea__inner {
  734. width: 965px;
  735. height: 104px;
  736. }
  737. ::v-deep .el-dialog__header {
  738. border-bottom: 1px solid #718a9d;
  739. }
  740. ::v-deep .el-dialog__title {
  741. color: #fff;
  742. font: 18px;
  743. }
  744. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  745. color: #fff;
  746. }
  747. ::v-deep .el-form-item__label {
  748. font: 16px;
  749. color: #fff;
  750. width: 100px !important;
  751. }
  752. ::v-deep .el-dialog .el-input__inner {
  753. width: 200px !important;
  754. height: 36px;
  755. background: transparent;
  756. color: #fff;
  757. border: 1px solid white !important;
  758. border-color: #fff !important;
  759. }
  760. /* 单位框背景颜色 */
  761. ::v-deep .vue-treeselect__control {
  762. background: #004d86 !important;
  763. }
  764. /*调整表单间距 */
  765. ::v-deep .el-form-item__content {
  766. width: 200px;
  767. }
  768. ::v-deep .el-dialog__footer {
  769. margin-right: 6px !important;
  770. }
  771. .contents {
  772. padding: 0px 40px !important;
  773. }
  774. ::v-deep .el-form-item__label {
  775. width: 115px !important;
  776. }
  777. ::v-deep .el-dialog__body {
  778. padding: 30px 0px 30px 26px !important;
  779. }
  780. ::v-deep .el-form .el-input__inner {
  781. height: 36px !important;
  782. color: #fff;
  783. }
  784. /* 单位框背景颜色 */
  785. ::v-deep .vue-treeselect__control {
  786. background: #004d86 !important;
  787. }
  788. ::v-deep .vue-treeselect__single-value {
  789. color: #fff !important;
  790. }
  791. </style>