| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079 |
- <template>
- <div class="ele-body">
- <BOMSearch @search="reload" :statusOpt="statusOpt" />
- <!-- :header-cell-style="headerCellStyle" -->
- <ele-pro-table
- ref="table"
- :key="tableKey"
- :columns="columns"
- :pagination="pagination"
- :datasource="datasource"
- :page-size="20"
- cache-key="routed_detailed_list"
- class="dict-table"
- tool-class="ele-toolbar-actions"
- :height="tableHeight"
- @fullscreen-change="fullscreenChange"
- >
- <template v-slot:toolbar>
- <div class="toolbar_box">
- <div
- v-if="
- attributeData.status != 1 && attributeData.approvalStatus != 1
- "
- >
- <el-button
- type="primary"
- size="mini"
- @click="handleAdd"
- v-if="!isWt && attributeData.attributeType != 4"
- >新增</el-button
- >
- <el-button
- type="primary"
- size="mini"
- @click="handleSave"
- v-if="!isWt"
- >保存</el-button
- >
- </div>
- <div class="toolbar_box_right"
- ><span>基本数量</span>
- <el-input
- placeholder="请输入"
- v-model.number="attributeData.baseCount"
- disabled
- >
- <template #append>
- {{
- attributeData.category && attributeData.category.measuringUnit
- }}</template
- >
- </el-input>
- </div>
- </div>
- </template>
- <!-- 用量 -->
- <template v-slot:dosageHead="{ column }">
- <div>
- <span class="is-required">{{ column.label }}</span>
- </div>
- </template>
- <template v-slot:dosage="{ row }">
- <el-input
- v-model="row.dosage"
- placeholder="请输入"
- size="mini"
- style="width: 90px"
- :disabled="
- attributeData.approvalStatus == 1 ||
- attributeData.approvalStatus == 2 ||
- isWt
- "
- @input="handleInput(row)"
- >
- </el-input>
- </template>
- <template v-slot:versions="{ row }"> V{{ row.versions }}.0 </template>
- <template v-slot:rootCategoryLevelId="{ row }"
- >{{ rootCategoryLevelIdText(row.rootCategoryLevelId) }}
- </template>
- <template v-slot:produceType="{ row }">
- <el-select
- v-model="row.produceType"
- filterable
- multiple
- disabled
- class="ele-block"
- size="mini"
- >
- <el-option
- v-for="item in produceTypeList"
- :key="item.value"
- :value="item.value"
- :label="item.label"
- ></el-option>
- </el-select>
- </template>
- <template v-slot:attributeType="{ row }">
- <!-- <el-select
- v-model="row.attributeType"
- filterable
- disabled
- class="ele-block"
- size="mini"
- >
- <el-option
- v-for="item in attributeList"
- :key="item.value"
- :value="item.value"
- :label="item.label"
- ></el-option>
- </el-select> -->
- {{ attributeTypeText(row.attributeType) }}
- </template>
- <template v-slot:componentAttribute="{ row }">
- <div>
- <el-select
- v-model="row.componentAttribute"
- filterable
- multiple
- disabled
- class="ele-block"
- size="mini"
- >
- <el-option
- v-for="item in sxtList"
- :key="item.value"
- :value="item.value"
- :label="item.label"
- ></el-option>
- </el-select>
- </div>
- </template>
- <template v-slot:resourceBomVersion="{ row }">
- <div>
- <el-select
- v-model="row.resourceBomVersion"
- class="ele-block"
- size="mini"
- :disabled="row.approvalStatus == 2 || row.approvalStatus == 1"
- @change="resourceBomVersionFn($event, row)"
- >
- <el-option
- v-for="item in row.resourceBomVersionList"
- :key="item.versions"
- :value="item.versions"
- :label="'V' + item.versions + '.0'"
- ></el-option>
- </el-select>
- </div>
- <!-- <div v-if="!row.id">
- <el-select
- v-model="row.resourceBomVersion"
- disabled
- class="ele-block"
- size="mini"
- @change="resourceBomVersionFn($event, row)"
- >
- <el-option
- v-for="item in row.resourceBomVersionList"
- :key="item.versions"
- :value="item.versions"
- :label="'V' + item.versions + '.0'"
- ></el-option>
- </el-select>
- </div>
- <div v-else-if="row.resourceBomVersion">
- {{ 'V' + row.resourceBomVersion + '.0' }}
- </div> -->
- </template>
- <template v-slot:materielDesignation="{ row }">
- <el-input
- v-model="row.materielDesignation"
- placeholder="请输入物料代号"
- size="mini"
- style="width: 120px"
- >
- </el-input>
- </template>
- <template v-slot:supplierId="{ row }">
- <el-select
- v-model="row.supplierId"
- size="mini"
- clearable
- class="ele-block"
- filterable
- placeholder="请选择供应商"
- >
- <el-option
- v-for="(item, index) in gysList"
- :key="item.id + index"
- :value="item.id"
- :label="item.name"
- ></el-option>
- </el-select>
- </template>
- <template v-slot:factories="{ row }">
- <div style="display: flex">
- <el-input
- v-model="row.factories"
- disabled
- :value="row.factories"
- placeholder="请选择生产厂家"
- size="mini"
- style="width: 120px"
- >
- </el-input>
- <!-- -->
- <el-button
- type="primary"
- @click="factoriesFn(row.code)"
- v-if="row.approvalStatus != 2 && row.approvalStatus != 1"
- >选择</el-button
- >
- <!-- <el-select v-model="row.factories" size="mini" clearable class="ele-block" filterable placeholder="请选择生产厂家">
- <el-option v-for="(item, index) in sccjList" :key="item.id + index" :value="item.id"
- :label="item.name"></el-option>
- </el-select> -->
- </div>
- <!-- <el-input v-model="row.factories" placeholder="请输入生产厂家" size="mini" style="width: 120px">
- </el-input> -->
- </template>
- <!-- 表头工具栏 -->
- <template v-slot:action="{ row, $index }">
- <el-link
- v-if="
- attributeData.approvalStatus != 1 &&
- attributeData.approvalStatus != 2 &&
- !isWt
- "
- type="danger"
- :underline="false"
- icon="el-icon-delete"
- @click="handleDel(row, $index)"
- >
- 删除
- </el-link>
- </template>
- </ele-pro-table>
- <bomTreeDialog ref="bomTreeDialogRef" @reload="bomClose" />
- <standardOutput
- ref="standardOutputRefs"
- @selection="chooseStandardList"
- ></standardOutput>
- <clientDialog
- ref="clientSelectionRef"
- @success="confirmSelection"
- ></clientDialog>
- </div>
- </template>
- <script>
- import BOMSearch from './BOM-search.vue';
- import {
- getBomPageCategoryId,
- contactList,
- deleteBomTreeList,
- updateBatchBOM,
- sourceBomVersion
- } from '@/api/material/BOM';
- import clientDialog from './clientDialog.vue';
- import { getByCode } from '@/api/system/dictionary-data';
- import bomTreeDialog from './bomTreeDialog.vue';
- import { produceTypeList } from '@/enum/dict.js';
- import standardOutput from './standardOutput.vue';
- export default {
- name: 'SystemDictionary',
- components: { BOMSearch, bomTreeDialog, standardOutput, clientDialog },
- data() {
- return {
- produceTypeList,
- pagination: {
- tableTotal: 0
- },
- // 表格列配置
- columns: [
- {
- label: '序号',
- columnKey: 'index',
- type: 'index',
- width: 55,
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'code',
- label: 'BOM编码',
- showOverflowTooltip: true,
- width: 120
- },
- {
- prop: 'categoryCode',
- label: '物品编码',
- showOverflowTooltip: true,
- width: 120
- },
- {
- prop: 'name',
- label: '名称',
- width: 150
- },
- {
- prop: 'level',
- label: '层级'
- },
- {
- prop: 'brandNum',
- label: '牌号'
- },
- {
- prop: 'modelType',
- label: '型号',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'specification',
- label: '规格',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'rootCategoryLevelId',
- slot: 'rootCategoryLevelId',
- label: '物品分类',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'dosage',
- slot: 'dosage',
- label: '用量',
- width: 100,
- headerSlot: 'dosageHead'
- },
- {
- prop: 'measuringUnit',
- label: '计量单位',
- showOverflowTooltip: true
- },
- {
- prop: 'produceType',
- slot: 'produceType',
- label: '生产类型',
- width: 260
- },
- {
- prop: 'attributeType',
- slot: 'attributeType',
- label: '存货类型',
- width: 260
- },
- {
- prop: 'componentAttribute',
- slot: 'componentAttribute',
- label: '属性类型',
- width: 260
- },
- {
- prop: 'materielDesignation',
- slot: 'materielDesignation',
- label: '物料代号',
- width: 150
- },
- {
- prop: 'supplierId',
- slot: 'supplierId',
- label: '供应商',
- width: 150
- },
- {
- prop: 'factories',
- slot: 'factories',
- label: '生产厂家',
- width: 180
- },
- {
- prop: 'resourceBomVersion',
- slot: 'resourceBomVersion',
- label: '来源版本',
- width: 180
- },
- {
- prop: 'versions',
- slot: 'versions',
- label: '版本'
- },
- {
- prop: 'status ',
- label: '状态',
- formatter: (row) => {
- return this.statusOpt[+row.status];
- }
- },
- {
- prop: 'createName',
- label: '创建人',
- showOverflowTooltip: true
- },
- {
- prop: 'createTime',
- label: '创建日期',
- width: 160
- },
- {
- action: 'action',
- slot: 'action',
- fixed: 'right',
- label: '操作',
- width: 120
- }
- ],
- statusOpt: {
- '': '全部',
- 0: '草稿',
- 1: '已发布'
- },
- dictList: [
- {
- label: '加工',
- value: 1
- },
- {
- label: '装配',
- value: 3
- }
- ],
- attributeList: [
- // {
- // label: '总装',
- // value: 1
- // },
- // {
- // label: '部件',
- // value: 2
- // },
- // {
- // label: '零件',
- // value: 3
- // },
- // {
- // label: '原材料',
- // value: 4
- // }
- ],
- sxtList: [
- {
- label: '自制件',
- value: 1
- },
- {
- label: '采购件',
- value: 2
- },
- {
- label: '外协件',
- value: 3
- },
- {
- label: '受托件',
- value: 4
- }
- ],
- rootCategoryLevelIdList: [
- {
- label: '产品',
- value: 9
- },
- {
- label: '物料',
- value: 1
- },
- {
- label: '生产设备',
- value: 4
- },
- {
- label: '模具',
- value: 5
- },
- {
- label: '备品备件',
- value: 6
- },
- {
- label: '零部件',
- value: 3
- },
- {
- label: '舟皿',
- value: 8
- },
- {
- label: '消耗材料',
- value: 10
- },
- {
- label: '包装材料',
- value: 13
- },
- {
- label: '生产辅助设备',
- value: 14
- },
- {
- label: '仪表计量设备',
- value: 15
- },
- {
- label: '会计科目',
- value: 23
- },
- {
- label: '周转盘',
- value: 26
- },
- {
- label: '废品',
- value: 28
- },
- {
- label: '周转车',
- value: 7
- }
- ],
- isList: false,
- isId: null,
- tableKey: '',
- list: [], //表格数据
- listTow: [],
- newList: [],
- gysList: [],
- sccjList: [],
- newTreeId: null,
- responsesList: [],
- tableHeight: 'calc(100vh - 450px)'
- // dictList: []
- };
- },
- created() {
- this.getAttriButeList('inventory_type');
- // this.getDictList('productionType');
- // this.getZeroPartPros('zeroPartPros');
- this.getContactList();
- },
- mounted() {},
- props: {
- attributeData: {
- type: Object,
- default: {}
- },
- isWt: {
- type: Boolean,
- default: false
- },
- treeId: {
- type: String,
- default: ''
- },
- isTemp: {
- type: Number,
- default: 0
- }
- },
- watch: {
- treeId: {
- handler(val) {
- this.newTreeId = val;
- },
- deep: true,
- immediate: true
- },
- 'attributeData.id': {
- handler(val) {
- this.$nextTick(() => {
- console.log(val, '66666666');
- this.reload();
- });
- },
- deep: true,
- immediate: true
- },
- data: {
- handler(val) {
- console.log(val);
- // this.$nextTick(() => {
- // this.reload();
- // });
- },
- deep: true,
- immediate: true
- }
- },
- // computed: {
- // processedItems() {
- // return this.list.map(item => {
- // // 处理逻辑
- // console.log(item);
- // // return processedItem;
- // });
- // }
- // },
- mounted() {},
- methods: {
- attributeTypeText(v) {
- if (v) {
- let a = this.attributeList.find((item) => item.value == v);
- return a ? a.label : '';
- }
- },
- async getAttriButeList(code) {
- let { data: res } = await getByCode(code);
- this.attributeList = res.map((item) => {
- let values = Object.keys(item);
- return {
- value: Number(values[0]),
- label: item[values[0]]
- };
- });
- },
- rootCategoryLevelIdText(v) {
- console.log(v, '111111');
- console.log(
- this.rootCategoryLevelIdList,
- 'this.rootCategoryLevelIdList'
- );
- if (v) {
- let a = this.rootCategoryLevelIdList.find((item) => item.value == v);
- return a ? a.label : '';
- }
- },
- handleInput(item) {
- let newVal = item.dosage.replace(/[^\d.]/g, '');
- // 2. 不能以点开头
- if (newVal.startsWith('.')) {
- newVal = '';
- }
- // 3. 只允许出现一个小数点
- const firstDotIndex = newVal.indexOf('.');
- if (firstDotIndex !== -1) {
- newVal =
- newVal.slice(0, firstDotIndex + 1) +
- newVal.slice(firstDotIndex + 1).replace(/\./g, '');
- }
- const match = newVal.match(/^(\d+)(\.\d{0,4})?/);
- item.dosage = match ? match[0] : '';
- // 4. 更新数据
- // item.dosage = newVal;
- },
- factoriesFn(code) {
- this.isId = code;
- this.$refs.clientSelectionRef.open();
- },
- // 选择工厂
- confirmSelection(obj) {
- let list = this.$refs.table.getData();
- list.map((v) => {
- if (v.code == this.isId) {
- v.factories = obj.name;
- }
- });
- console.log(list, 'list');
- // arr.factories = obj.name;
- this.$nextTick(() => {
- this.list = [...list];
- this.listTow = JSON.parse(JSON.stringify(this.list));
- this.$refs.table.setData(this.list);
- this.updateFn();
- this.tableKey = Date.now();
- });
- this.$forceUpdate();
- },
- updateFn(list) {
- this.isList = true;
- this.reload();
- setTimeout(() => {
- this.isList = false;
- }, 1000);
- },
- /* 表格数据源 */
- async datasource({ where, page, limit }) {
- // let that = this;
- // console.log(getBomPageCategoryId({
- // ...where,
- // pageNum: page,
- // size: limit,
- // id: this.attributeData.id,
- // bomType: this.attributeData.bomType
- // }));
- // return new Promise((resolve, reject) => {
- // getBomPageCategoryId({
- // ...where,
- // pageNum: page,
- // size: limit,
- // id: that.attributeData.id,
- // bomType: that.attributeData.bomType
- // }).then((res) => {
- // console.log(res, '111111111111');
- // if(res.list && res.list.length ){
- // const arrays = []
- // res.list.map((item) => {
- // arrays.push(item.categoryId);
- // });
- // that.getResourceBomVersionListFn(arrays).then(v => {
- // v.map(element => {
- // res.list.map((item2, i) => {
- // if (element.categoryId == item2.id) {
- // item2.resourceBomVersionList.push(element);
- // }
- // item2.resourceBomVersion = item2.resourceBomVersionList[0].versions;
- // item2.resourceBomId = item2.resourceBomVersionList[0].resourceBomId;
- // // item2.id ="";
- // })
- // })
- // this.$nextTick(() => {
- // resolve(res);
- // })
- // })
- // }
- // })
- // .catch((err) => {
- // reject(err);
- // });
- // });
- let data = await getBomPageCategoryId({
- ...where,
- pageNum: page,
- size: limit,
- id: this.attributeData.id,
- bomType: this.attributeData.bomType
- });
- if (this.isList) {
- data = this.listTow;
- }
- // data.list.forEach((item) => {
- // if (!item.supplierId && item.supplierList.length != 0) {
- // item.supplierId = item.supplierList[0].id;
- // }
- // });
- // console.log(data, 'data');
- return data;
- },
- /* 刷新表格 */
- reload(where) {
- this.$refs.table.reload({ where });
- },
- async getDictList(code) {
- let { data: res } = await getByCode(code);
- this.dictList = res.map((item) => {
- let values = Object.keys(item);
- return {
- value: Number(values[0]),
- label: item[values[0]]
- };
- });
- },
- // async getZeroPartPros(code) {
- // let { data: res } = await getByCode(code);
- // let sxtList = res.map((item) => {
- // let values = Object.keys(item);
- // return {
- // value: Number(values[0]),
- // label: item[values[0]]
- // };
- // });
- // this.$nextTick(() => {
- // this.$set(this, 'sxtList', sxtList);
- // });
- // },
- getContactList() {
- let param = {
- pageNum: 1,
- type: 2,
- size: -1,
- status: 1
- };
- contactList(param).then((res) => {
- this.gysList = res.list;
- });
- },
- handleAdd() {
- // // 打开树形对话框
- // this.$refs.bomTreeDialogRef.open(
- // this.attributeData.bomType,
- // this.attributeData.versions,
- // this.attributeData.categoryId,
- // this.newTreeId,
- // this.isTemp
- // );
- let _list = this.$refs.table.getData() ?? [];
- this.$refs.standardOutputRefs.open(_list);
- },
- // 勾选
- async chooseStandardList(data) {
- const that = this;
- const arrays = [];
- data.map((m) => {
- m.parentId = this.newTreeId;
- m.createTime = '';
- m.bomType = this.attributeData.bomType;
- m.level = Number(this.attributeData.level) + 1;
- m.categoryCode = m.code;
- m.code = '';
- m.versions = this.attributeData.versions;
- m.categoryId = m.id;
- // m.dosage = 1;
- m.componentAttribute = m.componentAttribute;
- m.rootCategoryLevelId = m.categoryLevelPathIdParent;
- m.resourceBomVersionList = [];
- arrays.push(m.id);
- });
- this.getResourceBomVersionListFn(arrays).then((v) => {
- if (v.length) {
- v.map((element) => {
- data.map((item2, i) => {
- if (element.categoryId == item2.id) {
- item2.resourceBomVersionList.push(element);
- }
- if (item2.resourceBomVersionList.length) {
- item2.resourceBomVersion =
- item2.resourceBomVersionList[0].versions;
- item2.resourceBomId =
- item2.resourceBomVersionList[0].resourceBomId;
- }
- setTimeout(() => {
- item2.id = '';
- }, 100);
- });
- });
- }
- this.$nextTick(() => {
- data.map((v) => {
- v.id = '';
- });
- this.list = [...data, ...this.$refs.table.getData()];
- this.$refs.table._data.tableTotal = this.list.length;
- this.$refs.table.setData(this.list);
- });
- });
- // this.$nextTick(() => {
- // this.list = [...data, ...this.$refs.table.getData()];
- // console.log(this.list,'9999999999');
- // // this.$refs.table.setData(this.list);
- // console.log(this.$refs.table._data,'this.$refs.table');
- // // this.$refs.table._data.tableData = [];
- // //
- // // this.$set(this.$refs.table._data,"tableData",this.list);
- // // this.bomClose();
- // });
- },
- resourceBomVersionFn(e, row) {
- let arr = row.resourceBomVersionList.find((item) => item.versions == e);
- row.resourceBomVersion = arr.versions;
- row.resourceBomId = arr.id;
- this.$forceUpdate();
- console.log(row);
- },
- async getResourceBomVersionListFn(id) {
- return new Promise((resolve, reject) => {
- sourceBomVersion({
- bomType: this.attributeData.bomType,
- categoryIds: id
- }).then((res) => {
- resolve(res.data);
- });
- });
- },
- bomClose() {
- this.$nextTick(() => {
- this.$refs.table.reload({
- pageNum: 1
- });
- });
- },
- handleDel(row, i) {
- this.$confirm('是否确认删除?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- if (row.id) {
- deleteBomTreeList([row.id]).then((msg) => {
- this.$message.success('删除' + msg);
- this.$refs.table.reload({
- pageNum: 1
- });
- });
- } else {
- let _list = this.$refs.table.getData() ?? [];
- _list.splice(i, 1);
- // _list = _list.filter((item) => item.id !== row.id);
- this.$refs.table.setData(_list);
- }
- })
- .catch(() => {});
- },
- fullscreenChange(fullscreen) {
- if (fullscreen) {
- this.tableHeight = 'calc(100vh - 120px)';
- } else {
- this.tableHeight = 'calc(100vh - 450px)';
- }
- },
- handleSave() {
- let _list = this.$refs.table.getData() ?? [];
- if (_list.length == 0) {
- return this.$message.info('明细表最少有一条数据');
- }
- let list = JSON.parse(JSON.stringify(_list));
- console.log(list, 'list');
- const arr = list.every((v) => {
- return v.dosage && v.quantity !== '';
- });
- if (!arr) {
- return this.$message.info('用量不能为空');
- }
- // console.log(list);
- // return
- updateBatchBOM(list).then((res) => {
- if (res) {
- this.$message.success('保存成功');
- this.reload();
- // this.$refs.table.reload({
- // pageNum: 1
- // });
- }
- });
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .ele-body {
- height: 100%;
- ::v-deep .el-card {
- height: 100%;
- .el-card__body {
- height: 100%;
- display: flex;
- flex-direction: column;
- .dict-table {
- flex: 1;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- .el-table {
- flex: 1;
- overflow-y: auto;
- }
- }
- }
- }
- }
- .toolbar_box {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .toolbar_box_right {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 10px;
- > span {
- width: 150px;
- }
- > div {
- margin-left: 10px;
- }
- }
- }
- </style>
|