"use strict";(self["webpackChunklin_cms_vue"]=self["webpackChunklin_cms_vue"]||[]).push([[3987,1530],{96341:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});n(62010),n(27495),n(5746),n(89195);var a=n(20641),l=n(90033),r={key:0,class:"page-container"},u={class:"search-section"},o={class:"table-section"},i=["href","download"],s={class:"demo-pagination-block"},c={style:{display:"flex","justify-content":"center"}};function d(e,t,n,d,p,f){var m=(0,a.g2)("el-option"),b=(0,a.g2)("el-select"),_=(0,a.g2)("el-form-item"),k=(0,a.g2)("el-cascader"),v=(0,a.g2)("el-input"),h=(0,a.g2)("el-date-picker"),g=(0,a.g2)("el-button"),y=(0,a.g2)("el-form"),w=(0,a.g2)("el-table-column"),F=(0,a.g2)("el-tag"),C=(0,a.g2)("el-table"),x=(0,a.g2)("el-pagination"),A=(0,a.g2)("project-task-add"),j=(0,a.g2)("project-task-add-batch"),T=(0,a.g2)("project-task-assign"),V=(0,a.g2)("el-input-number"),S=(0,a.g2)("el-dialog"),E=(0,a.gN)("loading");return(0,a.uX)(),(0,a.CE)("div",null,[0==d.showEdit?((0,a.uX)(),(0,a.CE)("div",r,[(0,a.Lk)("div",u,[(0,a.bF)(y,{inline:!0,model:d.queryForm,"label-width":"80"},{default:(0,a.k6)((function(){return[(0,a.bF)(_,{label:"所属项目",prop:"project_id"},{default:(0,a.k6)((function(){return[(0,a.bF)(b,{modelValue:d.queryForm.project_id,"onUpdate:modelValue":t[0]||(t[0]=function(e){return d.queryForm.project_id=e}),placeholder:"所属项目",clearable:"",filterable:"",size:"small",onChange:d.handleProjectChange},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(d.projectInfoArr,(function(e){return(0,a.uX)(),(0,a.Wv)(m,{key:e.id,label:e.project_name,value:e.id},null,8,["label","value"])})),128))]})),_:1},8,["modelValue","onChange"])]})),_:1}),(0,a.bF)(_,{label:"项目模块",prop:"module_id"},{default:(0,a.k6)((function(){return[(0,a.bF)(k,{modelValue:d.queryForm.module_ids,"onUpdate:modelValue":t[1]||(t[1]=function(e){return d.queryForm.module_ids=e}),options:d.projectModuleTreeArr,clearable:"",filterable:"",props:d.moduleCascaderProps,"show-all-levels":!1,onChange:e.handleModuleChange,size:"small"},null,8,["modelValue","options","props","onChange"])]})),_:1}),(0,a.bF)(_,{label:"关键字"},{default:(0,a.k6)((function(){return[(0,a.bF)(v,{modelValue:d.queryForm.keyword,"onUpdate:modelValue":t[2]||(t[2]=function(e){return d.queryForm.keyword=e}),placeholder:"任务名称/描述",clearable:"",size:"small"},null,8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"任务类型"},{default:(0,a.k6)((function(){return[(0,a.bF)(b,{modelValue:d.queryForm.type,"onUpdate:modelValue":t[3]||(t[3]=function(e){return d.queryForm.type=e}),placeholder:"任务类型",clearable:"",filterable:"",size:"small"},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(d.projectTaskTypeArr,(function(e){return(0,a.uX)(),(0,a.Wv)(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"排配状态"},{default:(0,a.k6)((function(){return[(0,a.bF)(b,{modelValue:d.queryForm.assign_status,"onUpdate:modelValue":t[4]||(t[4]=function(e){return d.queryForm.assign_status=e}),placeholder:"排配状态",clearable:"",filterable:"",size:"small"},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(d.projectTaskAssignStatus,(function(e){return(0,a.uX)(),(0,a.Wv)(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"任务状态"},{default:(0,a.k6)((function(){return[(0,a.bF)(b,{modelValue:d.queryForm.status_list,"onUpdate:modelValue":t[5]||(t[5]=function(e){return d.queryForm.status_list=e}),placeholder:"任务状态",clearable:"",filterable:"",multiple:!0,size:"small"},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(d.projectTaskStatusArr,(function(e){return(0,a.uX)(),(0,a.Wv)(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"优先级"},{default:(0,a.k6)((function(){return[(0,a.bF)(b,{modelValue:d.queryForm.priority,"onUpdate:modelValue":t[6]||(t[6]=function(e){return d.queryForm.priority=e}),placeholder:"优先级",clearable:"",filterable:"",size:"small"},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(d.projectTaskPriorityArr,(function(e){return(0,a.uX)(),(0,a.Wv)(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"计划开发",prop:"plan_user_id",class:"selectClass"},{default:(0,a.k6)((function(){return[(0,a.bF)(b,{modelValue:d.queryForm.evaluator_users,"onUpdate:modelValue":t[7]||(t[7]=function(e){return d.queryForm.evaluator_users=e}),placeholder:"请选择开发",clearable:"",filterable:"",multiple:!0,size:"small"},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(d.userList,(function(e){return(0,a.uX)(),(0,a.Wv)(m,{key:e.id,label:e.nickname,value:e.id},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"实际开发",prop:"actual_user_id",class:"selectClass"},{default:(0,a.k6)((function(){return[(0,a.bF)(b,{modelValue:d.queryForm.developer_users,"onUpdate:modelValue":t[8]||(t[8]=function(e){return d.queryForm.developer_users=e}),placeholder:"请选择开发",clearable:"",filterable:"",multiple:!0,size:"small"},{default:(0,a.k6)((function(){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(d.userList,(function(e){return(0,a.uX)(),(0,a.Wv)(m,{key:e.id,label:e.nickname,value:e.id},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"计划时间"},{default:(0,a.k6)((function(){return[(0,a.bF)(h,{modelValue:d.queryForm.plan_date,"onUpdate:modelValue":t[9]||(t[9]=function(e){return d.queryForm.plan_date=e}),type:"daterange","range-separator":"-","start-placeholder":"计划开始时间","end-placeholder":"计划结束时间",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD HH:mm:ss",size:"small"},null,8,["modelValue"])]})),_:1}),(0,a.bF)(_,null,{default:(0,a.k6)((function(){return[(0,a.bF)(g,{type:"primary",onClick:d.search,size:"small"},{default:(0,a.k6)((function(){return[(0,a.eW)("查询")]})),_:1},8,["onClick"]),(0,a.bF)(g,{type:"primary",onClick:d.add,size:"small"},{default:(0,a.k6)((function(){return[(0,a.eW)("新增")]})),_:1},8,["onClick"]),(0,a.bF)(g,{type:"primary",onClick:d.addBatch,size:"small"},{default:(0,a.k6)((function(){return[(0,a.eW)("批量新增")]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["model"])]),(0,a.Lk)("div",o,[(0,a.bo)(((0,a.uX)(),(0,a.Wv)(C,{data:d.tableData,stripe:"",style:{width:"100%"},fit:"",height:"450px"},{default:(0,a.k6)((function(){return[(0,a.bF)(w,{prop:"project_name_src",label:"项目名称",fixed:"left",width:"180px"}),(0,a.bF)(w,{prop:"module_name_src",label:"模块名称",width:"200px"}),(0,a.bF)(w,{prop:"name",label:"任务名称",width:"200px"}),(0,a.bF)(w,{prop:"description",label:"任务描述",width:"400px"}),(0,a.bF)(w,{prop:"type",label:"任务类型",width:"90px"},{default:(0,a.k6)((function(e){return[(0,a.bF)(F,{type:"primary"},{default:(0,a.k6)((function(){return[(0,a.eW)((0,l.v_)(d.getDictLabel(d.projectTaskTypeArr,e.row.type)),1)]})),_:2},1024)]})),_:1}),(0,a.bF)(w,{prop:"priority",label:"优先级",width:"80px"},{default:(0,a.k6)((function(e){return[(0,a.bF)(F,{type:"primary"},{default:(0,a.k6)((function(){return[(0,a.eW)((0,l.v_)(d.getDictLabel(d.projectTaskPriorityArr,e.row.priority)),1)]})),_:2},1024)]})),_:1}),(0,a.bF)(w,{prop:"status",label:"任务状态",width:"90px"},{default:(0,a.k6)((function(e){return[(0,a.bF)(F,{type:"primary"},{default:(0,a.k6)((function(){return[(0,a.eW)((0,l.v_)(d.getDictLabel(d.projectTaskStatusArr,e.row.status)),1)]})),_:2},1024)]})),_:1}),(0,a.bF)(w,{prop:"assign_status",label:"排配状态",width:"90px"},{default:(0,a.k6)((function(e){return[(0,a.bF)(F,{type:"primary"},{default:(0,a.k6)((function(){return[(0,a.eW)((0,l.v_)(d.getDictLabel(d.projectTaskAssignStatus,e.row.assign_status)),1)]})),_:2},1024)]})),_:1}),(0,a.bF)(w,{prop:"evaluator_users",label:"评估人",width:"120px"},{default:(0,a.k6)((function(e){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(e.row.evaluator_users,(function(e){return(0,a.uX)(),(0,a.Wv)(F,{type:"primary",key:e.id},{default:(0,a.k6)((function(){return[(0,a.eW)((0,l.v_)(e.evaluator_name),1)]})),_:2},1024)})),128))]})),_:1}),(0,a.bF)(w,{prop:"developer_users",label:"开发者",width:"200px"},{default:(0,a.k6)((function(e){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(e.row.developer_users,(function(e){return(0,a.uX)(),(0,a.Wv)(F,{type:"primary",key:e.id},{default:(0,a.k6)((function(){return[(0,a.eW)((0,l.v_)(e.developer_name),1)]})),_:2},1024)})),128))]})),_:1}),(0,a.bF)(w,{prop:"plan_hour",label:"计划工时",width:"150px"}),(0,a.bF)(w,{prop:"actual_hour",label:"实际工时",width:"150px"}),(0,a.bF)(w,{prop:"plan_begin_date",label:"计划开始时间",width:"220px"}),(0,a.bF)(w,{prop:"plan_end_date",label:"计划结束时间",width:"220px"}),(0,a.bF)(w,{prop:"actual_begin_date",label:"实际开始时间",width:"220px"}),(0,a.bF)(w,{prop:"actual_end_date",label:"实际结束时间",width:"220px"}),(0,a.bF)(w,{prop:"compute_left_hour",label:"剩余工时",width:"150px"}),(0,a.bF)(w,{prop:"process",label:"进度",width:"150px"},{default:(0,a.k6)((function(e){return[(0,a.bF)(F,{type:e.row.process<=100?"primary":"danger"},{default:(0,a.k6)((function(){return[(0,a.eW)((0,l.v_)(e.row.process||"0")+" % ",1)]})),_:2},1032,["type"])]})),_:1}),(0,a.bF)(w,{prop:"file_list",label:"文件",width:"300px"},{default:(0,a.k6)((function(e){return[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(e.row.file_list,(function(e){return(0,a.uX)(),(0,a.CE)("div",{key:e.id,style:{width:"300px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[(0,a.Lk)("a",{href:e.path,download:e.name,target:"_blank",style:{color:"blue"}},(0,l.v_)(e.name),9,i)])})),128))]})),_:1}),(0,a.bF)(w,{prop:"create_user_name",label:"创建人",width:"150px"}),(0,a.bF)(w,{prop:"create_time",label:"创建时间",width:"220px"}),(0,a.bF)(w,{prop:"remark",label:"备注",width:"200px"}),(0,a.bF)(w,{label:"操作栏",fixed:"right",width:"320px"},{default:(0,a.k6)((function(e){return["AN"===e.row.assign_status?((0,a.uX)(),(0,a.Wv)(g,{key:0,type:"text",size:"small",onClick:function(t){return d.handleEdit(e.row)}},{default:(0,a.k6)((function(){return[(0,a.eW)("编辑")]})),_:2},1032,["onClick"])):(0,a.Q3)("",!0),"AN"===e.row.assign_status?((0,a.uX)(),(0,a.Wv)(g,{key:1,type:"text",size:"small",onClick:function(t){return d.handleDelete(e.row)}},{default:(0,a.k6)((function(){return[(0,a.eW)("删除")]})),_:2},1032,["onClick"])):(0,a.Q3)("",!0),(0,a.bF)(g,{type:"text",size:"small",onClick:function(t){return d.handleAssign(e.row)}},{default:(0,a.k6)((function(){return[(0,a.eW)("排配")]})),_:2},1032,["onClick"]),"T"===e.row.status?((0,a.uX)(),(0,a.Wv)(g,{key:2,type:"text",size:"small",onClick:function(t){return d.handleTF(e.row)}},{default:(0,a.k6)((function(){return[(0,a.eW)("测试通过")]})),_:2},1032,["onClick"])):(0,a.Q3)("",!0),"T"===e.row.status?((0,a.uX)(),(0,a.Wv)(g,{key:3,type:"text",size:"small",onClick:function(t){return d.handleTN(e.row)}},{default:(0,a.k6)((function(){return[(0,a.eW)("测试不通过")]})),_:2},1032,["onClick"])):(0,a.Q3)("",!0),"TY"===e.row.status?((0,a.uX)(),(0,a.Wv)(g,{key:4,type:"text",size:"small",onClick:function(t){return d.handleConfirm(e.row)}},{default:(0,a.k6)((function(){return[(0,a.eW)("确认")]})),_:2},1032,["onClick"])):(0,a.Q3)("",!0)]})),_:1})]})),_:1},8,["data"])),[[E,d.loading]]),(0,a.Lk)("div",s,[(0,a.bF)(x,{"current-page":d.currentPage,"onUpdate:currentPage":t[10]||(t[10]=function(e){return d.currentPage=e}),"page-size":d.pageSize,"onUpdate:pageSize":t[11]||(t[11]=function(e){return d.pageSize=e}),"page-sizes":[10,20,30],small:e.small,disabled:e.disabled,background:e.background,layout:"total, sizes, prev, pager, next, jumper",total:d.totalSize,onSizeChange:d.handleSizeChange,onCurrentChange:d.handleCurrentChange},null,8,["current-page","page-size","small","disabled","background","total","onSizeChange","onCurrentChange"])])])])):(0,a.Q3)("",!0),1==d.showEdit?((0,a.uX)(),(0,a.Wv)(A,{key:1,onEditClose:d.editClose,editId:d.editId},null,8,["onEditClose","editId"])):(0,a.Q3)("",!0),2==d.showEdit?((0,a.uX)(),(0,a.Wv)(j,{key:2,onEditClose:d.editClose,editId:d.editId},null,8,["onEditClose","editId"])):(0,a.Q3)("",!0),3==d.showEdit?((0,a.uX)(),(0,a.Wv)(T,{key:3,onEditClose:d.editClose,editId:d.editId},null,8,["onEditClose","editId"])):(0,a.Q3)("",!0),(0,a.bF)(S,{modelValue:d.dialogVisible,"onUpdate:modelValue":t[14]||(t[14]=function(e){return d.dialogVisible=e}),title:"填写进度",width:"400px",class:"dialog-form-container"},{footer:(0,a.k6)((function(){return[(0,a.Lk)("div",c,[(0,a.bF)(g,{onClick:d.handleProcessFormCancel},{default:(0,a.k6)((function(){return[(0,a.eW)("取消")]})),_:1},8,["onClick"]),(0,a.bF)(g,{type:"primary",onClick:d.handleSubmitProcessForm},{default:(0,a.k6)((function(){return[(0,a.eW)("提交")]})),_:1},8,["onClick"])])]})),default:(0,a.k6)((function(){return[(0,a.bF)(y,{model:d.processForm,ref:"processFormRef","label-width":"80px"},{default:(0,a.k6)((function(){return[(0,a.bF)(_,{label:"进度",prop:"process",rules:[{required:!0,message:"进度不能为空",trigger:"blur"}]},{default:(0,a.k6)((function(){return[(0,a.bF)(V,{modelValue:d.processForm.process,"onUpdate:modelValue":t[12]||(t[12]=function(e){return d.processForm.process=e}),placeholder:"请输入进度",min:"0",max:"100",style:{width:"300px"}},null,8,["modelValue"])]})),_:1}),(0,a.bF)(_,{label:"备注",prop:"remark"},{default:(0,a.k6)((function(){return[(0,a.bF)(v,{type:"textarea",modelValue:d.processForm.remark,"onUpdate:modelValue":t[13]||(t[13]=function(e){return d.processForm.remark=e}),placeholder:"请输入备注",style:{width:"300px"}},null,8,["modelValue"])]})),_:1})]})),_:1},8,["model"])]})),_:1},8,["modelValue"])])}var p=n(14048),f=n(30388),m=(n(50113),n(26099),n(50953)),b=n(77918),_=n(20163),k=n(3888),v=n(51595),h=n(44748),g=n(95250),y=n(73337),w=n(94001),F=n(98696),C=n(21754),x={components:{ProjectTaskAdd:w["default"],ProjectTaskAddBatch:F["default"],ProjectTaskAssign:C["default"]},setup:function(){var e=(0,m.KR)(!1),t=(0,m.KR)(!1),n=(0,m.KR)(1),l=(0,m.KR)(10),r=(0,m.KR)(100),u=(0,m.KR)([]),o=(0,m.KR)([]),i=(0,m.KR)([]),s=(0,m.KR)([]),c=(0,m.KR)([]),d=(0,m.KR)(0),w=(0,m.KR)(1),F=(0,m.KR)([]),C=(0,m.KR)([]),x=(0,m.KR)([]),A={value:"id",label:"name",children:"children",checkStrictly:!0},j=(0,m.Kh)({project_id:"",module_ids:[],module_id:"",keyword:"",type:"",assign_status:"",status_list:[],priority:"",evaluator_users:"",developer_users:"",plan_date:[],plan_begin_date:"",plan_end_date:"",actual_date:[],actual_begin_date:"",actual_end_date:"",page:1,count:10}),T=(0,m.KR)({}),V=(0,m.KR)([]),S=(0,m.KR)({process:"",remark:""}),E=(0,m.KR)(null);(0,a.sV)((function(){W(),I()}));var W=function(){var t=(0,f.A)((0,p.A)().mark((function t(){return(0,p.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,j.page=n.value,j.count=l.value,j.module_id=null==j.module_ids?"":j.module_ids[j.module_ids.length-1],j.plan_begin_date="",j.plan_end_date="",j.plan_date&&(j.plan_begin_date=j.plan_date[0],j.plan_end_date=j.plan_date[1]),j.actual_begin_date="",j.actual_end_date="",j.actual_date&&(j.actual_begin_date=j.actual_date[0],j.actual_end_date=j.actual_date[1]),e.value=!0,t.next=13,y["default"].getPage(j);case 13:T.value=t.sent,V.value=T.value.items,r.value=T.value.total,n.value=T.value.page,l.value=T.value.count,e.value=!1,t.next=25;break;case 21:t.prev=21,t.t0=t["catch"](0),e.value=!1,10020===t.t0.code&&(V.value=[]);case 25:case"end":return t.stop()}}),t,null,[[0,21]])})));return function(){return t.apply(this,arguments)}}(),X=function(){W()},I=function(){var e=(0,f.A)((0,p.A)().mark((function e(){var t;return(0,p.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v["default"].getSysDictItemListByType("project_task_status");case 2:return u.value=e.sent,e.next=5,v["default"].getSysDictItemListByType("project_task_assign_status");case 5:return o.value=e.sent,e.next=8,v["default"].getSysDictItemListByType("project_task_type");case 8:return i.value=e.sent,e.next=11,v["default"].getSysDictItemListByType("project_task_priority");case 11:return s.value=e.sent,e.next=14,k["default"].getProjectInfoList("");case 14:return F.value=e.sent,e.next=17,h["default"].getProjectModuleInfoList({});case 17:return C.value=e.sent,e.next=20,h["default"].getProjectModuleTree({});case 20:return x.value=e.sent,e.next=23,g["default"].getAdminUsers({count:30});case 23:t=e.sent,t&&t.items&&(c.value=t.items);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=(0,f.A)((0,p.A)().mark((function e(t){return(0,p.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t),e.next=3,h["default"].getProjectModuleTree({projectId:t});case 3:x.value=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),K=function(e,t){var n=e.find((function(e){return e.value===t}));return n?n.label:""},P=function(e){w.value=e.id,d.value=1},q=function(e){b.s.confirm("此操作将永久删除该记录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((0,f.A)((0,p.A)().mark((function t(){var n;return(0,p.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y["default"].delete(e.id);case 2:n=t.sent,n.code