|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div style="width: 100%; padding: 0px 15px">
|
|
|
- <el-form :model="formData.data" :rules="rules" ref="formDom" label-position="top" :disabled="props.queryData.accountRequestFundsDetailList ? true : false">
|
|
|
+ <el-form :model="formData.data" :rules="rules" ref="formDom" label-position="top" :disabled="judgeStatus()">
|
|
|
<div class="_t">基础信息</div>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="6">
|
|
@@ -107,7 +107,13 @@
|
|
|
<el-table-column prop="amount" label="请款金额" min-width="150">
|
|
|
<template #default="{ row, $index }">
|
|
|
<el-form-item :prop="'accountRequestFundsDetailList.' + $index + '.amount'" :rules="rules.amount" :inline-message="true">
|
|
|
- <el-input-number onmousewheel="return false;" v-model="row.amount" :precision="4" :controls="false" :min="0.0001" @change="handleChangeAmount" />
|
|
|
+ <el-input-number
|
|
|
+ onmousewheel="return false;"
|
|
|
+ v-model="row.amount"
|
|
|
+ :precision="4"
|
|
|
+ :controls="false"
|
|
|
+ :min="0.0001"
|
|
|
+ @change="handleChangeAmount" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -291,7 +297,15 @@ const getDictData = () => {
|
|
|
})
|
|
|
.then((message) => {
|
|
|
recursive(message.data);
|
|
|
- deptTreeData.value = proxy.handleTree(message.data, "deptId");
|
|
|
+ deptTreeData.value = [];
|
|
|
+ let data = proxy.handleTree(message.data, "deptId");
|
|
|
+ if (data && data.length > 0) {
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ if (data[i].children && data[i].children.length > 0) {
|
|
|
+ deptTreeData.value = deptTreeData.value.concat(data[i].children);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
// 请款类型数据
|
|
|
proxy
|
|
@@ -414,6 +428,15 @@ defineExpose({
|
|
|
submitData: formData.data,
|
|
|
handleSubmit,
|
|
|
});
|
|
|
+const judgeStatus = () => {
|
|
|
+ if (props.queryData.recordList && props.queryData.recordList.length > 0) {
|
|
|
+ let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
|
|
|
+ if (data && data.length > 0) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|