|
@@ -16,6 +16,7 @@
|
|
<div class="text-orange font-400">收方总金额:{{ meterMoney }}元</div>
|
|
<div class="text-orange font-400">收方总金额:{{ meterMoney }}元</div>
|
|
</template>
|
|
</template>
|
|
<template #extra>
|
|
<template #extra>
|
|
|
|
+ <el-button hc-btn color="red" :disabled="approveStatus !== 0" :loading="autoLoading" @click="autoClick">自动批量计量</el-button>
|
|
<el-button hc-btn type="primary" :disabled="approveStatus !== 0" @click="addModalClick">新增</el-button>
|
|
<el-button hc-btn type="primary" :disabled="approveStatus !== 0" @click="addModalClick">新增</el-button>
|
|
<el-button hc-btn type="warning" :disabled="approveStatus !== 0" @click="reportClick">按期上报</el-button>
|
|
<el-button hc-btn type="warning" :disabled="approveStatus !== 0" @click="reportClick">按期上报</el-button>
|
|
<el-button hc-btn type="success" @click="detailsModalClick">清单明细</el-button>
|
|
<el-button hc-btn type="success" @click="detailsModalClick">清单明细</el-button>
|
|
@@ -320,6 +321,22 @@ const reportClick = () => {
|
|
const reportFinish = () => {
|
|
const reportFinish = () => {
|
|
window.location.reload()
|
|
window.location.reload()
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+//自动批量计量
|
|
|
|
+const autoLoading = ref(false)
|
|
|
|
+const autoClick = async ()=>{
|
|
|
|
+ const { code, msg } = await mainApi.autoBatchMeter(
|
|
|
|
+ {
|
|
|
|
+ PeriodId:searchForm.value.contractPeriodId,
|
|
|
|
+ contractId:contractId.value,
|
|
|
|
+ projectId:projectId.value,
|
|
|
|
+ },
|
|
|
|
+ )
|
|
|
|
+ if (code === 200) {
|
|
|
|
+ window.$message.success(msg)
|
|
|
|
+ getTableData().then()
|
|
|
|
+ } else {
|
|
|
|
+ window.$message.error(msg ?? '删除失败')
|
|
|
|
+ }
|
|
|
|
+}
|
|
// const isReportDrawer = ref(false)
|
|
// const isReportDrawer = ref(false)
|
|
</script>
|
|
</script>
|