editShipDetDrawer.vue 24 KB

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