yudao-dev/src/views/quality/base/qualityHotMaterial/add-or-updata.vue

641 lines
22 KiB
Vue
Raw Normal View History

2023-12-13 16:50:55 +08:00
<!--
* @Author: zhp
* @Date: 2023-12-08 13:46:17
2024-04-10 16:52:18 +08:00
* @LastEditTime: 2024-04-10 16:46:44
2023-12-13 16:50:55 +08:00
* @LastEditors: zhp
* @Description:
-->
<template>
2024-03-21 16:34:34 +08:00
<el-drawer :visible.sync="visible" :show-close="true" :wrapper-closable="true" class="drawer" size="50%">
2024-01-16 16:09:52 +08:00
<small-title slot="title" :no-padding="true" @close="handleClose">
2023-12-13 16:50:55 +08:00
{{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }}
</small-title>
<div class="content">
<!-- <div class="visual-part"> -->
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
2023-12-15 16:27:30 +08:00
label-width="auto">
2023-12-13 16:50:55 +08:00
<el-row :gutter="24">
<el-col :span="8">
2023-12-15 16:27:30 +08:00
<el-form-item label="供应商" prop="supplierId"
:rules="[{ required: true, message: '供应商不能为空', trigger: 'change' }]">
<el-select v-model="dataForm.supplierId" filterable :disabled="isdetail" placeholder="请选择供应商">
2023-12-13 16:50:55 +08:00
<el-option v-for="dict in supplierList" :key=" dict.id" :label="dict.name" :value="dict.id" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
2023-12-15 16:27:30 +08:00
<el-form-item label="原料" prop="materialId"
:rules="[{ required: true, message: '原料不能为空', trigger: 'change' }]">
<el-select v-model="dataForm.materialId" filterable :disabled="isdetail" @change="getData"
placeholder="请选择原料">
2023-12-13 16:50:55 +08:00
<el-option v-for="dict in materialList" :key=" dict.id" :label="dict.name" :value="dict.id" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
2023-12-15 16:27:30 +08:00
<el-form-item label="样品编码" prop="sampleCode"
:rules="[{ required: true, message: '样品编号不能为空', trigger: 'blur' }]">
2023-12-13 16:50:55 +08:00
<el-input v-model="dataForm.sampleCode" clearable :disabled="isdetail" placeholder="请输入样品编码" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24">
<el-col :span="8">
<el-form-item label="取样人" prop="samplerId">
2023-12-15 16:27:30 +08:00
<el-select v-model="dataForm.samplerId" filterable :disabled="isdetail" placeholder="请选择取样人">
2023-12-13 16:50:55 +08:00
<el-option v-for="dict in workerList" :key=" dict.id" :label="dict.name" :value="dict.id" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
2023-12-15 16:27:30 +08:00
<el-form-item label="检测人" prop="checkerId"
:rules="[{ required: true, message: '检测人不能为空', trigger: 'change' }]">
<el-select v-model="dataForm.checkerId" filterable :disabled="isdetail" placeholder="请选择检测人">
2023-12-13 16:50:55 +08:00
<el-option v-for="dict in workerList" :key=" dict.id" :label="dict.name" :value="dict.id" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
2023-12-15 16:27:30 +08:00
<el-form-item label="检测时间" prop="checkTime"
:rules="[{ required: true, message: '检测时间不能为空', trigger: 'change' }]">
2024-03-13 14:54:35 +08:00
<el-date-picker value-format="timestamp" v-model="dataForm.checkTime" type="datetime"
placeholder="选择检测时间">
2023-12-13 16:50:55 +08:00
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
2023-12-15 16:27:30 +08:00
<el-divider content-position="center">检测结果</el-divider>
<el-row :gutter="24">
<el-form-item label="外观合格" prop="appearance">
<el-radio :disabled="isdetail" v-model="dataForm.appearance" :label="true">合格</el-radio>
<el-radio :disabled="isdetail" v-model="dataForm.appearance" :label="false">不合格</el-radio>
</el-form-item>
</el-row>
<el-row :gutter="24" v-for="(item,index) in ingredientList" :key="item.id">
2024-04-10 16:52:18 +08:00
<el-col :span="4">
2023-12-15 16:27:30 +08:00
<el-form-item label="成分">
{{ item.name }}
</el-form-item>
</el-col>
2024-03-25 16:57:41 +08:00
<el-col :span="6">
2024-04-10 16:52:18 +08:00
<el-form-item :prop="'checkValueList.' + index + '.minCheckValue'" label="最小检测值"
2023-12-15 16:27:30 +08:00
:rules="[{ required: true, message: '成分含量不能为空', trigger: 'blur' }]">
2024-03-13 14:54:35 +08:00
<el-input oninput="value=value.replace(/[^\d]/g,'')" :disabled="isdetail"
2024-03-01 15:27:01 +08:00
style="width: 90%;margin-right: 10px;" :max="item.maxValue" :min='item.minValue'
v-model.number="dataForm.checkValueList[index].checkValue"
2023-12-15 16:27:30 +08:00
@change="judgeValue(arguments[0],item.minValue,item.maxValue,index)"></el-input>
<span v-if="dataForm.checkValueList[index].showIcon">
<!-- <i class="el-icon-success"></i> -->
<svg-icon v-if="dataForm.checkValueList[index].isStandard" icon-class="standards" />
<svg-icon v-else icon-class="noStandards" />
</span>
</el-form-item>
</el-col>
2024-03-25 16:57:41 +08:00
<el-col :span="6">
2024-04-10 16:52:18 +08:00
<el-form-item :prop="'checkValueList.' + index + '.maxCheckValue'" label="最大检测值"
:rules="[{ required: true, message: '成分含量不能为空', trigger: 'blur' }]">
<el-input oninput="value=value.replace(/[^\d]/g,'')" :disabled="isdetail"
style="width: 90%;margin-right: 10px;" :max="item.maxValue" :min='item.minValue'
v-model.number="dataForm.checkValueList[index].checkValue"
@change="judgeValue(arguments[0],item.minValue,item.maxValue,index)"></el-input>
<span v-if="dataForm.checkValueList[index].showIcon">
<!-- <i class="el-icon-success"></i> -->
<svg-icon v-if="dataForm.checkValueList[index].isStandard" icon-class="standards" />
<svg-icon v-else icon-class="noStandards" />
</span>
</el-form-item>
</el-col>
<el-col :span="4">
2024-03-01 15:27:01 +08:00
<el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最小值">
2024-01-16 16:09:52 +08:00
<el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.minValue"></el-input>
</el-form-item>
</el-col>
2024-04-10 16:52:18 +08:00
<el-col :span="4">
2024-03-01 15:27:01 +08:00
<el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最大值">
2024-01-16 16:09:52 +08:00
<el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.maxValue"></el-input>
</el-form-item>
</el-col>
2023-12-15 16:27:30 +08:00
</el-row>
<el-row :gutter="24">
<el-col :span="8">
<el-form-item label="判断结果" prop="checkResult">
<el-select :disabled="isdetail" v-model="dataForm.checkResult" placeholder="请选择">
<el-option v-for="item in checkResultList" :key="item.id" :label="item.name" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="原料等级" prop="materialGrade">
2024-03-21 16:34:34 +08:00
<el-select :disabled="isdetail" v-model="dataForm.materialGrade" placeholder="请选择">
2023-12-15 16:27:30 +08:00
<el-option v-for="item in gradeList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="备注" prop="remark">
2024-03-21 16:34:34 +08:00
<el-input @input="onInput" :disabled="isdetail" v-model="dataForm.remark" placeholder="请填写备注">
2023-12-15 16:27:30 +08:00
</el-input>
</el-form-item>
2023-12-13 16:50:55 +08:00
</el-form>
2023-12-15 16:27:30 +08:00
2023-12-13 16:50:55 +08:00
<!-- </div> -->
2024-03-21 16:34:34 +08:00
<!-- <div class="attr-list" v-if="idAttrShow"> -->
<!-- <small-title style="margin: 16px 0; padding-left: 8px" :no-padding="true">
2023-12-13 16:50:55 +08:00
设备物料明细
</small-title>
<div v-if="!isdetail" class="action_btn">
<template>
<span style="display: inline-block;">
<el-button type="text" @click="addNew()" icon="el-icon-plus">新增</el-button>
</span>
</template>
</div>
<base-table :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize"
:table-data="productAttrList">
<method-btn v-if="!isdetail" slot="handleBtn" :width="120" label="操作" :method-list="tableBtn"
@clickBtn="handleClick" />
</base-table>
<pagination v-show="listQuery.total > 0" :total="listQuery.total" :page.sync="listQuery.pageNo"
:limit.sync="listQuery.pageSize" :page-sizes="[5, 10, 15]" @pagination="getList" /> -->
2024-03-21 16:34:34 +08:00
<!-- </div> -->
2023-12-13 16:50:55 +08:00
</div>
2024-03-21 16:34:34 +08:00
<div v-if="!isdetail" class="drawer-body__footer">
2023-12-13 16:50:55 +08:00
<el-button style="" @click="goback()">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</div>
<!-- <attr-add v-if="addOrUpdateVisible" ref="addOrUpdate" :product-id="dataForm.id" @refreshDataList="getList" /> -->
</el-drawer>
</template>
<script>
// import basicAdd from '../../core/mixins/basic-add';
import {
getQualityHotMaterial,
updateQualityHotMaterial,
createQualityHotMaterial,
getHotMaterialAllList,
getSupplierList,
getWorkerList,
2023-12-15 16:27:30 +08:00
getMaterialCheckList,
createQualityHotMaterialDet,
updateQualityHotMaterialDet,
getQualityHotMaterialDetList
2023-12-13 16:50:55 +08:00
} from '@/api/base/qualityHotMaterial';
import SmallTitle from './SmallTitle';
2023-12-15 16:27:30 +08:00
import { DICT_TYPE, getDictDatas } from "@/utils/dict";
import { create } from 'domain';
2023-12-13 16:50:55 +08:00
// import { parseTime } from '../../core/mixins/code-filter';
// import attrAdd from './attr-add';
// import {DICT_TYPE, getDictDatas} from "@/utils/dict";
// import { publicFormatter } from '@/utils/dict';
const topBtnConfig = [
{
type: 'add',
btnName: 'btn.add'
}
]
export default {
// mixins: [basicAdd],
components: { SmallTitle },
data() {
return {
// tableBtn,
// tableProps,
// topBtnConfig,
addOrUpdateVisible: false,
urlOptions: {
isGetCode: false,
// codeURL: getCode,
createURL: createQualityHotMaterial,
updateURL: updateQualityHotMaterial,
infoURL: getQualityHotMaterial,
2023-12-15 16:27:30 +08:00
},
gradeList:[],
checkResultList: [{
id: true,
name:'合格',
},
{
id: false,
name: '不合格',
}
],
2023-12-13 16:50:55 +08:00
listQuery: {
pageSize: 10,
pageNo: 1,
total: 0,
},
materialList: [],
workerList: [],
supplierList:[],
2023-12-15 16:27:30 +08:00
equipmentList: [],
ingredientFlag:false,
ingredientList:[],
2023-12-13 16:50:55 +08:00
dataForm: {
id: undefined,
materialId:null,
supplierId: null,
sampleCode: null,
samplerId: null,
checkerId: null,
checkTime: null,
appearance: null,
checkResult: null,
materialGrade: null,
2023-12-15 16:27:30 +08:00
checkValueList: [],
checkResult: '',
materialGrade: undefined,
2024-03-21 16:34:34 +08:00
remark:undefined,
2023-12-13 16:50:55 +08:00
},
productAttrList: [],
visible: false,
isdetail: false,
idAttrShow: false,
dataRule: {
// code: [{ required: true, message: "设备物料编码不能为空", trigger: "blur" }],
name: [{ required: true, message: "设备物料名称不能为空", trigger: "blur" }],
2024-03-18 16:00:56 +08:00
equipmentId: [{ required: true, message: "设备名称不能为空", trigger: "change" }],
checkResult: [{ required: true, message: "判定结果不能为空", trigger: "change" }],
2023-12-13 16:50:55 +08:00
// : [{ required: true, message: "产品类型不能为空", trigger: "change" }],
// processTime: [{ required: true, message: "产线生产单位用时不能为空", trigger: "blur" }]
}
};
},
mounted() {
},
methods: {
2024-03-21 16:34:34 +08:00
onInput() {
this.$forceUpdate();
},
2023-12-15 16:27:30 +08:00
judgeValue(val, minValue, maxValue, index) {
if (val >= minValue && val <= maxValue) {
2024-01-23 16:22:25 +08:00
console.log(val)
2023-12-15 16:27:30 +08:00
this.dataForm.checkValueList[index].showIcon = true
this.dataForm.checkValueList[index].isStandard = true
} else {
this.dataForm.checkValueList[index].showIcon = true
this.dataForm.checkValueList[index].isStandard = false
}
},
2024-01-16 16:09:52 +08:00
handleClose() {
2024-03-21 16:34:34 +08:00
this.ingredientList = []
2024-01-16 16:09:52 +08:00
console.log(222222222);
},
2023-12-13 16:50:55 +08:00
dataFormSubmit() {
this.$refs["dataForm"].validate((valid) => {
if (!valid) {
return false;
}
// 修改的提交
if (this.dataForm.id) {
2023-12-15 16:27:30 +08:00
let obj = {
id: this.dataForm.id,
materialId: this.dataForm.materialId,
supplierId: this.dataForm.supplierId,
sampleCode: this.dataForm.sampleCode,
samplerId: this.dataForm.samplerId,
checkerId: this.dataForm.checkerId,
checkTime: this.dataForm.checkTime,
appearance: this.dataForm.appearance,
checkResult: this.dataForm.checkResult,
materialGrade: this.dataForm.materialGrade,
// checkValueList: [],
checkResult: this.dataForm.checkResult,
materialGrade: this.dataForm.materialGrade,
remark: this.dataForm.remark
}
this.urlOptions.updateURL(obj).then(response => {
let array = []
this.dataForm.checkValueList.forEach(ele => {
array.push(this.updateDet({
mainId: this.dataForm.id,
id:ele.id,
checkDetId: ele.checkDetId,
2024-04-10 16:52:18 +08:00
minCheckValue: ele.minCheckValue,
maxCheckValue: ele.maxCheckValue
2023-12-15 16:27:30 +08:00
}))
})
Promise.all(array).then(res => {
console.log(res)
this.visible = false;
2024-01-16 16:09:52 +08:00
this.$modal.msgSuccess("修改成功");
2023-12-15 16:27:30 +08:00
this.$emit("refreshDataList");
2024-01-16 16:09:52 +08:00
this.ingredientList = []
2023-12-15 16:27:30 +08:00
}).catch(error => {
// 如果任何一个请求失败,将会进入这个 catch 块
console.log(error)
})
2023-12-13 16:50:55 +08:00
});
return;
}
// 添加的提交
2023-12-15 16:27:30 +08:00
let obj = {
// id: this.dataForm.id,
materialId: this.dataForm.materialId,
supplierId: this.dataForm.supplierId,
sampleCode: this.dataForm.sampleCode,
samplerId: this.dataForm.samplerId,
checkerId: this.dataForm.checkerId,
checkTime: this.dataForm.checkTime,
appearance: this.dataForm.appearance,
checkResult: this.dataForm.checkResult,
materialGrade: this.dataForm.materialGrade,
// checkValueList: [],
checkResult: this.dataForm.checkResult,
materialGrade: this.dataForm.materialGrade,
remark:this.dataForm.remark
}
this.urlOptions.createURL(obj).then(response => {
// this.idAttrShow = true;
let array = []
this.dataForm.checkValueList.forEach(ele => {
array.push(this.createDet({
mainId: response.data,
checkDetId: ele.checkDetId,
2024-04-10 16:52:18 +08:00
minCheckValue: ele.minCheckValue,
maxCheckValue: ele.maxCheckValue
2023-12-15 16:27:30 +08:00
}))
})
Promise.all(array).then(res => {
this.$modal.msgSuccess("新增成功");
this.visible = false;
2024-01-16 16:09:52 +08:00
this.ingredientList= []
2023-12-15 16:27:30 +08:00
this.$emit("refreshDataList");
}).catch(error => {
// 如果任何一个请求失败,将会进入这个 catch 块
console.log(error)
})
// this.dataForm.id = res.data
2023-12-13 16:50:55 +08:00
});
});
},
2023-12-15 16:27:30 +08:00
createDet(obj) {
return createQualityHotMaterialDet(obj).then((response) => {
return response.data
})
},
updateDet(obj) {
return updateQualityHotMaterialDet(obj).then((response) => {
return response.data
})
},
2023-12-13 16:50:55 +08:00
getData(val) {
console.log(val);
getMaterialCheckList({
materialId:val
}).then((res) => {
2023-12-15 16:27:30 +08:00
this.ingredientList = res.data
this.ingredientFlag = true
this.dataForm.checkValueList = res.data.map((ele) => {
return {
mainId: null,
checkDetId: ele.id,
2024-04-10 16:52:18 +08:00
minCheckValue:null,
maxCheckValue: null,
2023-12-15 16:27:30 +08:00
isStandard: true,
showIcon:false,
}
})
// this.$set()
console.log(this.dataForm);
2023-12-13 16:50:55 +08:00
})
},
// clickTopBtn(val) {
// if (val === 'add') {
// this.addNew()
// }
// },
initData() {
this.productAttrList.splice(0);
this.listQuery.total = 0;
},
2023-12-15 16:27:30 +08:00
async getDict() {
2023-12-13 16:50:55 +08:00
getHotMaterialAllList().then((res) => {
this.materialList = res.data
})
getWorkerList().then((res) => {
this.workerList = res.data
})
getSupplierList().then(res => {
this.supplierList = res.data
})
2024-03-18 16:00:56 +08:00
const res = await getDictDatas(this.DICT_TYPE.MATERIAL_GRADE)
2023-12-15 16:27:30 +08:00
console.log('111', res)
this.gradeList = res
2023-12-13 16:50:55 +08:00
},
2023-12-15 16:27:30 +08:00
// handleClick(raw) {
// if (raw.type === 'delete') {
// this.$confirm(
// `确定对${
// raw.data.materialName
// ? '[物料名称为' + raw.data.materialName + ']'
// : '[序号为' + raw.data.materialName + ']'
// }进行删除操作?`,
// '提示',
// {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// }
// )
// .then(() => {
// deleteProcessEquMaterialBomDet(raw.data.id).then(({ data }) => {
// this.$message({
// message: '操作成功',
// type: 'success',
// duration: 1500,
// onClose: () => {
// this.getList();
// },
// });
// });
// })
// .catch(() => {});
// } else {
// this.addNew(raw.data.id);
// }
// },
// getList() {
// // 获取产品属性列表
// processEquMaterialBomDetPage({
// ...this.listQuery,
// bomId: this.dataForm.id,
// }).then((response) => {
// this.productAttrList = response.data.list;
// this.listQuery.total = response.data.total;
// });
// },
2023-12-13 16:50:55 +08:00
init(id, isdetail) {
2024-03-21 16:34:34 +08:00
// this.initData()
2023-12-13 16:50:55 +08:00
this.getDict()
2024-01-16 16:09:52 +08:00
this.ingredientList = []
2023-12-13 16:50:55 +08:00
this.isdetail = isdetail || false;
this.dataForm.id = id || undefined;
this.visible = true;
2024-03-21 16:34:34 +08:00
// if (id) {
// this.idAttrShow = true
// } else {
// this.idAttrShow = false
// }
2023-12-13 16:50:55 +08:00
this.$nextTick(() => {
this.$refs['dataForm'].resetFields();
if (this.dataForm.id) {
2023-12-15 16:27:30 +08:00
// 获取产品详情
let valueList = []
this.urlOptions.infoURL(id).then(response => {
2023-12-13 16:50:55 +08:00
this.dataForm = response.data
2023-12-15 16:27:30 +08:00
getMaterialCheckList({
materialId: response.data.materialId
}).then((res) => {
console.log(res.data);
2024-01-09 16:25:12 +08:00
let arr = res.data
valueList = arr.map((ele) => {
2023-12-15 16:27:30 +08:00
// console.log(ele)
return {
2024-01-16 16:09:52 +08:00
checkDetId:ele.id,
2023-12-15 16:27:30 +08:00
maxValue: ele.maxValue,
minValue: ele.minValue
}
})
2024-01-23 16:22:25 +08:00
console.log(valueList);
2023-12-15 16:27:30 +08:00
getQualityHotMaterialDetList({
mainId: response.data.id
}).then((result) => {
2024-01-09 16:25:12 +08:00
this.ingredientList = result.data.map((ele) => {
return {
name: ele.checkName,
id: ele.id,
2024-01-23 16:22:25 +08:00
checkDetId: ele.checkDetId,
2024-01-09 16:25:12 +08:00
checkValue: ele.checkValue,
2024-01-16 16:09:52 +08:00
maxValue:null,
minValue: null
2024-01-09 16:25:12 +08:00
}
})
console.log(this.ingredientList);
2023-12-15 16:27:30 +08:00
this.dataForm.checkValueList = result.data.map((ele) => {
return {
mainId: ele.mainId,
id: ele.id,
2024-01-23 16:22:25 +08:00
checkDetId: ele.checkDetId,
2023-12-15 16:27:30 +08:00
checkValue: ele.checkValue,
isStandard: true,
showIcon: false,
}
})
2024-01-23 16:22:25 +08:00
this.ingredientList.forEach((ele, i) => {
valueList.forEach((item, index) => {
if (ele.checkDetId == item.checkDetId) {
this.ingredientList[i].minValue = item.minValue
this.ingredientList[i].maxValue = item.maxValue
2023-12-15 16:27:30 +08:00
}
2024-01-23 16:22:25 +08:00
})
})
valueList.forEach((ele, index) => {
this.dataForm.checkValueList.forEach((item, i) => {
if (ele.checkDetId == item.checkDetId && item.checkValue >= ele.minValue && item.checkValue <= ele.maxValue) {
console.log(1111)
item.showIcon = true
item.isStandard = true
} else {
item.showIcon = true
item.isStandard = false
}
})
2023-12-15 16:27:30 +08:00
})
})
});
})
2023-12-13 16:50:55 +08:00
// 获取产品属性列表
2023-12-15 16:27:30 +08:00
// this.getList();
2023-12-13 16:50:55 +08:00
} else {
2024-03-21 16:34:34 +08:00
// if (this.urlOptions.isGetCode) {
// this.getCode()
// }
2023-12-13 16:50:55 +08:00
}
});
},
goback() {
this.$emit('refreshDataList');
2024-01-16 16:09:52 +08:00
this.visible = false
this.ingredientList = []
2023-12-13 16:50:55 +08:00
// this.initData();
},
goEdit() {
this.isdetail = false;
},
// 新增 / 修改
2024-03-21 16:34:34 +08:00
// addNew(id) {
// this.addOrUpdateVisible = true;
// this.$nextTick(() => {
// this.$refs.addOrUpdate.init(id,this.dataForm.id);
// });
// }
2023-12-13 16:50:55 +08:00
}
};
</script>
<style scoped>
.drawer >>> .el-drawer {
border-radius: 8px 0 0 8px;
display: flex;
flex-direction: column;
}
.drawer >>> .el-drawer__header {
margin: 0;
padding: 32px 32px 24px;
border-bottom: 1px solid #dcdfe6;
}
.drawer >>> .el-drawer__body {
flex: 1;
height: 1px;
display: flex;
flex-direction: column;
}
.drawer >>> .content {
padding: 30px 24px;
flex: 1;
display: flex;
flex-direction: column;
/* height: 100%; */
}
.drawer >>> .visual-part {
flex: 1 auto;
max-height: 76vh;
overflow: hidden;
overflow-y: scroll;
padding-right: 10px; /* 调整滚动条样式 */
}
.drawer >>> .el-form,
.drawer >>> .attr-list {
padding: 0 16px;
}
.drawer-body__footer {
display: flex;
justify-content: flex-end;
padding: 18px;
}
.action_btn {
float: right;
margin: -40px 15px;
font-size: 14px;
}
.add {
color: #0b58ff;
}
</style>