合同进度一览bug修改
Showing
1 changed file
with
9 additions
and
3 deletions
| ... | @@ -173,7 +173,7 @@ const getNodeSteps = (scope) => { | ... | @@ -173,7 +173,7 @@ const getNodeSteps = (scope) => { |
| 173 | value: index + 1 | 173 | value: index + 1 |
| 174 | } | 174 | } |
| 175 | }), | 175 | }), |
| 176 | step: scope.row.contractNodes.length - 1 | 176 | step: !scope.row.contractNodes?.length ? null : (scope.row.contractNodes.length - 1) |
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | 179 | ||
| ... | @@ -327,6 +327,11 @@ const drawerBtnClick = async (btn, info) => { | ... | @@ -327,6 +327,11 @@ const drawerBtnClick = async (btn, info) => { |
| 327 | if (btn.value == 'cancel') { | 327 | if (btn.value == 'cancel') { |
| 328 | drawerInfo.value.visible = false; | 328 | drawerInfo.value.visible = false; |
| 329 | } else { | 329 | } else { |
| 330 | if (info.partyAGuid == info.partyBGuid) { | ||
| 331 | proxy.$ElMessage.error(`甲方名称跟乙方名称不能选择同一个`); | ||
| 332 | drawerRef.value?.getDrawerConRef('drawerFormRef')?.ruleFormRef?.scrollToField('partyAGuid'); | ||
| 333 | return; | ||
| 334 | } | ||
| 330 | let res = await validate(); | 335 | let res = await validate(); |
| 331 | if (!res) { | 336 | if (!res) { |
| 332 | return | 337 | return |
| ... | @@ -572,9 +577,10 @@ const nodeFormRules = ref({ | ... | @@ -572,9 +577,10 @@ const nodeFormRules = ref({ |
| 572 | const addNode = () => { | 577 | const addNode = () => { |
| 573 | let len = nodesInfo.value.length; | 578 | let len = nodesInfo.value.length; |
| 574 | let code = contractNodeCodes.value[len]; | 579 | let code = contractNodeCodes.value[len]; |
| 580 | let nodeList = drawerRef.value?.getDrawerConRef('drawerFormRef')?.formInline?.contractTypeCode == '2' ? tradeContractNodesList.value : registerContractNodesList.value; | ||
| 575 | nodesInfo.value.push({ | 581 | nodesInfo.value.push({ |
| 576 | contractNodeCode: code, | 582 | contractNodeCode: code, |
| 577 | contractNodeName: registerContractNodesList.value.find(r => r.value == code)?.label || tradeContractNodesList.value.find(r => r.value == code)?.label, | 583 | contractNodeName: nodeList.find(r => r.value == code)?.label, |
| 578 | nodeFormItems: cloneDeep(nodeFormItems.value), | 584 | nodeFormItems: cloneDeep(nodeFormItems.value), |
| 579 | nodeFormRules: nodeFormRules.value | 585 | nodeFormRules: nodeFormRules.value |
| 580 | }) | 586 | }) |
| ... | @@ -718,7 +724,7 @@ onBeforeMount(() => { | ... | @@ -718,7 +724,7 @@ onBeforeMount(() => { |
| 718 | <el-icon> | 724 | <el-icon> |
| 719 | <Plus /> | 725 | <Plus /> |
| 720 | </el-icon> | 726 | </el-icon> |
| 721 | <span>新增规则</span> | 727 | <span>新增进展</span> |
| 722 | </div> | 728 | </div> |
| 723 | </template> | 729 | </template> |
| 724 | </template> | 730 | </template> | ... | ... |
-
Please register or sign in to post a comment