editShipDetDrawer.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <template>
  2. <!-- 编辑发运明细 -->
  3. <div id="editShipDetDrawer">
  4. <a-drawer title="编辑" width="89%" placement="right" :closable="true" :visible="visible" @close="handleCancel">
  5. <!-- 主表信息 编辑 :rules="validatorRules"-->
  6. <a-card :bordered="true">
  7. <div class="table-page-search-wrapper">
  8. <a-form-model layout="inline" ref="form" :model="editShipDet" :rules="validatorRules">
  9. <a-row :gutter="24">
  10. <a-col :md="6" :sm="8">
  11. <!-- required必填项 disabled 禁用 -->
  12. <a-form-model-item label="单据号" prop="documentNo">
  13. <a-input placeholder="请输入单据号" v-model="editShipDet.documentNo" readOnly></a-input>
  14. </a-form-model-item>
  15. </a-col>
  16. <a-col :md="6" :sm="8">
  17. <a-form-model-item label="单据日期" prop="documentDate">
  18. <a-date-picker
  19. placeholder="请选择单据日期"
  20. :format="dateFormat"
  21. style="width:100%;"
  22. v-model="editShipDet.documentDate"
  23. />
  24. </a-form-model-item>
  25. </a-col>
  26. <a-col :md="6" :sm="8">
  27. <a-form-model-item label="客户" prop="customer">
  28. <a-input placeholder="请输入客户" v-model="editShipDet.customer"></a-input>
  29. </a-form-model-item>
  30. </a-col>
  31. <a-col :md="6" :sm="8">
  32. <a-form-model-item label="订单类型" prop="orderType">
  33. <a-input placeholder="请输入订单类型" v-model="editShipDet.orderType"></a-input>
  34. </a-form-model-item>
  35. </a-col>
  36. <a-col :md="12" :sm="12">
  37. <a-form-model-item label="备注" prop="memo">
  38. <a-input placeholder="请输入备注" v-model="editShipDet.memo"></a-input>
  39. </a-form-model-item>
  40. </a-col>
  41. </a-row>
  42. </a-form-model>
  43. </div>
  44. </a-card>
  45. <!-- 参照订单数据 増行-->
  46. <a-card :bordered="true" style="margin:10px 0 60px 0">
  47. <div class="table-operator">
  48. <a-button type="primary" @click="referOrderDataOpen" icon="ordered-list">参照订单数据</a-button>
  49. </div>
  50. <!-- 子表 :model="form" :rules="validatorRules"-->
  51. <a-spin :spinning="confirmLoading">
  52. <a-form-model ref="formRef">
  53. <a-table
  54. v-if="syShippingDetailsItemList"
  55. bordered
  56. rowKey="id"
  57. :columns="columns"
  58. :data-source="syShippingDetailsItemList"
  59. :loading="loading"
  60. :pagination="ipagination"
  61. :scroll="{ x: 2800,y:400 }"
  62. @change="handleTableChange"
  63. >
  64. <!-- 款号 输入框 :rules="rules.itemNumber" -->
  65. <template slot="itemNumber" slot-scope="text, record, index">
  66. <a-form-model-item prop="itemNumber">
  67. <a-input style="width:100%" type="text" v-model="record.itemNumber" />
  68. </a-form-model-item>
  69. </template>
  70. <!-- 发货数量 :rules="rules.shipQuantity"-->
  71. <template slot="shipmentQuantity" slot-scope="text, record, index">
  72. <a-form-model-item prop="shipmentQuantity">
  73. <a-input style="width:100%" type="text" v-model="record.shipmentQuantity" />
  74. </a-form-model-item>
  75. </template>
  76. <!-- 是否TC功能 :rules="rules.isTC"-->
  77. <!-- isTc ' 是否 tc 功能 0 否 1 是', -->
  78. <template slot="isTC" slot-scope="text, record, index">
  79. <a-form-model-item prop="isTc">
  80. <a-select v-model="record.isTc">
  81. <a-select-option value="">请选择</a-select-option>
  82. <a-select-option value="1">是</a-select-option>
  83. <a-select-option value="0">否</a-select-option>
  84. </a-select>
  85. </a-form-model-item>
  86. </template>
  87. <!-- 物料成分 :rules="rules.materialComposition"-->
  88. <template slot="materialComposition" slot-scope="text, record, index">
  89. <a-form-model-item prop="materialComposition">
  90. <a-input style="width:100%" type="text" v-model="record.materialComposition" />
  91. </a-form-model-item>
  92. </template>
  93. <!-- 采购/委外订单号 :rules="rules.purOrSubOrder"-->
  94. <template slot="purOrSubOrder" slot-scope="text, record, index">
  95. <a-form-model-item prop="purOrSubOrder">
  96. <a-input style="width:100%" type="text" v-model="record.purOrSubOrder" />
  97. </a-form-model-item>
  98. </template>
  99. <!-- 报关单价 :rules="rules.customsDeclarationUnitPrice"-->
  100. <template slot="customsDeclarationUnitPrice" slot-scope="text, record, index">
  101. <a-form-model-item prop="customsDeclarationUnitPrice">
  102. <a-input style="width:100%" type="text" v-model="record.customsDeclarationUnitPrice" />
  103. </a-form-model-item>
  104. </template>
  105. <!-- 套装件数 :rules="rules.numberOfSets"-->
  106. <template slot="numberOfSets" slot-scope="text, record, index">
  107. <a-form-model-item prop="numberOfSets">
  108. <a-input style="width:100%" type="text" v-model="record.numberOfSets" />
  109. </a-form-model-item>
  110. </template>
  111. <!-- 工厂单价 :rules="rules.factoryUnitPrice"-->
  112. <template slot="factoryUnitPrice" slot-scope="text, record, index">
  113. <a-form-model-item prop="factoryUnitPrice">
  114. <a-input style="width:100%" type="text" v-model="record.factoryUnitPrice" />
  115. </a-form-model-item>
  116. </template>
  117. <!-- 申报要素 :rules="rules.declarationElements"-->
  118. <template slot="declarationElements" slot-scope="text, record, index">
  119. <a-form-model-item prop="declarationElements">
  120. <a-input style="width:100%" type="text" v-model="record.declarationElements" />
  121. </a-form-model-item>
  122. </template>
  123. <!--处理方式 -->
  124. <template slot="treatmentMethod" slot-scope="text, record, index">
  125. <a-form-model-item prop="treatmentMethod">
  126. <a-input style="width:100%" type="text" v-model="record.treatmentMethod" />
  127. </a-form-model-item>
  128. </template>
  129. <!--是否手册纱 -->
  130. <template slot="manualYarnFlag" slot-scope="text, record, index">
  131. <a-form-model-item prop="manualYarnFlag">
  132. <a-select v-model="record.manualYarnFlag">
  133. <a-select-option value="">请选择</a-select-option>
  134. <a-select-option :value="1">是</a-select-option>
  135. <a-select-option :value="0">否</a-select-option>
  136. </a-select>
  137. </a-form-model-item>
  138. </template>
  139. <!--手册纱单价 -->
  140. <template slot="manualYarnUnitPrice" slot-scope="text, record, index">
  141. <a-form-model-item prop="manualYarnUnitPrice">
  142. <a-input style="width:100%" type="text" v-model="record.manualYarnUnitPrice" />
  143. </a-form-model-item>
  144. </template>
  145. <!--手册纱占比 -->
  146. <template slot="manualYarnProportion" slot-scope="text, record, index">
  147. <a-form-model-item prop="manualYarnProportion">
  148. <a-input style="width:100%" type="text" v-model="record.manualYarnProportion" />
  149. </a-form-model-item>
  150. </template>
  151. <!-- 操作 -->
  152. <span slot="operationSlot" slot-scope="text, record">
  153. <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record.id)">
  154. <a href="javascript:void(0);" style="color:red;">删除</a>
  155. </a-popconfirm>
  156. </span>
  157. </a-table>
  158. </a-form-model>
  159. </a-spin>
  160. </a-card>
  161. <!-- 页面底部保存取消 -->
  162. <div
  163. :style="{
  164. position: 'absolute',
  165. right: 0,
  166. bottom: 0,
  167. width: '100%',
  168. borderTop: '1px solid #e9e9e9',
  169. padding: '0px 0px',
  170. background: '#fff',
  171. textAlign: 'right',
  172. zIndex: 1
  173. }"
  174. >
  175. <a-popconfirm title="确定放弃编辑?" @confirm="handleCancel" okText="确定" cancelText="取消">
  176. <a-button :style="{ marginRight: '8px' }">取消</a-button>
  177. </a-popconfirm>
  178. <a-button type="primary" @click="editSave">
  179. 保存
  180. </a-button>
  181. </div>
  182. </a-drawer>
  183. <!-- 参照订单数据弹框 -->
  184. <referOrderData-modal ref="referOrderDataModal" @bao="getSon" @ok="referOrderDataOk"></referOrderData-modal>
  185. </div>
  186. </template>
  187. <script>
  188. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  189. import JEllipsis from '@/components/jeecg/JEllipsis'
  190. import moment from 'moment'
  191. import ReferOrderDataModal from '@views/shipment-details/referOrderDataModal.vue'
  192. import { editById } from '@api/document/shipmentList'
  193. export default {
  194. name: 'EditShipDetDrawer', // 编辑 发运明细 抽屉
  195. mixins: [JeecgListMixin], //
  196. components: { JEllipsis, ReferOrderDataModal, moment }, // 参照订单数据 弹框
  197. data() {
  198. let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
  199. return {
  200. id: '',
  201. validatorRules:{
  202. documentDate:[{required: true, message: '请输入单据日期!'}],
  203. // customer:[{required: true, message: '请选择客户!'}],
  204. // preDeliveryDate:[{required: true, message: '请选择预发货时间!'}],
  205. // preCompletionDate:[{required: true, message: '请选择预完工日期!'}],
  206. // orderType:[{required: true, message: '请输入订单类型!'}],
  207. },
  208. // 表头
  209. columns: [
  210. {
  211. title: '账套',
  212. dataIndex: 'account',
  213. width: 80,
  214. fixed: 'left',
  215. className: 'replacecolor'
  216. },
  217. {
  218. title: '订单号',
  219. dataIndex: 'orderNumber',
  220. width: 120,
  221. fixed: 'left',
  222. className: 'replacecolor'
  223. },
  224. {
  225. title: '款号',
  226. dataIndex: 'itemNumber',
  227. fixed: 'left',
  228. width: 180,
  229. className: 'replacecolor'
  230. },
  231. // {
  232. // title: '创建时间',
  233. // dataIndex: 'createTime',
  234. // align: 'center',
  235. // sorter: true,
  236. // customRender: text => {
  237. // return moment(text).format('YYYY-MM-DD')
  238. // }
  239. // },
  240. {
  241. title: '订单日期',
  242. dataIndex: 'orderDate',
  243. width: 120,
  244. className: 'replacecolor'
  245. },
  246. {
  247. title: '业务类型',
  248. dataIndex: 'businessTypeText',
  249. width: 120,
  250. className: 'replacecolor'
  251. },
  252. {
  253. title: '客户订单',
  254. dataIndex: 'customerOrder',
  255. width: 120,
  256. className: 'replacecolor'
  257. },
  258. {
  259. title: '小po',
  260. dataIndex: 'smallPo',
  261. width: 120,
  262. className: 'replacecolor'
  263. },
  264. {
  265. title: 'Pack Id',
  266. dataIndex: 'packId',
  267. width: 120,
  268. className: 'replacecolor'
  269. },
  270. {
  271. title: '分销点',
  272. dataIndex: 'distributionPoint',
  273. width: 120,
  274. className: 'replacecolor'
  275. },
  276. {
  277. title: '采购/委外订单号',
  278. dataIndex: 'purOrSubOrder',
  279. scopedSlots: { customRender: 'purOrSubOrder' },
  280. // fixed: 'left',
  281. width: 180,
  282. className: 'replacecolor'
  283. },
  284. {
  285. title: ' 报关单价',
  286. dataIndex: 'customsDeclarationUnitPrice',
  287. scopedSlots: { customRender: 'customsDeclarationUnitPrice' },
  288. // fixed: 'left',
  289. width: 180,
  290. className: 'replacecolor'
  291. },
  292. {
  293. title: '订单数量',
  294. dataIndex: 'orderQuantity',
  295. width: 120,
  296. className: 'replacecolor'
  297. },
  298. {
  299. title: '订单剩余数量',
  300. dataIndex: 'orderRemainingQuantity',
  301. width: 120,
  302. className: 'replacecolor'
  303. },
  304. {
  305. title: '发货数量',
  306. dataIndex: 'shipmentQuantity',
  307. scopedSlots: { customRender: 'shipmentQuantity' },
  308. width: 120,
  309. className: 'replacecolor'
  310. },
  311. {
  312. title: '套装件数',
  313. dataIndex: 'numberOfSets',
  314. scopedSlots: { customRender: 'numberOfSets' },
  315. width: 120,
  316. className: 'replacecolor'
  317. },
  318. {
  319. title: '是否TC功能',
  320. dataIndex: 'isTc',
  321. width: 90,
  322. scopedSlots: { customRender: 'isTC' },
  323. className: 'replacecolor'
  324. },
  325. {
  326. title: '物料成分',
  327. dataIndex: 'materialComposition',
  328. scopedSlots: { customRender: 'materialComposition' },
  329. width: 140,
  330. className: 'replacecolor'
  331. },
  332. {
  333. title: '销售类型',
  334. dataIndex: 'salesTypeText',
  335. width: 120,
  336. className: 'replacecolor'
  337. },
  338. {
  339. title: '客户简称',
  340. dataIndex: 'customerAbbreviation',
  341. width: 120,
  342. className: 'replacecolor'
  343. },
  344. {
  345. title: '客户名称',
  346. dataIndex: 'customerName',
  347. width: 300,
  348. className: 'replacecolor',
  349. customRender: t => ellipsis(t),
  350. },
  351. {
  352. title: '汇率',
  353. dataIndex: 'exchangeRate',
  354. width: 120,
  355. className: 'replacecolor'
  356. },
  357. // {
  358. // title: '整单(合计)',
  359. // dataIndex: 'wholeOrderTotal',
  360. // width: 120,
  361. // className: 'replacecolor'
  362. // },
  363. {
  364. title: '销售部门',
  365. dataIndex: 'salesDepartment',
  366. width: 120,
  367. className: 'replacecolor'
  368. },
  369. {
  370. title: '业务员',
  371. dataIndex: 'salesman',
  372. width: 120,
  373. className: 'replacecolor'
  374. },
  375. {
  376. title: '币种',
  377. dataIndex: 'currencyText',
  378. width: 120,
  379. className: 'replacecolor'
  380. },
  381. {
  382. title: '品牌方',
  383. dataIndex: 'brandSide',
  384. width: 180,
  385. className: 'replacecolor',
  386. customRender: t => ellipsis(t),
  387. },
  388. {
  389. title: '第三方',
  390. dataIndex: 'thirdParty',
  391. width: 120,
  392. className: 'replacecolor'
  393. },
  394. {
  395. title: '定金比例(%)',
  396. dataIndex: 'depositRatio',
  397. width: 120,
  398. className: 'replacecolor'
  399. },
  400. {
  401. title: '定金',
  402. dataIndex: 'deposit',
  403. width: 120,
  404. className: 'replacecolor'
  405. },
  406. {
  407. title: '协同路线',
  408. dataIndex: 'collaborativeRoute',
  409. width: 120,
  410. className: 'replacecolor'
  411. },
  412. {
  413. title: '单价(销售)',
  414. dataIndex: 'salesUnitPrice',
  415. width: 120,
  416. className: 'replacecolor'
  417. },
  418. {
  419. title: '工厂单价',
  420. dataIndex: 'factoryUnitPrice',
  421. width: 120,
  422. scopedSlots: { customRender: 'factoryUnitPrice' },
  423. className: 'replacecolor'
  424. },
  425. {
  426. title: '付款条件',
  427. dataIndex: 'termOfPayment',
  428. width: 160,
  429. customRender: t => ellipsis(t),
  430. className: 'replacecolor'
  431. },
  432. {
  433. title: '最终客户',
  434. dataIndex: 'endCustomer',
  435. width: 120,
  436. className: 'replacecolor'
  437. },
  438. {
  439. title: '订单备注',
  440. dataIndex: 'orderRemarks',
  441. width: 200,
  442. customRender: t => ellipsis(t),
  443. className: 'replacecolor'
  444. },
  445. {
  446. title: '申报要素',
  447. dataIndex: 'declarationElements',
  448. width: 160,
  449. scopedSlots: { customRender: 'declarationElements' },
  450. className: 'replacecolor'
  451. },
  452. {
  453. title: '价格备注',
  454. dataIndex: 'priceRemarks',
  455. width: 160,
  456. customRender: t => ellipsis(t),
  457. className: 'replacecolor'
  458. },
  459. {
  460. title: '订单变更说明',
  461. dataIndex: 'orderChangeDescription',
  462. width: 160,
  463. customRender: t => ellipsis(t),
  464. className: 'replacecolor'
  465. },
  466. {
  467. title: '订单子表ID',
  468. dataIndex: 'syOrderDataItemId',
  469. width: 160,
  470. className: 'replacecolor'
  471. },
  472. {
  473. title: '处理方式',
  474. dataIndex: 'treatmentMethod',
  475. width: 160,
  476. scopedSlots: { customRender: 'treatmentMethod' },
  477. className: 'replacecolor'
  478. },
  479. {
  480. title: '是否手册纱',
  481. dataIndex: 'manualYarnFlag',
  482. width: 140,
  483. scopedSlots: { customRender: 'manualYarnFlag' },
  484. className: 'replacecolor'
  485. },
  486. {
  487. title: '手册纱单价',
  488. dataIndex: 'manualYarnUnitPrice',
  489. width: 160,
  490. scopedSlots: { customRender: 'manualYarnUnitPrice' },
  491. className: 'replacecolor'
  492. },
  493. {
  494. title: '手册纱占比',
  495. dataIndex: 'manualYarnProportion',
  496. width: 120,
  497. scopedSlots: { customRender: 'manualYarnProportion' },
  498. className: 'replacecolor'
  499. },
  500. {
  501. title: '操作',
  502. dataIndex: 'operation',
  503. scopedSlots: { customRender: 'operationSlot' },
  504. width: 100,
  505. fixed: 'right',
  506. className: 'replacecolor'
  507. }
  508. ],
  509. msgFormSon: 'test', // 子组件传来数据的变量
  510. syShippingDetailsItemList: [], // 子表信息
  511. editShipDet: {}, // 编辑发运明细
  512. visible: false,
  513. confirmLoading: false,
  514. dateFormat: 'YYYY-MM-DD'
  515. }
  516. },
  517. // 接收父组件查询方法
  518. props: {
  519. fatherList: {
  520. type: Function,
  521. default: null
  522. }
  523. },
  524. methods: {
  525. getSon(val) {
  526. var copyValList = JSON.parse(JSON.stringify(val));
  527. for (var i in copyValList) {
  528. copyValList[i]['orderQuantity'] = copyValList[i].quantity
  529. copyValList[i]['orderRemainingQuantity'] = copyValList[i].surplusNum
  530. copyValList[i]['salesUnitPrice'] = copyValList[i].unitPriceIncludingTax
  531. copyValList[i]['customerOrder'] = copyValList[i].customerOrderNumber
  532. copyValList[i]['shipmentQuantity'] = copyValList[i].surplusNum // 订单剩余数量 赋值给发货数量
  533. }
  534. this.syShippingDetailsItemList = this.syShippingDetailsItemList.concat(copyValList);
  535. this.msgFormSon = this.syShippingDetailsItemList;
  536. },
  537. // 编辑 保存
  538. editSave() {
  539. const that = this;
  540. // 触发表单验证
  541. this.$refs.form.validate(valid => {
  542. if (valid) {
  543. // 必须选择子表 --- 参照订单数据
  544. if (this.editShipDet.syShippingDetailsItemList.length == 0) {
  545. this.$message.error('请选择参照订单数据')
  546. } else {
  547. for (var i=0; i<this.editShipDet.syShippingDetailsItemList.length; i++){
  548. var rowData = this.editShipDet.syShippingDetailsItemList[i];
  549. if (rowData.shipmentQuantity > rowData.orderRemainingQuantity){
  550. this.$message.error('第'+(i+1)+'行超发货数量超过订单剩余数量,无法保存');
  551. return;
  552. }
  553. }
  554. // 根据inventoryCode,colour,codingRules判断重复物料
  555. for (var i=0; i<newObj.syShippingDetailsItemList.length; i++){
  556. var rowData = newObj.syShippingDetailsItemList[i];
  557. for (var j=i+1;j<newObj.syShippingDetailsItemList.length; j++){
  558. var nextData = newObj.syShippingDetailsItemList[j];
  559. if (rowData.inventoryCode == nextData.inventoryCode &&
  560. rowData.colour == nextData.colour &&
  561. rowData.codingRules == nextData.codingRules){
  562. this.$message.error('第'+(i+1)+'行和第'+(j+1)+'行物料重复,无法保存');
  563. return;
  564. }
  565. }
  566. }
  567. editById(this.editShipDet).then(res => {
  568. if (res.success) {
  569. this.$message.success('编辑成功');
  570. this.addShipDet = {};
  571. this.addShipDet.syShippingDetailsItemList = [];
  572. this.close();
  573. this.fatherList(); // 调用父组件的查询方法
  574. }
  575. })
  576. }
  577. }else{
  578. return false;
  579. }
  580. });
  581. },
  582. // 参照订单数据
  583. referOrderDataOpen() {
  584. console.log('打开参照订单数据')
  585. this.$refs.referOrderDataModal.referOrderDataModVis = true
  586. },
  587. // 増行
  588. handleAddColumn() {
  589. console.log('増行')
  590. const addrow = {
  591. acSetNo: '',
  592. orderNumber: '',
  593. itemNumber: '',
  594. orderDate: '',
  595. businessType: '',
  596. customerOrder: '',
  597. smallPo: '',
  598. packId: '',
  599. orderData: '',
  600. orderRemaQuantity: '',
  601. shipQuantity: '',
  602. isTC: '',
  603. materialComposition: '',
  604. saleType: '',
  605. customerShortName: '',
  606. customerName: '',
  607. exchangeRate: '',
  608. wholeSingleCombined: '',
  609. salesDepartment: '',
  610. salesman: '',
  611. currency: '',
  612. brand: '',
  613. thirdParty: '',
  614. depositRate: '',
  615. deposit: '',
  616. collaborativeRoute: '',
  617. paymentClause: '',
  618. finalCustomer: '',
  619. orderNote: '',
  620. priceNote: '',
  621. orderChangeDesc: '',
  622. operation: ''
  623. }
  624. this.syShippingDetailsItemList.push(addrow)
  625. },
  626. // 操作 删除
  627. handleDelete(index) {
  628. console.log('index', index)
  629. console.log('删除该项订单数据', index)
  630. return this.syShippingDetailsItemList.splice(index, 1)
  631. },
  632. // 操作 复制
  633. copy(record) {
  634. var newRecord = JSON.parse(JSON.stringify(record));
  635. this.syShippingDetailsItemList.push(newRecord)
  636. },
  637. // --------------------------------------
  638. // 抽屉 取消
  639. handleCancel() {
  640. this.close()
  641. },
  642. close() {
  643. this.$emit('close');
  644. this.visible = false;
  645. this.addShipDet = {};
  646. this.syShippingDetailsItemList = [];
  647. this.$refs.form.resetFields();
  648. },
  649. // --------------------------------------
  650. // 分页、排序、筛选变化时触发
  651. // handleTableChange(pagination, filters, sorter) {
  652. // // console.log('当前页信息>>>>',pagination)
  653. // this.queryParam.pageNo = pagination.current
  654. // // this.getAnnList()
  655. // },
  656. // 参照订单数据弹框 ok-------------------------------------
  657. referOrderDataOk() {
  658. console.log('参照订单数据弹框确定')
  659. this.$refs.referOrderDataModal.referOrderDataModVis = false;
  660. this.$refs.referOrderDataModal.queryParam.orderNumber="";
  661. this.$refs.referOrderDataModal.queryParam.account="";
  662. this.$refs.referOrderDataModal.queryParam.salesman="";
  663. this.$refs.referOrderDataModal.queryParam.customerName="";
  664. this.$refs.referOrderDataModal.queryParam.dateRange=[];
  665. },
  666. // father
  667. aa() {}
  668. },
  669. computed: {},
  670. mounted() {}
  671. }
  672. </script>
  673. <style lang="less" scoped>
  674. @import '~@assets/less/common.less';
  675. /deep/ .ant-table-thead > tr > th {
  676. text-align: center;
  677. // font-weight: 700;
  678. }
  679. /deep/ .ant-table-tbody {
  680. text-align: center;
  681. }
  682. // /deep/ th.replacecolor {
  683. // background-color: #ccc;
  684. // }
  685. // 抽屉里的card样式
  686. /deep/ .ant-drawer-content {
  687. background-color: #f0f2f5;
  688. }
  689. /deep/ .ant-drawer-body {
  690. padding: 0px;
  691. }
  692. </style>