|
@@ -17,7 +17,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="节点类型:">
|
|
|
|
|
|
+ <el-form-item label="节点类型:" prop="nodeType">
|
|
<el-select v-model="formModel.nodeType" block>
|
|
<el-select v-model="formModel.nodeType" block>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in nodeOptions" :key="item.id" :label="item.dictValue"
|
|
v-for="item in nodeOptions" :key="item.id" :label="item.dictValue"
|
|
@@ -195,6 +195,7 @@ import { nextTick, ref, watch } from 'vue'
|
|
import { isNumberReg } from '~uti/tools'
|
|
import { isNumberReg } from '~uti/tools'
|
|
import AddCheckList from './addCheckList.vue'
|
|
import AddCheckList from './addCheckList.vue'
|
|
import unitApi from '~api/project/debit/contract/unit.js'
|
|
import unitApi from '~api/project/debit/contract/unit.js'
|
|
|
|
+import { getDictionaryBiz } from '~api/other'
|
|
import { getDictionary } from '~api/other'
|
|
import { getDictionary } from '~api/other'
|
|
import { formValidate, getArrValue, getObjValue, isArrIndex, isNullES } from 'js-fast-way'
|
|
import { formValidate, getArrValue, getObjValue, isArrIndex, isNullES } from 'js-fast-way'
|
|
import { HcDelMsg } from 'hc-vue3-ui'
|
|
import { HcDelMsg } from 'hc-vue3-ui'
|
|
@@ -245,9 +246,9 @@ const tableRowStyle = ({ row }) => {
|
|
|
|
|
|
//获节点类型
|
|
//获节点类型
|
|
const nodeOptions = ref([])
|
|
const nodeOptions = ref([])
|
|
-const getNodeType = async (id) => {
|
|
|
|
- const { data } = await unitApi.getNodeTypeListUpdate({
|
|
|
|
- id,
|
|
|
|
|
|
+const getNodeType = async () => {
|
|
|
|
+ const { data } = await getDictionaryBiz({
|
|
|
|
+ code: 'meter_unit_type',
|
|
})
|
|
})
|
|
nodeOptions.value = getArrValue(data)
|
|
nodeOptions.value = getArrValue(data)
|
|
nodeOptions.value.forEach((ele) => {
|
|
nodeOptions.value.forEach((ele) => {
|
|
@@ -330,6 +331,11 @@ const formRules = ref({
|
|
trigger: 'blur',
|
|
trigger: 'blur',
|
|
message: '请输入28天强度比例',
|
|
message: '请输入28天强度比例',
|
|
},
|
|
},
|
|
|
|
+ nodeType:{
|
|
|
|
+ required: true,
|
|
|
|
+ trigger: 'change',
|
|
|
|
+ message: '请选择节点类型',
|
|
|
|
+ },
|
|
})
|
|
})
|
|
const checkNegative = ()=>{
|
|
const checkNegative = ()=>{
|
|
if (formModel.value.sevenRatio < 0) {
|
|
if (formModel.value.sevenRatio < 0) {
|