联调 普测

This commit is contained in:
GGJ
2024-05-14 18:17:53 +08:00
parent 91e553ead3
commit 25f5272967
8 changed files with 189 additions and 178 deletions

View File

@@ -697,10 +697,7 @@ import type { UploadInstance, UploadProps, UploadRawFile } from 'element-plus'
import { genFileId, ElMessage } from 'element-plus'
import { useDictData } from '@/stores/dictData'
import type { ComponentSize, FormInstance, FormRules } from 'element-plus'
import moment from 'moment'
import { queryByAllCode } from '@/api/system-boot/dictTree'
import { useAdminInfo } from '@/stores/adminInfo'
import { uploadFile } from '@/api/system-boot/file'
// import moment from 'moment'
import { submitFormData } from '@/api/supervise/interfere/index'
defineProps({
openType: {
@@ -713,7 +710,7 @@ const dictData = useDictData()
const dialogFormVisible = ref(false)
const formLabelWidth = '120px'
const form:any = ref({})
const ruleFormRef = ref(null)
const ruleFormRef:any = ref(null)
//字典获取所属地市
const areaOptionList = dictData.getBasicData('jibei_area')
//字典获取敏感电能质量指标
@@ -783,7 +780,7 @@ const defaultProps = {
label: 'name',
key: 'id'
}
const nonlinearDeviceTypeList = ref('')
const nonlinearDeviceTypeList:any = ref('')
//获取登陆用户姓名和部门
const adminInfo = useAdminInfo()
const resetForm = () => {
@@ -872,7 +869,7 @@ const handleCheckChange = data => {
form.value.nonlinearDeviceType = checkedNodes[0]
}
}
const subForm = ref({
const subForm:any = ref({
city: '', //所属地市
evaluationConclusion: '', //预测评估结论
evaluationDept: '', //预测评估单位
@@ -1249,8 +1246,9 @@ watch(
subForm.value[key] = val[key] // 对相同的key进行赋值
}
}
//处理填报日期时间格式
subForm.value.reportDate = moment(form.value.reportDate).format('YYYY-MM-DD')
subForm.value.reportDate = window.XEUtils.toDateString(form.value.reportDate, 'yyyy-MM-dd')//moment(form.value.reportDate).format('YYYY-MM-DD')
//userType==0,1
if (val.userType == '0' || val.userType == '1') {
subForm.value.userReportProjectPO = {