index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  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-width="100px" label="客户名称" prop="corpId">
  11. <el-select
  12. v-model="queryParams.corpId"
  13. placeholder="请输入客户名称"
  14. clearable
  15. size="small"
  16. filterable
  17. >
  18. <el-option
  19. v-for="(dict, index) in fMblnoOptions"
  20. :key="index.fId"
  21. :label="dict.fName"
  22. :value="dict.fId"
  23. />
  24. </el-select>
  25. </el-form-item>
  26. <el-form-item label-width="100px" label="业务类型" prop="billType">
  27. <el-select
  28. v-model="queryParams.billType"
  29. placeholder="请选择业务类型"
  30. clearable
  31. size="small"
  32. >
  33. <el-option
  34. v-for="(dict, index) in billTypeList"
  35. :key="index.dictValue"
  36. :label="dict.dictLabel"
  37. :value="dict.dictValue"
  38. />
  39. </el-select>
  40. </el-form-item>
  41. <el-form-item label-width="100px" label="运输方式" prop="transType">
  42. <el-select
  43. v-model="queryParams.transType"
  44. placeholder="请选择运输方式"
  45. clearable
  46. size="small"
  47. >
  48. <el-option
  49. v-for="(dict, index) in transTypeList"
  50. :key="index.dictValue"
  51. :label="dict.dictLabel"
  52. :value="dict.dictValue"
  53. />
  54. </el-select>
  55. </el-form-item>
  56. <el-form-item label-width="100px" label="运输性质" prop="transProp">
  57. <el-select
  58. v-model="queryParams.transProp"
  59. placeholder="请选择运输性质"
  60. clearable
  61. size="small"
  62. >
  63. <el-option
  64. v-for="(dict, index) in transPropList"
  65. :key="index.dictValue"
  66. :label="dict.dictLabel"
  67. :value="dict.dictValue"
  68. />
  69. </el-select>
  70. </el-form-item>
  71. <el-form-item label-width="100px" label="提单号" prop="mblno">
  72. <el-input
  73. v-model="queryParams.mblno"
  74. placeholder="请输入提单号"
  75. clearable
  76. size="small"
  77. @keyup.enter.native="handleQuery"
  78. />
  79. </el-form-item>
  80. <el-form-item label-width="100px" label="货品名称" prop="goodsId">
  81. <el-select
  82. v-model="queryParams.goodsId"
  83. placeholder="请输入货品名称"
  84. clearable
  85. size="small"
  86. filterable
  87. >
  88. <el-option
  89. v-for="(dict, index) in goodsOptions"
  90. :key="index.fId"
  91. :label="dict.fName"
  92. :value="dict.fId"
  93. />
  94. </el-select>
  95. </el-form-item>
  96. <el-form-item label-width="100px" label="装车地点" prop="loadAddr">
  97. <el-input
  98. v-model="queryParams.loadAddr"
  99. placeholder="请输入装车地点"
  100. clearable
  101. size="small"
  102. @keyup.enter.native="handleQuery"
  103. />
  104. </el-form-item>
  105. <el-form-item label-width="100px" label="装卸货地点" prop="mdLoadAddr">
  106. <el-input
  107. v-model="queryParams.mdLoadAddr"
  108. placeholder="请输入装卸货地点"
  109. clearable
  110. size="small"
  111. @keyup.enter.native="handleQuery"
  112. />
  113. </el-form-item>
  114. <el-form-item label-width="100px" label="卸车地点" prop="unLoadAddr">
  115. <el-input
  116. v-model="queryParams.unLoadAddr"
  117. placeholder="请输入卸车地点"
  118. clearable
  119. size="small"
  120. @keyup.enter.native="handleQuery"
  121. />
  122. </el-form-item>
  123. </el-form>
  124. <el-row :gutter="10" class="mb8">
  125. <!-- <el-col :span="1.5">
  126. <el-button
  127. type="primary"
  128. icon="el-icon-plus"
  129. size="mini"
  130. @click="handleAdd"
  131. v-hasPermi="['fleet:plans:add']"
  132. >新增</el-button
  133. >
  134. </el-col> -->
  135. <el-col :span="1.5">
  136. <el-button
  137. type="success"
  138. icon="el-icon-edit"
  139. size="mini"
  140. :disabled="single"
  141. @click="handleUpdate"
  142. v-hasPermi="['fleet:plans:edit']"
  143. >修改</el-button
  144. >
  145. </el-col>
  146. <el-col :span="1.5">
  147. <el-button
  148. type="danger"
  149. icon="el-icon-delete"
  150. size="mini"
  151. :disabled="multiple"
  152. @click="handleDelete"
  153. v-hasPermi="['fleet:plans:remove']"
  154. >删除</el-button
  155. >
  156. </el-col>
  157. <el-col :span="1.5">
  158. <el-button
  159. type="warning"
  160. icon="el-icon-download"
  161. size="mini"
  162. @click="handleExport"
  163. v-hasPermi="['fleet:plans:export']"
  164. >导出</el-button
  165. >
  166. </el-col>
  167. <div class="tabSetting">
  168. <div style="margin-right: 20px">
  169. <el-button
  170. type="cyan"
  171. icon="el-icon-search"
  172. size="mini"
  173. @click="handleQuery"
  174. >搜索</el-button
  175. >
  176. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  177. >重置</el-button
  178. >
  179. <el-button
  180. v-show="show"
  181. @click="show = !show"
  182. icon="el-icon-arrow-up"
  183. size="mini"
  184. >展开</el-button
  185. >
  186. <el-button
  187. v-show="!show"
  188. @click="show = !show"
  189. icon="el-icon-arrow-down"
  190. size="mini"
  191. >展开</el-button
  192. >
  193. </div>
  194. <right-toolbar
  195. :showSearch.sync="showSearch"
  196. @queryTable="getList"
  197. ></right-toolbar>
  198. <div style="margin: 0 12px">
  199. <el-button
  200. icon="el-icon-setting"
  201. size="mini"
  202. circle
  203. @click="showSetting = !showSetting"
  204. ></el-button>
  205. </div>
  206. </div>
  207. </el-row>
  208. <el-dialog title="提示" :visible.sync="showSetting" width="700px">
  209. <div>配置排序列数据(拖动调整顺序)</div>
  210. <div style="margin-left: 17px">
  211. <el-checkbox
  212. v-model="allCheck"
  213. label="全选"
  214. @change="allChecked"
  215. ></el-checkbox>
  216. </div>
  217. <div style="padding: 4px; display: flex; justify-content: center">
  218. <draggable
  219. v-model="setRowList"
  220. group="site"
  221. animation="300"
  222. @start="onStart"
  223. @end="onEnd"
  224. handle=".indraggable"
  225. >
  226. <transition-group>
  227. <div
  228. v-for="item in setRowList"
  229. :key="item.surface"
  230. class="listStyle"
  231. >
  232. <div style="width: 500px" class="indraggable">
  233. <div class="progress" :style="{ width: item.width + 'px' }">
  234. <el-checkbox
  235. :label="item.name"
  236. v-model="item.checked"
  237. :true-label="0"
  238. :false-label="1"
  239. >{{ item.name }}
  240. </el-checkbox>
  241. </div>
  242. </div>
  243. <el-input-number
  244. v-model.number="item.width"
  245. controls-position="right"
  246. :min="1"
  247. :max="500"
  248. size="mini"
  249. ></el-input-number>
  250. </div>
  251. </transition-group>
  252. </draggable>
  253. </div>
  254. <span slot="footer" class="dialog-footer">
  255. <el-button @click="showSetting = false">取 消</el-button>
  256. <el-button type="primary" @click="save()">确 定</el-button>
  257. </span>
  258. </el-dialog>
  259. <el-table
  260. v-loading="loading"
  261. :data="ftmsorderbillsList"
  262. @selection-change="handleSelectionChange"
  263. >
  264. <el-table-column type="selection" width="55" align="center" />
  265. <el-table-column
  266. v-for="(item, index) in getRowList"
  267. :key="index"
  268. :label="item.name"
  269. :width="item.width"
  270. :prop="item.label"
  271. align="center"
  272. :show-overflow-tooltip="true"
  273. sortable
  274. :fixed="item.fixed"
  275. >
  276. </el-table-column>
  277. <el-table-column
  278. label="操作"
  279. align="center"
  280. class-name="small-padding fixed-width"
  281. fixed="right"
  282. width="150px"
  283. >
  284. <template slot-scope="scope">
  285. <el-button
  286. size="mini"
  287. type="text"
  288. icon="el-icon-edit"
  289. @click="handleUpdate(scope.row)"
  290. >查看</el-button
  291. >
  292. <!-- <el-button
  293. v-if="scope.row.billStatus != 6"
  294. size="mini"
  295. type="text"
  296. icon="el-icon-edit"
  297. @click="handleUpdate(scope.row)"
  298. v-hasPermi="['fleet:plans:edit']"
  299. >修改</el-button
  300. > -->
  301. <el-button
  302. size="mini"
  303. type="text"
  304. icon="el-icon-delete"
  305. @click="handleDelete(scope.row)"
  306. v-hasPermi="['fleet:plans:remove']"
  307. >删除</el-button
  308. >
  309. </template>
  310. </el-table-column>
  311. </el-table>
  312. <pagination
  313. v-show="total > 0"
  314. :total="total"
  315. :page.sync="queryParams.pageNum"
  316. :limit.sync="queryParams.pageSize"
  317. @pagination="getList"
  318. />
  319. <!-- 新增编辑弹框子组件 -->
  320. <add-or-update
  321. v-if="addOrUpdateVisible"
  322. :title="title"
  323. :fname="form"
  324. ref="addOrUpdateRef"
  325. :disabled="disabled"
  326. ></add-or-update>
  327. </div>
  328. </template>
  329. <script>
  330. import AddOrUpdate from "./AddOrUpdate";
  331. import {
  332. getFtmsorderbills,
  333. delFtmsorderbills,
  334. exportFtmsorderbills,
  335. } from "@/api/fleet/ftmsorderbills";
  336. import { listFtmsorderbillsplans } from "@/api/track/singleCost";
  337. import { listGoods } from "@/api/basicdata/goods";
  338. import { listCorps } from "@/api/basicdata/corps";
  339. import { addSet, select } from "@/api/system/set";
  340. import Cookies from "js-cookie";
  341. import draggable from "vuedraggable";
  342. export default {
  343. name: "plans",
  344. data() {
  345. return {
  346. // 控制新增编辑弹窗的显示与隐藏
  347. addOrUpdateVisible: false,
  348. // 非单个禁用
  349. single: true,
  350. disabled: false,
  351. // 非多个禁用
  352. multiple: true,
  353. // 显示搜索条件
  354. showSearch: true,
  355. // 订单主表格数据
  356. ftmsorderbillsList: [],
  357. // 总条数
  358. total: 0,
  359. // 查询参数
  360. queryParams: {
  361. pageNum: 1,
  362. pageSize: 10,
  363. corpId: null,
  364. billType: null,
  365. transType: null,
  366. transProp: null,
  367. goodsId: null,
  368. mblno: null,
  369. loadAddr: null,
  370. mdLoadAddr: null,
  371. unLoadAddr: null,
  372. },
  373. showSetting: false,
  374. drag: false,
  375. setRowList: [
  376. {
  377. surface: "1",
  378. label: "mdLoadDate",
  379. name: "装卸日期",
  380. checked: 0,
  381. width: 100,
  382. },
  383. {
  384. surface: "2",
  385. label: "billType",
  386. name: "贸易方式",
  387. checked: 0,
  388. width: 100,
  389. },
  390. {
  391. surface: "3",
  392. label: "transType",
  393. name: "运输方式",
  394. checked: 0,
  395. width: 100,
  396. },
  397. {
  398. surface: "4",
  399. label: "corpId",
  400. name: "托运人",
  401. checked: 0,
  402. width: 100,
  403. },
  404. {
  405. surface: "5",
  406. label: "ysl",
  407. name: "船名",
  408. checked: 0,
  409. width: 100,
  410. },
  411. {
  412. surface: "6",
  413. label: "voy",
  414. name: "航次",
  415. checked: 0,
  416. width: 100,
  417. },
  418. {
  419. surface: "7",
  420. label: "mblno",
  421. name: "运单号",
  422. checked: 0,
  423. width: 100,
  424. },
  425. {
  426. surface: "8",
  427. label: "cntrQty",
  428. name: "柜量",
  429. checked: 0,
  430. width: 100,
  431. },
  432. {
  433. surface: "9",
  434. label: "cntrId",
  435. name: "柜型",
  436. checked: 0,
  437. width: 100,
  438. },
  439. {
  440. surface: "10",
  441. label: "goodsId",
  442. name: "品名",
  443. checked: 0,
  444. width: 100,
  445. },
  446. {
  447. surface: "11",
  448. label: "cntrWeight",
  449. name: "重量",
  450. checked: 0,
  451. width: 100,
  452. },
  453. {
  454. surface: "12",
  455. label: "polId",
  456. name: "起运港",
  457. checked: 0,
  458. width: 100,
  459. },
  460. {
  461. surface: "13",
  462. label: "podId",
  463. name: "目的港",
  464. checked: 0,
  465. width: 100,
  466. },
  467. {
  468. surface: "14",
  469. label: "loadAddr",
  470. name: "提箱场站",
  471. checked: 0,
  472. width: 100,
  473. },
  474. {
  475. surface: "15",
  476. label: "mdLoadAddr",
  477. name: "装货地",
  478. checked: 0,
  479. width: 100,
  480. },
  481. {
  482. surface: "16",
  483. label: "unLoadAddr",
  484. name: "卸货地",
  485. checked: 0,
  486. width: 100,
  487. },
  488. {
  489. surface: "17",
  490. label: "carregNo",
  491. name: "车号",
  492. checked: 0,
  493. width: 100,
  494. },
  495. {
  496. surface: "18",
  497. label: "name",
  498. name: "司机",
  499. checked: 0,
  500. width: 100,
  501. },
  502. ],
  503. getRowList: [
  504. {
  505. surface: "1",
  506. label: "mdLoadDate",
  507. name: "装卸日期",
  508. checked: 0,
  509. width: 100,
  510. },
  511. {
  512. surface: "2",
  513. label: "billType",
  514. name: "贸易方式",
  515. checked: 0,
  516. width: 100,
  517. },
  518. {
  519. surface: "3",
  520. label: "transType",
  521. name: "运输方式",
  522. checked: 0,
  523. width: 100,
  524. },
  525. {
  526. surface: "4",
  527. label: "corpId",
  528. name: "托运人",
  529. checked: 0,
  530. width: 100,
  531. },
  532. {
  533. surface: "5",
  534. label: "ysl",
  535. name: "船名",
  536. checked: 0,
  537. width: 100,
  538. },
  539. {
  540. surface: "6",
  541. label: "voy",
  542. name: "航次",
  543. checked: 0,
  544. width: 100,
  545. },
  546. {
  547. surface: "7",
  548. label: "mblno",
  549. name: "运单号",
  550. checked: 0,
  551. width: 100,
  552. },
  553. {
  554. surface: "8",
  555. label: "cntrQty",
  556. name: "柜量",
  557. checked: 0,
  558. width: 100,
  559. },
  560. {
  561. surface: "9",
  562. label: "cntrId",
  563. name: "柜型",
  564. checked: 0,
  565. width: 100,
  566. },
  567. {
  568. surface: "10",
  569. label: "goodsId",
  570. name: "品名",
  571. checked: 0,
  572. width: 100,
  573. },
  574. {
  575. surface: "11",
  576. label: "cntrWeight",
  577. name: "重量",
  578. checked: 0,
  579. width: 100,
  580. },
  581. {
  582. surface: "12",
  583. label: "polId",
  584. name: "起运港",
  585. checked: 0,
  586. width: 100,
  587. },
  588. {
  589. surface: "13",
  590. label: "podId",
  591. name: "目的港",
  592. checked: 0,
  593. width: 100,
  594. },
  595. {
  596. surface: "14",
  597. label: "loadAddr",
  598. name: "提箱场站",
  599. checked: 0,
  600. width: 100,
  601. },
  602. {
  603. surface: "15",
  604. label: "mdLoadAddr",
  605. name: "装货地",
  606. checked: 0,
  607. width: 100,
  608. },
  609. {
  610. surface: "16",
  611. label: "unLoadAddr",
  612. name: "卸货地",
  613. checked: 0,
  614. width: 100,
  615. },
  616. {
  617. surface: "17",
  618. label: "carregNo",
  619. name: "车号",
  620. checked: 0,
  621. width: 100,
  622. },
  623. {
  624. surface: "18",
  625. label: "name",
  626. name: "司机",
  627. checked: 0,
  628. width: 100,
  629. },
  630. ],
  631. allCheck: false,
  632. title: "",
  633. form: {},
  634. goodsOptions: [],
  635. fMblnoOptions: [],
  636. transPropList: [],
  637. transTypeList: [],
  638. billTypeList: [],
  639. show: false,
  640. };
  641. },
  642. // 使用子组件
  643. components: {
  644. AddOrUpdate,
  645. draggable,
  646. },
  647. created() {
  648. this.getList();
  649. this.getDicts("data_billType").then((response) => {
  650. this.billTypeList = response.data;
  651. });
  652. this.getDicts("data_transType").then((response) => {
  653. this.transTypeList = response.data;
  654. });
  655. this.getDicts("data_transProp").then((response) => {
  656. this.transPropList = response.data;
  657. });
  658. listGoods().then((response) => {
  659. this.goodsOptions = response.rows;
  660. });
  661. listCorps().then((response) => {
  662. this.fMblnoOptions = response.rows;
  663. });
  664. this.getRow();
  665. },
  666. methods: {
  667. //列设置全选
  668. allChecked() {
  669. if (this.allCheck == true) {
  670. this.setRowList.map((e) => {
  671. return (e.checked = 0);
  672. });
  673. } else {
  674. this.setRowList.map((e) => {
  675. return (e.checked = 1);
  676. });
  677. }
  678. },
  679. //查询列数据
  680. getRow() {
  681. let that = this;
  682. this.data = {
  683. tableName: "单趟费用",
  684. userId: Cookies.get("userName"),
  685. };
  686. select(this.data).then((res) => {
  687. console.log(res);
  688. if (res.data.length != 0) {
  689. this.getRowList = res.data.filter((e) => e.checked == 0);
  690. this.setRowList = res.data;
  691. this.setRowList = this.setRowList.reduce((res, item) => {
  692. res.push({
  693. surface: item.surface,
  694. label: item.label,
  695. name: item.name,
  696. checked: item.checked,
  697. width: item.width,
  698. });
  699. return res;
  700. }, []);
  701. }
  702. });
  703. },
  704. //保存列设置
  705. save() {
  706. this.showSetting = false;
  707. this.data = {
  708. tableName: "单趟费用",
  709. userId: Cookies.get("userName"),
  710. sysTableSetList: this.setRowList,
  711. };
  712. addSet(this.data).then((res) => {
  713. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  714. });
  715. },
  716. //开始拖拽事件
  717. onStart() {
  718. this.drag = true;
  719. },
  720. //拖拽结束事件
  721. onEnd() {
  722. this.drag = false;
  723. },
  724. /** 查询订单主列表 */
  725. getList() {
  726. this.loading = true;
  727. listFtmsorderbillsplans(this.queryParams).then((response) => {
  728. this.ftmsorderbillsList = response.rows;
  729. this.total = response.total;
  730. this.loading = false;
  731. });
  732. },
  733. /** 新增按钮操作 */
  734. handleAdd() {
  735. this.reset();
  736. this.addOrUpdateVisible = !this.addOrUpdateVisible;
  737. this.title = "添加订单主";
  738. },
  739. // 表单重置
  740. reset() {
  741. this.form = {
  742. id: null,
  743. billNo: null,
  744. actId: null,
  745. corpId: null,
  746. transUserName: null,
  747. planUserName: null,
  748. billType: null,
  749. transType: null,
  750. transProp: null,
  751. ifContracted: null,
  752. contractNo: null,
  753. refNo: null,
  754. accstlType: null,
  755. accdays: null,
  756. goodsId: null,
  757. goodsPrice: null,
  758. goodsLossType: null,
  759. goodsLossStd: null,
  760. mblno: null,
  761. ysl: null,
  762. voy: null,
  763. pol: null,
  764. pod: null,
  765. qtyPlan: null,
  766. qtyDisPatch: null,
  767. weightPlan: null,
  768. cntrDesc: null,
  769. carNoList: null,
  770. loadAddr: null,
  771. loadAttn: null,
  772. loadAttntel: null,
  773. loadDate: null,
  774. mdLoadAddr: null,
  775. mdLoadAttn: null,
  776. mdLoadAttnTel: null,
  777. mdLoadDate: null,
  778. unLoadAddr: null,
  779. unLoadAttn: null,
  780. unLoadAttnTel: null,
  781. unLoadDate: null,
  782. routeId: null,
  783. routeDesc: null,
  784. ifWaybill: null,
  785. ifNeedinvDr: null,
  786. postDate: null,
  787. billStatus: 0,
  788. delFlag: null,
  789. createBy: null,
  790. createTime: null,
  791. updateBy: null,
  792. updateTime: null,
  793. remarks: null,
  794. };
  795. this.disabled = false;
  796. this.resetForm("form");
  797. },
  798. // 多选框选中数据
  799. handleSelectionChange(selection) {
  800. this.ids = selection.map((item) => item.id);
  801. this.single = selection.length !== 1;
  802. this.multiple = !selection.length;
  803. },
  804. /** 修改按钮操作 */
  805. handleUpdate(row) {
  806. let id = row.id;
  807. this.reset();
  808. this.title = "查看订单";
  809. this.addOrUpdateVisible = true;
  810. this.form.id = id;
  811. this.$nextTick(() => {
  812. this.$refs.addOrUpdateRef.init();
  813. });
  814. },
  815. // //获取到保存并复制
  816. // getSave(data) {
  817. // data.data.map((e) => {
  818. // if (e.cntrId != null) {
  819. // return (e.cntrId = e.cntrId.toString());
  820. // }
  821. // });
  822. // this.vehicleList = data.data;
  823. // },
  824. /** 删除按钮操作 */
  825. handleDelete(row) {
  826. const ids = row.id || this.ids;
  827. this.$confirm('是否确认删除订单主编号为"' + ids + '"的数据项?', "警告", {
  828. confirmButtonText: "确定",
  829. cancelButtonText: "取消",
  830. type: "warning",
  831. })
  832. .then(function () {
  833. return delFtmsorderbills(ids);
  834. })
  835. .then(() => {
  836. this.getList();
  837. this.msgSuccess("删除成功");
  838. });
  839. },
  840. /** 导出按钮操作 */
  841. handleExport() {
  842. const queryParams = this.queryParams;
  843. this.$confirm("是否确认导出所有订单主数据项?", "警告", {
  844. confirmButtonText: "确定",
  845. cancelButtonText: "取消",
  846. type: "warning",
  847. })
  848. .then(function () {
  849. return exportFtmsorderbills(queryParams);
  850. })
  851. .then((response) => {
  852. this.download(response.msg);
  853. });
  854. },
  855. /** 搜索按钮操作 */
  856. handleQuery() {
  857. this.queryParams.pageNum = 1;
  858. this.getList();
  859. },
  860. /** 重置按钮操作 */
  861. resetQuery() {
  862. this.resetForm("queryForm");
  863. this.handleQuery();
  864. },
  865. // 监听 子组件弹窗关闭后触发,有子组件调用
  866. showAddOrUpdate(data) {
  867. if (data === "false") {
  868. this.addOrUpdateVisible = false;
  869. this.disabled = false;
  870. } else {
  871. this.addOrUpdateVisible = true;
  872. }
  873. },
  874. },
  875. };
  876. </script>
  877. <style lang="scss" scoped>
  878. .tabSetting {
  879. display: flex;
  880. justify-content: flex-end;
  881. }
  882. .listStyle {
  883. display: flex;
  884. border-top: 1px solid #dcdfe6;
  885. border-left: 1px solid #dcdfe6;
  886. border-right: 1px solid #dcdfe6;
  887. }
  888. .listStyle:last-child {
  889. border-bottom: 1px solid #dcdfe6;
  890. }
  891. .progress {
  892. display: flex;
  893. align-items: center;
  894. padding: 2px;
  895. background-color: rgba(0, 0, 0, 0.05);
  896. height: 100%;
  897. }
  898. </style>