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