|
@@ -44,7 +44,7 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="ledger_query_report_form">
|
|
|
- <el-button hc-btn :disabled="!isTableForm">
|
|
|
+ <el-button hc-btn :disabled="!isTableForm" @click="reportModalClick">
|
|
|
<HcIcon name="send-plane-2"/>
|
|
|
<span>上报</span>
|
|
|
</el-button>
|
|
@@ -89,6 +89,9 @@
|
|
|
<el-alert title="请选择一个日期复制" type="warning" show-icon/>
|
|
|
</HcDialog>
|
|
|
|
|
|
+ <!--批量上报审批-->
|
|
|
+ <HcReportModal title="日志填报上报" url="contractLog/startTaskTheLog" :show="showReportModal" :projectId="projectId" :contractId="contractId"
|
|
|
+ :taskName="reportTaskName" :ids="reportIds" :addition="reportAddition" @hide="showReportModal = false" @finish="showReportFinish"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -483,7 +486,7 @@ const copyTimeLoading = ref(false)
|
|
|
const copyTimeSaveClick = async () => {
|
|
|
copyTimeLoading.value = true
|
|
|
const {primaryKeyId} = menuItem.value
|
|
|
- const { error, code, data } = await queryApi.copyTheLogBusinessData({
|
|
|
+ const { error, code } = await queryApi.copyTheLogBusinessData({
|
|
|
contractId: contractId.value || '',
|
|
|
nodePrimaryKeyId: primaryKeyId,
|
|
|
currentTime: recordTime.value,
|
|
@@ -512,6 +515,29 @@ const setFormDefaultData = (formInfo = {}) => {
|
|
|
classify: 1
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+//批量上报
|
|
|
+const reportIds = ref('')
|
|
|
+const reportTaskName = ref('')
|
|
|
+const reportAddition = ref({})
|
|
|
+const showReportModal = ref(false)
|
|
|
+const reportModalClick = () => {
|
|
|
+ const {primaryKeyId,title} = menuItem.value
|
|
|
+ reportIds.value = primaryKeyId
|
|
|
+ reportTaskName.value = `${recordTime.value} ${title}`
|
|
|
+ reportAddition.value = {
|
|
|
+ nodePrimaryKeyId: primaryKeyId,
|
|
|
+ recordTime: recordTime.value,
|
|
|
+ }
|
|
|
+ showReportModal.value = true
|
|
|
+}
|
|
|
+
|
|
|
+//上报完成
|
|
|
+const showReportFinish = () => {
|
|
|
+ showReportModal.value = false
|
|
|
+ window?.location?.reload() //刷新页面
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|