|
@@ -131,6 +131,37 @@
|
|
|
审核通过
|
|
|
</button>
|
|
|
</view>
|
|
|
+
|
|
|
+ <uni-popup ref="exePopup" type="dialog">
|
|
|
+ <uni-popup-dialog title="转执行" type="info">
|
|
|
+ <uni-data-picker
|
|
|
+ class="depSelect"
|
|
|
+ placeholder="请选择执行经理"
|
|
|
+ :localdata="depUserTree"
|
|
|
+ @change="changeManager"
|
|
|
+ />
|
|
|
+ </uni-popup-dialog>
|
|
|
+ </uni-popup>
|
|
|
+ <uni-popup ref="wtyPopup" type="dialog">
|
|
|
+ <uni-popup-dialog title="转质保" type="info" @confirm="submitWarranty">
|
|
|
+ <uni-data-picker
|
|
|
+ class="depSelect"
|
|
|
+ placeholder="请选择质保经理"
|
|
|
+ :localdata="depUserTree"
|
|
|
+ @change="changeManager"
|
|
|
+ />
|
|
|
+ </uni-popup-dialog>
|
|
|
+ </uni-popup>
|
|
|
+ <uni-popup ref="optPopup" type="dialog">
|
|
|
+ <uni-popup-dialog title="转运营" type="info" @confirm="submitOperate">
|
|
|
+ <uni-data-picker
|
|
|
+ class="depSelect"
|
|
|
+ placeholder="请选择运营经理"
|
|
|
+ :localdata="depUserTree"
|
|
|
+ @change="changeManager"
|
|
|
+ />
|
|
|
+ </uni-popup-dialog>
|
|
|
+ </uni-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -151,10 +182,11 @@ export default {
|
|
|
flowList: [],
|
|
|
depRole: [],
|
|
|
user: {},
|
|
|
+ manager: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(["currentProject"]),
|
|
|
+ ...mapState(["currentProject", "depUserTree"]),
|
|
|
nodeList() {
|
|
|
if (!this.flowList) return [];
|
|
|
let flowInfo = this.flowList.find(
|
|
@@ -237,7 +269,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
});
|
|
|
- // } else console.log("审核拒绝");
|
|
|
} else {
|
|
|
uni.showModal({
|
|
|
title: "是否确认拒绝",
|
|
@@ -382,7 +413,6 @@ export default {
|
|
|
flow_id: this.currentProject.flow_id,
|
|
|
node_id: this.currentProject.node_id,
|
|
|
};
|
|
|
- console.log(payload);
|
|
|
await submitAudit(payload);
|
|
|
uni.showToast({
|
|
|
title: "提审成功",
|
|
@@ -402,13 +432,26 @@ export default {
|
|
|
url: "./member",
|
|
|
});
|
|
|
},
|
|
|
+ changeManager(e) {
|
|
|
+ this.manager = e.detail.value[e.detail.value.length - 1].value;
|
|
|
+ console.log(this.manager);
|
|
|
+ },
|
|
|
onExecute() {
|
|
|
+ this.$refs.exePopup.open();
|
|
|
return;
|
|
|
},
|
|
|
onWarranty() {
|
|
|
+ this.$refs.wtyPopup.open();
|
|
|
+ return;
|
|
|
+ },
|
|
|
+ submitWarranty(value) {
|
|
|
return;
|
|
|
},
|
|
|
onOperate() {
|
|
|
+ this.$refs.optPopup.open();
|
|
|
+ return;
|
|
|
+ },
|
|
|
+ submitOperate(value) {
|
|
|
return;
|
|
|
},
|
|
|
},
|
|
@@ -483,4 +526,8 @@ export default {
|
|
|
margin: inherit;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.depSelect {
|
|
|
+ width: 200px;
|
|
|
+}
|
|
|
</style>
|