sendGoodModal.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. <template>
  2. <a-modal
  3. centered
  4. class="sendGood-detail-modal"
  5. :footer="null"
  6. :maskClosable="false"
  7. v-model="isShow"
  8. :title="modalTit"
  9. @cancel="handleCommonCancel"
  10. width="60%">
  11. <a-spin :spinning="spinning" tip="Loading...">
  12. <div class="common-main">
  13. <div style="display:flex;margin-bottom:10px;align-items: center;">
  14. <a-button @click="showGlModal=true" type="primary" style="margin-right:10px" ghost v-if="isEdit">选择关联单据</a-button>
  15. <div v-if="sendBillStockOutList.length">
  16. <a-alert type="info">
  17. <div slot="message">{{ customeName }},共 {{ sendBillStockOutList && sendBillStockOutList.length }} 个出库单,产品款数合计 <span>{{ productTotal&&productTotal.totalCategory }}</span> ,产品数量合计 <span>{{ productTotal&&productTotal.totalQty }}</span>。</div>
  18. </a-alert>
  19. </div>
  20. </div>
  21. <div style="margin-bottom:10px;" v-if="isEdit">
  22. <a-table :columns="glColumns" :pagination="false" :scroll="{ y: 200 }" :data-source="sendBillStockOutList" bordered>
  23. <!-- 客户名称 -->
  24. <template slot="buyerName" slot-scope="text, record">
  25. {{ record.buyerName || record.demanderName }}
  26. </template>
  27. <!-- 操作 -->
  28. <template slot="action" slot-scope="text, record">
  29. <a-button
  30. size="small"
  31. type="link"
  32. class="button-error"
  33. @click="delStockOutList(record)"
  34. >
  35. 删除
  36. </a-button>
  37. </template>
  38. </a-table>
  39. </div>
  40. <div class="toolsBar">
  41. <a-form-model
  42. ref="ruleForm"
  43. :model="form"
  44. :rules="rules"
  45. :label-col="formItemLayout.labelCol"
  46. :wrapper-col="formItemLayout.wrapperCol"
  47. >
  48. <a-row>
  49. <a-col span="8">
  50. <a-form-model-item label="托运日期" prop="sendDate">
  51. <a-date-picker :allowClear="false" inputReadOnly v-model="form.sendDate" :locale="locale"/>
  52. </a-form-model-item>
  53. </a-col>
  54. <a-col span="8">
  55. <a-form-model-item label="收货人" prop="customerCacateName">
  56. <a-input placeholder="请输入收货人(最多30字符)" :maxLength="30" v-model.trim="form.customerCacateName"></a-input>
  57. </a-form-model-item>
  58. </a-col>
  59. <a-col span="8">
  60. <a-form-model-item label="电话" prop="customerCacatePhone">
  61. <a-input placeholder="请输入电话" :maxLength="30" v-model.trim="form.customerCacatePhone"></a-input>
  62. </a-form-model-item>
  63. </a-col>
  64. <a-col span="24">
  65. <a-form-model-item label="详细地址" prop="customerAddressDetail" :label-col="{span:2}" :wrapper-col="{span:21}">
  66. <a-textarea placeholder="请输入详细地址(最多300字符)" :maxLength="300" v-model.trim="form.customerAddressDetail"></a-textarea>
  67. </a-form-model-item>
  68. </a-col>
  69. <a-col span="8">
  70. <a-form-model-item label="目的地">
  71. <a-input placeholder="请输入目的地(最多30字符)" :maxLength="30" v-model.trim="form.customerAddress"></a-input>
  72. </a-form-model-item>
  73. </a-col>
  74. <a-col span="8">
  75. <a-form-model-item label="物流电话" prop="transportTele">
  76. <a-input placeholder="请输入物流电话" :maxLength="30" v-model.trim="form.transportTele"></a-input>
  77. </a-form-model-item>
  78. </a-col>
  79. <a-col span="8">
  80. <a-form-model-item label="物流单号" prop="transportNo">
  81. <a-input placeholder="请输入物流单号" :maxLength="30" v-model.trim="form.transportNo"></a-input>
  82. </a-form-model-item>
  83. </a-col>
  84. <a-col span="8">
  85. <a-form-model-item label="付款方式">
  86. <v-select
  87. v-model="form.payType"
  88. ref="payType"
  89. code="SEND_BILL_PAY_TYPE"
  90. placeholder="请选择付款方式"
  91. allowClear></v-select>
  92. </a-form-model-item>
  93. </a-col>
  94. <a-col span="8">
  95. <a-form-model-item label="交货方式">
  96. <v-select
  97. v-model="form.handoverType"
  98. ref="handoverType"
  99. code="SEND_BILL_HANDOVER_TYPE"
  100. placeholder="请选择交货方式"
  101. allowClear></v-select>
  102. </a-form-model-item>
  103. </a-col>
  104. <a-col span="8">
  105. <a-form-model-item label="运费合计">
  106. <!-- <a-input disabled placeholder="请输入运费合计" v-model.trim="form.totalSendAmount"></a-input> -->
  107. {{ form.totalSendAmount ? toThousands(form.totalSendAmount) : '--' }}
  108. </a-form-model-item>
  109. </a-col>
  110. </a-row>
  111. </a-form-model>
  112. </div>
  113. <div>
  114. <a-table
  115. class="sTable"
  116. :columns="columns"
  117. :pagination="false"
  118. :scroll="{ y: 200 }"
  119. :data-source="tableData"
  120. bordered>
  121. <!-- 物品名称 -->
  122. <template slot="goodName" slot-scope="text, record">
  123. <a-select v-model="record.goodsName" placeholder="请选择物品" style="width: 100%">
  124. <a-select-option value="电池机油">
  125. 电池机油
  126. </a-select-option>
  127. <a-select-option value="易损件">
  128. 易损件
  129. </a-select-option>
  130. <a-select-option value="电池">
  131. 电池
  132. </a-select-option>
  133. <a-select-option value="机油">
  134. 机油
  135. </a-select-option>
  136. <a-select-option value="轮胎">
  137. 轮胎
  138. </a-select-option>
  139. </a-select>
  140. </template>
  141. <!-- 数量 -->
  142. <template slot="qty" slot-scope="text, record">
  143. <a-input-number style="width: 100%;" :precision="0" v-model="record.goodsQty" :min="1" :max="99999999"></a-input-number>
  144. </template>
  145. <!-- 体积 -->
  146. <template slot="volume" slot-scope="text, record">
  147. <a-input-number style="width: 100%;" :precision="2" v-model="record.goodsVolume" :min="0" :max="99999999"></a-input-number>
  148. </template>
  149. <!-- 重量 -->
  150. <template slot="weight" slot-scope="text, record">
  151. <a-input-number style="width: 100%;" :precision="2" v-model="record.goodsWeight" :min="0" :max="99999999"></a-input-number>
  152. </template>
  153. <!-- 计费单价 -->
  154. <template slot="price" slot-scope="text, record">
  155. <a-input-number style="width: 100%;" :precision="2" v-model="record.unitPrice" :min="0" :max="99999999"></a-input-number>
  156. </template>
  157. <!-- 运费 -->
  158. <template slot="freight" slot-scope="text, record">
  159. <a-input-number
  160. style="width: 100%;"
  161. :precision="2"
  162. @change="amountChange('transportAmount',record)"
  163. v-model="record.transportAmount"
  164. :min="0"
  165. :max="99999999"></a-input-number>
  166. </template>
  167. <!-- 保价 -->
  168. <template slot="supportValue" slot-scope="text, record">
  169. <a-input-number style="width: 100%;" :precision="2" v-model="record.supportValue" :min="0" :max="99999999"></a-input-number>
  170. </template>
  171. <!-- 送货费 -->
  172. <template slot="deliveryExpense" slot-scope="text, record">
  173. <a-input-number
  174. style="width: 100%;"
  175. :precision="2"
  176. @change="amountChange('sendAmount',record)"
  177. v-model="record.sendAmount"
  178. :min="0"
  179. :max="99999999"></a-input-number>
  180. </template>
  181. <!-- 其他 -->
  182. <template slot="other" slot-scope="text, record">
  183. <a-input-number
  184. style="width: 100%;"
  185. :precision="2"
  186. @change="amountChange('otherAmount',record)"
  187. v-model="record.otherAmount"
  188. :min="0"
  189. :max="99999999"></a-input-number>
  190. </template>
  191. <!-- 操作 -->
  192. <template slot="action" slot-scope="text, record, index">
  193. <a-button
  194. size="small"
  195. type="link"
  196. class="button-error"
  197. @click="handleDel(record,index)"
  198. >
  199. 删除
  200. </a-button>
  201. </template>
  202. </a-table>
  203. <div style="padding: 5px; border:1px solid #eee;border-radius:0 0 10px;border-top: 0;text-align:center;">
  204. <a-button @click="addItem()" type="link">+新增发货明细</a-button>
  205. </div>
  206. </div>
  207. </div>
  208. <div class="btn-box">
  209. <a-button @click="handleCommonCancel" v-if="isCancel">{{ cancelText }}</a-button>
  210. <a-button type="primary" @click="handleCommonOk">{{ okText }}</a-button>
  211. </div>
  212. </a-spin>
  213. <!-- 关联单据 -->
  214. <selectGlOrderModal
  215. ref="selGlModal"
  216. modalTit="选择关联单据"
  217. :chooseData="sendBillStockOutList"
  218. :openModal="showGlModal"
  219. @choose="getProductTotal"
  220. @cancel="showGlModal=false"></selectGlOrderModal>
  221. </a-modal>
  222. </template>
  223. <script>
  224. import { commonMixin } from '@/utils/mixin'
  225. import moment from 'moment'
  226. import locale from 'ant-design-vue/es/date-picker/locale/zh_CN'
  227. import { STable, VSelect } from '@/components'
  228. import selectGlOrderModal from './selectGlOrderModal.vue'
  229. import { sendBillInsert, sendBillFindBySn, sendBillUpdate, deleteSendBillStockOut } from '@/api/sendBill'
  230. export default {
  231. name: 'SendGoodModal',
  232. mixins: [commonMixin],
  233. components: { STable, VSelect, selectGlOrderModal },
  234. props: {
  235. openModal: { // 弹框显示状态
  236. type: Boolean,
  237. default: false
  238. },
  239. modalTit: { // 弹框标题
  240. type: String,
  241. default: null
  242. },
  243. okText: { // 确定 按钮文字
  244. type: String,
  245. default: '确定'
  246. },
  247. cancelText: { // 取消 按钮文字
  248. type: String,
  249. default: '取消'
  250. },
  251. isCancel: { // 是否显示 取消 按钮
  252. type: Boolean,
  253. default: true
  254. }
  255. },
  256. data () {
  257. return {
  258. locale,
  259. isShow: this.openModal, // 是否打开弹框
  260. disabled: false,
  261. spinning: false,
  262. showGlModal: false,
  263. form: {
  264. 'stockOutSnList': [], // 出库单列表
  265. 'sendDate': moment(), // 托运时间
  266. 'customerAddress': '', // 目的地
  267. 'customerAddressDetail': '', // 详细地址
  268. 'transportTele': '', // 物流电话
  269. 'transportNo': '', // 物流单号
  270. 'customerCacateName': '', // 收货人
  271. 'customerCacatePhone': '', // 收货人电话
  272. 'payType': '', // 收款方式
  273. 'handoverType': '', // 发货方式
  274. 'totalSendAmount': '', // 发货总费用
  275. 'sendBillDetailList': [] // 发货列表
  276. },
  277. rules: {
  278. sendDate: [{ required: true, message: '请选择托运日期', trigger: 'change' }],
  279. customerCacateName: [{ required: true, message: '请输入收货人', trigger: 'change' }],
  280. customerCacatePhone: [{ required: true, message: '请输入电话', trigger: 'change' }],
  281. customerAddressDetail: [{ required: true, message: '请输入详细地址', trigger: 'change' }]
  282. },
  283. formItemLayout: {
  284. labelCol: { span: 6 },
  285. wrapperCol: { span: 15 }
  286. },
  287. sendBillStockOutList: [],
  288. glColumns: [
  289. { title: '序号', dataIndex: 'no', width: '6%', align: 'center', customRender: function (text) { return text } },
  290. { title: '出库单号', dataIndex: 'stockOutNo', width: '10%', align: 'center' },
  291. { title: '业务单号', dataIndex: 'outBizSubNo', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
  292. { title: '出库类型', dataIndex: 'outBizTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
  293. { title: '发货编号', dataIndex: 'sendNo', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  294. { title: '客户名称', scopedSlots: { customRender: 'buyerName' }, width: '12%', align: 'center', ellipsis: true },
  295. { title: '收货客户名称', dataIndex: 'receiverName', width: '12%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  296. { title: '产品款数', dataIndex: 'productTotalCategory', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  297. { title: '产品数量', dataIndex: 'productTotalQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  298. { title: '单据审核时间', dataIndex: 'auditTime', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
  299. { title: '收款时间', dataIndex: 'settleTime', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
  300. { title: '操作', scopedSlots: { customRender: 'action' }, width: '6%', align: 'center' }
  301. ],
  302. productTotal: null,
  303. tableData: [],
  304. columns: [
  305. { title: '序号', dataIndex: 'no', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  306. { title: '货物名称', dataIndex: 'goodsName', scopedSlots: { customRender: 'goodName' }, width: '10%', align: 'center' },
  307. { title: '件数', dataIndex: 'goodsQty', scopedSlots: { customRender: 'qty' }, width: '8%', align: 'center' },
  308. { title: '体积(m³)', dataIndex: 'goodsVolume', scopedSlots: { customRender: 'volume' }, width: '8%', align: 'center' },
  309. { title: '重量(kg)', dataIndex: 'goodsWeight', scopedSlots: { customRender: 'weight' }, width: '8%', align: 'center' },
  310. { title: '计费单价(元)', dataIndex: 'unitPrice', scopedSlots: { customRender: 'price' }, width: '9%', align: 'center' },
  311. { title: '运费(元)', dataIndex: 'transportAmount', scopedSlots: { customRender: 'freight' }, width: '9%', align: 'center' },
  312. { title: '保价(万)', dataIndex: 'supportValue', scopedSlots: { customRender: 'supportValue' }, width: '9%', align: 'center' },
  313. { title: '送货费', dataIndex: 'sendAmount', scopedSlots: { customRender: 'deliveryExpense' }, width: '9%', align: 'center' },
  314. { title: '其他', dataIndex: 'otherAmount', scopedSlots: { customRender: 'other' }, width: '8%', align: 'center' },
  315. { title: '合计', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  316. { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
  317. ],
  318. isEdit: false,
  319. customeName: ''
  320. }
  321. },
  322. methods: {
  323. // 新增,出库单和收货人信息
  324. setData (data, customeInfo) {
  325. this.sendBillStockOutList = data
  326. this.customeName = data[0].demanderName
  327. this.isEdit = false
  328. this.addItem()
  329. this.getProductTotal()
  330. if (customeInfo) {
  331. this.form.customerCacateName = customeInfo.consigneeName
  332. this.form.customerCacatePhone = customeInfo.consigneeTel
  333. this.form.customerAddressDetail = customeInfo.addr
  334. }
  335. },
  336. // 删除出库单
  337. delStockOutList (row) {
  338. if (this.sendBillStockOutList && this.sendBillStockOutList.length == 1) {
  339. this.$message.warning('发货单必须关联相关出库单号!')
  340. return
  341. }
  342. const ri = this.sendBillStockOutList.findIndex(item => row.stockOutSn == item.stockOutSn)
  343. // 新加的
  344. if (ri > -1) {
  345. this.sendBillStockOutList.splice(ri, 1)
  346. this.getProductTotal()
  347. }
  348. // if (row.id) {
  349. // this.sendBillStockOutList.splice(ri, 1)
  350. // this.getProductTotal()
  351. // } else {
  352. // // 删除后修改发货状态
  353. // this.spinning = true
  354. // deleteSendBillStockOut({ stockOutSn: row.stockOutSn, sendBillSn: this.form.sendBillSn }).then(res => {
  355. // if (res.status == 200) {
  356. // this.sendBillStockOutList.splice(ri, 1)
  357. // this.getProductTotal()
  358. // }
  359. // this.spinning = false
  360. // })
  361. // }
  362. },
  363. // 编辑
  364. getDetail (data) {
  365. this.spinning = true
  366. this.isEdit = true
  367. this.customeName = data.customeName
  368. sendBillFindBySn({ sn: data.sendBillSn }).then(res => {
  369. console.log(res)
  370. this.spinning = false
  371. if (res.data) {
  372. this.sendBillStockOutList = res.data.sendBillStockOutList // 出库单
  373. this.tableData = res.data.detailList // 发货明细
  374. this.tableData.map((item, i) => {
  375. item.no = i + 1
  376. })
  377. // 统计出库单
  378. this.getProductTotal()
  379. // 基本信息
  380. this.form.customerCacateName = res.data.customerCacateName
  381. this.form.customerCacatePhone = res.data.customerCacatePhone
  382. this.form.customerAddress = res.data.customerAddress
  383. this.form.customerAddressDetail = res.data.customerAddressDetail
  384. this.form.transportTele = res.data.transportTele
  385. this.form.transportNo = res.data.transportNo
  386. this.form.sendDate = res.data.sendDate
  387. this.form.payType = res.data.payType
  388. this.form.handoverType = res.data.handoverType
  389. this.form.totalSendAmount = res.data.totalSendAmount
  390. this.form.sendBillNo = data.sendBillNo
  391. this.form.sendBillSn = data.sendBillSn
  392. }
  393. })
  394. },
  395. // 出库单数据统计
  396. getProductTotal () {
  397. const ret = {
  398. totalCategory: 0,
  399. totalQty: 0
  400. }
  401. const stockOutSnList = []
  402. this.sendBillStockOutList.map((item, index) => {
  403. item.no = index + 1
  404. ret.totalCategory = ret.totalCategory + item.productTotalCategory
  405. ret.totalQty = ret.totalQty + item.productTotalQty
  406. stockOutSnList.push(item.stockOutSn)
  407. })
  408. // 编辑时不需要传
  409. this.form.stockOutSnList = stockOutSnList
  410. this.productTotal = ret
  411. },
  412. // 计算运费合计
  413. getTotalSendAmount () {
  414. let ret = 0
  415. this.tableData.map((item, i) => {
  416. item.no = i + 1
  417. ret = ret + Number(item.totalAmount || 0)
  418. })
  419. this.form.totalSendAmount = ret.toFixed(2)
  420. },
  421. // 计算每行发货费用合计
  422. amountChange (key, record) {
  423. record.totalAmount = (record.transportAmount || 0) + (record.sendAmount || 0) + (record.otherAmount || 0)
  424. record.totalAmount = Number(record.totalAmount).toFixed(2)
  425. this.getTotalSendAmount()
  426. },
  427. // 删除
  428. handleDel (row, index) {
  429. this.tableData.splice(index, 1)
  430. this.getTotalSendAmount()
  431. },
  432. // 添加
  433. addItem () {
  434. const len = this.tableData.length
  435. this.tableData.push({
  436. 'no': len + 1,
  437. 'goodsName': undefined,
  438. 'goodsQty': '',
  439. 'goodsVolume': '',
  440. 'goodsWeight': '',
  441. 'unitPrice': '',
  442. 'transportAmount': '',
  443. 'supportValue': '',
  444. 'sendAmount': '',
  445. 'otherAmount': '',
  446. 'totalAmount': ''
  447. })
  448. },
  449. // 校验物品单
  450. vaildGood (key) {
  451. const ret = []
  452. this.tableData.map(item => {
  453. ret.push(!!item[key])
  454. })
  455. console.log(ret)
  456. return ret
  457. },
  458. // 确定
  459. handleCommonOk () {
  460. const _this = this
  461. if (_this.form.stockOutSnList.length == 0 && !this.isEdit) {
  462. _this.$message.info('请选择出库单!')
  463. return
  464. }
  465. this.$refs.ruleForm.validate(valid => {
  466. _this.form.sendBillDetailList = _this.tableData
  467. if (valid) {
  468. console.log(_this.form, this.isEdit)
  469. if (_this.form.sendBillDetailList.length == 0) {
  470. _this.$message.info('请新增发货明细!')
  471. return false
  472. }
  473. if (_this.vaildGood('goodsName').indexOf(false) >= 0) {
  474. _this.$message.info('请选择物品!')
  475. return false
  476. }
  477. if (_this.vaildGood('goodsQty').indexOf(false) >= 0) {
  478. _this.$message.info('请输入件数!')
  479. return false
  480. }
  481. if (_this.vaildGood('totalAmount').indexOf(false) >= 0) {
  482. _this.$message.info('请输入费用!')
  483. return false
  484. }
  485. const baseUrl = this.isEdit ? sendBillUpdate : sendBillInsert
  486. _this.spinning = true
  487. baseUrl(_this.form).then(res => {
  488. if (res.status == 200) {
  489. _this.$emit('ok')
  490. _this.isShow = false
  491. _this.$message.success(res.message)
  492. }
  493. _this.spinning = false
  494. })
  495. } else {
  496. return false
  497. }
  498. })
  499. },
  500. // 取消
  501. handleCommonCancel () {
  502. this.$emit('cancel')
  503. this.tableData = []
  504. this.sendBillStockOutList = []
  505. this.spinning = false
  506. this.$refs.ruleForm.resetFields()
  507. this.form = {
  508. 'stockOutSnList': [], // 出库单列表
  509. 'sendDate': moment(), // 托运时间
  510. 'customerAddress': '', // 目的地
  511. 'customerAddressDetail': '', // 详细地址
  512. 'transportTele': '', // 物流电话
  513. 'transportNo': '', // 物流单号
  514. 'customerCacateName': '', // 收货人
  515. 'customerCacatePhone': '', // 收货人电话
  516. 'payType': '', // 收款方式
  517. 'handoverType': '', // 发货方式
  518. 'totalSendAmount': '', // 发货总费用
  519. 'sendBillDetailList': [] // 发货列表
  520. }
  521. }
  522. },
  523. watch: {
  524. // 父页面传过来的弹框状态
  525. openModal (newValue, oldValue) {
  526. this.isShow = newValue
  527. },
  528. // 重定义的弹框状态
  529. isShow (newValue, oldValue) {
  530. if (!newValue) {
  531. this.handleCommonCancel()
  532. }
  533. }
  534. }
  535. }
  536. </script>
  537. <style lang="less">
  538. .sendGood-detail-modal{
  539. .common-main{
  540. .toolsBar{
  541. padding-top:15px;
  542. border:1px solid #eee;
  543. border-radius: 3px;
  544. display: flex;
  545. align-items: center;
  546. margin-bottom: 10px;
  547. .ant-form-item{
  548. margin-bottom: 5px;
  549. }
  550. .ant-btn{
  551. margin-left: 30px;
  552. }
  553. }
  554. }
  555. .btn-box{
  556. text-align: center;
  557. margin-top: 30px;
  558. .ant-btn{
  559. margin:0 10px;
  560. }
  561. }
  562. }
  563. </style>