index.vue 23 KB

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