addShipDetDrawer.vue 24 KB

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