shipmentList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. <template>
  2. <!-- 发运明细 列表 -->
  3. <div id="ShipmentList">
  4. <!-- 查询 回显 且 可编辑 -->
  5. <a-card :bordered="false">
  6. <div class="table-page-search-wrapper">
  7. <a-form layout="inline" @keyup.enter.native="searchQuery">
  8. <a-row :gutter="24">
  9. <a-col :md="6" :sm="8">
  10. <a-form-item label="单据号">
  11. <a-input placeholder="请输入单据号" v-model="queryParam.documentNo"></a-input>
  12. </a-form-item>
  13. </a-col>
  14. <a-col :md="6" :sm="8">
  15. <a-form-item label="起始时间">
  16. <a-range-picker
  17. style="width: 100%"
  18. v-model="queryParam.timeRange"
  19. format="YYYY-MM-DD"
  20. :placeholder="['开始时间', '结束时间']"
  21. @change="onDateChange"
  22. @ok="onDateOk"
  23. />
  24. </a-form-item>
  25. </a-col>
  26. <a-col :md="6" :sm="8">
  27. <a-form-item label="预发货日期">
  28. <a-date-picker
  29. placeholder="请选择预发货日期"
  30. format="YYYY-MM-DD"
  31. style="width: 100%"
  32. v-model="queryParam.preDeliveryDate"
  33. @change="deliveryDateChange"
  34. />
  35. </a-form-item>
  36. </a-col>
  37. <template v-if="toggleSearchStatus">
  38. <a-col :md="6" :sm="8">
  39. <a-form-item label="业务员">
  40. <a-input placeholder="请输入业务员" v-model="queryParam.salesman"></a-input>
  41. </a-form-item>
  42. </a-col>
  43. <a-col :md="6" :sm="8">
  44. <a-form-item label="款号">
  45. <a-input placeholder="请输入款号" v-model="queryParam.itemNumber"></a-input>
  46. </a-form-item>
  47. </a-col>
  48. <a-col :md="6" :sm="8">
  49. <a-form-item label="是否被参照">
  50. <a-select v-model="queryParam.refer">
  51. <a-select-option value="">请选择</a-select-option>
  52. <a-select-option value="0">否</a-select-option>
  53. <a-select-option value="1">是</a-select-option>
  54. </a-select>
  55. </a-form-item>
  56. </a-col>
  57. </template>
  58. <a-col :md="6" :sm="8">
  59. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  60. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  61. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  62. <a @click="handleToggleSearch" style="margin-left: 8px">
  63. {{ toggleSearchStatus ? '收起' : '展开' }}
  64. <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
  65. </a>
  66. </span>
  67. </a-col>
  68. </a-row>
  69. </a-form>
  70. </div>
  71. </a-card>
  72. <!-- 操作按钮区域 -->
  73. <a-card :bordered="false" style=" marginTop:10px;">
  74. <div class="table-operator">
  75. <a-button type="primary" @click.stop="addShipDet" icon="plus">新增</a-button>
  76. <a-button type="primary" icon="download" @click="handleExportXls('发运明细')">导出</a-button>
  77. </div>
  78. <!-- 子表 :row-key="record => record.id" :pagination="ipagination-->
  79. <a-table
  80. v-if="shipmentListData"
  81. bordered
  82. rowKey="id"
  83. :columns="shipmentListColumns"
  84. :data-source="shipmentListData"
  85. :loading="loading"
  86. :pagination="pagination"
  87. :scroll="{ x: 1500 }"
  88. @change="handleTableChange"
  89. >
  90. <!-- 推送状态 -->
  91. <span slot="pushState" slot-scope="text, record">
  92. <a-tag color="#2db7f5" v-if="record.pushState == '0'">未推送</a-tag>
  93. <a-tag color="#87d068" v-if="record.pushState == '1'">推送成功</a-tag>
  94. <a-tag color="#f50" v-if="record.pushState == '2'">推送失败</a-tag>
  95. </span>
  96. <!-- 单据状态 -->
  97. <span slot="state" slot-scope="text, record">
  98. <a-tag color="orange" v-if="record.state == '0'">已保存</a-tag>
  99. <a-tag color="green" v-if="record.state == '1'">已提交</a-tag>
  100. </span>
  101. <!-- 操作 默认按钮 未提交未推送-->
  102. <span slot="operationSlot" slot-scope="text, record">
  103. <a href="javascript:void(0);" @click="declareElements(record)" style="color:green">报关要素</a>
  104. <a-divider type="vertical" />
  105. <a-dropdown>
  106. <a class="ant-dropdown-link">更多<a-icon type="down"/></a>
  107. <!-- 已保存 -->
  108. <a-menu slot="overlay" v-if="record.state == '0'">
  109. <a-menu-item>
  110. <a @click="details(record)">详情</a>
  111. </a-menu-item>
  112. <a-menu-item>
  113. <a @click="edit(record)">编辑</a>
  114. </a-menu-item>
  115. <a-menu-item>
  116. <a href="javascript:void(0);" @click="itemNumberElement(record)">维护款号成分</a>
  117. </a-menu-item>
  118. <a-menu-item>
  119. <a-popconfirm title="确定提交吗?" ok-text="是" cancel-text="否" @confirm="submit(record)">
  120. <a href="javascript:void(0);" style="color:green;">提交</a>
  121. </a-popconfirm>
  122. </a-menu-item>
  123. <a-menu-item>
  124. <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record)">
  125. <a href="javascript:void(0);" style="color:red;">删除</a>
  126. </a-popconfirm>
  127. </a-menu-item>
  128. <!-- <a-menu-item>
  129. <a href="javascript:void(0);" @click="itemNumberElement(record)">维护款号成分</a>
  130. </a-menu-item> -->
  131. </a-menu>
  132. <!-- 已提交 且 推送成功 -->
  133. <a-menu slot="overlay" v-if="record.pushState == '1' && record.state == '1'">
  134. <a-menu-item>
  135. <a @click="details(record)">详情</a>
  136. </a-menu-item>
  137. </a-menu>
  138. <!-- 已提交 且 推送失败 -->
  139. <a-menu slot="overlay" v-if="record.pushState == '2' && record.state == '1'">
  140. <a-menu-item>
  141. <a @click="details(record)">详情</a>
  142. </a-menu-item>
  143. <a-menu-item>
  144. <a-popconfirm title="确定重新推送吗?" ok-text="是" cancel-text="否" @confirm="rePush(record)">
  145. <a href="javascript:void(0);" style="color:green;">重新推送</a>
  146. </a-popconfirm>
  147. </a-menu-item>
  148. </a-menu>
  149. <!-- 已提交 -->
  150. <a-menu slot="overlay" v-if="record.state == '1'">
  151. <a-menu-item>
  152. <a @click="details(record)">详情</a>
  153. </a-menu-item>
  154. <a-menu-item>
  155. <a-popconfirm title="确定取消提交吗?" ok-text="是" cancel-text="否" @confirm="cancelSubmit(record)">
  156. <a href="javascript:void(0);" style="color:red;">取消提交</a>
  157. </a-popconfirm>
  158. </a-menu-item>
  159. <a-menu-item>
  160. <a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push(record)">
  161. <a href="javascript:void(0);" style="color:green;">推送</a>
  162. </a-popconfirm>
  163. </a-menu-item>
  164. </a-menu>
  165. <!-- 未推送 -->
  166. <a-menu slot="overlay" v-if="record.pushState == '0'">
  167. <a-menu-item>
  168. <a @click="details(record)">详情</a>
  169. </a-menu-item>
  170. <a-menu-item>
  171. <a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push(record)">
  172. <a href="javascript:void(0);" style="color:green;">推送</a>
  173. </a-popconfirm>
  174. </a-menu-item>
  175. </a-menu>
  176. </a-dropdown>
  177. </span>
  178. </a-table>
  179. </a-card>
  180. <!-- 抽屉 -->
  181. <div>
  182. <addShipDet-drawer ref="addShipDetDrawer" :fatherList="getShipmentList" @ok="modalFormOk"></addShipDet-drawer>
  183. <editShipDet-drawer ref="editShipDetDrawer" :fatherList="getShipmentList" @ok="modalFormOk"></editShipDet-drawer>
  184. <detailsShipDet-drawer ref="detailsShipDetDrawer" @ok="modalFormOk"></detailsShipDet-drawer>
  185. <!-- 申报要素 弹框 -->
  186. <declareElements-modal ref="declareElementsModal"></declareElements-modal>
  187. <!-- 维护款号成分 -->
  188. <itemNumEle-modal ref="itemNumEleModal" :fatherList="getShipmentList"></itemNumEle-modal>
  189. </div>
  190. </div>
  191. </template>
  192. <script>
  193. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  194. import JEllipsis from '@/components/jeecg/JEllipsis'
  195. import moment from 'moment'
  196. import { downFile } from '@/api/manage'
  197. import addShipDetDrawer from '@views/shipment-details/addShipDetDrawer.vue'
  198. import detailsShipDetDrawer from '@views/shipment-details/detailsShipDetDrawer.vue'
  199. import editShipDetDrawer from '@views/shipment-details/editShipDetDrawer.vue'
  200. import declareElementsModal from '@views/shipment-details/declareElementsModal.vue'
  201. import itemNumEleModal from '@views/shipment-details/itemNumEleModal.vue'
  202. import {
  203. shipmentList,
  204. deleteShipment,
  205. submitShipment,
  206. shipmentQueryById,
  207. queryDeclarationElements,
  208. cancelSubmitShipment,
  209. pushShipment,
  210. rePushShipment
  211. } from '@api/document/shipmentList'
  212. export default {
  213. name: 'ShipmentList', // 发运明细列表
  214. mixins: [JeecgListMixin],
  215. components: {
  216. JEllipsis,
  217. moment,
  218. addShipDetDrawer,
  219. detailsShipDetDrawer,
  220. editShipDetDrawer,
  221. declareElementsModal,
  222. cancelSubmitShipment,
  223. pushShipment,
  224. rePushShipment,
  225. itemNumEleModal
  226. },
  227. data() {
  228. // let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
  229. return {
  230. loading: false, // 表格加载
  231. id: '',
  232. shipmentListColumns: [
  233. {
  234. title: '单据号',
  235. dataIndex: 'documentNo',
  236. fixed: 'left',
  237. align: 'left',
  238. width: 140,
  239. className: 'replacecolor'
  240. },
  241. {
  242. title: '销售订单号',
  243. dataIndex: 'orderNumber',
  244. fixed: 'left',
  245. width: 120,
  246. className: 'replacecolor'
  247. },
  248. {
  249. title: '客户简称',
  250. dataIndex: 'customerAbbreviation',
  251. width: 220,
  252. align: 'left',
  253. className: 'replacecolor'
  254. },
  255. {
  256. title: '部门',
  257. dataIndex: 'salesDepartment',
  258. width: 120,
  259. className: 'replacecolor'
  260. },
  261. {
  262. title: '业务员',
  263. dataIndex: 'salesman',
  264. width: 120,
  265. className: 'replacecolor'
  266. },
  267. {
  268. title: '小po',
  269. dataIndex: 'smallPo',
  270. width: 120,
  271. className: 'replacecolor'
  272. },
  273. {
  274. title: 'pack id',
  275. dataIndex: 'packId',
  276. width: 120,
  277. className: 'replacecolor'
  278. },
  279. {
  280. title: '分销点',
  281. dataIndex: 'distributionPoint',
  282. width: 120,
  283. className: 'replacecolor'
  284. },
  285. {
  286. title: '款号',
  287. dataIndex: 'itemNumber',
  288. width: 180,
  289. className: 'replacecolor'
  290. },
  291. {
  292. title: '物料成分',
  293. dataIndex: 'materialComposition',
  294. width: 180,
  295. className: 'replacecolor'
  296. },
  297. {
  298. title: '预发货日期',
  299. dataIndex: 'preDeliveryDate',
  300. width: 120,
  301. customRender: text => {
  302. return moment(text).format('YYYY-MM-DD')
  303. },
  304. className: 'replacecolor'
  305. },
  306. {
  307. title: '预完工日期',
  308. dataIndex: 'preCompletionDate',
  309. width: 120,
  310. customRender: text => {
  311. return moment(text).format('YYYY-MM-DD')
  312. },
  313. className: 'replacecolor'
  314. },
  315. {
  316. title: '存货名称',
  317. dataIndex: 'inventoryName',
  318. width: 140,
  319. className: 'replacecolor'
  320. },
  321. {
  322. title: '整单(合计)',
  323. dataIndex: 'wholeOrderTotal',
  324. width: 120,
  325. className: 'replacecolor'
  326. },
  327. {
  328. title: '英文品名',
  329. dataIndex: 'englishProductName',
  330. width: 120,
  331. className: 'replacecolor'
  332. },
  333. {
  334. title: '单价(销售)',
  335. dataIndex: 'salesUnitPrice',
  336. width: 120,
  337. className: 'replacecolor'
  338. },
  339. {
  340. title: '采购/委外订单号',
  341. dataIndex: 'purOrSubOrder',
  342. width: 180,
  343. className: 'replacecolor'
  344. },
  345. {
  346. title: '订单类型',
  347. dataIndex: 'orderType',
  348. width: 120,
  349. className: 'replacecolor'
  350. },
  351. {
  352. // (采购/委外单价)
  353. title: '工厂单价',
  354. dataIndex: 'factoryUnitPrice',
  355. width: 120,
  356. className: 'replacecolor'
  357. },
  358. // {
  359. // title: '申报要素(单证维护)',
  360. // dataIndex: 'declarationElements',
  361. // width: 120,
  362. // className: 'replacecolor'
  363. // },
  364. {
  365. // (存货自定义项)
  366. title: '套装件数',
  367. dataIndex: 'numberOfSets',
  368. width: 120,
  369. className: 'replacecolor'
  370. },
  371. {
  372. title: '是否TC',
  373. dataIndex: 'isTc',
  374. width: 90,
  375. customRender: function(text) {
  376. if (text === '0') {
  377. return '否'
  378. }
  379. if (text === '1') {
  380. return '是'
  381. }
  382. },
  383. className: 'replacecolor'
  384. },
  385. // {
  386. // title: 'HScode',
  387. // dataIndex: 'hsCode',
  388. // width: 120,
  389. // className: 'replacecolor'
  390. // },
  391. // {
  392. // title: '中文品名',
  393. // dataIndex: 'chineseName',
  394. // width: 120,
  395. // className: 'replacecolor'
  396. // },
  397. {
  398. title: '成衣工厂',
  399. dataIndex: 'garmentFactory',
  400. width: 120,
  401. className: 'replacecolor'
  402. },
  403. {
  404. title: '报关单价',
  405. dataIndex: 'customsDeclarationUnitPrice',
  406. width: 90,
  407. className: 'replacecolor'
  408. },
  409. {
  410. title: '账套',
  411. dataIndex: 'account',
  412. width: 90,
  413. className: 'replacecolor'
  414. },
  415. {
  416. title: '推送结果',
  417. dataIndex: 'pushState',
  418. scopedSlots: { customRender: 'pushState' },
  419. fixed: 'right',
  420. width: 90,
  421. className: 'replacecolor'
  422. },
  423. {
  424. title: '单据状态',
  425. dataIndex: 'state',
  426. scopedSlots: { customRender: 'state' },
  427. fixed: 'right',
  428. width: 90,
  429. className: 'replacecolor'
  430. },
  431. {
  432. title: '操作',
  433. dataIndex: 'operation',
  434. scopedSlots: { customRender: 'operationSlot' },
  435. fixed: 'right',
  436. width: 160,
  437. className: 'replacecolor'
  438. }
  439. ],
  440. shipmentListData: [], // 发运明细数据
  441. // 查询条件
  442. queryParam: {
  443. documentNo: '', // 单据号
  444. startTime: '',
  445. endTime: '',
  446. // timeRange: [], // 查询条件 时间范围
  447. preDeliveryDate: '',
  448. salesman: '',
  449. itemNumber: '', // 款号
  450. refer: '',
  451. pageNo: '' // 点击的页数
  452. },
  453. pagination: {
  454. // total: '',
  455. // current: 0,
  456. // pageSize: 0
  457. },
  458. dateFormat: 'YYYY-MM-DD'
  459. }
  460. },
  461. created() {
  462. this.getShipmentList() // 渲染 发运明细列表
  463. },
  464. methods: {
  465. // 分页查询 发运明细
  466. getShipmentList() {
  467. this.$nextTick(() => {
  468. shipmentList(this.queryParam).then(res => {
  469. if (res.success) {
  470. this.shipmentListData = res.result.records
  471. console.log('发运明细列表', this.shipmentListData)
  472. this.pagination = {
  473. total: res.result.total,
  474. current: res.result.current,
  475. pageSize: res.result.size
  476. }
  477. }
  478. })
  479. })
  480. },
  481. // 新增
  482. addShipDet() {
  483. this.$refs.addShipDetDrawer.visible = true
  484. },
  485. // 申报要素
  486. declareElements(record) {
  487. this.$refs.declareElementsModal.declareElementsModVis = true
  488. queryDeclarationElements({
  489. inventoryName: record.inventoryName,
  490. itemNumber: record.itemNumber,
  491. account: record.account
  492. }).then(res => {
  493. if (res.success) {
  494. console.log('申报要素主子表数据', res.result)
  495. // console.log('申报要素子表数据', res.result.syDeclarationElementsItemList)
  496. this.$refs.declareElementsModal.declareElements = res.result
  497. // 子表赋值
  498. this.$refs.declareElementsModal.declareElementsData = res.result.syDeclarationElementsItemList
  499. }
  500. })
  501. },
  502. // 维护款号成分
  503. itemNumberElement(record) {
  504. this.$refs.itemNumEleModal.itemNumEleModVis = true
  505. this.$refs.itemNumEleModal.editItemNumber.itemIds = record.itemIds
  506. this.$refs.itemNumEleModal.editItemNumber.itemNumber = record.itemNumber
  507. this.$refs.itemNumEleModal.editItemNumber.materialComposition = record.materialComposition
  508. this.$refs.itemNumEleModal.editItemNumber.isTc = record.isTc
  509. },
  510. // 导出
  511. handleExportXls(fileName) {
  512. downFile('/shippingDetails/syShippingDetails/exportXls',this.queryParam).then(data => {
  513. if (!data) {
  514. this.$message.warning('文件下载失败')
  515. return
  516. }
  517. if (typeof window.navigator.msSaveBlob !== 'undefined') {
  518. window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xls')
  519. } else {
  520. let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
  521. let link = document.createElement('a')
  522. link.style.display = 'none'
  523. link.href = url
  524. link.setAttribute('download', fileName + '.xls')
  525. document.body.appendChild(link)
  526. link.click()
  527. document.body.removeChild(link) // 下载完成移除元素
  528. window.URL.revokeObjectURL(url) // 释放掉blob对象
  529. }
  530. })
  531. },
  532. // 编辑
  533. edit(record) {
  534. this.$refs.editShipDetDrawer.visible = true
  535. shipmentQueryById({ id: record.id }).then(res => {
  536. if (res.success) {
  537. // console.log('编辑对象', res.result)
  538. this.$refs.editShipDetDrawer.editShipDet = res.result
  539. this.$refs.editShipDetDrawer.syShippingDetailsItemList = res.result.syShippingDetailsItemList
  540. }
  541. })
  542. },
  543. // 详情
  544. details(record) {
  545. this.$refs.detailsShipDetDrawer.visible = true
  546. // console.log('点击项的ID', record.id)
  547. shipmentQueryById({ id: record.id }).then(res => {
  548. if (res.success) {
  549. console.log('点击的对象', res.result)
  550. // 把通过id查询到的对象,赋值给子组件
  551. this.$refs.detailsShipDetDrawer.detailsShipDet = res.result
  552. this.$refs.detailsShipDetDrawer.syShippingDetailsItemList = res.result.syShippingDetailsItemList
  553. }
  554. })
  555. },
  556. // 提交
  557. submit(record) {
  558. console.log('点击id:', record.id)
  559. this.$nextTick(() => {
  560. submitShipment({ id: record.id, type: '1' }).then(res => {
  561. if (res.success) {
  562. console.log('提交成功,单据状态改为【已提交】')
  563. this.shipmentListData.state = '1'
  564. this.getShipmentList() // 渲染 发运明细列表
  565. this.$message.success('提交成功')
  566. }
  567. })
  568. })
  569. },
  570. // 取消提交
  571. cancelSubmit(record) {
  572. console.log('取消订单id:', record.id)
  573. this.$nextTick(() => {
  574. cancelSubmitShipment({ id: record.id, type: '2' }).then(res => {
  575. if (res.success) {
  576. console.log('取消提交成功,单据状态改为【仅保存】')
  577. this.shipmentListData.state = '0'
  578. this.getShipmentList() // 渲染 发运明细列表
  579. this.$message.success('取消提交成功')
  580. }
  581. })
  582. })
  583. },
  584. // 推送
  585. push(record) {
  586. console.log('推送id:', record.id)
  587. this.$nextTick(() => {
  588. pushShipment({ id: record.id }).then(res => {
  589. if (res.success) {
  590. console.log('推送成功,推送状态【推送成功】')
  591. this.shipmentListData.pushState = '1'
  592. this.getShipmentList() // 渲染 发运明细列表
  593. this.$message.success('推送成功')
  594. }
  595. })
  596. })
  597. },
  598. // 重新推送
  599. rePush(record) {
  600. console.log('重新推送record:', record)
  601. this.$nextTick(() => {
  602. rePushShipment({ id: record.id }).then(res => {
  603. if (res.success) {
  604. console.log('重新推送成功,推送状态【推送成功】')
  605. this.shipmentListData.pushState = '1'
  606. this.getShipmentList() // 渲染 发运明细列表
  607. this.$message.success('重新推送成功')
  608. }
  609. })
  610. })
  611. },
  612. // 删除
  613. handleDelete(record) {
  614. console.log('点击删除项id:', record.id)
  615. this.$nextTick(() => {
  616. deleteShipment({ id: record.id }).then(res => {
  617. console.log('res:', res)
  618. this.getShipmentList() // 渲染 发运明细列表
  619. this.$message.success('删除成功')
  620. })
  621. })
  622. },
  623. onDateChange(value, dateString) {
  624. console.log('查询开始时间', dateString[0], '查询结束时间', dateString[1])
  625. this.queryParam.startTime = dateString[0]
  626. this.queryParam.endTime = dateString[1]
  627. },
  628. onDateOk(value) {
  629. console.log('value', value)
  630. },
  631. deliveryDateChange(value, dateString) {
  632. console.log('预完工日期', dateString)
  633. this.queryParam.preCompletionDate = dateString
  634. },
  635. searchQuery() {
  636. this.queryParam.pageNo = ''
  637. this.getShipmentList()
  638. },
  639. searchReset() {
  640. this.queryParam.documentNo = ''
  641. this.queryParam.timeRange = []
  642. this.queryParam.startTime = ''
  643. this.queryParam.endTime = ''
  644. this.queryParam.preDeliveryDate = ''
  645. this.queryParam.salesman = ''
  646. this.queryParam.itemNumber = ''
  647. this.queryParam.refer = ''
  648. this.queryParam.isTc = ''
  649. this.getShipmentList() // 渲染 发运明细列表
  650. },
  651. // 分页变化时触发
  652. handleTableChange(pagination, filters, sorter) {
  653. this.queryParam.pageNo = pagination.current
  654. this.getShipmentList()
  655. }
  656. }
  657. }
  658. </script>
  659. <style lang="less" scoped>
  660. @import '~@assets/less/common.less';
  661. @import '~@assets/less/overwriter.less';
  662. /deep/ .ant-table-thead > tr > th {
  663. text-align: center;
  664. // font-weight: 700;
  665. }
  666. /deep/ .ant-table-tbody {
  667. text-align: center;
  668. }
  669. // /deep/ th.replacecolor {
  670. // background-color: #ccc;
  671. // }
  672. /deep/ .ant-form-item {
  673. // margin-bottom: 0 !important;
  674. }
  675. </style>