录数据-临时修改-编码/数量选项

This commit is contained in:
bb_pan 2025-09-15 00:01:26 +08:00
parent f3caba7cdc
commit da18804cc2
1 changed files with 30 additions and 1 deletions

View File

@ -170,6 +170,7 @@ const equipmentDeployment = (row: any) => {
deviceCount: 1, deviceCount: 1,
originaValue: '', originaValue: '',
itemTypeModel: '', itemTypeModel: '',
deviceType: '',
buyPrice: '', buyPrice: '',
unitName: '', unitName: '',
code: '', code: '',
@ -270,6 +271,7 @@ const getDetailData = async (row: any) => {
deviceCount, deviceCount,
originaValue, originaValue,
itemTypeModel, itemTypeModel,
deviceType,
buyPrice, buyPrice,
unitName, unitName,
code, code,
@ -299,6 +301,7 @@ const getDetailData = async (row: any) => {
deviceCount, deviceCount,
originaValue, originaValue,
itemTypeModel, itemTypeModel,
deviceType,
buyPrice, buyPrice,
unitName, unitName,
code, code,
@ -521,6 +524,7 @@ const equipmentDeploymentParams: any = ref({
deviceCount: 1, deviceCount: 1,
originaValue: '', originaValue: '',
itemTypeModel: '', itemTypeModel: '',
deviceType: '',
buyPrice: '', buyPrice: '',
unitName: '', unitName: '',
code: '', code: '',
@ -545,7 +549,7 @@ const dialogTypeChange = async () => {
const deviceTypeList = dialogTypeCascader.value.getCheckedNodes() const deviceTypeList = dialogTypeCascader.value.getCheckedNodes()
console.log('deviceTypeList', deviceTypeList[0].data) console.log('deviceTypeList', deviceTypeList[0].data)
warningDays.value = deviceTypeList[0].data.maintenanceAlarmDay warningDays.value = deviceTypeList[0].data.maintenanceAlarmDay
if (deviceTypeList[0].data.manageType == 0) { if (deviceTypeList[0].data.deviceType == 0) {
addAndEditForm.deviceCount = 1 addAndEditForm.deviceCount = 1
typeDisabled.value = true typeDisabled.value = true
} else { } else {
@ -614,6 +618,13 @@ const equipRules = ref({
trigger: 'blur', trigger: 'blur',
}, },
], ],
deviceType: [
{
required: true,
message: '请选择管理方式',
trigger: 'change',
},
],
deviceName: [ deviceName: [
{ {
required: true, required: true,
@ -1056,6 +1067,7 @@ const addAndEditForm = reactive<any>({
deviceCount: 1, deviceCount: 1,
originaValue: '', originaValue: '',
itemTypeModel: '', itemTypeModel: '',
deviceType: '',
buyPrice: '', buyPrice: '',
unitName: '', unitName: '',
code: '', code: '',
@ -1298,6 +1310,7 @@ const onDialogClose = () => {
deviceCount: 1, deviceCount: 1,
originaValue: '', originaValue: '',
itemTypeModel: '', itemTypeModel: '',
deviceType: '',
buyPrice: '', buyPrice: '',
unitName: '', unitName: '',
code: '', code: '',
@ -1879,6 +1892,22 @@ const handleDel = (index: any) => {
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="规格型号:" prop="deviceType">
<!-- 0 编码 1 数量 -->
<el-select
v-model="addAndEditForm.deviceType"
placeholder="请选择管理方式"
clearable
style="width: 100%;"
:disabled="!isAdd"
>
<el-option label="编码" :value="0" />
<el-option label="数量" :value="1" />
</el-select>
<span style="color: red">说明编码管理按一台一台管理一台设备一个唯一编码数量管理支持同规格型号批量录入一般小型工器具</span>
</el-form-item>
</el-col>
<!-- 临时录入使用 - end --> <!-- 临时录入使用 - end -->
</el-row> </el-row>
<!-- 1.13 需求变动要求隐藏 --> <!-- 1.13 需求变动要求隐藏 -->