|
@@ -22,7 +22,7 @@
|
|
|
:disabled="true"></uni-easyinput>
|
|
:disabled="true"></uni-easyinput>
|
|
|
<!-- 金额转大写 -->
|
|
<!-- 金额转大写 -->
|
|
|
<uni-easyinput v-else-if="elem.elementName.endsWith('大写')" placeholder=""
|
|
<uni-easyinput v-else-if="elem.elementName.endsWith('大写')" placeholder=""
|
|
|
- :value="computedNumberToChineseCurrency(elem, formElements)"></uni-easyinput>
|
|
|
|
|
|
|
+ :value="computedNumberToChineseCurrency(elem, formElements)" :disabled="true" ></uni-easyinput>
|
|
|
<!-- 主表关联变量输入框 -->
|
|
<!-- 主表关联变量输入框 -->
|
|
|
<!-- 数值输入框 -->
|
|
<!-- 数值输入框 -->
|
|
|
<uni-easyinput v-else-if="'1' == elem.fieldType && elem.BddzText" type="digit"
|
|
<uni-easyinput v-else-if="'1' == elem.fieldType && elem.BddzText" type="digit"
|
|
@@ -227,7 +227,7 @@ const hideArr=['冲','借款','借款单号','结余','申请日期']
|
|
|
function initProcessForm() {
|
|
function initProcessForm() {
|
|
|
getProcessForm(userStore.user, processInfo).then(({ returnParams }) => {
|
|
getProcessForm(userStore.user, processInfo).then(({ returnParams }) => {
|
|
|
returnParams.formElements.forEach(element => {
|
|
returnParams.formElements.forEach(element => {
|
|
|
- if (element.elementName.endsWith('大写') || hideArr.includes(element.elementName)) {
|
|
|
|
|
|
|
+ if (hideArr.includes(element.elementName)) {
|
|
|
element.type = "8";
|
|
element.type = "8";
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -484,8 +484,12 @@ function setTimeRange(e) {
|
|
|
}
|
|
}
|
|
|
// 生成人民币大写
|
|
// 生成人民币大写
|
|
|
function computedNumberToChineseCurrency(item, form) {
|
|
function computedNumberToChineseCurrency(item, form) {
|
|
|
- const elem = form.find(elem => elem.elementName == item.BddzText.slice(3))
|
|
|
|
|
- return item.defaultValue = convertToChineseCurrency(elem.defaultValue)
|
|
|
|
|
|
|
+ const elem = form.find(elem => !elem.elementName.endsWith('大写') && (elem.BddzText == item.BddzText || elem.elementName == item.BddzText.slice(3)))
|
|
|
|
|
+ if(elem != null) {
|
|
|
|
|
+ return item.defaultValue = convertToChineseCurrency(elem.defaultValue);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '';
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
function computedBddzTextValue(item) {
|
|
function computedBddzTextValue(item) {
|
|
|
const mainIndex = formElements.value.findIndex(({ elementName }) => elementName == item.BddzText.slice(3))
|
|
const mainIndex = formElements.value.findIndex(({ elementName }) => elementName == item.BddzText.slice(3))
|
|
@@ -497,6 +501,7 @@ function computedBddzTextValue(item) {
|
|
|
return computedValueToRepeatingForm(item)
|
|
return computedValueToRepeatingForm(item)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+//合计金额计算
|
|
|
function computedValueToRepeatingForm(item) {
|
|
function computedValueToRepeatingForm(item) {
|
|
|
const index = repeatingForm.value.elementItem.findIndex(({ elementName }) => elementName.slice(3) == item.BddzText.slice(3))
|
|
const index = repeatingForm.value.elementItem.findIndex(({ elementName }) => elementName.slice(3) == item.BddzText.slice(3))
|
|
|
let result = 0
|
|
let result = 0
|
|
@@ -1086,4 +1091,4 @@ function submitProcess() { // 提交表单
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|