|
@@ -321,7 +321,12 @@ const rules = reactive<FormRules>({
|
|
|
// productionStatus: [{ required: true, message: '请输入生产动态', trigger: ['blur', 'change'] }],
|
|
// productionStatus: [{ required: true, message: '请输入生产动态', trigger: ['blur', 'change'] }],
|
|
|
reportDetails: [{ required: true, message: '请填写生产动态', type: 'array' }],
|
|
reportDetails: [{ required: true, message: '请填写生产动态', type: 'array' }],
|
|
|
constructionBrief: [
|
|
constructionBrief: [
|
|
|
- { required: true, message: '请填写施工简报', type: 'string', trigger: ['blur', 'change'] }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ required: isApproval.value,
|
|
|
|
|
+ message: '请填写施工简报',
|
|
|
|
|
+ type: 'string',
|
|
|
|
|
+ trigger: ['blur', 'change']
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
// 生产时间绑定校验
|
|
// 生产时间绑定校验
|
|
@@ -842,12 +847,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth(val: any, ind
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- v-if="isApproval"
|
|
|
|
|
- class="col-span-2"
|
|
|
|
|
- label="当日施工简报"
|
|
|
|
|
- prop="constructionBrief"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item class="col-span-2" label="当日施工简报" prop="constructionBrief">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="form.constructionBrief"
|
|
v-model="form.constructionBrief"
|
|
|
type="textarea"
|
|
type="textarea"
|
|
@@ -856,7 +856,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth(val: any, ind
|
|
|
resize="none"
|
|
resize="none"
|
|
|
:maxlength="1000"
|
|
:maxlength="1000"
|
|
|
placeholder="请输入当日施工简报"
|
|
placeholder="请输入当日施工简报"
|
|
|
- :disabled="formType === 'readonly'"
|
|
|
|
|
|
|
+ :disabled="!isApproval"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|