retail_form.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. <template>
  2. <div class="detail-container">
  3. <el-page-header @back="goBack" :content="listItem ? '编辑':'新增'"></el-page-header>
  4. <div class="main-title">
  5. <div class="title">订单信息</div>
  6. </div>
  7. <el-form ref="mainForm" :model="mainForm" :rules="mainFormRules" label-width="80px" size="small" label-position="right">
  8. <el-row :gutter="20">
  9. <el-col :xs="24" :sm="12" :lg="8" v-if="listItem">
  10. <el-form-item label="订单号" prop="id">
  11. <el-input v-model="listItem.id" readonly></el-input>
  12. </el-form-item>
  13. </el-col>
  14. <el-col :xs="24" :sm="12" :lg="8" style="height: 51px;">
  15. <el-form-item label="单据日期" prop="date">
  16. <el-date-picker
  17. v-model="mainForm.date"
  18. type="date"
  19. value-format="yyyy-MM-dd"
  20. style="width: 100%;"
  21. placeholder="选择日期">
  22. </el-date-picker>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :xs="24" :sm="12" :lg="8">
  26. <el-form-item label="产品大类" prop="type">
  27. <el-select v-model="mainForm.type" placeholder="选择产品大类" style="width: 100%">
  28. <el-option v-for="item in typeList" :key="item.dictCode" :label="item.dictValue" :value="item.dictCode"></el-option>
  29. </el-select>
  30. </el-form-item>
  31. </el-col>
  32. </el-row>
  33. <el-row :gutter="20">
  34. <el-col :xs="24" :sm="12" :lg="8" v-if="listItem">
  35. <el-form-item label="业务员" prop="serviceName">
  36. <el-input v-model="listItem.serviceName" readonly></el-input>
  37. </el-form-item>
  38. </el-col>
  39. <el-col :xs="24" :sm="16" :lg="16">
  40. <el-form-item label="备注" prop="remark">
  41. <el-input v-model="mainForm.remark" placeholder="请输入备注"></el-input>
  42. </el-form-item>
  43. </el-col>
  44. </el-row>
  45. </el-form>
  46. <div class="main-title">
  47. <div class="title">货品信息</div>
  48. <div v-if="!listItem">
  49. <el-select v-model="warehouseValue" placeholder="请选择发货仓库" size="small" style="margin-right: 10px">
  50. <el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
  51. </el-select>
  52. <el-button type="primary" size="small" icon="el-icon-search" @click="checkStock">检查库存</el-button>
  53. <el-divider direction="vertical"></el-divider>
  54. <el-button type="primary" size="small" icon="el-icon-plus" @click="openDialog">添加货品</el-button>
  55. </div>
  56. </div>
  57. <div class="table" style="margin-top: 20px">
  58. <el-table :data="goodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  59. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  60. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
  61. <el-table-column align="center" label="产品编码" prop="materialCode" min-width="100" show-overflow-tooltip></el-table-column>
  62. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  63. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  64. <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  65. <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
  66. <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip>
  67. <template slot-scope="scope">
  68. <el-input v-model="scope.row.qty" size="small"></el-input>
  69. </template>
  70. </el-table-column>
  71. <el-table-column align="center" label="订单金额" min-width="100" show-overflow-tooltip>
  72. <template slot-scope="scope">
  73. {{scope.row.price * scope.row.qty}}
  74. </template>
  75. </el-table-column>
  76. <el-table-column align="center" label="返利钱包" prop="walletRebateId" min-width="160" show-overflow-tooltip>
  77. <template slot-scope="scope">
  78. <el-select v-model="scope.row.walletRebateId" placeholder="选择返利钱包" size="small" @change="changeWallet(scope.$index)">
  79. <el-option label="不使用" value=""></el-option>
  80. <el-option
  81. v-for="item in flWalletList"
  82. :key="item.customerWalletId"
  83. :label="item.name"
  84. :value="item.customerWalletId">
  85. </el-option>
  86. </el-select>
  87. </template>
  88. </el-table-column>
  89. <el-table-column align="center" label="返利金额" min-width="100" show-overflow-tooltip>
  90. <template slot-scope="scope">
  91. {{scope.row.price * scope.row.qty * scope.row.rebateRate}}
  92. </template>
  93. </el-table-column>
  94. <el-table-column align="center" label="格力折扣" prop="deductAmount" min-width="100" show-overflow-tooltip></el-table-column>
  95. <el-table-column align="center" label="现金钱包" prop="walletRebateId2" min-width="160" show-overflow-tooltip>
  96. <template slot-scope="scope">
  97. <el-select v-model="scope.row.walletRebateId2" placeholder="选择现金钱包" size="small">
  98. <el-option label="不使用" value=""></el-option>
  99. <el-option
  100. v-for="item in xjWalletList"
  101. :key="item.customerWalletId"
  102. :label="item.name"
  103. :value="item.customerWalletId">
  104. </el-option>
  105. </el-select>
  106. </template>
  107. </el-table-column>
  108. <el-table-column align="center" label="实付金额" prop="qty" min-width="100" show-overflow-tooltip>
  109. <template slot-scope="scope">
  110. {{(scope.row.price * scope.row.qty) - (scope.row.price * scope.row.qty * scope.row.rebateRate) - scope.row.deductAmount}}
  111. </template>
  112. </el-table-column>
  113. <el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100">
  114. <template slot-scope="scope">
  115. <el-checkbox v-model="scope.row.isDirectTransfer"></el-checkbox>
  116. </template>
  117. </el-table-column>
  118. <el-table-column align="center" label="直调数量" prop="directTransferQty" min-width="100">
  119. <template slot-scope="scope">
  120. <el-input v-model="scope.row.directTransferQty" size="small"></el-input>
  121. </template>
  122. </el-table-column>
  123. <el-table-column align="center" label="备注" prop="remark" min-width="160">
  124. <template slot-scope="scope">
  125. <el-input v-model="scope.row.remark" size="small"></el-input>
  126. </template>
  127. </el-table-column>
  128. <el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
  129. <el-table-column align="center" label="总仓库" prop="status1" min-width="100" show-overflow-tooltip></el-table-column>
  130. <el-table-column align="center" label="仓库状态" prop="status2" min-width="100" show-overflow-tooltip></el-table-column>
  131. <el-table-column align="center" label="操作" width="100" fixed="right">
  132. <template slot-scope="scope">
  133. <el-button type="text" @click="deleteItem(scope.$index)">删除</el-button>
  134. </template>
  135. </el-table-column>
  136. </el-table>
  137. </div>
  138. <div class="page-footer">
  139. <div class="footer" :class="classObj">
  140. <el-button type="primary" @click="clickSubmitForm">保 存</el-button>
  141. <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
  142. <el-button slot="reference">关 闭</el-button>
  143. </el-popconfirm>
  144. </div>
  145. </div>
  146. <el-dialog title="添加产品" :visible.sync="isShowDialog" width="80%">
  147. <el-form ref="screenForm" :model="screenForm" size="small" label-position="left">
  148. <el-row :gutter="20">
  149. <el-col :xs="12" :sm="6" :lg="6">
  150. <el-form-item prop="type">
  151. <el-select v-model="screenForm.type" placeholder="选择品类" style="width: 100%">
  152. <el-option v-for="item in typeList" :key="item.dictCode" :label="item.dictValue" :value="item.dictCode"></el-option>
  153. </el-select>
  154. </el-form-item>
  155. </el-col>
  156. <el-col :xs="12" :sm="6" :lg="6">
  157. <el-form-item prop="salesType">
  158. <el-select v-model="screenForm.salesType" placeholder="选择销售类型" style="width: 100%">
  159. <el-option v-for="item in salesTypeList" :key="item.id" :label="item.saleName" :value="item.id"></el-option>
  160. </el-select>
  161. </el-form-item>
  162. </el-col>
  163. <el-col :xs="12" :sm="6" :lg="6">
  164. <el-form-item prop="proNum">
  165. <el-input v-model="screenForm.proNum" placeholder="请输入产品编码"></el-input>
  166. </el-form-item>
  167. </el-col>
  168. <el-col :xs="12" :sm="6" :lg="6">
  169. <el-form-item prop="proName">
  170. <el-input v-model="screenForm.proName" placeholder="请输入产品名称"></el-input>
  171. </el-form-item>
  172. </el-col>
  173. <el-col :xs="12" :sm="6" :lg="6">
  174. <el-form-item prop="proModel">
  175. <el-input v-model="screenForm.proModel" placeholder="请输入产品型号"></el-input>
  176. </el-form-item>
  177. </el-col>
  178. <el-col :xs="12" :sm="6" :lg="6">
  179. <el-form-item prop="price1" style="display: flex">
  180. <el-input v-model="screenForm.price1" placeholder="请输入价格" style="width: 46%"></el-input>
  181. <span> - </span>
  182. <el-input v-model="screenForm.price2" placeholder="请输入价格" style="width: 46%"></el-input>
  183. </el-form-item>
  184. </el-col>
  185. <el-col :xs="12" :sm="12" :lg="12" class="tr">
  186. <el-form-item label="">
  187. <el-button size="small" @click="resetScreenForm">清空</el-button>
  188. <el-button size="small" type="primary" @click="submitScreenForm">搜索</el-button>
  189. </el-form-item>
  190. </el-col>
  191. </el-row>
  192. </el-form>
  193. <div class="tables">
  194. <div class="table">
  195. <el-table :data="leftGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="leftSelectionChange">
  196. <el-table-column align="center" type="selection" width="55" :selectable='checkboxSelect'></el-table-column>
  197. <el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
  198. <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
  199. <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  200. <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip></el-table-column>
  201. </el-table>
  202. <div class="pagination clearfix" style="margin-top: 10px">
  203. <div class="fr">
  204. <el-pagination
  205. @current-change="handleTableCurrentChange"
  206. :current-page="currentPage"
  207. :page-size="10"
  208. background
  209. layout="prev, pager, next"
  210. :total="listTotal">
  211. </el-pagination>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="buttons">
  216. <el-button size="small" type="primary" @click="addAllGoods">全部添加</el-button>
  217. <el-button size="small" type="primary" @click="addGoods">添加</el-button>
  218. <el-button size="small" type="danger" @click="deleteGoods">删除</el-button>
  219. <el-button size="small" type="danger" @click="deleteAllGoods">全部删除</el-button>
  220. </div>
  221. <div class="table">
  222. <el-table :data="rightGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="rightSelectionChange">
  223. <el-table-column align="center" type="selection" width="55"></el-table-column>
  224. <el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
  225. <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
  226. <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  227. <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip></el-table-column>
  228. </el-table>
  229. </div>
  230. </div>
  231. <span slot="footer" class="dialog-footer">
  232. <el-button @click="closeDialog">取 消</el-button>
  233. <el-button type="primary" @click="submitAddGoods">确 定</el-button>
  234. </span>
  235. </el-dialog>
  236. </div>
  237. </template>
  238. <script>
  239. import { getDetail, addData, editData, getSalesTypeList, getGoodsList, getWalletList, getWarehouseList, checkStock } from "@/api/supply/retail";
  240. import { getDictList } from '@/api/common'
  241. import { findElem } from '@/utils/util'
  242. export default {
  243. name: 'RetailForm',
  244. componentName: 'RetailForm',
  245. props: ['listItem'],
  246. data() {
  247. return {
  248. mainForm: {
  249. date: '',
  250. type: '',
  251. remark: '',
  252. },
  253. mainFormRules: {
  254. date: [
  255. { required: true, message: '请选择单据日期', trigger: 'change' }
  256. ],
  257. type: [
  258. { required: true, message: '请选择品类', trigger: 'change' }
  259. ],
  260. },
  261. goodsList: [],
  262. warehouseList: [],
  263. warehouseValue: '',
  264. isShowDialog: false,
  265. screenForm: {
  266. type: '',
  267. salesType: '',
  268. proNum: '',
  269. proName: '',
  270. proModel: '',
  271. price1: '',
  272. price2: '',
  273. },
  274. currentPage: 1,
  275. listTotal: 0,
  276. salesTypeList: [],
  277. typeList: [],
  278. leftGoodsList: [],
  279. rightGoodsList: [],
  280. leftSelection: [],
  281. rightSelection: [],
  282. xjWalletList: [],
  283. flWalletList: [],
  284. }
  285. },
  286. computed: {
  287. sidebar() {
  288. return this.$store.state.app.sidebar
  289. },
  290. classObj() {
  291. return {
  292. hideSidebar: !this.sidebar.opened,
  293. openSidebar: this.sidebar.opened
  294. }
  295. },
  296. },
  297. created() {
  298. this.getDictList();
  299. this.getWalletList();
  300. this.getWarehouseList();
  301. if(this.listItem) {
  302. this.getDetail();
  303. }
  304. },
  305. methods: {
  306. // 返回列表
  307. goBack() {
  308. this.$emit('backListFormDetail');
  309. },
  310. // 获取详情
  311. getDetail() {
  312. getDetail({id: this.listItem.id}).then(res => {
  313. })
  314. },
  315. // 获取仓库列表
  316. getWarehouseList() {
  317. getWarehouseList({
  318. pageNum: 1,
  319. pageSize: -1
  320. }).then((res) => {
  321. this.warehouseList = res.data.records;
  322. })
  323. },
  324. // 获取钱包列表
  325. getWalletList() {
  326. getWalletList({
  327. customerId: JSON.parse(localStorage.getItem("supply_user")).customerId,
  328. type: 'COMMONLY'
  329. }).then(res => {
  330. this.xjWalletList = res.data;
  331. })
  332. getWalletList({
  333. customerId: JSON.parse(localStorage.getItem("supply_user")).customerId,
  334. type: 'REBATE'
  335. }).then(res => {
  336. this.flWalletList = res.data;
  337. })
  338. },
  339. // 获取销售类型列表
  340. getSalesTypeList() {
  341. getSalesTypeList({
  342. pageNum: 1,
  343. pageSize: -1
  344. }).then((res) => {
  345. this.salesTypeList = res.data.records;
  346. })
  347. },
  348. getDictList() {
  349. getDictList({sysDictEnum: 'PRODUCT_TYPE'}).then(res => {
  350. this.typeList = res.data;
  351. })
  352. },
  353. // 获取商品列表
  354. getGoodsList() {
  355. getGoodsList({
  356. pageNum: this.currentPage,
  357. pageSize: 10,
  358. mainId: this.screenForm.type,
  359. saleId: this.screenForm.salesType,
  360. materialCode: this.screenForm.proNum,
  361. materialName: this.screenForm.proName,
  362. specification: this.screenForm.proModel,
  363. price1: this.screenForm.price1,
  364. price2: this.screenForm.price2,
  365. }).then(res => {
  366. let oldGoodsList = this.goodsList;
  367. let newGoodsList = res.data.records;
  368. for(let i = 0; i < oldGoodsList.length; i++) {
  369. let oldItem = oldGoodsList[i]
  370. for(let j = 0; j < newGoodsList.length; j++) {
  371. let newItem = newGoodsList[j]
  372. if(newItem.materialId === oldItem.materialId){
  373. newGoodsList[j].selected = true;
  374. break;
  375. }
  376. }
  377. }
  378. res.data.records.forEach(item => {
  379. item.materialName = item.name;
  380. item.materialCode = item.number;
  381. item.saleTypeName = item.saleName;
  382. item.unit = item.baseUnit;
  383. item.price = item.batchPrice;
  384. item.tax = item.taxRate;
  385. item.isDirectTransfer = false;
  386. item.directTransferQty = '';
  387. item.status1 = '';
  388. item.status2 = '';
  389. item.deductAmount = item.discAmount || 0;
  390. item.rebateAmount = '';
  391. item.rebateRate = '';
  392. });
  393. this.leftGoodsList = res.data.records;
  394. this.listTotal = res.data.total;
  395. })
  396. },
  397. // 查询重复值并禁选
  398. checkboxSelect (row, rowIndex) {
  399. if (row.selected) {
  400. return false // 禁用
  401. }else{
  402. return true // 不禁用
  403. }
  404. },
  405. // 点击 选择商品
  406. openDialog() {
  407. this.getSalesTypeList();
  408. this.getGoodsList();
  409. this.isShowDialog = true;
  410. },
  411. // 提交筛选表单
  412. submitScreenForm() {
  413. this.currentPage = 1;
  414. this.getGoodsList();
  415. },
  416. // 重置筛选表单
  417. resetScreenForm() {
  418. this.$refs.screenForm.resetFields();
  419. this.currentPage = 1;
  420. this.getGoodsList();
  421. },
  422. // 更改列表当前页
  423. handleTableCurrentChange(val) {
  424. this.currentPage = val;
  425. this.getGoodsList();
  426. },
  427. // 关闭 弹窗
  428. closeDialog() {
  429. this.isShowDialog = false;
  430. },
  431. // 左侧列表选择
  432. leftSelectionChange(val) {
  433. this.leftSelection = val;
  434. },
  435. // 右侧列表选择
  436. rightSelectionChange(val) {
  437. this.rightSelection = val;
  438. },
  439. // 数组去重
  440. delRepeat(arr1, arr2) {
  441. let allArr = arr1.concat(arr2); // 两个数组对象合并
  442. let newArr = []; // 存放去重后数据的新数组
  443. for(let i=0; i<allArr.length; i++){ // 循环allArr数组对象的内容
  444. let flag = true; // 建立标记,判断数据是否重复,true为不重复
  445. for(let j=0; j<newArr.length; j++){ // 循环新数组的内容
  446. if(allArr[i].materialId == newArr[j].materialId){ // 让allArr数组对象的内容与新数组的内容作比较,相同的话,改变标记为false
  447. flag = false;
  448. }
  449. }
  450. if(flag){ // 判断是否重复
  451. newArr.push(allArr[i]); // 不重复的放入新数组。 新数组的内容会继续进行上边的循环。
  452. }
  453. }
  454. return newArr;
  455. },
  456. // 全部添加
  457. addAllGoods() {
  458. this.rightGoodsList = this.delRepeat(this.leftGoodsList, this.rightGoodsList);
  459. },
  460. // 添加
  461. addGoods() {
  462. this.rightGoodsList = this.delRepeat(this.leftSelection, this.rightGoodsList);
  463. },
  464. // 删除
  465. deleteGoods() {
  466. let rightGoodsList = this.rightGoodsList;
  467. let rightSelection = this.rightSelection;
  468. for(let i = 0; i < rightGoodsList.length; i++) {
  469. for(let j = 0; j < rightSelection.length; j++) {
  470. if(rightSelection[j].materialId == rightGoodsList[i].materialId){
  471. this.rightGoodsList.splice(i, 1);
  472. }
  473. }
  474. }
  475. },
  476. // 全部删除
  477. deleteAllGoods() {
  478. this.rightGoodsList = [];
  479. },
  480. // 确定 添加产品
  481. submitAddGoods() {
  482. this.goodsList = this.delRepeat(this.rightGoodsList, this.goodsList);
  483. this.isShowDialog = false;
  484. this.leftGoodsList = [];
  485. this.rightGoodsList = [];
  486. },
  487. // 删除产品
  488. deleteItem(index) {
  489. this.goodsList.splice(index, 1);
  490. },
  491. // 修改返利钱包
  492. changeWallet(index) {
  493. if(this.goodsList[index].walletRebateId) {
  494. let obj = this.flWalletList.find(o => o.customerWalletId == this.goodsList[index].walletRebateId);
  495. this.goodsList[index].rebateRate = obj.rebateRate;
  496. }else {
  497. this.goodsList[index].rebateRate = '';
  498. }
  499. },
  500. // 检查库存
  501. checkStock() {
  502. if(!this.warehouseValue) {
  503. return this.$errorMsg('请选择仓库');
  504. }
  505. let ids = [];
  506. this.goodsList.forEach(item => {
  507. ids.push(item.materialId);
  508. })
  509. checkStock({
  510. correspondId: this.warehouseValue,
  511. materialId: ids.join(',')
  512. }).then(res => {
  513. })
  514. },
  515. // 保存
  516. clickSubmitForm() {
  517. this.$refs.mainForm.validate((valid) => {
  518. if (valid) {
  519. let mainName = this.typeList[findElem(this.typeList, 'dictCode', this.mainForm.type)].dictValue;
  520. let params = {
  521. theTime: this.mainForm.date + ' 00:00:00',
  522. mainId: this.mainForm.type,
  523. mainName,
  524. remark: this.mainForm.remark,
  525. type: 1, // 1:普通零售单,2:政策零售单
  526. retailOrderItemList: this.goodsList
  527. }
  528. addData(params).then(res => {
  529. this.$successMsg('添加成功');
  530. this.goBack();
  531. this.$parent.getList();
  532. })
  533. }
  534. })
  535. },
  536. }
  537. }
  538. </script>
  539. <style scoped lang="scss">
  540. .detail-container {
  541. width: 100%;
  542. height: 100%;
  543. }
  544. .main-title {
  545. display: flex;
  546. justify-content: space-between;
  547. align-items: center;
  548. margin-top: 20px;
  549. height: 60px;
  550. border-bottom: 1px solid #DCDFE6;
  551. margin-bottom: 20px;
  552. .title {
  553. font-size: 16px;
  554. font-weight: 600;
  555. padding-left: 10px;
  556. }
  557. }
  558. .tables {
  559. display: flex;
  560. margin-top: 10px;
  561. .table {
  562. width: 45%;
  563. }
  564. .buttons {
  565. display: flex;
  566. flex-direction: column;
  567. justify-content: center;
  568. align-items: center;
  569. padding: 0 10px;
  570. button {
  571. margin: 0;
  572. margin-top: 10px;
  573. }
  574. }
  575. }
  576. </style>