|
@@ -183,6 +183,7 @@ import wbsQueryApi from '~api/data-fill/query'
|
|
import queryApi from '~api/ledger/query'
|
|
import queryApi from '~api/ledger/query'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
|
+import Index from './dateCalendar/index.vue'
|
|
|
|
|
|
//参数
|
|
//参数
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
@@ -343,18 +344,9 @@ const getAddLogBusinessData = async (excelId, recordDate) => {
|
|
theLogId: '',
|
|
theLogId: '',
|
|
}, false)
|
|
}, false)
|
|
//设置默认数据
|
|
//设置默认数据
|
|
- let formArrData = getArrValue(data)
|
|
|
|
- if (formArrData.length > 0) {
|
|
|
|
- logId.value = formArrData[0].logId
|
|
|
|
- for (let i = 0; i < formArrData.length; i++) {
|
|
|
|
- formArrData[i] = setFormDefaultData(formArrData[i])
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- formArrData = [setFormDefaultData()]
|
|
|
|
- }
|
|
|
|
- formLogDataList.value = formArrData
|
|
|
|
-
|
|
|
|
- // getBussDataInfo()
|
|
|
|
|
|
+ let formArrData = getObjVal(data)
|
|
|
|
+ const defaultData = setFormDefaultData(formArrData)
|
|
|
|
+ formLogDataList.value.push(defaultData)
|
|
}
|
|
}
|
|
|
|
|
|
//获取表单初始数据
|
|
//获取表单初始数据
|
|
@@ -655,14 +647,10 @@ const queryCurrentLogSelectProcessList = async (bid) => {
|
|
}
|
|
}
|
|
|
|
|
|
//新增表格
|
|
//新增表格
|
|
-const addTableFormClick = () => {
|
|
|
|
- const defaultData = setFormDefaultData({})
|
|
|
|
- formLogDataList.value.push(defaultData)
|
|
|
|
|
|
+const addTableFormClick = async () => {
|
|
const index = formLogDataList.value.length - 1
|
|
const index = formLogDataList.value.length - 1
|
|
- // getBussDataInfo(index)
|
|
|
|
- getAddLogBusinessData(excelIdVal.value, choicesVal.value)
|
|
|
|
-
|
|
|
|
getBussDataInfo(index)
|
|
getBussDataInfo(index)
|
|
|
|
+ await getAddLogBusinessData(excelIdVal.value, choicesVal.value, index)
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|