index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. <template>
  2. <div>
  3. <basic-container v-show="isShow">
  4. <avue-crud :option="option" :data="dataList" ref="crud" v-model="form" :page.sync="page" :search.sync="search"
  5. :table-loading="loading" @row-del="rowDel" :before-open="beforeOpen" :before-close="beforeClose"
  6. @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
  7. @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"
  8. @tree-load="treeLoad" @saveColumn="saveColumn" @resetColumn="resetColumn"
  9. @search-criteria-switch="searchCriteriaSwitch" :cell-style="cellStyle">
  10. <template slot="menuLeft" slot-scope="{size}">
  11. <el-button type="success" :size="size" icon="el-icon-copy-document" @click="copyOrder" :disabled="single">复制单据
  12. </el-button>
  13. <el-button type="info" :size="size" icon="el-icon-printer">报表打印</el-button>
  14. <el-button type="warning" :size="size" icon="el-icon-thumb" :disabled="multiple" @click="applyPayment">申请货款
  15. </el-button>
  16. </template>
  17. <template slot-scope="scope" slot="orgOrderNo">
  18. <span style="color: #409EFF;cursor: pointer" @click.stop="beforeOpenPage(scope.row, scope.index)">{{
  19. scope.row.orgOrderNo
  20. }}</span>
  21. </template>
  22. <template slot="corpIdSearch">
  23. <crop-select v-model="search.corpId" corpType="GYS"></crop-select>
  24. </template>
  25. <template slot-scope="scope" slot="corpId">
  26. <span style="color: #409EFF;cursor: pointer" @click.stop="beforeOpenPage(scope.row, scope.index)">{{
  27. scope.row.strCorpName
  28. }}</span>
  29. </template>
  30. <template slot-scope="scope" slot="orderNo">
  31. <span style="color: #409EFF;cursor: pointer" @click.stop="beforeOpenPage(scope.row, scope.index)">{{
  32. scope.row.orderNo
  33. }}</span>
  34. </template>
  35. <template slot-scope="scope" slot="createUser">
  36. {{ scope.row.createUserName }}
  37. </template>
  38. <template slot-scope="scope" slot="createFreight">
  39. {{ scope.row.createFreight == 1 ? '是' : '否' }}
  40. </template>
  41. <template slot-scope="scope" slot="menu">
  42. <el-button type="text" icon="el-icon-delete" size="small" @click.stop="createPlant(scope.row, scope.index)"
  43. :disabled="scope.row.status > 0 || scope.row.createFreight == 1">生成工厂发货
  44. </el-button>
  45. <!-- <el-button-->
  46. <!-- type="text"-->
  47. <!-- icon="el-icon-edit"-->
  48. <!-- size="small"-->
  49. <!-- @click.stop="editOpen(scope.row,scope.index)"-->
  50. <!-- >编辑-->
  51. <!-- </el-button>-->
  52. <el-button type="text" icon="el-icon-delete" size="small" @click.stop="rowDel(scope.row, scope.index)"
  53. :disabled="(scope.row.itemsList && scope.row.itemsList.length == 0) || scope.row.createFreight == 1">删除
  54. </el-button>
  55. </template>
  56. </avue-crud>
  57. </basic-container>
  58. <detail-page ref="detail" @goBack="goBack" :detailData="detailData" v-if="!isShow"></detail-page>
  59. <el-dialog title="账单" append-to-body class="el-dialogDeep" :visible.sync="applyPaymentDialog" width="60%"
  60. :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
  61. <apply-payment v-if="applyPaymentDialog" :billType="billType" :billData="billData" :arrList="applyPaymentList"
  62. @choceFun="choceFun">
  63. </apply-payment>
  64. </el-dialog>
  65. <el-dialog append-to-body title="账单" class="el-dialogDeep" :visible.sync="financialAccountDialog" width="70%"
  66. :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
  67. <financial-account v-if="financialAccountDialog" :billType="billType" :billData="billData"
  68. :checkData="financeData" :arrList="applyPaymentList" @choceFun="choceFun" tradeType="GN" @submit="feeSubmit" :addBut="false">
  69. </financial-account>
  70. </el-dialog>
  71. </div>
  72. </template>
  73. <script>
  74. import option from "./configuration/mainList.json";
  75. import { customerList, deleteDetails, generateShipment, genfactory, getApplyAmount } from "@/api/basicData/purchaseOrder"
  76. import detailPage from "./detailsPageEdit";
  77. import { defaultDate } from "@/util/date";
  78. import ApplyPayment from "@/components/finance/applyPayment";
  79. import financialAccount from "../../../components/finance/financialAccount";
  80. import { gainUser } from "@/api/basicData/customerInquiry";
  81. import { customerList as feeList } from "@/api/basicData/basicFeesDesc";
  82. import { getCurrentDate } from "@/util/date";
  83. export default {
  84. name: "customerInformation",
  85. props: {
  86. detailData: {
  87. type: Object
  88. }
  89. },
  90. components: {
  91. detailPage,
  92. ApplyPayment,
  93. financialAccount
  94. },
  95. data() {
  96. return {
  97. configuration: {
  98. multipleChoices: false,
  99. multiple: false,
  100. collapseTags: false,
  101. placeholder: "请点击右边按钮选择",
  102. dicData: [],
  103. clearable: true,
  104. },
  105. search: {},
  106. loading: false,
  107. form: {},
  108. option: {},
  109. parentId: 0,
  110. dataList: [],
  111. page: {
  112. pageSize: 10,
  113. currentPage: 1,
  114. total: 0,
  115. pageSizes: [10, 50, 100, 200, 300]
  116. },
  117. // 非单个禁用
  118. single: true,
  119. // 非多个禁用
  120. multiple: true,
  121. selection: [],
  122. isShow: true,
  123. detailData: {},
  124. billType: "申请", //账单类型
  125. billData: {}, //账单需要数据
  126. financeData: {
  127. url: "/financialManagement/paymentRequest/index",
  128. pageStatus: "this.$store.getters.pqStatus",
  129. pageLabel: "付费申请",
  130. checkType: 'ffsq'
  131. }, // 账单请核需要的路由
  132. applyPaymentDialog: false,//生成账单组件
  133. financialAccountDialog: false,
  134. applyPaymentList: [],
  135. feesOption: [],
  136. }
  137. },
  138. async created() {
  139. // this.search.requiredArrivalDate = defaultDate(1)
  140. this.search.createTime = defaultDate(3)
  141. // this.option = option
  142. this.option = await this.getColumnData(this.getColumnName(17), option);
  143. this.getWorkDicts("payment_term").then(res => {
  144. this.findObject(this.option.column, "paymentType").dicData =
  145. res.data.data;
  146. });
  147. gainUser().then(res => {
  148. this.findObject(this.option.column, "createUser").dicData = res.data.data;
  149. })
  150. feeList().then(res => {
  151. this.feesOption = res.data.data.records
  152. })
  153. let i = 0;
  154. this.option.column.forEach(item => {
  155. if (item.search) i++
  156. })
  157. if (i % 3 !== 0) {
  158. const num = 3 - Number(i % 3)
  159. this.option.searchMenuSpan = num * 8;
  160. this.option.searchMenuPosition = "right";
  161. }
  162. this.option.column.forEach(item => {
  163. if (item.pickerOptions) {
  164. item.pickerOptions = {
  165. shortcuts: [{
  166. text: '最近一周',
  167. onClick(picker) {
  168. const end = new Date();
  169. const start = new Date();
  170. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  171. picker.$emit('pick', [start, end]);
  172. }
  173. }, {
  174. text: '最近一个月',
  175. onClick(picker) {
  176. const end = new Date();
  177. const start = new Date();
  178. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  179. picker.$emit('pick', [start, end]);
  180. }
  181. }, {
  182. text: '最近三个月',
  183. onClick(picker) {
  184. const end = new Date();
  185. const start = new Date();
  186. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  187. picker.$emit('pick', [start, end]);
  188. }
  189. }]
  190. }
  191. }
  192. })
  193. },
  194. activated() {
  195. if (this.$route.query.check) {
  196. this.isShow = true
  197. // this.beforeOpenPage({id: this.$route.query.check.billId})
  198. this.detailData = {
  199. id: this.$route.query.check.billId,
  200. check: this.$route.query.check,
  201. };
  202. this.isShow = false;
  203. this.$store.commit("DOMCG_IN_DETAIL");
  204. }
  205. if (this.$route.query.params) {
  206. this.beforeOpenPage({ id: this.$route.query.params })
  207. }
  208. },
  209. methods: {
  210. cellStyle() {
  211. return "padding:0;height:40px;";
  212. },
  213. searchCriteriaSwitch(type) {
  214. if (type) {
  215. this.option.height = this.option.height - 90
  216. } else {
  217. this.option.height = this.option.height + 90
  218. }
  219. this.$refs.crud.getTableHeight()
  220. },
  221. //删除列表后面的删除按钮触发触发(row, index, done)
  222. rowDel(row, index, done) {
  223. this.$confirm("确定将选择数据删除?", {
  224. confirmButtonText: "确定",
  225. cancelButtonText: "取消",
  226. type: "warning"
  227. }).then(() => {
  228. return deleteDetails(row.id);
  229. }).then(() => {
  230. this.$message({
  231. type: "success",
  232. message: "操作成功!"
  233. });
  234. this.page.currentPage = 1;
  235. this.onLoad(this.page, { parentId: 0 });
  236. });
  237. },
  238. //查询全部
  239. initData() {
  240. customerList().then(res => {
  241. const column = this.findObject(this.option.column, "parentId");
  242. column.dicData = res.data.data.records;
  243. });
  244. },
  245. //新增子项触发
  246. handleAdd(row) {
  247. this.parentId = row.id;
  248. const column = this.findObject(this.option.column, "parentId");
  249. column.value = row.id;
  250. column.addDisabled = true;
  251. this.$refs.crud.rowAdd();
  252. },
  253. //查看跳转页面
  254. beforeOpenPage(row, index) {
  255. const data = {
  256. moduleName: 'cg',
  257. tableName: 'business_order',
  258. billId: row.id,
  259. no: localStorage.getItem('browserID')
  260. }
  261. this.checkLock(data).then(res => {
  262. if (res.data.code == 200) {
  263. this.detailData = {
  264. seeDisabled: true,
  265. id: row.id,
  266. };
  267. this.isShow = false;
  268. this.$store.commit("DOMCG_IN_DETAIL");
  269. }
  270. }).catch(err => {
  271. this.detailData = {
  272. id: row.id,
  273. seeDisabled: true,
  274. opDisabled: true
  275. };
  276. this.isShow = false;
  277. this.$store.commit("DOMCG_IN_DETAIL");
  278. })
  279. },
  280. //新增跳转页面
  281. beforeOpen(row, index) {
  282. this.detailData = {
  283. id: row.id,
  284. };
  285. this.isShow = false;
  286. this.$store.commit("DOMCG_IN_DETAIL");
  287. },
  288. editOpen(row, index) {
  289. const data = {
  290. moduleName: 'cg',
  291. tableName: 'business_order',
  292. billId: row.id,
  293. no: localStorage.getItem('browserID')
  294. }
  295. this.checkLock(data).then(res => {
  296. if (res.data.code == 200) {
  297. this.detailData = {
  298. seeDisabled: true,
  299. id: row.id,
  300. };
  301. this.isShow = false;
  302. this.$store.commit("DOMCG_IN_DETAIL");
  303. }
  304. }).catch(err => {
  305. this.detailData = {
  306. id: row.id,
  307. seeDisabled: true,
  308. opDisabled: true
  309. };
  310. this.isShow = false;
  311. this.$store.commit("DOMCG_IN_DETAIL");
  312. })
  313. },
  314. // 复制新单
  315. copyOrder() {
  316. const id = this.selection[0].id;
  317. this.detailData = {
  318. copyId: id,
  319. };
  320. this.isShow = false;
  321. this.$store.commit("DOMCG_IN_DETAIL");
  322. },
  323. //点击新增时触发
  324. beforeClose(done) {
  325. this.parentId = "";
  326. const column = this.findObject(this.option.column, "parentId");
  327. column.value = "";
  328. column.addDisabled = false;
  329. done();
  330. },
  331. //点击搜索按钮触发
  332. searchChange(params, done) {
  333. if (params.requiredArrivalDate) {
  334. this.$set(params, 'requiredArrivalStartDate', params.requiredArrivalDate[0] + " " + "00:00:00")
  335. this.$set(params, 'requiredArrivalEndDate', params.requiredArrivalDate[1] + " " + "23:59:59")
  336. this.$delete(params, 'requiredArrivalDate')
  337. }
  338. if (params.createTime) {
  339. params.createStartTime = params.createTime[0] + " " + "00:00:00"
  340. params.createEndTime = params.createTime[1] + " " + "23:59:59"
  341. this.$delete(params, 'createTime')
  342. }
  343. this.page.currentPage = 1;
  344. this.onLoad(this.page, params);
  345. done()
  346. },
  347. searchReset() {
  348. },
  349. selectionChange(list) {
  350. this.selection = []
  351. this.selection = list;
  352. this.single = list.length !== 1;
  353. this.multiple = list.length == 0
  354. },
  355. currentChange(currentPage) {
  356. this.page.currentPage = currentPage;
  357. },
  358. sizeChange(pageSize) {
  359. this.page.pageSize = pageSize;
  360. },
  361. refreshChange() {
  362. this.page.currentPage = 1;
  363. this.onLoad(this.page, this.search);
  364. },
  365. onLoad(page, params) {
  366. let data = this.gobackSearch(params)
  367. let queryParams = Object.assign({ tradeType: 'GN' }, data, {
  368. size: page.pageSize,
  369. current: page.currentPage,
  370. // billType:'CG',
  371. // corpsTypeId: this.treeDeptId
  372. })
  373. this.loading = true;
  374. customerList(queryParams).then(res => {
  375. this.dataList = res.data.data.records
  376. this.page.total = res.data.data.total
  377. this.option.height = window.innerHeight - 240;
  378. }).finally(() => {
  379. this.loading = false;
  380. })
  381. },
  382. //树桩列点击展开触发
  383. treeLoad(tree, treeNode, resolve) {
  384. const parentId = tree.id;
  385. customerList({ parentId: parentId }).then(res => {
  386. resolve(res.data.data.records);
  387. });
  388. },
  389. goBack() {
  390. this.selection = []
  391. this.applyPaymentList = []
  392. this.single = true
  393. this.multiple = true
  394. this.detailData = this.$options.data().detailData
  395. this.isShow = true;
  396. this.onLoad(this.page, this.search);
  397. },
  398. gobackSearch(params) {
  399. params = Object.assign({}, this.search)
  400. if (params.requiredArrivalDate && params.requiredArrivalDate != '') {
  401. params.requiredArrivalStartDate = params.requiredArrivalDate[0] + " " + "00:00:00"
  402. params.requiredArrivalEndDate = params.requiredArrivalDate[1] + " " + "23:59:59"
  403. this.$delete(params, 'requiredArrivalDate')
  404. }
  405. if (params.createTime && params.createTime != '') {
  406. params.createStartTime = params.createTime[0] + " " + "00:00:00"
  407. params.createEndTime = params.createTime[1] + " " + "23:59:59"
  408. this.$delete(params, 'createTime')
  409. }
  410. return params
  411. },
  412. //列保存触发
  413. async saveColumn() {
  414. /**
  415. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  416. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  417. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  418. */
  419. const inSave = await this.saveColumnData(
  420. this.getColumnName(17),
  421. this.option
  422. );
  423. if (inSave) {
  424. this.$message.success("保存成功");
  425. //关闭窗口
  426. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  427. this.$nextTick(() => {
  428. this.$refs.crud.doLayout()
  429. })
  430. }
  431. },
  432. async resetColumn() {
  433. this.option = option;
  434. const inSave = await this.delColumnData(
  435. this.getColumnName(17),
  436. option
  437. );
  438. if (inSave) {
  439. this.$nextTick(() => {
  440. this.$refs.crud.doLayout()
  441. })
  442. this.$message.success("重置成功");
  443. //关闭窗口
  444. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  445. }
  446. },
  447. // 申请货款
  448. async applyPayment() {
  449. this.applyPaymentList = []
  450. if (this.selection.length > 1) {
  451. for (let item in this.selection) {
  452. if (this.selection[0].corpId !== this.selection[item].corpId) {
  453. return this.$message.error('批量结算供应商必须一致')
  454. }
  455. }
  456. }
  457. // let forData = await this.forData()
  458. // if (forData) {
  459. // return this.$message.error('订单号:' + forData + '货款余额不足')
  460. // }
  461. let a = []
  462. this.selection.forEach(item => {
  463. item.itemsList = item.itemsList ? item.itemsList : [];
  464. let amount = Number(item.debitAmount) - Number(item.settlmentAmount);
  465. let quantity = 0;
  466. item.itemsList.map(e => {
  467. if (e.submitPay != 1) {
  468. // amount += Number(e.amount)
  469. quantity += Number(e.orderQuantity)
  470. }
  471. })
  472. const price = quantity === 0 ? 0 : Number(amount) / Number(quantity)
  473. let form = {
  474. belongCompany: item.belongCompany,
  475. srcOrderno: item.orderNo,
  476. itemType: "采购",
  477. corpsName: [{ cname: item.strCorpName, id: item.id }],
  478. corpId: item.corpId,
  479. srcParentId: item.id,
  480. currency: 'CNY',
  481. exchangeRate: '1',
  482. taxRate: '0',
  483. accDate: item.businesDate,
  484. srcType: 1,
  485. tradeType: 'GN',
  486. optionType: 'GN',
  487. costType: this.feesOption.find(e => e.cname == '货款') ? this.feesOption.find(e => e.cname == '货款').id : null,
  488. amount,
  489. quantity,
  490. price,
  491. unit: '条',
  492. remarks: item.orderRemark,
  493. itemorderAmount:item.orderAmount,
  494. itemId:item.id
  495. }
  496. a.push(form)
  497. // item.itemsList.forEach(e => {
  498. // let form = {
  499. // srcOrderno:item.orderNo,
  500. // itemType:"采购",
  501. // optionType:"GN",
  502. // corpsName: [{cname: item.strCorpName, id: item.id}],
  503. // corpId:item.corpId,
  504. // srcParentId: item.id,
  505. // currency: 'CNY',
  506. // exchangeRate: '1',
  507. // taxRate: '0',
  508. // accDate: item.businesDate,
  509. // srcType: 1,
  510. // tradeType: 'GN',
  511. // costType: this.feesOption.find(e => e.cname == '货款')? this.feesOption.find(e => e.cname == '货款').id: null,
  512. // goodName: e.goodsName,
  513. // price: e.price,
  514. // quantity: e.orderQuantity,
  515. // unit: e.unit,
  516. // amount: e.amount,
  517. // }
  518. // a.push(form)
  519. // })
  520. })
  521. this.applyPaymentList = [...a]
  522. // this.beforeBillData(true);
  523. this.financialAccountDialog = true;
  524. },
  525. async forData() {
  526. for (let item in this.selection) {
  527. let res = await getApplyAmount({ srcBillId: this.selection[item].id, billType: "申请" })
  528. if (this.selection[item].orderAmount <= res.data.data) {
  529. return this.selection[item].orderNo
  530. }
  531. }
  532. },
  533. beforeBillData(type) {
  534. if (type) { //申请货款
  535. // this.billData.srcId = -1
  536. }
  537. },
  538. //关闭账单
  539. choceFun() {
  540. this.financialAccountDialog = false
  541. },
  542. feeSubmit() {
  543. this.onLoad(this.page, this.search)
  544. },
  545. // 生成工厂发货
  546. createPlant(row, index) {
  547. let ids = [];
  548. row.itemsList.forEach(item => {
  549. ids.push(item.id)
  550. })
  551. let data = {
  552. id: row.id,
  553. orderItemIds: ids
  554. }
  555. generateShipment(data).then(res => {
  556. this.$confirm("此操作将生成工厂发货,是否继续?", {
  557. confirmButtonText: "确定",
  558. cancelButtonText: "取消",
  559. type: "warning"
  560. }).then(() => {
  561. res.data.data.orgId = res.data.data.id
  562. res.data.data.deliveryStatus = '录入'
  563. res.data.data.salesCompany = res.data.data.belongToCorpId
  564. res.data.data.totalWeight = res.data.data.cartonWeight
  565. res.data.data.totalVolumn = res.data.data.cntrVolumn
  566. res.data.data.deliveryAmount = 0
  567. res.data.data.totalQuantity = 0
  568. res.data.data.purchaseAmount = 0
  569. res.data.data.orderItemsList.forEach(item => {
  570. item.containerVolume = item.cntrVolumn
  571. item.actualWeight = item.cartonWeight
  572. item.specificationAndModel = item.itemType
  573. item.orgOrderNo = res.data.data.orgOrderNo
  574. item.inventoryNumber = item.storageQuantity
  575. item.srcId = item.id
  576. item.purchaseAmount = item.purchaseAmount
  577. item.purchaseQuantity = Number(item.orderQuantity)
  578. item.actualQuantity = (Number(item.orderQuantity) - Number(item.actualQuantity))
  579. res.data.data.deliveryAmount = Number(res.data.data.deliveryAmount) + Number(item.deliveryAmount)
  580. res.data.data.totalQuantity = Number(res.data.data.totalQuantity) + Number(item.actualQuantity)
  581. res.data.data.purchaseAmount = Number(res.data.data.purchaseAmount) + Number(item.deliveryAmount)
  582. res.data.data.deliveryAmount = Number(res.data.data.deliveryAmount ? res.data.data.deliveryAmount : 0).toFixed(2)
  583. res.data.data.purchaseAmount = Number(res.data.data.purchaseAmount ? res.data.data.purchaseAmount : 0).toFixed(2)
  584. delete item.id
  585. delete item.pid
  586. })
  587. res.data.data.deliveryItemsList = res.data.data.orderItemsList
  588. res.data.data.businessDate = getCurrentDate()
  589. delete res.data.data.createTime
  590. delete res.data.data.id
  591. delete res.data.data.sysNo
  592. delete res.data.data.orderItemsList
  593. delete res.data.data.corpName
  594. delete res.data.data.belongToCorpList
  595. res.data.data.deliveryAmount = res.data.data.debitAmount
  596. res.data.data.srcOrderNo = res.data.data.orgOrderNo
  597. delete res.data.data.debitAmount
  598. res.data.data.deliveryItemsList.forEach(item => item.deliveryAmount = item.amount)
  599. genfactory(res.data.data).then(() => {
  600. this.$message.success('生成工厂发货成功')
  601. this.onLoad(this.page, this.search);
  602. })
  603. });
  604. // this.$router.$avueRouter.closeTag("/businessManagement/receipt/index");
  605. // this.$router.push({
  606. // path: "/businessManagement/receipt/index",
  607. // query: { form: JSON.stringify(res.data.data) },
  608. // });
  609. })
  610. },
  611. }
  612. }
  613. </script>
  614. <style scoped>
  615. </style>