From 9c70118512103b625dc998bbf6a0d9dd49bf453a Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Fri, 30 Apr 2021 09:49:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/qualityinspect/inspecttaskdo.vue | 205 ++----------------
client/src/views/qualityinspect/mytask.vue | 7 +-
client/src/views/qualityinspect/mytaskdo.vue | 90 +++++++-
3 files changed, 107 insertions(+), 195 deletions(-)
diff --git a/client/src/views/qualityinspect/inspecttaskdo.vue b/client/src/views/qualityinspect/inspecttaskdo.vue
index 8bb0b1a..687a152 100644
--- a/client/src/views/qualityinspect/inspecttaskdo.vue
+++ b/client/src/views/qualityinspect/inspecttaskdo.vue
@@ -52,7 +52,7 @@
- 创建子任务
@@ -64,7 +64,6 @@
stripe
highlight-current-row
max-height="300"
- @row-click="clickRow"
>
@@ -96,6 +95,7 @@
fixed="right"
>
+ 执行
-
-
-
-
-
-
-
- {{ scope.row.dept__name }}
-
-
-
-
-
-
- {{ scope.row.state }}
-
-
-
-
-
-
-
-
- 指派任务
-
-
-
-
-
-
- {{ scope.row.item_.cate_name }}
-
-
-
-
-
-
- {{ scope.row.item_.name }}
-
-
-
-
-
-
- {{ scope.row.item_.type }}
-
-
-
-
-
-
- {{ scope.row.checker_.name }}
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取消
- 确认
-
-
-
+
{
@@ -496,65 +365,29 @@ export default {
})
},
-
+ createChildtask()
+ {
+
+ this.inspecttask = Object.assign({}, defaulttask);
+ this.dialogVisible = true;
+
+ },
clickRow(row, col, e) {
this.listLoading2 = true;
this.id = row.id;
- this.subtask=row.id;
-
- this.getsubinspecttaskdep();
-
- this.leaders = row.members;
-
+ this.$router.push({name: "myTaskdos", params: { id: this.id,leaders:row.members }, })
+
},
- //增加巡检组织
- adddept()
- {
+
- },
- //点击组织弹出清单
- getinspectrecordlist() {
- getinspectrecordlist(this.listQuery)
- .then((res) => {
- this.inspectitemList = res.data;
-
- })
-
- },
-
- recorclickRow(row, col, e) {
+ handleClick(scope) {
this.listLoading2 = true;
- this.listQuery = {pageoff:true, subtask: this.subtask, dept: row.dept }
- this.getinspectrecordlist();
+ this.$router.push({name: "myTaskdos", params: { id: scope.row.id,leaders:scope.row.members }, })
},
- handleSelectionChange(val){
-
- this.multipleSelection = val;
- },
- sendconfirm(){
-
-
- const lengths = this.multipleSelection.length;
- for (let i = 0; i < lengths; i++) {
- this.ids.push(this.multipleSelection[i].id);
- }
- console.log(lengths)
- //let data = { records: this.ids };//检查项ID
-
-
- this.mbersData.records=this.ids
- console.log(this.mbersData)
- addappoint(this.mbersData).then((res) => {
-
- this.dialogFormVisible = false;
- this.getinspectrecordlist();
- this.$message.success("成功");
-
- });
-
- }
+
+
},
};
\ No newline at end of file
diff --git a/client/src/views/qualityinspect/mytask.vue b/client/src/views/qualityinspect/mytask.vue
index 92cd75e..ba02b51 100644
--- a/client/src/views/qualityinspect/mytask.vue
+++ b/client/src/views/qualityinspect/mytask.vue
@@ -12,7 +12,7 @@
max-height="600"
>
-
+
{{ scope.row.inspecttask_.name }}
@@ -26,7 +26,8 @@
{{ scope.row.name }}
- {{ scope.row.state }}
+
+ {{ scope.row.state }}
{{ scope.row.depts_count }}
@@ -107,7 +108,7 @@ export default {
});
},
handleClick(scope){
- this.$router.push({name: "myTaskdos", params: { id: scope.row.id }, })
+ this.$router.push({name: "myTaskdos", params: { id: scope.row.id,leaders:scope.row.members }, })
},
handleFilter() {
diff --git a/client/src/views/qualityinspect/mytaskdo.vue b/client/src/views/qualityinspect/mytaskdo.vue
index 2153224..d0d3eff 100644
--- a/client/src/views/qualityinspect/mytaskdo.vue
+++ b/client/src/views/qualityinspect/mytaskdo.vue
@@ -37,7 +37,9 @@
"
@click="handleStartup(scope)">开始检查
- 组长提交
@@ -47,18 +49,24 @@
-
+ 指派任务
+ style="width: 100%"
+ @selection-change="handleSelectionChange">
+
+
+
+ width="230">
{{ scope.row.item_.name }}
@@ -104,6 +112,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+