+ >
-
-
-
-
-
+
+
+ 负责人
+
+
+
+
+ 执行人
+
+
+
+
+
-
-
-
+
-
-
-
+
-
+
-
-
-
-
+
+
+ 外购
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -268,6 +262,37 @@
>
+
+
+
+
+
+
+
+
+
@@ -291,6 +316,9 @@ import {
import { mapGetters } from "vuex";
import { sn } from "@/common/js/sequence";
+import XmGantt from "../components/xm-gantt";
+import XmGroupSelect from "../xmGroup/XmGroupSelect.vue";
+
export default {
computed: {
...mapGetters(["userInfo", "roles"]),
@@ -542,7 +570,10 @@ export default {
menuDetailVisible: false,
pickerOptions: util.pickerOptions(),
gstcVisible: false,
- tableHeight: 300,
+ tableHeight: 300,
+ batchExecUserSelectVisible:false,
+ batchGroupUserSelectVisible:false,
+
maps:new Map(),
/**end 自定义属性请在上面加 请加备注**/
};
@@ -1089,30 +1120,7 @@ export default {
});
return;
} else {
- if (this.taskBudgetData.surplusPhaseBudgetInnerUserAt < 0) {
- this.$notify({
- showClose: true,
- message: "内部人力预算不足,请调整",
- type: "error",
- });
- return;
- }
- if (this.taskBudgetData.surplusPhaseBudgetOutUserAt < 0) {
- this.$notify({
- showClose: true,
- message: "外购人力预算不足,请调整",
- type: "error",
- });
- return;
- }
- if (this.taskBudgetData.surplusPhaseBudgetNouserAt < 0) {
- this.$notify({
- showClose: true,
- message: "非人力预算不足请调整",
- type: "error",
- });
- return;
- }
+
this.load.edit = true;
batchSaveBudget(this.valueChangeRows)
@@ -1647,10 +1655,66 @@ export default {
}
})
.catch((err) => (this.load.list = false));
+ },
+ //查询时选择责任人
+ createUserSelectConfirm(groupUsers) {
+ if (groupUsers && groupUsers.length > 0) {
+ this.editForm.createUserid = groupUsers[0].userid;
+ this.editForm.createUsername = groupUsers[0].username;
+ }else{
+ this.editForm.createUserid = "";
+ this.editForm.createUsername = "";
+ }
+ this.groupUserSelectVisible=false;
+ },
+ //查询时选择责任人
+ showBatchCreateUserSelectVisible() {
+ if(!this.sels||this.sels.length==0){
+ this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'error'})
+ return;
+ }else{
+ this.batchGroupUserSelectVisible=true;
+ }
+ },
+ //查询时选择责任人
+ showBatchExecUserSelectVisible() {
+ if(!this.sels||this.sels.length==0){
+ this.$notify({showClose:true,message:'请先选中一条或多条数据',type:'error'})
+ return;
+ }else{
+ this.batchExecUserSelectVisible=true;
+ }
+ },
+ //查询时选择责任人
+ batchCreateUserSelectConfirm(groupUsers) {
+ var user={};
+ if (groupUsers && groupUsers.length > 0) {
+ user=groupUsers[0]
+ }
+ this.batchGroupUserSelectVisible=false;
+ this.sels.forEach(i=>{
+ i.createUserid=user.userid;
+ i.createUsername=user.username;
+ this.fieldChange(i,"executorUsername")
+ })
+ },
+ //查询时选择责任人
+ batchExecUserSelectConfirm(groupUsers) {
+ var user={};
+ if (groupUsers && groupUsers.length > 0) {
+ user=groupUsers[0]
+ }
+ this.batchExecUserSelectVisible=false;
+ this.sels.forEach(i=>{
+ i.executorUserid=user.userid;
+ i.executorUsername=user.username;
+ this.fieldChange(i,"executorUsername")
+ })
},
}, //end methods
components: {
//在下面添加其它组件
+ XmGroupSelect,XmGantt,
},
mounted() {
if (this.selProject) {