index.vue 23 KB

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