lxf пре 1 година
родитељ
комит
4560acc30e
1 измењених фајлова са 20 додато и 0 уклоњено
  1. 20 0
      src/views/group/data-board/daily-board/index.vue

+ 20 - 0
src/views/group/data-board/daily-board/index.vue

@@ -12,6 +12,9 @@
             value-format="YYYY-MM-DD"
             @change="changeTime" />
         </el-form-item>
+        <el-form-item>
+          <el-button type="primary" @click="clickSignOff()">签核</el-button>
+        </el-form-item>
       </el-form>
     </el-card>
     <el-row :gutter="10" style="padding-top: 10px">
@@ -481,6 +484,23 @@ const getList = () => {
   );
 };
 getList();
+const clickSignOff = () => {
+  console.log("clickSignOff");
+  proxy.post("/dailyBoard/checkStatementOfAccount", { beginDate: timeList.value[0] + " 00:00:00", endDate: timeList.value[1] + " 23:59:59" }).then(() => {
+    ElMessage({ message: "签核完成", type: "success" });
+    getNotCheckCount();
+  });
+};
+onMounted(() => {
+  getNotCheckCount();
+});
+const getNotCheckCount = () => {
+  proxy.post("/statementOfAccount/getNotCheckCount", {}).then((res) => {
+    if (res && res > 0) {
+      ElMessage("未签核数量" + res);
+    }
+  });
+};
 </script>
 
 <style lang="scss" scoped>