[update] 企标流程联调

This commit is contained in:
lideqin
2023-11-14 18:01:22 +08:00
parent 805686333d
commit c1a0d78672
6 changed files with 69 additions and 71 deletions
@@ -26,7 +26,7 @@
@change="event => event.target.value = event.target.value.trim()"
disabled
:maxLength="50"
v-decorator="['processName', validatorRules.processName]" />
v-decorator="['prcName', validatorRules.prcName]" />
</a-form-item>
</a-col>
<a-col :span="12">
@@ -36,7 +36,7 @@
style="width: 100%"
:disabled="disabled"
value-format="YYYY-MM-DD"
v-decorator="['expirationDate']" />
v-decorator="['dueTime']" />
</a-form-item>
</a-col>
<a-col :span="24">
@@ -46,7 +46,7 @@
:maxLength="500"
:rows="4"
:disabled="disabled"
v-decorator="['processExplain']" />
v-decorator="['prcMes']" />
</a-form-item>
</a-col>
</a-row>
@@ -96,11 +96,11 @@
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')"
:maxLength="500"
:rows="4"
v-decorator="['remarks', validatorRules.remarks]" />
v-decorator="['commitText', validatorRules.commitText]" />
</a-form-item>
<!--附件-->
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('businessSupport.questionAnswer.attach')">
<j-upload v-decorator="['file']" return-id />
<j-upload v-decorator="['commitFile']" return-id />
</a-form-item>
</a-form>
</div>
@@ -353,7 +353,7 @@ export default {
onlyLook: false,
validatorRules: {
// 流程名称
processName: {
prcName: {
rules: [
{
required: true,
@@ -363,7 +363,7 @@ export default {
validateTrigger: 'blur'
},
// 备注
remarks: {
commitText: {
rules: [
{
required: false,
@@ -393,16 +393,16 @@ export default {
// 选是的话,驳回按钮置灰,不可点击;选否,备注变成必填,内容自动带入“驳回”,下方同意按钮置灰,不可点击
if (value === 1) {
// 选了是
this.validatorRules.remarks.rules[0].required = false
this.validatorRules.commitText.rules[0].required = false
this.rejectBtnDisabled = true
this.agreeBtnDisabled = false
} else {
// 选了否
this.validatorRules.remarks.rules[0].required = true
this.validatorRules.commitText.rules[0].required = true
const obj = {}
obj.remarks = '驳回' + this.processInfoForm.getFieldValue('remarks')
obj.commitText = '驳回' + this.processInfoForm.getFieldValue('commitText')
this.$nextTick(() => {
this.processInfoForm.setFieldsValue(pick(obj, 'remarks'))
this.processInfoForm.setFieldsValue(pick(obj, 'commitText'))
})
this.rejectBtnDisabled = false
this.agreeBtnDisabled = true