(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a70d9760"],{2063:function(t,e,a){"use strict";a("282f")},"282f":function(t,e,a){},3422:function(t,e,a){"use strict";var n=a("4292"),i=a("6ff7"),o=a("11a1"),r=a("8531");n({target:"String",proto:!0,forced:!r("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},"365c":function(t,e,a){"use strict";a.d(e,"Q",(function(){return i})),a.d(e,"z",(function(){return o})),a.d(e,"l",(function(){return r})),a.d(e,"y",(function(){return s})),a.d(e,"O",(function(){return c})),a.d(e,"P",(function(){return l})),a.d(e,"eb",(function(){return u})),a.d(e,"fb",(function(){return d})),a.d(e,"c",(function(){return p})),a.d(e,"o",(function(){return m})),a.d(e,"D",(function(){return f})),a.d(e,"T",(function(){return h})),a.d(e,"E",(function(){return b})),a.d(e,"d",(function(){return v})),a.d(e,"U",(function(){return y})),a.d(e,"p",(function(){return g})),a.d(e,"J",(function(){return k})),a.d(e,"K",(function(){return j})),a.d(e,"bb",(function(){return w})),a.d(e,"u",(function(){return x})),a.d(e,"L",(function(){return _})),a.d(e,"j",(function(){return O})),a.d(e,"cb",(function(){return P})),a.d(e,"w",(function(){return S})),a.d(e,"I",(function(){return $})),a.d(e,"i",(function(){return L})),a.d(e,"Z",(function(){return z})),a.d(e,"t",(function(){return F})),a.d(e,"g",(function(){return E})),a.d(e,"A",(function(){return R})),a.d(e,"f",(function(){return C})),a.d(e,"W",(function(){return D})),a.d(e,"r",(function(){return M})),a.d(e,"G",(function(){return U})),a.d(e,"h",(function(){return H})),a.d(e,"s",(function(){return N})),a.d(e,"H",(function(){return A})),a.d(e,"a",(function(){return V})),a.d(e,"m",(function(){return q})),a.d(e,"B",(function(){return B})),a.d(e,"v",(function(){return J})),a.d(e,"R",(function(){return I})),a.d(e,"X",(function(){return T})),a.d(e,"Y",(function(){return G})),a.d(e,"ab",(function(){return W})),a.d(e,"C",(function(){return K})),a.d(e,"b",(function(){return Q})),a.d(e,"S",(function(){return X})),a.d(e,"n",(function(){return Y})),a.d(e,"M",(function(){return Z})),a.d(e,"N",(function(){return tt})),a.d(e,"k",(function(){return et})),a.d(e,"db",(function(){return at})),a.d(e,"x",(function(){return nt})),a.d(e,"F",(function(){return it})),a.d(e,"e",(function(){return ot})),a.d(e,"V",(function(){return rt})),a.d(e,"q",(function(){return st}));var n=a("b775");function i(t){return Object(n["a"])({url:"/api/v1/kxpms/workbench/query",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/api/v1/kxpms/login/login",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/api/v1/kxpms/user/add",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/api/v1/kxpms/user/delete/".concat(t),method:"post"})}function c(t){return Object(n["a"])({url:"/api/v1/kxpms/user/get",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/api/v1/kxpms/user/list",method:"post",data:t})}function u(t,e){return Object(n["a"])({url:"/api/v1/kxpms/user/update/".concat(t),method:"post",data:e})}function d(t){return Object(n["a"])({url:"/api/v1/kxpms/updatePassword",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/api/v1/kxpms/depot/add",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/api/v1/kxpms/depot/delete/".concat(t),method:"post"})}function f(t){return Object(n["a"])({url:"/api/v1/kxpms/depot/list",method:"post",data:t})}function h(t,e){return Object(n["a"])({url:"/api/v1/kxpms/depot/update/".concat(t),method:"post",data:e})}function b(t){return Object(n["a"])({url:"/api/v1/kxpms/dict/list",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/api/v1/kxpms/dict/add",method:"post",data:t})}function y(t,e){return Object(n["a"])({url:"/api/v1/kxpms/dict/update/".concat(t),method:"post",data:e})}function g(t){return Object(n["a"])({url:"/api/v1/kxpms/dict/delete/".concat(t),method:"post"})}function k(t){return Object(n["a"])({url:"/api/v1/kxpms/project/get",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/api/v1/kxpms/project/list",method:"post",data:t})}function w(t,e){return Object(n["a"])({url:"/api/v1/kxpms/project/update/".concat(t),method:"post",data:e})}function x(t){return Object(n["a"])({url:"/api/v1/kxpms/project/delete/".concat(t),method:"post"})}function _(t){return Object(n["a"])({url:"/api/v1/kxpms/role/list",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/api/v1/kxpms/role/add",method:"post",data:t})}function P(t,e){return Object(n["a"])({url:"/api/v1/kxpms/role/update/".concat(t),method:"post",data:e})}function S(t){return Object(n["a"])({url:"/api/v1/kxpms/role/delete/".concat(t),method:"delete"})}function $(t){return Object(n["a"])({url:"/api/v1/kxpms/permission/list",method:"post",data:t})}function L(t){return Object(n["a"])({url:"/api/v1/kxpms/permission/add",method:"post",data:t})}function z(t,e){return Object(n["a"])({url:"/api/v1/kxpms/permission/update/".concat(t),method:"post",data:e})}function F(t){return Object(n["a"])({url:"/api/v1/kxpms/permission/delete/".concat(t),method:"post"})}function E(t){return Object(n["a"])({url:"/api/v1/kxpms/system/addProject",method:"post",data:t})}function R(t){return Object(n["a"])({url:"/api/v1/kxpms/system/exportProject",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/api/v1/kxpms/flow/add",method:"post",data:t})}function D(t,e){return Object(n["a"])({url:"/api/v1/kxpms/flow/update/".concat(t),method:"post",data:e})}function M(t){return Object(n["a"])({url:"/api/v1/kxpms/flow/delete/".concat(t),method:"delete"})}function U(t){return Object(n["a"])({url:"/api/v1/kxpms/system/getFlowList",method:"post",data:t})}function H(t){return Object(n["a"])({url:"/api/v1/kxpms/payback/add",method:"post",data:t})}function N(t){return Object(n["a"])({url:"/api/v1/kxpms/payback/delete/".concat(t),method:"post"})}function A(t){return Object(n["a"])({url:"/api/v1/kxpms/system/getPaybackList",method:"post",data:t})}function V(t){return Object(n["a"])({url:"/api/v1/kxpms/annex/add",method:"post",data:t})}function q(t){return Object(n["a"])({url:"/api/v1/kxpms/annex/delete/".concat(t),method:"post"})}function B(t){return Object(n["a"])({url:"/api/v1/kxpms/annex/list",method:"post",data:t})}function J(t){return Object(n["a"])({url:"/api/v1/kxpms/system/deleteProjectUser",method:"post",data:t})}function I(t){return Object(n["a"])({url:"/api/v1/kxpms/system/modifyProjectUser",method:"post",data:t})}function T(t){return Object(n["a"])({url:"/api/v1/kxpms/system/updateFlow",method:"post",data:t})}function G(t){return Object(n["a"])({url:"/api/v1/kxpms/system/updatePayback",method:"post",data:t})}function W(t){return Object(n["a"])({url:"/api/v1/kxpms/system/updateProductionPlan",method:"post",data:t})}function K(t){return Object(n["a"])({url:"/api/v1/kxpms/calendar/list",method:"post",data:t})}function Q(t){return Object(n["a"])({url:"/api/v1/kxpms/calendar/add",method:"post",data:t})}function X(t,e){return Object(n["a"])({url:"/api/v1/kxpms/calendar/update/".concat(t),method:"post",data:e})}function Y(t){return Object(n["a"])({url:"/api/v1/kxpms/calendar/delete/".concat(t),method:"post"})}function Z(t){return Object(n["a"])({url:"/api/v1/kxpms/system/getRoleUsers",method:"post",data:t})}function tt(t){return Object(n["a"])({url:"/api/v1/kxpms/summary/list",method:"post",data:t})}function et(t){return Object(n["a"])({url:"/api/v1/kxpms/summary/add",method:"post",data:t})}function at(t,e){return Object(n["a"])({url:"/api/v1/kxpms/summary/update/".concat(t),method:"post",data:e})}function nt(t){return Object(n["a"])({url:"/api/v1/kxpms/summary/delete/".concat(t),method:"post"})}function it(t){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/list",method:"post",data:t})}function ot(t){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/add",method:"post",data:t})}function rt(t,e){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/update/".concat(t),method:"post",data:e})}function st(t){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/delete",method:"post",data:t})}},"48ec":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"流程管理",name:"first"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("h3",[t._v("项目状态")]),a("el-timeline",{staticStyle:{margin:"15px"}},t._l(t.activities,(function(e,n){return a("el-timeline-item",{key:n,attrs:{icon:e.icon,type:e.type,color:e.color,size:e.size,timestamp:e.timestamp}},[t._v(" "+t._s(e.content)+" ")])})),1),a("div",[a("el-button",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{type:"primary",disabled:t.isEnable(1)},on:{click:t.reviewProject}},[t._v("审核项目")]),a("el-button",{staticStyle:{width:"100%","margin-top":"15px","margin-left":"0px"},attrs:{type:"success",disabled:t.isEnable(2)},on:{click:t.startProject}},[t._v("启动项目")]),a("el-button",{staticStyle:{width:"100%","margin-top":"15px","margin-left":"0px"},attrs:{type:"danger",disabled:t.isEnable(3)},on:{click:t.finishProject}},[t._v("结束项目")]),a("el-button",{staticStyle:{width:"100%","margin-top":"15px","margin-left":"0px"},attrs:{type:"warning",disabled:t.isEnable(4)},on:{click:t.archiveProject}},[t._v("归档项目")])],1)],1),a("el-col",{attrs:{span:16}},[a("h3",[t._v("流程状态")]),a("el-table",{attrs:{data:t.tableData,size:"mini"}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._l(e.row.annex,(function(e,n){return a("p",{key:n},[a("a",{staticStyle:{color:"blue","text-decoration":"underline"},attrs:{target:"_blank",href:e.path}},[t._v(t._s(e.title))]),t._v(" "),a("el-popconfirm",{directives:[{name:"show",rawName:"v-show",value:4==t.currentFlowStatus&&e.creater==t.user.uuid,expression:"currentFlowStatus == 4 && item.creater == user.uuid"}],attrs:{title:"确定删除附件吗?"},on:{confirm:function(a){return t.deleteAnnex(e)}}},[a("span",{staticStyle:{color:"grey",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t._v("删除")])])],1)})),e.row.annex?t._e():a("p",{staticStyle:{color:"grey"}},[t._v("没有附件")])]}}])}),a("el-table-column",{attrs:{prop:"status_text",label:"审批状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{size:"mini",type:t._f("getStatusColor")(e.row.status)}},[t._v(t._s(e.row.status_text))])]}}])}),a("el-table-column",{attrs:{prop:"title",label:"节点标题",width:"120","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{prop:"remarks",label:"备注",width:"180","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{prop:"submitter.username",label:"提交者",width:"120","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{prop:"submit_at",label:"提交时间",width:"150"}}),a("el-table-column",{attrs:{prop:"reviewer.username",label:"审批者",width:"120","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{prop:"review_at",label:"审批时间",width:"150"}}),a("el-table-column",{attrs:{fixed:"right",align:"center",label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{disabled:t.hasPermission(e.$index,e.row),type:"text",size:"small"},on:{click:function(a){return t.handleClick(e.row)}}},[t._v(t._s("技术负责人"!==t.role.name?"更新":"审核"))]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"技术负责人"!==t.role.name,expression:"role.name !== '技术负责人'"}],attrs:{disabled:t.hasPermission(e.$index,e.row),type:"text",size:"small"},on:{click:function(a){return t.handleFlowSubmit(e.row)}}},[t._v("提交")])]}}])})],1),a("el-col",{attrs:{span:12}},[a("h3",[t._v("整体验收表")]),a("el-upload",{attrs:{action:t.window.location.protocol+"//"+t.window.location.host+"/api/v1/kxpms/upload","on-preview":t.handlePreview,"on-remove":t.handleRemove,"on-success":t.handleUploadSuccess,"before-remove":t.beforeRemove,disabled:t.project.status>=5,"on-exceed":t.handleExceed,"file-list":t.acceptanceList,name:"binfile",data:{annex_type:"project",note:"acceptance",file_dir:t.project.title},multiple:""}},[a("el-button",{attrs:{size:"small",disabled:t.project.status>=5,type:"primary"}},[t._v("点击上传")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件大小不超过10MB")])],1),t._l(t.acceptanceList,(function(e,n){return a("a",{key:n,staticStyle:{display:"block","text-decoration":"underline",color:"blue"},attrs:{target:"_blank",href:e.url}},[t._v(t._s(e.name))])}))],2),a("el-col",{attrs:{span:12}},[a("h3",[t._v("评价表")]),a("el-upload",{attrs:{action:t.window.location.protocol+"//"+t.window.location.host+"/api/v1/kxpms/upload","on-preview":t.handlePreview,"on-remove":t.handleRemove,"on-success":t.handleUploadSuccess,"before-remove":t.beforeRemove,disabled:t.project.status>=5,"on-exceed":t.handleExceed,"file-list":t.evaluationList,name:"binfile",data:{annex_type:"project",note:"evaluation",file_dir:t.project.title},multiple:""}},[a("el-button",{attrs:{size:"small",disabled:t.project.status>=5,type:"primary"}},[t._v("点击上传")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件大小不超过10MB")])],1),t._l(t.evaluationList,(function(e,n){return a("a",{key:n,staticStyle:{display:"block","text-decoration":"underline",color:"blue"},attrs:{target:"_blank",href:e.url}},[t._v(t._s(e.name))])}))],2),a("el-col",{attrs:{span:12}},[a("h3",[t._v("诊断报告")]),a("el-upload",{attrs:{action:t.window.location.protocol+"//"+t.window.location.host+"/api/v1/kxpms/upload","on-preview":t.handlePreview,"on-remove":t.handleRemove,"before-remove":t.beforeRemove,"on-success":t.handleUploadSuccess,data:{annex_type:"project",note:"diagnose",file_dir:t.project.title},disabled:t.project.status>=5,name:"binfile",multiple:"","on-exceed":t.handleExceed,"file-list":t.diagnoseList}},[a("el-button",{attrs:{size:"small",type:"primary",disabled:t.project.status>=5}},[t._v("点击上传")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传jpg/png文件,且不超过500kb")])],1),t._l(t.diagnoseList,(function(e,n){return a("a",{key:n,staticStyle:{display:"block","text-decoration":"underline",color:"blue"},attrs:{target:"_blank",href:e.url}},[t._v(t._s(e.name))])}))],2),a("el-col",{attrs:{span:12}},[a("h3",[t._v("总结报告")]),a("el-upload",{attrs:{action:t.window.location.protocol+"//"+t.window.location.host+"/api/v1/kxpms/upload","on-preview":t.handlePreview,"on-remove":t.handleRemove,"before-remove":t.beforeRemove,"on-success":t.handleUploadSuccess,data:{annex_type:"project",note:"summary",file_dir:t.project.title},disabled:t.project.status>=5,name:"binfile",multiple:"","on-exceed":t.handleExceed,"file-list":t.summaryList}},[a("el-button",{attrs:{size:"small",type:"primary",disabled:t.project.status>=5}},[t._v("点击上传")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传jpg/png文件,且不超过500kb")])],1),t._l(t.summaryList,(function(e,n){return a("a",{key:n,staticStyle:{display:"block","text-decoration":"underline",color:"blue"},attrs:{target:"_blank",href:e.url}},[t._v(t._s(e.name))])}))],2)],1)],1)],1),a("el-tab-pane",{attrs:{label:"回款管理",name:"second"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form",{ref:"invoice",attrs:{"label-position":"right","label-width":"80px",model:t.payback,size:"mini",rules:t.paybackRules}},[a("el-form-item",{attrs:{label:"发票标题",prop:"title"}},[a("el-input",{model:{value:t.payback.title,callback:function(e){t.$set(t.payback,"title",e)},expression:"payback.title"}})],1),a("el-form-item",{attrs:{label:"发票金额",prop:"funds"}},[a("el-input",{model:{value:t.payback.funds,callback:function(e){t.$set(t.payback,"funds",t._n(e))},expression:"payback.funds"}})],1),a("el-form-item",{attrs:{label:"开票时间",prop:"real_time"}},[a("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择日期时间"},model:{value:t.payback.real_time,callback:function(e){t.$set(t.payback,"real_time",e)},expression:"payback.real_time"}})],1)],1),a("div",{staticClass:"form-footer"},[a("el-button",{attrs:{type:"primary",size:"mini",plain:"",disabled:"可读写"!==t.role.permission.paybackProgress},on:{click:function(e){return t.submitPaybackForm("invoice")}}},[t._v("提交")]),a("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.onReset("invoice")}}},[t._v("重置表单")])],1)],1),a("el-col",{attrs:{span:12}},[a("el-form",{ref:"payback",attrs:{"label-position":"right","label-width":"80px",model:t.payback,size:"mini",rules:t.paybackRules}},[a("el-form-item",{attrs:{label:"收款标题",prop:"title"}},[a("el-input",{model:{value:t.payback.title,callback:function(e){t.$set(t.payback,"title",e)},expression:"payback.title"}})],1),a("el-form-item",{attrs:{label:"到账金额",prop:"funds"}},[a("el-input",{model:{value:t.payback.funds,callback:function(e){t.$set(t.payback,"funds",t._n(e))},expression:"payback.funds"}})],1),a("el-form-item",{attrs:{label:"到账时间",prop:"real_time"}},[a("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择日期时间"},model:{value:t.payback.real_time,callback:function(e){t.$set(t.payback,"real_time",e)},expression:"payback.real_time"}})],1)],1),a("div",{staticClass:"form-footer"},[a("el-button",{attrs:{type:"primary",size:"mini",plain:"",disabled:"可读写"!==t.role.permission.paybackProgress},on:{click:function(e){return t.submitPaybackForm("payback")}}},[t._v("提交")]),a("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.onReset("payback")}}},[t._v("重置表单")])],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("h3",[t._v("计划回款")]),a("el-timeline",t._l(t.planList,(function(e,n){return a("el-timeline-item",{key:n,attrs:{timestamp:e.plan_time,placement:"top"}},[a("div",{staticClass:"pay-div"},[a("h4",[t._v("【"+t._s(e.title)+"】 回款金额 "),a("label",{staticStyle:{color:"red"}},[t._v(t._s(e.funds))])]),a("p",[t._v(t._s(e.create_by.username)+" 提交于 "+t._s(e.create_at))])])])})),1)],1),a("el-col",{attrs:{span:8}},[a("h3",[t._v("发票列表")]),a("el-timeline",t._l(t.invoiceList,(function(e,n){return a("el-timeline-item",{key:n,attrs:{timestamp:e.real_time,placement:"top"}},[a("div",{staticClass:"pay-div"},[a("h4",[t._v("【"+t._s(e.title)+"】 发票金额 "),a("label",{staticStyle:{color:"red"}},[t._v(t._s(e.funds))]),t._v(" "),a("span",{staticStyle:{color:"blue",cursor:"pointer"},attrs:{disabled:"可读写"!==t.role.permission.paybackProgress},on:{click:function(a){return t.deletePayback(e)}}},[t._v("删除")])]),a("p",[t._v(t._s(e.create_by.username)+" 提交于 "+t._s(e.create_at))])])])})),1)],1),a("el-col",{attrs:{span:8}},[a("h3",[t._v("实际回款")]),a("el-timeline",t._l(t.realList,(function(e,n){return a("el-timeline-item",{key:n,attrs:{timestamp:e.real_time,placement:"top"}},[a("div",{staticClass:"pay-div"},[a("h4",[t._v("【"+t._s(e.title)+"】 回款金额 "),a("label",{staticStyle:{color:"red"}},[t._v(t._s(e.funds))]),t._v(" "),a("span",{staticStyle:{color:"blue",cursor:"pointer"},attrs:{disabled:"可读写"!==t.role.permission.paybackProgress},on:{click:function(a){return t.deletePayback(e)}}},[t._v("删除")])]),a("p",[t._v(t._s(e.create_by.username)+" 提交于 "+t._s(e.create_at))])])])})),1)],1)],1)],1)],1),a("el-dialog",{attrs:{title:"编辑节点",visible:t.editDialogVisible,modal:!1,width:"30%"},on:{"update:visible":function(e){t.editDialogVisible=e}}},[a("el-form",{ref:"flow",attrs:{"label-position":"right","label-width":"80px",model:t.flow,size:"mini",rules:t.flowRules}},[a("el-form-item",{attrs:{label:"备注",props:"remarks"}},[a("el-input",{attrs:{placeholder:"请输入备注信息"},model:{value:t.flow.remarks,callback:function(e){t.$set(t.flow,"remarks",e)},expression:"flow.remarks"}})],1),a("el-form-item",{attrs:{label:"附件"}},[a("el-upload",{attrs:{action:t.window.location.protocol+"//"+t.window.location.host+"/api/v1/kxpms/upload","on-preview":t.handlePreview,"on-remove":t.handleRemove,"on-success":t.handleUploadSuccess,"before-remove":t.beforeRemove,"on-exceed":t.handleExceed,"file-list":t.fileList,data:{annex_type:"project",file_dir:t.project.title},name:"binfile",multiple:""}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件大小不超过10MB")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:function(e){return t.submitFlowForm("flow")}}},[t._v("提交")]),a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.editDialogVisible=!1}}},[t._v("关闭")])],1)],1)],1)},i=[],o=(a("4914"),a("5ff7"),a("60a8"),a("95e8"),a("82a8"),a("a5bc"),a("3422"),a("0482"),a("96f8"),a("365c")),r=[{id:1,name:"未交付"},{id:2,name:"已交付"},{id:3,name:"已审核"}];function s(t){for(var e="",a=0;a<r.length;a++)if(r[a].id===t){e=r[a].name;break}return e}var c={props:{project:{type:Object}},data:function(){return{window:window,editDialogVisible:!1,direction:"rtl",statusList:[{id:2,name:"已交付"},{id:3,name:"已审核"}],activeName:"first",fileList:[],summaryList:[],acceptanceList:[],evaluationList:[],diagnoseList:[],activities:[{id:1,content:"未审核",size:"large",type:"info",icon:"el-icon-error"},{id:2,content:"已审核",size:"large",type:"info",icon:"el-icon-success"},{id:3,content:"启动中",size:"large",type:"info",icon:"el-icon-s-opportunity"},{id:4,content:"结束",size:"large",type:"info",icon:"el-icon-s-flag"},{id:5,content:"归档",size:"large",type:"info",icon:"el-icon-s-check"}],tableData:[],planList:[],realList:[],invoiceList:[],options:[{value:1,label:"未收款"},{value:2,label:"收款中"},{value:3,label:"收款结束"}],payback:{project:null,title:"",funds:0,status:1,type:null,real_time:null},paybackRules:{datetime:[{type:"string",required:!0,message:"请选择日期",trigger:"change"}],funds:[{type:"number",required:!0,message:"请输入金额",trigger:"change"}],title:[{type:"string",required:!0,message:"请填写标题",trigger:"blur"}]},flow:{uuid:null,project:null,status:-1,remarks:""},flowRules:{remarks:[{type:"string",required:!0,message:"请填写节点标题",trigger:"blur"}],status:[{type:"number",required:!1,message:"请选择节点状态",trigger:"change"}]}}},watch:{project:function(t){this.fetchFlowData({project:t.uuid}),this.fetchPaybackData({project:t.uuid}),this.initProject(t),t.id&&this.getAnnexList({project:t.id})}},computed:{user:function(){return JSON.parse(sessionStorage.getItem("user"))||{uuid:""}},role:function(){var t=JSON.parse(sessionStorage.getItem("user"));return t?t.role:""},currentFlowStatus:function(){return this.project.extend1.currentFlow.status},hasPermission:function(){var t=this;return function(e,a){return(1!==a.status||0!==a.extend1.currentEdit[a.status].length)&&(!a.extend1.currentEdit[a.status].includes(t.role.uuid)||!a.can_edit)}},isEnable:function(){return function(t){return 5===this.project.status||(this.project.status!==t||0!==this.project.extend1.currentProjectEdit[this.project.status].length)&&(!1===this.project.extend1.currentProjectEdit[this.project.status].includes(this.role.uuid)||this.project.status!==t)}}},filters:{getStatusColor:function(t){return 1===t?"danger":2===t?"warning":3===t?"success":4===t||5===t?"info":void 0},getPaybackStatus:function(t){return 3===t?"收款结束":2===t?"收款中":"未收款"},getPaybackColor:function(t){return 3===t?"success":2===t?"warning":"danger"},getAnnexURL:function(t){return t.replace("localhost",window.location.hostname)}},methods:{isEnableUpdateFlow:function(t){return t.extend1.currentEdit[t.status-1].includes(this.role.uuid),!t.can_edit},getAnnexList:function(t){var e=this;Object(o["B"])(t).then((function(t){var a=[],n=[],i=[],o=[];t.data.forEach((function(t){switch(t.url=t.url.replace(/localhost/i,window.location.hostname),t.type){case"summary":a.push(t);break;case"acceptance":n.push(t);break;case"evaluation":i.push(t);break;case"diagnose":o.push(t);break}})),"项目负责人"!==e.role.name&&"项目成员"!==e.role.name&&(e.summaryList=a,e.diagnoseList=o),e.acceptanceList=n,e.evaluationList=i})).catch((function(t){console.log(t.message),e.$message.warning(t.message)}))},deleteAnnex:function(t){var e=this;Object(o["m"])(t.uuid).then((function(t){e.$message.success(t.message),e.fetchFlowData({project:e.project.uuid})})).catch((function(t){e.$message.warning(t.message)}))},initProject:function(t){var e=this;this.getProjectStatus(t.status),this.payback.project=t.uuid,this.project.extend1.list.forEach((function(t){e.activities[t.index-1].timestamp=t.update_at,e.activities[t.index-1].type="success"}))},handleAddFlow:function(){var t=this;Object(o["f"])().then((function(t){console.log(t)})).catch((function(e){t.$message.warning(e.message)}))},fetchFlowData:function(t){var e=this;Object(o["G"])(t).then((function(t){e.tableData=t.data.map((function(t){return t.annex&&(t.annex=t.annex.map((function(t){return t.path=t.path.replace("localhost",window.location.hostname),t}))),t.status_text=s(t.status),t}))})).catch((function(t){204===t.code&&(e.tableData=[]),e.$message.warning(t.message)}))},fetchPaybackData:function(t){var e=this;Object(o["H"])(t).then((function(t){var a=[],n=[],i=[];t.data.forEach((function(t){1===t.type?a.push(t):2===t.type?n.push(t):3===t.type&&i.push(t)})),e.planList=a,e.realList=n,e.invoiceList=i})).catch((function(t){console.log(t.message)}))},updateProject:function(t){var e=this;Object(o["bb"])(this.project.uuid,t).then((function(t){e.$message({type:"success",message:200===t.code?"状态更新成功":t.message}),e.$emit("submit")})).catch((function(t){console.log(t.message)}))},deletePayback:function(t){var e=this;Object(o["s"])(t.uuid).then((function(t){e.fetchPaybackData({project:e.project.uuid}),e.$message.success(t.message)})).catch((function(t){e.$message.error(t.message)}))},getProjectStatus:function(t){for(var e=0;e<this.activities.length;e++){var a=this.activities[e];a.type=e<t?"success":"info",this.$set(this.activities,e,Object.assign(a))}},handleUploadSuccess:function(t){var e=this;t.data.note?Object(o["a"])({project:this.project.uuid,size:t.data.filesize,title:t.data.filename,path:t.data.filepath,remarks:t.data.note}).then((function(a){e.$message.success(a.message),e.updateProject({uploads:t.data.note})})).catch((function(t){e.$message.warning(t.message)})):Object(o["a"])({flow:this.flow.uuid,size:t.data.filesize,title:t.data.filename,path:t.data.filepath}).then((function(t){e.$message.success(t.message)})).catch((function(t){e.$message.warning(t.message)}))},reviewProject:function(){this.updateProject({status:2})},startProject:function(){this.updateProject({status:3})},finishProject:function(){this.updateProject({status:4})},archiveProject:function(){return this.project.extend1.uploads?this.project.extend1.uploads.diagnose&&this.project.extend1.uploads.summary?this.project.extend1.uploads.acceptance?this.project.extend1.uploads.bidding?this.project.extend1.uploads.contract?this.project.extend1.uploads.evaluation?void this.updateProject({status:5}):this.$message.warning("项目评价表未上传"):this.$message.warning("项目合同书未上传"):this.$message.warning("项目招标书未上传"):this.$message.warning("项目验收表未上传"):this.$message.warning("您还没上传诊断报告,上传后方可提交"):this.$message.warning("项目资料未上传,请点击项目【编辑】按钮上传相关资料")},handleRemove:function(t){var e=this;t.uuid&&Object(o["m"])(t.uuid).then((function(t){e.$message.success(t.message)})).catch((function(t){console.log(t.message)}))},handlePreview:function(t){console.log(t)},handleExceed:function(t,e){this.$message.warning("当前限制选择 3 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},beforeRemove:function(t){return this.$confirm("确定移除 ".concat(t.name,"?"))},submitPaybackForm:function(t){var e=this;this.$refs[t].validate((function(a){var n=!0;return a?(e.payback.type="payback"===t?2:3,Object(o["h"])(e.payback).then((function(t){e.$message({type:"success",message:200===t.code?"更新成功":t.message}),e.fetchPaybackData({project:e.project.uuid})})).catch((function(t){console.log(t.message)}))):n=!1,e.dialogVisible=!1,n}))},submitFlowForm:function(t){var e=this;this.$refs[t].validate((function(t){var a=!0;return t?("技术负责人"===e.role.name&&(e.flow.auto="yes"),e.updateFlow(e.flow.uuid,e.flow)):a=!1,e.dialogVisible=!1,a}))},onReset:function(t){this.$refs[t].resetFields()},handleClick:function(t){this.flow.uuid=t.uuid,this.flow.project=this.project.uuid,this.editDialogVisible=!0},handleFlowSubmit:function(t){this.updateFlow(t.uuid,{auto:"yes",project:this.project.uuid})},updateFlow:function(t,e){var a=this;Object(o["W"])(t,e).then((function(t){a.$message({type:"success",message:200===t.code?"更新成功":t.message}),a.$emit("submit")})).catch((function(t){console.log(t.message)}))},handleClose:function(t){this.$confirm("确认关闭?").then((function(e){t(),console.log(e)})).catch((function(t){console.log(t)}))}},mounted:function(){this.project&&(this.fetchFlowData({project:this.project.uuid}),this.fetchPaybackData({project:this.project.uuid}),this.initProject(this.project))},created:function(){}},l=c,u=(a("2063"),a("5d22")),d=Object(u["a"])(l,n,i,!1,null,"d0e52fe6",null);e["default"]=d.exports},"60a8":function(t,e,a){"use strict";var n=a("4292"),i=a("4c15").includes,o=a("e517");n({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"6ff7":function(t,e,a){var n=a("0c6e");t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},8531:function(t,e,a){var n=a("9345"),i=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(a){try{return e[i]=!1,"/./"[t](e)}catch(n){}}return!1}}}]);