editShipDetDrawer.vue 25 KB

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