|
|
@ -3,8 +3,9 @@ |
|
|
|
<!-- <BasicModal v-bind="$attrs" @register="registerModal" title="项目合同信息详情" width="1500px" :showOkBtn="false" |
|
|
|
:showCancelBtn="false"> --> |
|
|
|
<el-divider content-position="left">合同信息</el-divider> |
|
|
|
<BasicForm @register="registerContractForm" /> |
|
|
|
<el-button type="primary" @click="addFrom"> |
|
|
|
<BasicForm @register="registerContractForm"/> |
|
|
|
<div v-if="data.isEdit"> |
|
|
|
<el-button type="primary" @click="addFrom"> |
|
|
|
<template #icon> |
|
|
|
<PlusCircleOutlined /> |
|
|
|
</template> |
|
|
@ -15,6 +16,8 @@ |
|
|
|
</template> |
|
|
|
</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- </BasicModal> --> |
|
|
|
</template> |
|
|
|
<script lang="ts" name="addAndModify" setup> |
|
|
@ -174,14 +177,14 @@ |
|
|
|
tempSchemas = cloneDeep(contractformSchemas) as Array<FormSchema>; |
|
|
|
tempSchemas.forEach((item) => { |
|
|
|
if (item.field.indexOf('Money') != -1) { |
|
|
|
item.dynamicRules = aaa; |
|
|
|
// item.dynamicRules = aaa; |
|
|
|
item.componentProps = bbb; |
|
|
|
} |
|
|
|
if (item.field == 'taskName') { |
|
|
|
item.componentProps.options = taskNameTypeDict.value; |
|
|
|
console.log('item.componentProps.options', item.componentProps.options,data.taskName); |
|
|
|
if (data.taskName != '合同签订') { |
|
|
|
item.dynamicDisabled = true; |
|
|
|
// item.dynamicDisabled = true; |
|
|
|
item.defaultValue = data.taskName; |
|
|
|
} |
|
|
|
} |
|
|
@ -220,7 +223,7 @@ |
|
|
|
contractformSchemas.forEach((item) => { |
|
|
|
let tempitem = cloneDeep(item); |
|
|
|
if (tempitem.field.indexOf('Money') != -1) { |
|
|
|
tempitem.dynamicRules = aaa; |
|
|
|
// tempitem.dynamicRules = aaa; |
|
|
|
tempitem.componentProps = bbb; |
|
|
|
} |
|
|
|
if (tempitem.field == 'payDate') { |
|
|
@ -229,7 +232,7 @@ |
|
|
|
if (tempitem.field == 'taskName') { |
|
|
|
tempitem.componentProps.options = taskNameTypeDict.value; |
|
|
|
if (data.taskName != '合同签订') { |
|
|
|
tempitem.dynamicDisabled = true; |
|
|
|
// tempitem.dynamicDisabled = true; |
|
|
|
tempitem.defaultValue = data.taskName; |
|
|
|
} |
|
|
|
} |
|
|
@ -296,7 +299,7 @@ |
|
|
|
contractformSchemas.forEach((item) => { |
|
|
|
let tempitem = cloneDeep(item); |
|
|
|
if (tempitem.field.indexOf('Money') != -1) { |
|
|
|
tempitem.dynamicRules = aaa; |
|
|
|
// tempitem.dynamicRules = aaa; |
|
|
|
tempitem.componentProps = bbb; |
|
|
|
} |
|
|
|
if (tempitem.field == 'payDate') { |
|
|
@ -305,7 +308,7 @@ |
|
|
|
if (tempitem.field == 'taskName') { |
|
|
|
tempitem.componentProps.options = taskNameTypeDict.value; |
|
|
|
if (data.taskName != '合同签订') { |
|
|
|
tempitem.dynamicDisabled = true; |
|
|
|
// tempitem.dynamicDisabled = true; |
|
|
|
tempitem.defaultValue = data.taskName; |
|
|
|
} |
|
|
|
} |
|
|
|