@@ -122,9 +122,8 @@
>
-
继续编辑
查看
删除
-
@@ -277,6 +275,9 @@
resetQuery() {
this.query = {};
},
+ handleQuery() {
+ this.$refs.table.queryData(this.query)
+ },
},
};
diff --git a/src/views/vm/visit_detial.vue b/src/views/vm/visit_detial.vue
index 9947bc79..9e6afb3b 100644
--- a/src/views/vm/visit_detial.vue
+++ b/src/views/vm/visit_detial.vue
@@ -7,87 +7,89 @@
@closed="$emit('closed')"
>
-
-
-
-
- {{
- form.name
- }}
- {{
- form.company
- }}
+
+
+
+ {{
+ form.name
+ }}
+ {{
+ form.company
+ }}
- {{ form.count_people }}人
-
-
- {{ item.visitor_.name }}
-
- {{
- state_[form.state]
- }}
- {{
- form.visit_time
- }}
- {{
- form.leave_time
- }}
- {{
- purpose_[form.purpose]
- }}
- {{
- form.description
- }}
-
-
-
- {{ form.receptionist_.name }}
-
-
-
-
-
-
+ {{ form.count_people }}人
+
+
+ {{ item.visitor_.name }}
+
+ {{
+ state_[form.state]
+ }}
+ {{
+ form.visit_time
+ }}
+ {{
+ form.leave_time
+ }}
+ {{
+ purpose_[form.purpose]
+ }}
+ {{
+ form.description
+ }}
-
-
-
-
- 是
- 否
-
-
-
-
-
+
+ {{ form.receptionist_.name }}
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
-
@@ -142,21 +144,20 @@ export default {
50: "已完成",
},
receptionistoptions: [],
- peoplelist: [],
+ peoplelist: [],
};
},
mounted() {
- this.getUser();
-
+ // this.getUser();
},
methods: {
//访客接待人
- getUser() {
- this.$API.system.user.list.req({ page: 0 }).then((res) => {
- this.receptionistoptions = res;
- });
- },
-
+ // getUser() {
+ // this.$API.system.user.list.req({ page: 0 }).then((res) => {
+ // this.receptionistoptions = res;
+ // });
+ // },
+
//显示
open(mode = "add") {
this.mode = mode;
@@ -164,19 +165,17 @@ export default {
return this;
},
-
//表单注入数据
setData(data) {
-
+ this.loading = true
this.$API.vm.visit.read.req(data.id).then((res) => {
+ this.loading = false
this.form = res;
+ }).catch(e=>{this.loading = false});
+
+ this.$API.vm.people.list.req({ visit: data.id, page: 0 }).then((res) => {
+ this.peoplelist = res;
});
-
- this.$API.vm.people.list
- .req({ visit:data.id, page: 0 })
- .then((res) => {
- this.peoplelist = res;
- });
},
//设置过滤项
setFilters(filters) {
diff --git a/src/views/vm/visitor.vue b/src/views/vm/visitor.vue
index 509c1af6..28e2ce34 100644
--- a/src/views/vm/visitor.vue
+++ b/src/views/vm/visitor.vue
@@ -15,7 +15,7 @@
@@ -24,7 +24,7 @@
-
+
-
-
+
+
+
+
+
+
@@ -131,7 +133,7 @@ export default {
},
dialogcart: false,
- apiObj: [],
+ apiObj: this.$API.vm.visitor.list,
query: {},
selection: [],
search: {
@@ -140,7 +142,7 @@ export default {
};
},
mounted() {
- this.getvisitorlist();
+ // this.getvisitorlist();
},
methods: {
handleForm(type, row) {
@@ -153,11 +155,11 @@ export default {
}
},
//访客列表
- getvisitorlist() {
- this.$API.vm.visitor.list.req({ page: 0 }).then((res) => {
- this.apiObj = res;
- });
- },
+ // getvisitorlist() {
+ // this.$API.vm.visitor.list.req({ page: 0 }).then((res) => {
+ // this.apiObj = res;
+ // });
+ // },
//访客创建
submitcert() {
this.form.employee = this.$route.query.id;
@@ -200,6 +202,9 @@ export default {
return err;
});
},
+ handleQuery() {
+ this.$refs.table.queryData(this.query)
+ },
},
};
diff --git a/src/views/wf/allwork.vue b/src/views/wf/allwork.vue
index b6f53b66..17d0a338 100644
--- a/src/views/wf/allwork.vue
+++ b/src/views/wf/allwork.vue
@@ -3,28 +3,31 @@
-
-
-
-
+
+
+
+
+
+
+ {{ scope.row.workflow_.name }}
+
+
+
{{ scope.row.state_.name }}
- {{ actstate_[scope.row.act_state] }}
-
-
-
-
- {{ scope.row.workflow_.name }}
+ {{act_states[scope.row.act_state]}}
@@ -32,10 +35,10 @@
{{ participant_[scope.row.participant_type] }}
-
-
+
+
- 查看详情
+ 查看
@@ -51,7 +54,9 @@
data() {
return {
list: [],
- actstate_: {
+ apiObj: this.$API.wf.ticket.list,
+ params: {"category": "all"},
+ act_states: {
0: "草稿中",
1: "进行中",
2: "被退回",
@@ -61,23 +66,14 @@
},
participant_: {
0: "无处理人",
- 1: "个人",
+ 1: "单人",
2: "多人",
},
};
},
mounted() {
- this.getList();
},
methods: {
- async getList() {
- let res = await this.$API.wf.ticket.list.req({
- category: "all",
- page: 0,
- });
- console.log(res);
- this.list = res;
- },
handleShow(row) {
let cateType = row.workflow_.key;
let projectId = '', operation = null;
diff --git a/src/views/wf/state.vue b/src/views/wf/state.vue
index ebc310f8..266c6f2e 100644
--- a/src/views/wf/state.vue
+++ b/src/views/wf/state.vue
@@ -72,6 +72,9 @@
+
+
+
diff --git a/src/views/wf/steps.vue b/src/views/wf/steps.vue
index 3bc57fd8..62519451 100644
--- a/src/views/wf/steps.vue
+++ b/src/views/wf/steps.vue
@@ -1,69 +1,62 @@
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/src/views/wf/ticket.vue b/src/views/wf/ticket.vue
index 06c0c362..717eb174 100644
--- a/src/views/wf/ticket.vue
+++ b/src/views/wf/ticket.vue
@@ -8,7 +8,7 @@
@@ -308,7 +308,7 @@
}
},
//搜索
- upsearch(){
+ handleQuery(){
},
currentPage(){},
diff --git a/src/views/wf/visitdetail.vue b/src/views/wf/visitdetail.vue
index 1e664aca..f4ec79b8 100644
--- a/src/views/wf/visitdetail.vue
+++ b/src/views/wf/visitdetail.vue
@@ -1,7 +1,7 @@
-
-
+
+
-
+
{{ticketDetail.sn }}
@@ -51,7 +51,7 @@
-
+
{{ticketDetail.sn }}
@@ -86,12 +86,12 @@
-
+
{{ticketDetail.sn }}
-
+
{{oplDetail.name }}
@@ -116,10 +116,10 @@
-
+
-
+
-
+