|
@@ -606,21 +606,23 @@ const tableFormSaveClick = async () => {
|
|
|
setFormRegExpJson(FormRegExpJson)
|
|
|
} else if (FormData.length > 0) {
|
|
|
tableFormSaveLoading.value = true
|
|
|
- const {error, code} = await dataApi.saveExcelBussData({
|
|
|
+ const {error, code,data} = await dataApi.saveExcelBussData({
|
|
|
...listItemBaseData.value,
|
|
|
isBatchSave:1,
|
|
|
dataInfo: {orderList: FormData},
|
|
|
// deviceUseIds:listDeviceUseIds.value
|
|
|
})
|
|
|
+ console.log(data,'data');
|
|
|
+ nodeIdvalue.value=data
|
|
|
tableFormSaveLoading.value = false
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success('保存成功')
|
|
|
listItemBaseData.value.deviceUseIds=''
|
|
|
checkTabId.value=''
|
|
|
if(!isaddType){
|
|
|
- bussPdfsClick()
|
|
|
+ bussPdfsClick(router.currentRoute.value.query.id)
|
|
|
}else{
|
|
|
- bussPdfsClick()
|
|
|
+ bussPdfsClick(nodeIdvalue.value)
|
|
|
// toBackClick()
|
|
|
}
|
|
|
|
|
@@ -630,7 +632,7 @@ const tableFormSaveClick = async () => {
|
|
|
|
|
|
if(!isaddType){
|
|
|
window.$message?.warning('请先选择你需要编辑的表格')
|
|
|
- bussPdfsClick()
|
|
|
+ bussPdfsClick(router.currentRoute.value.query.id)
|
|
|
}else{
|
|
|
window.$message?.warning('请先选择你需要新增的表格')
|
|
|
}
|
|
@@ -752,14 +754,16 @@ const reportModalClick = async () => {
|
|
|
}
|
|
|
//多表预览
|
|
|
const bussPdfsLoading = ref(false)
|
|
|
-const bussPdfsClick = async () => {
|
|
|
+const nodeIdvalue=ref('')
|
|
|
+const bussPdfsClick = async (nodeId) => {
|
|
|
bussPdfsLoading.value = true
|
|
|
const {error, code, data} = await dataApi.getBussPdfs({
|
|
|
projectId: projectId.value,
|
|
|
contractId: contractId.value,
|
|
|
classify: authBtnTabKey.value,
|
|
|
tableType: tabTypeKey.value,
|
|
|
- nodeId: router.currentRoute.value.query.id,
|
|
|
+ // nodeId: router.currentRoute.value.query.id,
|
|
|
+ nodeId: nodeId,
|
|
|
})
|
|
|
bussPdfsLoading.value = false
|
|
|
if (!error && code === 200) {
|