retail_form.vue 22 KB

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