|
@@ -98,7 +98,7 @@
|
|
删除本表
|
|
删除本表
|
|
</el-link>
|
|
</el-link>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
-
|
|
|
|
|
|
+
|
|
<el-link
|
|
<el-link
|
|
v-if="
|
|
v-if="
|
|
treenodeDataInfo?.majorDataType === 8
|
|
treenodeDataInfo?.majorDataType === 8
|
|
@@ -112,7 +112,7 @@
|
|
</el-link>
|
|
</el-link>
|
|
<el-link
|
|
<el-link
|
|
v-if="isTemplateType"
|
|
v-if="isTemplateType"
|
|
-
|
|
|
|
|
|
+
|
|
type="primary"
|
|
type="primary"
|
|
@click="autoClick(item)"
|
|
@click="autoClick(item)"
|
|
>
|
|
>
|
|
@@ -511,7 +511,7 @@
|
|
:wbs-id="wbsTemp_id"
|
|
:wbs-id="wbsTemp_id"
|
|
:wbs-type="wbs_type"
|
|
:wbs-type="wbs_type"
|
|
/>
|
|
/>
|
|
-
|
|
|
|
|
|
+
|
|
<HcTestFileCy
|
|
<HcTestFileCy
|
|
v-else
|
|
v-else
|
|
ref="testFileRefsCy"
|
|
ref="testFileRefsCy"
|
|
@@ -661,7 +661,7 @@
|
|
:key="item.dictKey"
|
|
:key="item.dictKey"
|
|
:label="item.dictValue"
|
|
:label="item.dictValue"
|
|
:value="item.dictKey"
|
|
:value="item.dictKey"
|
|
- />
|
|
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
<template v-if="isShowNum">
|
|
<template v-if="isShowNum">
|
|
<el-input v-model="autoModal.customValue" block placeholder="高程偏差/顶面高差" class="mt-1" />
|
|
<el-input v-model="autoModal.customValue" block placeholder="高程偏差/顶面高差" class="mt-1" />
|
|
@@ -677,7 +677,7 @@
|
|
widths="55%"
|
|
widths="55%"
|
|
save-text="保存"
|
|
save-text="保存"
|
|
title="插入编号"
|
|
title="插入编号"
|
|
-
|
|
|
|
|
|
+
|
|
@close="cancelPushCode"
|
|
@close="cancelPushCode"
|
|
@save="submitPushCode"
|
|
@save="submitPushCode"
|
|
>
|
|
>
|
|
@@ -719,7 +719,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</hc-new-dialog>
|
|
</hc-new-dialog>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<!-- 选择试验附件类型 -->
|
|
<!-- 选择试验附件类型 -->
|
|
<hc-dialog v-model="fileTypeDialog" title="设置自动获取" :loading="fileTypeLoading" @save="fileTypeSaveClick">
|
|
<hc-dialog v-model="fileTypeDialog" title="设置自动获取" :loading="fileTypeLoading" @save="fileTypeSaveClick">
|
|
<el-form
|
|
<el-form
|
|
@@ -735,7 +735,7 @@
|
|
v-for="item in fileType"
|
|
v-for="item in fileType"
|
|
:key="item.dictKey"
|
|
:key="item.dictKey"
|
|
:label="item.label" :value="item.value"
|
|
:label="item.label" :value="item.value"
|
|
- />
|
|
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -759,7 +759,7 @@
|
|
color="#419EFF"
|
|
color="#419EFF"
|
|
hc-btn
|
|
hc-btn
|
|
style="color:white"
|
|
style="color:white"
|
|
-
|
|
|
|
|
|
+
|
|
@click="clearSaveClick(1)"
|
|
@click="clearSaveClick(1)"
|
|
>
|
|
>
|
|
仅删除当前表单的字段数据
|
|
仅删除当前表单的字段数据
|
|
@@ -1036,7 +1036,7 @@ const ActiveKey = ref('')
|
|
const CollapseChange = (name) => {
|
|
const CollapseChange = (name) => {
|
|
if (isEnableBulk.value) {
|
|
if (isEnableBulk.value) {
|
|
setMountOnEventKey()
|
|
setMountOnEventKey()
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
ActiveKey.value = name
|
|
ActiveKey.value = name
|
|
let index = getCollapseItemIndex(name)
|
|
let index = getCollapseItemIndex(name)
|
|
@@ -1095,7 +1095,7 @@ const isOpen = infos['isOpenRandomNumber'] ?? 0
|
|
if (isTemplateType.value) {
|
|
if (isTemplateType.value) {
|
|
newArr.push({ label: '设置自动获取数据', key: 'auto' })
|
|
newArr.push({ label: '设置自动获取数据', key: 'auto' })
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if (isOpen === 1 && isStatus.value !== 3) {
|
|
if (isOpen === 1 && isStatus.value !== 3) {
|
|
newArr.push({ label: '插入设计值/频率', key: 'design' })
|
|
newArr.push({ label: '插入设计值/频率', key: 'design' })
|
|
}
|
|
}
|
|
@@ -1154,7 +1154,7 @@ const handleMenuSelect = async ({ key }) => {
|
|
const { pkeyId } = tableFormItemNode.value
|
|
const { pkeyId } = tableFormItemNode.value
|
|
const refs = await getFormRef(pkeyId)
|
|
const refs = await getFormRef(pkeyId)
|
|
const copyVal = await refs?.getCetCopyKeyList()
|
|
const copyVal = await refs?.getCetCopyKeyList()
|
|
-
|
|
|
|
|
|
+
|
|
checkKeys.value = []
|
|
checkKeys.value = []
|
|
if (copyVal.length > 0) {
|
|
if (copyVal.length > 0) {
|
|
copyVal.forEach(item=>{
|
|
copyVal.forEach(item=>{
|
|
@@ -1162,7 +1162,7 @@ const handleMenuSelect = async ({ key }) => {
|
|
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} else if (key === 'clear') {
|
|
} else if (key === 'clear') {
|
|
clearShow.value = true
|
|
clearShow.value = true
|
|
} else if (key === 'water') {
|
|
} else if (key === 'water') {
|
|
@@ -1193,17 +1193,17 @@ const handleMenuSelect = async ({ key }) => {
|
|
refs?.setFormData(curFormData)
|
|
refs?.setFormData(curFormData)
|
|
} else if (key === 'auto') {
|
|
} else if (key === 'auto') {
|
|
console.log('自动获取数据')
|
|
console.log('自动获取数据')
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
autoModalDialog.value = true
|
|
autoModalDialog.value = true
|
|
isShowNum.value = false
|
|
isShowNum.value = false
|
|
autoModal.value = {
|
|
autoModal.value = {
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
getMajorDataTypeOptions()
|
|
getMajorDataTypeOptions()
|
|
- } else if (key === 'pushCode') {
|
|
|
|
|
|
+ } else if (key === 'pushCode') {
|
|
pushCodeShow.value = true
|
|
pushCodeShow.value = true
|
|
-
|
|
|
|
|
|
+
|
|
} else if (key === 'deviation') {
|
|
} else if (key === 'deviation') {
|
|
deviationShow.value = true
|
|
deviationShow.value = true
|
|
getDeviationData()
|
|
getDeviationData()
|
|
@@ -1394,8 +1394,8 @@ const testFileRefs = ref(null)
|
|
const fileModalLoading = ref(false)
|
|
const fileModalLoading = ref(false)
|
|
const savefileModal = async () => {
|
|
const savefileModal = async () => {
|
|
fileModalLoading.value = true
|
|
fileModalLoading.value = true
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
if (!isUseTestTreeCy.value) {
|
|
if (!isUseTestTreeCy.value) {
|
|
await testFileRefs.value?.savefileSubmit()
|
|
await testFileRefs.value?.savefileSubmit()
|
|
} else {
|
|
} else {
|
|
@@ -1410,8 +1410,8 @@ const getIsUseTestTreeCy = async ()=>{
|
|
const { error, code, data } = await thirdApi.isCyAndTestModule({
|
|
const { error, code, data } = await thirdApi.isCyAndTestModule({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId: contract_id.value,
|
|
contractId: contract_id.value,
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
})
|
|
})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
isUseTestTreeCy.value = data
|
|
isUseTestTreeCy.value = data
|
|
@@ -1441,7 +1441,7 @@ const formulaSaveClick = async () => {
|
|
const { pkeyId } = tableFormItemNode.value
|
|
const { pkeyId } = tableFormItemNode.value
|
|
const refs = await getFormRef(pkeyId)
|
|
const refs = await getFormRef(pkeyId)
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
refs?.clearCheckKeyList()
|
|
refs?.clearCheckKeyList()
|
|
formulaModalLoading.value = false
|
|
formulaModalLoading.value = false
|
|
formulaModal.value = false
|
|
formulaModal.value = false
|
|
@@ -2210,14 +2210,13 @@ const getEvaluteData = async (isRes, item) => {
|
|
const { pkeyId } = item
|
|
const { pkeyId } = item
|
|
|
|
|
|
evaluateLoaing.value = true
|
|
evaluateLoaing.value = true
|
|
- const apiCall = isRes ? await wbsApi.evaluateTotalNew : await wbsApi.evaluateTotal
|
|
|
|
- const { error, code, msg } = apiCall({
|
|
|
|
|
|
+ const apiCall = isRes ? wbsApi.evaluateTotalNew : wbsApi.evaluateTotal
|
|
|
|
+ const { error, code, msg } = await apiCall({
|
|
tablePkeyId: pkeyId,
|
|
tablePkeyId: pkeyId,
|
|
})
|
|
})
|
|
evaluateLoaing.value = false
|
|
evaluateLoaing.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
window?.$message?.success('操作成功')
|
|
window?.$message?.success('操作成功')
|
|
-
|
|
|
|
renewData()
|
|
renewData()
|
|
} else {
|
|
} else {
|
|
window?.$message?.error(msg || '操作失败')
|
|
window?.$message?.error(msg || '操作失败')
|
|
@@ -2233,7 +2232,7 @@ const dataType = ref([])
|
|
const getMajorDataTypeOptions = async () => {
|
|
const getMajorDataTypeOptions = async () => {
|
|
const { data } = await getDictionary({ code:'auto_retrieve' })
|
|
const { data } = await getDictionary({ code:'auto_retrieve' })
|
|
dataType.value = data
|
|
dataType.value = data
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
const isShowNum = ref(false)
|
|
const isShowNum = ref(false)
|
|
const autoChangeType = (val)=>{
|
|
const autoChangeType = (val)=>{
|
|
@@ -2271,7 +2270,7 @@ min = values[0]
|
|
max = values[1]
|
|
max = values[1]
|
|
min = autoModal.value.customValue.split('/')[0]
|
|
min = autoModal.value.customValue.split('/')[0]
|
|
max = autoModal.value.customValue.split('/')[1]
|
|
max = autoModal.value.customValue.split('/')[1]
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
const { error, code, msg, data } = await nodeBaseApi.getNodeBaseInfoByPkeyId(
|
|
const { error, code, msg, data } = await nodeBaseApi.getNodeBaseInfoByPkeyId(
|
|
@@ -2294,8 +2293,8 @@ max = values[1]
|
|
window.$message?.success(msg || '操作成功')
|
|
window.$message?.success(msg || '操作成功')
|
|
autoModalDialog.value = false
|
|
autoModalDialog.value = false
|
|
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
const autoClick = async (item)=>{
|
|
const autoClick = async (item)=>{
|
|
console.log(item, 'item')
|
|
console.log(item, 'item')
|
|
@@ -2317,7 +2316,7 @@ const autoClick = async (item)=>{
|
|
console.log(data, 'data')
|
|
console.log(data, 'data')
|
|
refs?.setFormData(data)
|
|
refs?.setFormData(data)
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
}, 1000)
|
|
}, 1000)
|
|
}
|
|
}
|
|
//插入编号
|
|
//插入编号
|
|
@@ -2336,8 +2335,8 @@ const submitPushCode = async ()=>{
|
|
renewData()
|
|
renewData()
|
|
cancelPushCode()
|
|
cancelPushCode()
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
const pushCodeRef = ref(null)
|
|
const pushCodeRef = ref(null)
|
|
//测量偏差
|
|
//测量偏差
|
|
@@ -2354,7 +2353,7 @@ const getDeviationData = async () => {
|
|
// 从数组中找出k为"g8pcfw"和"g10pcfw"的对象,并提取v值
|
|
// 从数组中找出k为"g8pcfw"和"g10pcfw"的对象,并提取v值
|
|
const g8pcfwObj = data.find(item => item.k === 'g8pcfw')
|
|
const g8pcfwObj = data.find(item => item.k === 'g8pcfw')
|
|
const g10pcfwObj = data.find(item => item.k === 'G10pcfw')
|
|
const g10pcfwObj = data.find(item => item.k === 'G10pcfw')
|
|
-
|
|
|
|
|
|
+
|
|
// 将找到的v值赋给deviationModal对应的属性
|
|
// 将找到的v值赋给deviationModal对应的属性
|
|
deviationModal.value.g8pcfw = g8pcfwObj ? g8pcfwObj.v : ''
|
|
deviationModal.value.g8pcfw = g8pcfwObj ? g8pcfwObj.v : ''
|
|
deviationModal.value.g10pcfw = g10pcfwObj ? g10pcfwObj.v : ''
|
|
deviationModal.value.g10pcfw = g10pcfwObj ? g10pcfwObj.v : ''
|
|
@@ -2363,7 +2362,7 @@ const getDeviationData = async () => {
|
|
deviationModal.value.g8pcfw = ''
|
|
deviationModal.value.g8pcfw = ''
|
|
deviationModal.value.g10pcfw = ''
|
|
deviationModal.value.g10pcfw = ''
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|
|
const validateDeviation = (rule, value, callback) => {
|
|
const validateDeviation = (rule, value, callback) => {
|
|
if (!value) {
|
|
if (!value) {
|
|
callback(new Error('请输入偏差值')) // 空值提示
|
|
callback(new Error('请输入偏差值')) // 空值提示
|
|
@@ -2397,7 +2396,7 @@ const deviationSaveClick = async ()=>{
|
|
g8pcfw: deviationModal.value.g8pcfw,
|
|
g8pcfw: deviationModal.value.g8pcfw,
|
|
g10pcfw: deviationModal.value.g10pcfw,
|
|
g10pcfw: deviationModal.value.g10pcfw,
|
|
pKeyId: pkeyId,
|
|
pKeyId: pkeyId,
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
)
|
|
)
|
|
|
|
|
|
@@ -2405,7 +2404,7 @@ const deviationSaveClick = async ()=>{
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
window.$message?.success(msg || '操作成功')
|
|
window.$message?.success(msg || '操作成功')
|
|
deviationShow.value = false
|
|
deviationShow.value = false
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2418,7 +2417,7 @@ const fileTypeSaveClick = ()=>{
|
|
}
|
|
}
|
|
const fileTypeModal = ref({
|
|
const fileTypeModal = ref({
|
|
type: '',
|
|
type: '',
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
const fileTypeLoading = ref(false)
|
|
const fileTypeLoading = ref(false)
|
|
const fileType = ref([])
|
|
const fileType = ref([])
|
|
@@ -2431,14 +2430,14 @@ const fileTypeRules = {
|
|
trigger: 'blur',
|
|
trigger: 'blur',
|
|
message: '请选择附件类型',
|
|
message: '请选择附件类型',
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
//清除所有数据
|
|
//清除所有数据
|
|
const clearShow = ref(false)
|
|
const clearShow = ref(false)
|
|
const clearLoading1 = ref(false)
|
|
const clearLoading1 = ref(false)
|
|
const clearLoading2 = ref(false)
|
|
const clearLoading2 = ref(false)
|
|
const clearSaveClick = async (type)=>{
|
|
const clearSaveClick = async (type)=>{
|
|
-
|
|
|
|
|
|
+
|
|
const { pkeyId, index } = tableFormItemNode.value
|
|
const { pkeyId, index } = tableFormItemNode.value
|
|
const refs = await getFormRef(pkeyId)
|
|
const refs = await getFormRef(pkeyId)
|
|
await HcDelMsg(async (resolve) => {
|
|
await HcDelMsg(async (resolve) => {
|
|
@@ -2480,7 +2479,7 @@ const clearSaveClick = async (type)=>{
|
|
window.$message.error(msg)
|
|
window.$message.error(msg)
|
|
clearShow.value = false
|
|
clearShow.value = false
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
resolve() //关闭弹窗的回调
|
|
resolve() //关闭弹窗的回调
|
|
})
|
|
})
|