feat:设备管理修改
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<view
|
||||
class="label-my"
|
||||
:style="{ fontWeight: checkFeadToDetailField(field.headToDetailField) ? 'bold' : 'normal' }"
|
||||
>{{ field.label }}</view
|
||||
><text v-if="field.required" style="color: red">*</text>{{ field.label }}</view
|
||||
>
|
||||
<view class="content-my">
|
||||
<view v-if="field.type == 'title'" class="content-title">
|
||||
@@ -34,7 +34,7 @@
|
||||
:placeholder="field.placeholder"
|
||||
:disabled="field.disabled || field.fillingWay == 'calculate'"
|
||||
/>
|
||||
<uni-data-select
|
||||
<zxz-uni-data-select
|
||||
v-if="field.type == 'Select'"
|
||||
v-model="field.value"
|
||||
:multiple="field.multiple"
|
||||
@@ -162,6 +162,7 @@ async function loadTaskDetail() {
|
||||
label: item.fieldName,
|
||||
fieldKey: item.fieldKey,
|
||||
type: item.fieldType,
|
||||
required: customConfig.required,
|
||||
placeholder: '请输入',
|
||||
hidden: false
|
||||
}
|
||||
@@ -364,6 +365,14 @@ function looseEqual(a, b) {
|
||||
// 保存抬头字段(带确认弹窗)
|
||||
function saveHeadData() {
|
||||
if (!realFormData.value['assayTime']) return nx.$helper.showToast('请选择分析时间')
|
||||
// 校验动态字段是否为空
|
||||
|
||||
for (const field of formFields.value) {
|
||||
if (field.required && (!field.value || field.value?.length === 0)) {
|
||||
nx.$helper.showToast('请填写' + field.label)
|
||||
return
|
||||
}
|
||||
}
|
||||
if (checkPropertyEquality()) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
||||
Reference in New Issue
Block a user