打卡状态 {{ (isGetLocation || isIpSign) ? (isOutSign ? '外勤打卡' : '可打卡') : '不可打卡' }}
@@ -86,6 +91,7 @@ export default {
return {
uploadSize,
isInUni: false,
+ signStatus: 0,
// start 外勤打卡
loading: false,
action: process.env.VUE_APP_UPLOAD_API,
@@ -160,7 +166,8 @@ export default {
if (this.isIpSign) {
const res = await signIp({
image_id: this.imageId,
- remark: this.remark
+ remark: this.remark,
+ status: 3
})
} else {
const res = await sign({
@@ -180,7 +187,7 @@ export default {
this.loading = false
}
}, 1000, true),
- clockIn: throttle(async function() {
+ clockIn: throttle(async function(isOut=true) {
try {
if (!this.isInUni && !this.isIpSign) {
await this.getLocation()
@@ -195,12 +202,14 @@ export default {
return
}
if(!this.isGetLocation && !this.isIpSign) return
- if(this.isOutSign) {
+ if(isOut) {
this.isShow = true
return
}
if (this.isIpSign) {
- const res = await signIp()
+ const res = await signIp({
+ status: 1
+ })
} else {
const res = await sign({
location: `${this.pos.lng},${this.pos.lat}`,
@@ -262,10 +271,12 @@ export default {
async preIp() {
try {
- const res = await preIp()
- this.isOutSign = false
+ const { result } = await preIp()
+ this.signStatus = result
+
+ // this.isOutSign = false
} catch (err) {
- this.isOutSign = true
+ // this.isOutSign = true
}
},
async pos2Address(lat, lng) {
diff --git a/src/views/flow/list.vue b/src/views/flow/list.vue
index a9b1731..de8cf67 100644
--- a/src/views/flow/list.vue
+++ b/src/views/flow/list.vue
@@ -77,15 +77,15 @@
@click="getList(true)"
>搜索
-
批量审批
+
+
+
+
+
+
+
+
+
@@ -386,7 +386,7 @@ import moment from "moment/moment";
import ListPopover from "./components/ListPopover.vue";
import MultiDeal from "./components/MultiDeal.vue"
import share from "./components/share.vue";
-import {index as departmentIndex} from "@/api/department";
+import { departmentListNoAuth } from "@/api/common"
export default {
name: "flowList",
components: {
@@ -512,7 +512,7 @@ export default {
methods: {
async getDepartments() {
try {
- this.departments = await departmentIndex({
+ this.departments = await departmentListNoAuth({
page: 1,
page_size: 9999
})