zhgdyunapp/unpackage/dist/build/h5/static/js/pages-workstation-workstationIndex-editProject.eec8260a.js
2023-02-06 11:14:16 +08:00

1 line
28 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-workstation-workstationIndex-editProject"],{"481d":function(e,t,i){"use strict";i.r(t);var s=i("a87c"),a=i.n(s);for(var n in s)"default"!==n&&function(e){i.d(t,e,(function(){return s[e]}))}(n);t["default"]=a.a},"58c3":function(e,t,i){var s=i("9a6a");"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var a=i("4f06").default;a("19c31010",s,!0,{sourceMap:!1,shadowMode:!1})},"9a6a":function(e,t,i){var s=i("24fb");t=s(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.fixedheader[data-v-fb985980]{position:fixed;top:0;left:0;width:100%;z-index:2}.smallHeight[data-v-fb985980]{height:100%;box-sizing:border-box;padding-bottom:58px}.addProjectPage[data-v-fb985980]{background:#f6f6f6}.addProjectPage .add-header[data-v-fb985980]{height:%?92?%;width:100%;background:#127fec;color:#fff;display:flex;align-items:center}.addProjectPage .add-header .backBtn[data-v-fb985980]{width:%?60?%;text-align:right}.add-item[data-v-fb985980]{background-color:#fff;border-bottom:1px solid #f6f6f6;height:%?100?%;display:flex;align-items:center;width:100%}.add-nav[data-v-fb985980]{display:flex;justify-content:center;align-items:center;list-style:none;width:100%;height:100%;padding:0}.add-nav li[data-v-fb985980]{width:%?112?%;height:%?48?%;border:1px solid #979797;color:#979797;font-size:%?28?%;text-align:center;line-height:%?48?%;border-radius:%?40?%;margin:0 %?20?%}.add-nav .active[data-v-fb985980]{border:1px solid #127fec;color:#127fec}.project-name[data-v-fb985980]{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;padding:0 %?30?%;box-sizing:border-box}.project-name .icon-image[data-v-fb985980]{margin-left:%?25?%}.project-name .icon-image uni-image[data-v-fb985980]{width:%?30?%;height:%?52?%}.input[data-v-fb985980]{width:%?400?%}.project-radio[data-v-fb985980]{text-align:right;height:100%;display:flex;align-items:center;font-size:%?28?%}.radio[data-v-fb985980]{margin-right:%?50?%}.project-radio_group[data-v-fb985980]{display:flex}.project-radio[data-v-fb985980] .uni-radio-input{width:%?32?%;height:%?32?%}.project-select[data-v-fb985980]{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;padding:0 %?30?%;box-sizing:border-box}.project-select .icon-image[data-v-fb985980]{display:flex;align-items:center;color:#979797;font-size:%?28?%;white-space:nowrap}.project-select .icon-image uni-image[data-v-fb985980]{width:%?36?%;height:%?36?%;margin-right:%?30?%}.project-select .project-picker[data-v-fb985980]{display:flex;width:100%;align-items:center;justify-content:flex-end;text-align:right}.project-select .project-picker .uni-list-cell-db[data-v-fb985980]{margin-left:%?20?%}.project-upload[data-v-fb985980]{height:100%}.project-filelist[data-v-fb985980]{background-color:#fff;border-bottom:1px solid #f6f6f6;width:100%;padding:0 %?20?%;box-sizing:border-box}.project-filelist ul[data-v-fb985980]{list-style:none;padding:%?20?%}.project-filelist ul li[data-v-fb985980]{display:flex;align-items:center;justify-content:space-between;padding:%?8?% 0}.project-filelist ul li p[data-v-fb985980]{display:block;width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-filelist ul li span[data-v-fb985980]{white-space:nowrap;color:#127fec}.add-from[data-v-fb985980]{margin-bottom:%?56?%}.project-children[data-v-fb985980]{padding:0 %?28?%;box-sizing:border-box;padding-bottom:%?20?%}.project-children .children-title[data-v-fb985980]{font-size:%?28?%;color:#262d4a;margin-bottom:%?18?%;font-weight:500}.project-children .children-box[data-v-fb985980]{list-style:none;padding:0;box-shadow:0 1px 6px 0 rgba(0,0,0,.1);border-radius:%?16?%;overflow:hidden;margin-bottom:%?42?%;position:relative}.project-children .close-btn[data-v-fb985980]{position:absolute;top:0;right:%?10?%}.project-children .close-btn uni-image[data-v-fb985980]{width:%?24?%;height:%?24?%}.add-child[data-v-fb985980]{width:%?524?%;height:%?68?%;text-align:center;background:#fff;color:#127fec;margin:0 auto;line-height:%?68?%;border:1px dashed rgba(18,127,236,.34);border-radius:%?34?%;margin-bottom:%?152?%}.submit-btn[data-v-fb985980]{width:100%;height:%?94?%;background:#127fec;color:#fff;text-align:center;line-height:%?94?%}.m-top[data-v-fb985980]{position:fixed;bottom:0;left:0}.people-text[data-v-fb985980]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:%?400?%;text-align:right}.date-text[data-v-fb985980]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.bottom-btn[data-v-fb985980]{position:fixed;bottom:0;left:0;display:flex;align-items:center;width:100%;height:48px;justify-content:center}.bottom-btn .submit-btn[data-v-fb985980]{width:50%}.bottom-btn .close[data-v-fb985980]{width:50%;text-align:center;line-height:%?94?%;background:#ebeef5}',""]),e.exports=t},a87c:function(e,t,i){"use strict";var s=i("4ea4");i("4160"),i("c975"),i("a434"),i("e25e"),i("ac1f"),i("1276"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=s(i("ade3")),o=s(i("aa1d")),l=s(i("3b61")),r=(a={components:{MxDatePicker:o.default},data:function(){return{pageTitle:"任务详情",navIndex:1,value:"",isDisabled:!0,projectName:"",meetingName:"",endDate:"",allotPeople:"",allotPeopleIndex:"",note:"",address:"",time:"",allotPeopleId:"",peopleList:[],rangetime:[],showPicker:!1,lv:1,fileList:[],showChild:!1,childrenFormList:[{projectName:"",endDate:"",allotPeople:"",fileList:[],note:"",allotPeopleId:""}],checkPeopleList:[],mettingPeopleId:[],isEdit:!1,pageId:"",statusBarHeight:0}}},(0,n.default)(a,"components",{headers:l.default}),(0,n.default)(a,"onShow",(function(e){var t=this;if(this.statusBarHeight=uni.getStorageSync("systemInfo").statusBarHeight,uni.getStorageSync("attendee")&&3==this.navIndex){this.checkPeopleList=JSON.parse(uni.getStorageSync("attendee"));var i=[];this.mettingPeopleId=[],this.checkPeopleList.forEach((function(e){i.push(e.workerName),t.mettingPeopleId.push({taskUser:e.userId})})),this.allotPeople=i.join("")}})),(0,n.default)(a,"onLoad",(function(e){console.log(e),this.pageId=e.id,this.selectData()})),(0,n.default)(a,"created",(function(){var e=this;if(this.statusBarHeight=uni.getStorageSync("systemInfo").statusBarHeight,this.projectSn=JSON.parse(uni.getStorageSync("userInfo")).sn,this.userId=JSON.parse(uni.getStorageSync("userInfo")).userId,uni.getStorageSync("attendee")&&3==this.navIndex){this.checkPeopleList=JSON.parse(uni.getStorageSync("attendee"));var t=[];this.mettingPeopleId=[],this.checkPeopleList.forEach((function(i){t.push(i.workerName),e.mettingPeopleId.push({taskUser:i.userId})})),this.allotPeople=t.join("")}console.log(this.allotPeople),this.selctPeopleList()})),(0,n.default)(a,"methods",{previewFile:function(e){if(console.log(e.url),e.url){var t=e.url.split(".")[1],i=this;this.isImage(t)?uni.previewImage({urls:[i.url_config+"image/"+e.url]}):uni.downloadFile({url:i.url_config+"image/"+e.url,success:function(e){200===e.statusCode&&uni.openDocument({filePath:e.tempFilePath,success:function(e){console.log("打开文档成功")}})}})}},isImage:function(e){return-1!==["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(e.toLowerCase())},closeEdit:function(){this.pageTitle="任务详情",this.isDisabled=!0,this.selectData()},editForm:function(){this.pageTitle="编辑任务",this.isDisabled=!1},selectData:function(){var e=this;this.sendRequest({url:"xmgl/workstationTaskRecord/selectWorkstationTaskById",data:{taskId:this.pageId},method:"POST",success:function(t){console.log(t.result);var i=t.result;if(e.navIndex=i.taskInfo.taskType,e.note=i.taskInfo.taskRemarks,e.showChild=1!=i.taskInfo.subtaskType,i.taskInfo.createUser==e.userId&&(e.isEdit=!0),e.showChild){e.childrenFormList=[];var s={};console.log(i.subtaskList),i.subtaskList.forEach((function(t){console.log(t),s={projectName:t.subtaskTitle,endDate:t.subtaskCloseTime,allotPeople:t.subtaskDistributeName,note:t.subtaskRemarks,allotPeopleId:t.subtaskDistributeUser,fileList:[]},t.subtaskFileUrl&&t.subtaskFileUrl.split(",").forEach((function(e){s.fileList.push({name:e,url:e})})),e.childrenFormList.push(s)}))}if(e.fileList=[],i.taskInfo.fileUrl&&i.taskInfo.fileUrl.split(",").forEach((function(t,i){e.fileList.push({name:t,url:t})})),3==i.taskInfo.taskType){e.meetingName=i.taskInfo.taskTitle,e.rangetime[0]=i.taskInfo.meetingStartTime,e.rangetime[1]=i.taskInfo.meetingEndTime;var a=[];e.mettingPeopleId=[],i.userList.forEach((function(t){a.push(t.taskUserName),e.mettingPeopleId.push({taskUser:t.taskUser})})),e.allotPeople=a.join(""),e.address=i.taskInfo.taskAddr,e.lv=i.taskInfo.taskLevel}else e.projectName=i.taskInfo.taskTitle,e.endDate=i.taskInfo.closeTime,e.allotPeople=i.userList[0].taskUserName,e.allotPeopleId=i.userList[0].taskUser}})},ed:function(e){this.showPicker=!1,e&&(this.rangetime=e.value,console.log("value => "+e.value),console.log("date => "+e.date))},submitForm:function(){var e={taskLevel:this.lv,taskRemarks:this.note,fileUrl:"",projectSn:this.projectSn,subtaskType:this.showChild?2:1,taskType:this.navIndex};e.createUser=parseInt(this.userId),e.id=parseInt(this.pageId);for(var t=[],i=0;i<this.fileList.length;i++)t.push(this.fileList[i].url);if(t.length>0&&(e.fileUrl=t.join(",")),1==this.navIndex){if(!this.projectName)return void uni.showToast({title:"主任务名称不能为空!",icon:"none",duration:2e3});if(!this.endDate)return void uni.showToast({title:"截止日期不能为空!",icon:"none",duration:2e3});if(!this.allotPeopleId)return void uni.showToast({title:"请选择分配人!",icon:"none",duration:2e3});e.taskTitle=this.projectName,e.closeTime=this.endDate,e.userList=[{taskUser:this.allotPeopleId}]}else if(3==this.navIndex){if(!this.meetingName)return void uni.showToast({title:"会议名称不能为空!",icon:"none",duration:2e3});if(e.taskTitle=this.meetingName,!(this.rangetime.length>0))return void uni.showToast({title:"会议日期不能为空!",icon:"none",duration:2e3});if(e.meetingStartTime=this.rangetime[0].split("/").join("-"),e.meetingEndTime=this.rangetime[1].split("/").join("-"),e.closeTime=this.rangetime[1].split("/").join("-").split(" ")[0],!(this.mettingPeopleId.length>0))return void uni.showToast({title:"请选择参会人!",icon:"none",duration:2e3});if(e.userList=this.mettingPeopleId,console.log(this.address),!this.address)return void uni.showToast({title:"请填写会议地点!",icon:"none",duration:2e3});e.taskAddr=this.address}if(this.showChild){for(var s=[],a={},n=0;n<this.childrenFormList.length;n++){if(!this.childrenFormList[n].projectName)return void uni.showToast({title:"子任务名称不能为空!",icon:"none",duration:2e3});if(!this.childrenFormList[n].endDate)return void uni.showToast({title:"子任务截止日期不能为空!",icon:"none",duration:2e3});if(!this.childrenFormList[n].allotPeopleId)return void uni.showToast({title:"请选择子任务分配人!",icon:"none",duration:2e3});a={subtaskCloseTime:this.childrenFormList[n].endDate,subtaskRemarks:this.childrenFormList[n].note,subtaskDistributeUser:parseInt(this.childrenFormList[n].allotPeopleId),subtaskTitle:this.childrenFormList[n].projectName};for(var o=[],l=0;l<this.childrenFormList[n].fileList.length;l++)o.push(this.childrenFormList[n].fileList[l].url);o.length>0&&(a.subtaskFileUrl=o.join(",")),s.push(a)}e.subtaskList=s}var r=this;this.sendRequest({url:"xmgl/workstationTaskRecord/edit",data:e,method:"POST",success:function(e){console.log(e),200==e.code&&(r.resetData(),uni.navigateTo({url:"./workstationIndex"}))}}),console.log(e)},back:function(){uni.navigateBack({url:""})},selctPeopleList:function(){var e=this;this.sendRequest({url:"xmgl/systemUser/getProjectChilderSystemUserList",data:{projectSn:this.projectSn},method:"POST",success:function(t){e.peopleList=t.result}})},toPeopleList:function(){this.isDisabled||uni.navigateTo({url:"./peopleList"})},checkNavType:function(e){this.navIndex=e,this.resetData()},selectNowDate:function(){var e=new Date,t=e.getFullYear(),i=e.getMonth()+1,s=e.getDate();i>=1&&i<=9&&(i="0"+i),s>=0&&s<=9&&(s="0"+s);var a=t+"-"+i+"-"+s;return a},bindTimeChange:function(e){var t=this.selectNowDate();if(t.split("-").join("")>e.target.value.split("-").join(""))return uni.showToast({title:"请选择有效截止日期!",icon:"none",duration:2e3}),void(this.endDate="");this.endDate=e.target.value},bindTimeChange2:function(e,t){var i=this.selectNowDate();if(i.split("-").join("")>e.target.value.split("-").join(""))return uni.showToast({title:"请选择有效截止日期!",icon:"none",duration:2e3}),void(t.endDate="");t.endDate=e.target.value},bindPeopleChange:function(e){this.allotPeople=this.peopleList[e.target.value].workerName,this.allotPeopleId=this.peopleList[e.target.value].userId},bindPeopleChange2:function(e,t){t.allotPeople=this.peopleList[e.target.value].workerName,t.allotPeopleId=this.peopleList[e.target.value].userId},radioChange:function(e){this.lv=e.target.value},selectFile:function(){if(!this.isDisabled){var e=this;console.log(uni),uni.chooseImage({count:5-e.fileList.length,success:function(t){var i=t.tempFilePaths;console.log(t);t.tempFiles[0].name,i[0];uni.uploadFile({url:e.url_config+"upload/image",filePath:i[0],name:"files",success:function(t){var i={name:JSON.parse(t.data).data[0].filename,url:JSON.parse(t.data).data[0].imageUrl};e.fileList.push(i)}})}})}},removeFive:function(e){this.isDisabled||this.fileList.splice(e,1)},selectFile2:function(e){if(!this.isDisabled){var t=this;uni.chooseImage({count:5-t.childrenFormList[e].fileList.length,success:function(i){var s=i.tempFilePaths;console.log(i);i.tempFiles[0].name,s[0];uni.uploadFile({url:t.url_config+"upload/image",filePath:s[0],name:"files",success:function(i){var s={name:JSON.parse(i.data).data[0].filename,url:JSON.parse(i.data).data[0].imageUrl};t.childrenFormList[e].fileList.push(s)}})}})}},removeFive2:function(e,t){this.isDisabled||this.childrenFormList[e].fileList.splice(t,1)},switch1Change:function(){this.showChild=!this.showChild},resetData:function(){this.projectName="",this.meetingName="",this.endDate="",this.allotPeople="",this.note="",this.address="",this.lv=1,this.fileList=[],this.rangetime=[],this.showChild=!1,this.childrenFormList=[{projectName:"",endDate:"",allotPeople:"",fileList:[],note:""}],uni.getStorageSync("attendee")&&uni.removeStorage({key:"attendee",success:function(e){console.log("success")}})},addChild:function(){if(!this.isDisabled){var e={projectName:"",endDate:"",allotPeople:"",fileList:[],note:""};this.childrenFormList.push(e)}},deleteChild:function(e){this.isDisabled||(1===this.childrenFormList.length?(this.childrenFormList.splice(e,1),this.addChild(),this.showChild=!1):this.childrenFormList.length>1&&this.childrenFormList.splice(e,1))},previewImage:function(e){var t=[];t.push(e),uni.previewImage({urls:t,current:t[0]})},showDatePicker:function(){this.isDisabled||(this.showPicker=!0)}}),a);t.default=r},acbf:function(e,t,i){"use strict";i.r(t);var s=i("bff5"),a=i("481d");for(var n in a)"default"!==n&&function(e){i.d(t,e,(function(){return a[e]}))}(n);i("e8a7");var o,l=i("f0c5"),r=Object(l["a"])(a["default"],s["b"],s["c"],!1,null,"fb985980",null,!1,s["a"],o);t["default"]=r.exports},bff5:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return s}));var s={headers:i("3b61").default,uniIcons:i("9931").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"fullHeight addProjectPage"},[i("headers",{staticClass:"fixedheader",attrs:{themeType:!0,showBack:!0}},[i("v-uni-view",{staticClass:"headerName"},[e._v(e._s(e.pageTitle))])],1),i("v-uni-scroll-view",{staticClass:"smallHeight",style:{"padding-top":e.statusBarHeight+44+"px"},attrs:{"scroll-y":!0}},[i("v-uni-view",{staticClass:"add-from"},[i("v-uni-view",{staticClass:"add-item"},[i("ul",{staticClass:"add-nav"},[i("li",{class:{active:1==e.navIndex}},[e._v("任务")]),i("li",{class:{active:3==e.navIndex}},[e._v("会议")])])]),1==e.navIndex?i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-name"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_voice.png"}})],1),i("v-uni-view",{staticClass:"input"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入主任务",disabled:e.isDisabled},model:{value:e.projectName,callback:function(t){e.projectName=t},expression:"projectName"}})],1)],1)],1):e._e(),3==e.navIndex?i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-name"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_voice.png"}})],1),i("v-uni-view",{staticClass:"input"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入会议名称",disabled:e.isDisabled},model:{value:e.meetingName,callback:function(t){e.meetingName=t},expression:"meetingName"}})],1)],1)],1):e._e(),1==e.navIndex?i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_end_date_bg.png"}}),e._v("截止日期")],1),i("v-uni-view",{staticClass:"project-picker"},[e._v(e._s(e.endDate)),i("v-uni-view",{staticClass:"uni-list-cell-db"},[i("v-uni-picker",{attrs:{mode:"date",value:e.endDate,disabled:e.isDisabled},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindTimeChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"uni-input"},[i("uni-icons",{attrs:{type:"arrowright",color:"#6C7178",size:"20"}})],1)],1)],1)],1)],1)],1):e._e(),3==e.navIndex?i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_end_date_bg.png"}}),e._v("会议时间")],1),i("v-uni-view",{staticClass:"project-picker"},[i("v-uni-view",{staticClass:"date-text"},[i("span",[e._v(e._s(e.rangetime[0]))]),i("span",[e._v(e._s(e.rangetime[1]))])]),i("v-uni-view",{staticClass:"uni-list-cell-db"},[i("v-uni-view",{staticClass:"uni-input",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showDatePicker.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"arrowright",color:"#6C7178",size:"20"}})],1)],1)],1)],1)],1):e._e(),1==e.navIndex?i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_allot_bg.png"}}),e._v("分配给")],1),i("v-uni-view",{staticClass:"project-picker"},[e._v(e._s(e.allotPeople)),i("v-uni-view",{staticClass:"uni-list-cell-db"},[i("v-uni-picker",{attrs:{range:e.peopleList,"range-key":"workerName",disabled:e.isDisabled,value:e.allotPeopleIndex},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPeopleChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"uni-input"},[i("uni-icons",{attrs:{type:"arrowright",color:"#6C7178",size:"20"}})],1)],1)],1)],1)],1)],1):e._e(),3==e.navIndex?i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_allot_bg.png"}}),e._v("参会人")],1),i("v-uni-view",{staticClass:"project-picker"},[i("v-uni-view",{staticClass:"people-text"},[e._v(e._s(e.allotPeople))]),i("v-uni-view",{staticClass:"uni-input",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toPeopleList.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"arrowright",color:"#6C7178",size:"20"}})],1)],1)],1)],1):e._e(),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_note_bg.png"}}),e._v("填写备注")],1),i("v-uni-view",{staticClass:"input",staticStyle:{"text-align":"right"}},[i("v-uni-input",{attrs:{type:"text",disabled:e.isDisabled,placeholder:""},model:{value:e.note,callback:function(t){e.note=t},expression:"note"}})],1)],1)],1),3==e.navIndex?i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_address2.png"}}),e._v("会议地点")],1),i("v-uni-view",{staticClass:"input",staticStyle:{"text-align":"right"}},[i("v-uni-input",{attrs:{type:"text",disabled:e.isDisabled,placeholder:""},model:{value:e.address,callback:function(t){e.address=t},expression:"address"}})],1)],1)],1):e._e(),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_project_lv.png"}}),e._v("任务级别")],1),i("v-uni-view",{staticClass:"input project-picker"},[i("v-uni-radio-group",{staticClass:"project-radio_group",on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.radioChange.apply(void 0,arguments)}}},[i("v-uni-label",{staticClass:"project-radio radio"},[i("v-uni-radio",{attrs:{value:"1",disabled:e.isDisabled,checked:1==e.lv}}),e._v("一般")],1),i("v-uni-label",{staticClass:"project-radio"},[i("v-uni-radio",{attrs:{value:"2",disabled:e.isDisabled,checked:2==e.lv}}),e._v("重要")],1)],1)],1)],1)],1),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectFile.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_file_address_bg.png"}}),e._v("添加附件")],1)],1)],1),e.fileList.length>0?i("v-uni-view",{staticClass:"project-filelist"},[i("ul",e._l(e.fileList,(function(t,s){return i("li",{key:s},[i("p",[e._v(e._s(t.name))]),e.isDisabled?e._e():i("v-uni-icon",{attrs:{type:"cancel",size:"16"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.removeFive(s)}}}),e.isDisabled?i("span",{on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.previewFile(t)}}},[e._v("预览")]):e._e()],1)})),0)]):e._e(),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_project_child.png"}}),e._v("是否有子任务")],1),i("v-uni-view",{staticClass:"input project-picker"},[i("v-uni-switch",{attrs:{disabled:e.isDisabled,checked:e.showChild},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.switch1Change.apply(void 0,arguments)}}})],1)],1)],1)],1),e.showChild&&e.childrenFormList.length>0?i("v-uni-view",{staticClass:"project-children"},[i("v-uni-view",{staticClass:"children-title"},[e._v("子任务")]),e._l(e.childrenFormList,(function(t,s){return i("ul",{key:s,staticClass:"children-box"},[i("v-uni-view",{staticClass:"close-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteChild(s)}}},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_close.png"}})],1),i("li",[i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-name"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_voice.png"}})],1),i("v-uni-view",{staticClass:"input"},[i("v-uni-input",{attrs:{type:"text",disabled:e.isDisabled,placeholder:"请输入子任务标题"},model:{value:t.projectName,callback:function(i){e.$set(t,"projectName",i)},expression:"item.projectName"}})],1)],1)],1),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_end_date_bg.png"}}),e._v("截止日期")],1),i("v-uni-view",{staticClass:"project-picker"},[e._v(e._s(t.endDate)),i("v-uni-view",{staticClass:"uni-list-cell-db"},[i("v-uni-picker",{attrs:{mode:"date",disabled:e.isDisabled,value:t.endDate},on:{change:function(i){arguments[0]=i=e.$handleEvent(i),e.bindTimeChange2(i,t)}}},[i("v-uni-view",{staticClass:"uni-input"},[i("uni-icons",{attrs:{type:"arrowright",color:"#6C7178",size:"20"}})],1)],1)],1)],1)],1)],1),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_allot_bg.png"}}),e._v("分配给")],1),i("v-uni-view",{staticClass:"project-picker"},[e._v(e._s(t.allotPeople)),i("v-uni-view",{staticClass:"uni-list-cell-db"},[i("v-uni-picker",{attrs:{range:e.peopleList,"range-key":"workerName",disabled:e.isDisabled,value:t.allotPeople},on:{change:function(i){arguments[0]=i=e.$handleEvent(i),e.bindPeopleChange2(i,t)}}},[i("v-uni-view",{staticClass:"uni-input"},[i("uni-icons",{attrs:{type:"arrowright",color:"#6C7178",size:"20"}})],1)],1)],1)],1)],1)],1),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectFile2(s)}}},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_file_address_bg.png"}}),e._v("添加附件")],1)],1)],1),t.fileList.length>0?i("v-uni-view",{staticClass:"project-filelist"},[i("ul",e._l(t.fileList,(function(t,a){return i("li",{key:a},[i("p",[e._v(e._s(t.name))]),e.isDisabled?e._e():i("v-uni-icon",{attrs:{type:"cancel",size:"16"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.removeFive2(s,a)}}}),e.isDisabled?i("span",{on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.previewFile(t)}}},[e._v("预览")]):e._e()],1)})),0)]):e._e(),i("v-uni-view",{staticClass:"add-item"},[i("v-uni-view",{staticClass:"project-select"},[i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{attrs:{src:"/static/workstation/icon_note_bg.png"}}),e._v("填写备注")],1),i("v-uni-view",{staticClass:"input",staticStyle:{"text-align":"right"}},[i("v-uni-input",{attrs:{type:"text",disabled:e.isDisabled,placeholder:""},model:{value:t.note,callback:function(i){e.$set(t,"note",i)},expression:"item.note"}})],1)],1)],1)],1)],1)}))],2):e._e(),e.showChild&&e.childrenFormList.length>0&&!e.isDisabled?i("v-uni-view",{staticClass:"add-child",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.addChild.apply(void 0,arguments)}}},[i("span",[e._v("+")]),e._v("子任务")]):e._e(),e.isEdit&&e.isDisabled?i("v-uni-view",{staticClass:"submit-btn m-top",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.editForm.apply(void 0,arguments)}}},[e._v("编辑任务")]):e._e(),e.isDisabled?e._e():i("v-uni-view",{staticClass:"bottom-btn m-topm-top"},[i("v-uni-view",{staticClass:"close",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeEdit.apply(void 0,arguments)}}},[e._v("取消")]),i("v-uni-view",{staticClass:"submit-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submitForm.apply(void 0,arguments)}}},[e._v("提交任务")])],1)],1),i("mx-date-picker",{attrs:{show:e.showPicker,type:"rangetime",value:e.value,"show-tips":!0,"begin-text":"会议开始","end-text":"会议结束","show-seconds":!0},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.ed.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.ed.apply(void 0,arguments)}}})],1)},n=[]},e8a7:function(e,t,i){"use strict";var s=i("58c3"),a=i.n(s);a.a}}]);