diff --git a/client/src/views/qualityinspect/inspecttaskdo.vue b/client/src/views/qualityinspect/inspecttaskdo.vue
index 9632155..7ff9484 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,7 +95,8 @@
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 }}
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取消
- 确认
-
-
-
+
{
- this.leaderOptions = genTree(res.data);
- this.memberOptions = genTree(res.data);
- });
- },
+
//组员列表
getUserList() {
getUserList({pageoff:true, roles__name:'质量巡查成员'}).then((res) => {
@@ -457,7 +320,7 @@ export default {
},
//创建子任务
async confirm(form) {
- console.log(this.inspecttask)
+
this.inspecttask.inspecttask=this.$route.params.id;
createsubinspecttask(this.inspecttask).then((res) => {
@@ -498,65 +361,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 5d99a9a..bbf7954 100644
--- a/client/src/views/qualityinspect/mytaskdo.vue
+++ b/client/src/views/qualityinspect/mytaskdo.vue
@@ -36,7 +36,9 @@
"
@click="handleStartup(scope)">开始检查
- 组长提交
@@ -46,18 +48,24 @@
-
+ 指派任务
+ style="width: 100%"
+ @selection-change="handleSelectionChange">
+
+
+
+ width="230">
{{ scope.row.item_.name }}
@@ -103,6 +111,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+