taskComponent.vue 120 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807
  1. <template>
  2. <div>
  3. <div style="height: 72vh;overflow: auto;">
  4. <el-form ref="form1" :model="addForm" :rules="taskRules" label-width="120px">
  5. <el-form-item label="状态" v-if="addForm.id > 0">
  6. <span :style="'color:'+taskStatusColorList[addForm.taskStatus]">{{ taskStatusList[addForm.taskStatus] }}</span>
  7. </el-form-item>
  8. <el-form-item :label="'类型'" prop="taskPlanType">
  9. <el-select v-model="addForm.taskPlanType" :placeholder="$t('defaultText.pleaseChoose')" style="width:100%;" :disabled="doYouWantToDisableAll" @change="onTypeChange($event)">
  10. <el-option v-for="item in typeList" :label="item.name" :value="item.id" :key="item.id">
  11. <div style="display: flex;justify-content: space-between;align-items: center;">
  12. <!--左边是文字,右边是色块(有color的话)-->
  13. <div style="float: left; ">{{ item.name }}</div>
  14. <div v-if="item.color" :style="'width:80px;height:20px;background-color:'+item.color"></div>
  15. </div>
  16. </el-option>
  17. </el-select>
  18. </el-form-item>
  19. <template v-if="selectType.needAudit">
  20. <el-form-item :label="$t('subordinatetotheproject')" v-if="showOrNot" prop="projectId">
  21. <el-select v-model="addForm.projectId" :placeholder="$t('defaultText.pleaseChoose')" @change="agentCreatesEvents(1)" filterable="true" style="width:100%;"
  22. :disabled="doYouWantToDisableAll" no-data-text="您尚无担任LA的相关项目">
  23. <el-option-group v-for="group in integrationProjectList" :key="group.label" :label="group.label">
  24. <el-option v-for="item in group.peojectList" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
  25. <span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
  26. <span style="float: right;">{{ item.projectName }}</span>
  27. </el-option>
  28. </el-option-group>
  29. </el-select>
  30. </el-form-item>
  31. <el-form-item label="研究中心" v-if="showOrNot" prop="centerId">
  32. <el-select v-model="addForm.centerId" :placeholder="$t('defaultText.pleaseChoose')" filterable="true" style="width:100%;" :disabled="doYouWantToDisableAll" clearable="true">
  33. <el-option v-for="item in degreeList" :key="item.id" :label="item.name" :value="item.id">
  34. </el-option>
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item :label="$t('suoShuRenWuFenZu')" v-if="showOrNot" prop="groupId">
  38. <el-select v-model="addForm.groupId" :placeholder="$t('defaultText.pleaseChoose')" @change="agentCreatesEvents(2)" filterable="true" style="width:100%;" :disabled="doYouWantToDisableAll">
  39. <el-option v-for="item in groupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  40. </el-select>
  41. </el-form-item>
  42. <el-form-item :label="$t('suoShuRenWuLieBiao')" v-if="showOrNot" prop="stagesId">
  43. <el-select v-model="addForm.stagesId" :placeholder="$t('defaultText.pleaseChoose')" filterable="true" style="width:100%;" :disabled="doYouWantToDisableAll">
  44. <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
  45. </el-select>
  46. </el-form-item>
  47. <!--子任务需要选择任务列表 -->
  48. <el-form-item :label="$t('tasklist')" prop="stages" v-if="addForm.parentTid != null">
  49. <el-select v-model="addForm.stagesId" style="width:100%;" >
  50. <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
  51. </el-select>
  52. </el-form-item>
  53. <el-form-item :label="$t('qianZhiRenWu')" prop="aheadTidList" >
  54. <el-select v-model="addForm.aheadTidList" style="width:100%;" multiple filterable @change="$forceUpdate()" :disabled="doYouWantToDisableAll">
  55. <el-option v-for="item in relationdata" :key="item.id" :label="item.name" :value="item.id"></el-option>
  56. </el-select>
  57. </el-form-item>
  58. <!-- <el-form-item :label="$t('types')" v-if="!showMmeiLaiDe">
  59. <el-select v-model="addForm.taskType" style="width:100%;" :disabled="((this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask) && !(groupResponsibleId == user.id)" @change="selchg()">
  60. <el-option v-for="item in taskTypeList" :key="item.id" :label="item.name" :value="item.id">
  61. <i :class="item.icon" ></i>
  62. <span>{{item.name}}</span>
  63. </el-option>
  64. </el-select>
  65. </el-form-item> -->
  66. <el-form-item label="任务完成校验" v-if="user.timeType.taskFileCharge">
  67. <el-checkbox v-model="addForm.attachFileRequired" >是否必须上传成果文件</el-checkbox>
  68. </el-form-item>
  69. <el-form-item :label="$t('taskdefinition')" prop="name">
  70. <el-input v-model="addForm.name" :maxlength="40" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" :placeholder="$t('enterthetaskcontent')" clearable></el-input>
  71. </el-form-item>
  72. <el-form-item :label="$t('planCost')" prop="planCost" v-if="user.timeType.taskPlanCost">
  73. <el-input v-model.number="addForm.planCost" :maxlength="40" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" :placeholder="$t('planCostHint')" clearable></el-input>
  74. </el-form-item>
  75. </template>
  76. <!-- {{timelabel}}{{mileageCup}} -->
  77. <el-form-item :label="!timelabel ? $t('starttimes') : $t('jie-zhi-shi-jian')" prop="startDate">
  78. <el-date-picker v-model="addForm.startDate" type="datetime" style="width:40%;" value-format="yyyy-MM-dd HH:mm:ss"
  79. default-time="09:00:00" :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" @change="DateChange()" v-if="!timelabel"></el-date-picker>
  80. <span style="margin-left:30px;margin-right:10px;" v-if="!timelabel">{{ $t('deadline') }}</span>
  81. <el-date-picker style="width:40%;" v-model="addForm.endDate" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
  82. default-time="17:30:00" :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" @change="DateChange()"></el-date-picker>
  83. <span style="margin-left:30px;margin-right:10px;" v-if="timelabel && mileageCup">{{ $t('wan-cheng-shi-jian') }}</span>
  84. <el-date-picker style="width:40%;" v-if="timelabel && mileageCup" v-model="addForm.finishDate" type="date" value-format="yyyy-MM-dd"
  85. :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" @change="DateChange()"></el-date-picker>
  86. </el-form-item>
  87. <div style="border: 1px solid #ddd;margin:5px 0;padding:5px 0;">
  88. <div class="container" :style="{ height: containerHeight }" @scroll="handleScroll" ref="container">
  89. <div class="list" :style="{ top: listTop }">
  90. <el-form-item :label="$t('zhi-hang-ren') + (executorItem.indexList + 1)" v-for="(executorItem, index) in showData" :key="index">
  91. <div class="editingTask">
  92. <div style="margin-right: 30px">
  93. <el-select v-if="user.userNameNeedTranslate != 1" v-model="executorItem.executorId" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" size="small" filterable clearable :placeholder="$t('pleaseselectanexecutor')" style="width: 150px" @change="$forceUpdate()">
  94. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
  95. <span style="float: left">{{ item.name }}</span>
  96. <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
  97. </el-option>
  98. </el-select>
  99. <el-link v-if="executorItem.executorId && addForm.startDate && addForm.endDate" style="margin-left:5px;" @click.stop="viewTaskTimeList(executorItem.executorId, executorItem.indexList)" type="primary" :underline="false">查看/修改</el-link>
  100. </div>
  101. <!-- 计划工时 -->
  102. <div>
  103. <span style="margin-right:10px;">{{ $t('plantime') }}</span>
  104. <el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" v-model="gstimday[executorItem.indexList]" style="width:120px;" :min="1" :placeholder="$t('danweitian')" @change="chggstim(0,executorItem.indexList)"></el-input-number ><span style="margin-left:5px;">{{ $t('time.day') }}</span>
  105. <el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" v-model="gstimhour[executorItem.indexList]" style="width:120px;" :min="1" :placeholder="$t('pleaseentertheplannedworking')" @change="chggstim(1,executorItem.indexList)"></el-input-number ><span style="margin-left:5px;">{{ $t('time.hour') }}</span>
  106. <i class="el-icon-delete" v-if="index>0 && (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id|| permissions.projectManagement || permissions.editAnyTask|| groupResponsibleId == user.id)" style="margin-left:5px" @click="removeExecutorLineNew(executorItem)"></i>
  107. </div>
  108. </div>
  109. </el-form-item>
  110. </div>
  111. <div class="bar" :style="{ height: barHeight }"></div>
  112. </div>
  113. <el-link type="primary" v-if="(((addForm.executorListFront == null || addForm.executorListFront.length<100) &&
  114. (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id || permissions.projectManagement || permissions.editAnyTask)) ||
  115. groupResponsibleId == user.id)"
  116. style="margin:0 0 10px 35px;position: relative;z-index: 999;" @click.stop="addExecutorLine">{{ $t('addinganexecutor') }}</el-link>
  117. </div>
  118. <template v-if="selectType.needAudit">
  119. <el-form-item :label="$t('priority')">
  120. <el-select v-model="addForm.taskLevel" style="width:100%;" :disabled="doYouWantToDisableAll">
  121. <el-option v-for="item in importanceList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  122. </el-select>
  123. </el-form-item>
  124. <!-- 富文本 -->
  125. <el-form-item :label="$t('detaileddescription')" style="height: 200px">
  126. <!-- <Editor id="tinymce" v-model="tinymceHtml" :init="editorInit"></Editor> -->
  127. <!-- <el-input type="textarea" v-model="addForm.taskDesc" :rows="3"></el-input> -->
  128. <!-- <quill-edito v-model="addForm.taskDesc"></quill-edito> -->
  129. <quill-editor style="height: 150px" ref="text" v-model="addForm.taskDesc" class="myQuillEditor" :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" :disabled="doYouWantToDisableAll"/>
  130. </el-form-item>
  131. <!-- 富文本 -->
  132. <div v-if="addForm.id != null && addForm.taskStatus == 0">
  133. <el-divider ></el-divider>
  134. <!-- 任务进展 -->
  135. <template v-if="!timelabel || isRelationItem">
  136. <p ><i class="iconfont firerock-icontree themeFontColor" style="margin-left:10px;">{{ $t('taskprogress') }}</i>
  137. <span ref="addPro" style="display: block; float:right;"><el-link @click="addprogress">{{ $t('addtaskprogress') }}</el-link></span>
  138. </p>
  139. <!-- 任务进展展示 -->
  140. <div style="display: none;" ref="proBox" class="progress">
  141. <!-- <el-form :model="> -->
  142. <el-radio-group v-model="radio">
  143. <el-radio :label="0" class="rala1">{{ $t('normals') }}</el-radio>
  144. <el-radio :label="1" class="rala2">{{ $t('atrisk') }}</el-radio>
  145. <el-radio :label="2" class="rala3">{{ $t('withinthetimelimit') }}</el-radio>
  146. </el-radio-group>
  147. <el-input
  148. type="textarea"
  149. border="0"
  150. :autosize="{ minRows: 2, maxRows: 6}"
  151. :placeholder="$t('detailedprogressdescription')"
  152. v-model="text2"
  153. style="margin:10px 0 0 0">
  154. </el-input>
  155. <h4 style="font-weight: normal;">{{ $t('tixiang') }}{{checkLists.length}}</h4>
  156. <i class="el-icon-circle-plus pron_i themeFontColor" style="font-size: 28px;" @click="addI(0)"></i>
  157. <div class="remind" ref="addRem" style="display: none">
  158. <el-checkbox-group v-model="checkboxGrounp" v-for="item in users" :key="item.id">
  159. <p>
  160. <el-checkbox :label="item.name" @change="kkk(item)">
  161. <span>
  162. <span v-if="user.userNameNeedTranslate != '1'">
  163. {{item.name}}
  164. </span>
  165. <span v-if="user.userNameNeedTranslate == '1'">
  166. <TranslationOpenDataText type='userName' :openid='item.name'></TranslationOpenDataText>
  167. </span>
  168. </span>
  169. </el-checkbox>
  170. </p>
  171. </el-checkbox-group>
  172. </div>
  173. <div class="ssp" @click="sss"></div>
  174. <!-- </el-form> -->
  175. <div class="pro_btn">
  176. <el-button size="mini" @click="shutPro">{{ $t('btn.cancel') }}</el-button>
  177. <el-button size="mini" type="primary" @click="addTaskProgress">{{ $t('fa-bu') }}</el-button>
  178. </div>
  179. </div>
  180. <div class="ddl" v-if="recentProgressInfo != null && recentProgressInfo.id != null">
  181. <div class="elCard" style="margin-bottom: 10px; height:" >
  182. <i class="el-icon-success" style="color: #43d14f;" v-if="recentProgressInfo.status == 0"></i>
  183. <i class="el-icon-success" style="color: #fd7624;" v-else-if="recentProgressInfo.status == 1"></i>
  184. <i class="el-icon-success" style="color: #fd4d47;" v-else></i>
  185. <span v-if="recentProgressInfo.status == 0">{{ $t('normals') }}</span>
  186. <span v-else-if="recentProgressInfo.status == 1">{{ $t('normals') }}</span>
  187. <span v-else>{{ $t('withinthetimelimit') }}</span>
  188. <el-dropdown trigger="click" style="float:right;cursor:pointer; float: right;">
  189. <i class="el-icon-more" ></i>
  190. <el-dropdown-menu slot="dropdown">
  191. <el-dropdown-item divided>
  192. <span @click="deleteTaskProgress(recentProgressInfo.id)"><i class="el-icon-delete"></i>{{ $t('deleteList ') }}</span></el-dropdown-item>
  193. </el-dropdown-menu>
  194. </el-dropdown>
  195. <!-- <div class="elCard_qu">{{recentProgressInfo.creatorName}}{{ $t('geng-xin-yu') }}{{recentProgressInfo.indate | relativeTime}}</div> -->
  196. <div class="elCard_qu">
  197. <span>
  198. <span v-if="user.userNameNeedTranslate != '1'">
  199. {{recentProgressInfo.creatorName}}
  200. </span>
  201. <span v-if="user.userNameNeedTranslate == '1'">
  202. <TranslationOpenDataText type='userName' :openid='recentProgressInfo.creatorName'></TranslationOpenDataText>
  203. </span>
  204. </span>
  205. {{ $t('geng-xin-yu') }}{{recentProgressInfo.indate | relativeTime}}
  206. </div>
  207. <p style="padding-left: 20px;">{{recentProgressInfo.content}}</p>
  208. <div class="examine"><el-button type="text" @click="innerVisibless = true" style="color: #8F87A3;">{{ $t('viewingHistory') }}</el-button></div>
  209. </div>
  210. </div>
  211. <!-- 任务列表没有数据的时候展示 -->
  212. <div class="nones" v-if="ProgressList.length <= 0">
  213. {{ $t('nodata') }}
  214. </div>
  215. <!-- 任务进展完整状态 -->
  216. <el-dialog :title="$t('other.prompts')" :visible.sync="innerVisibless" append-to-body width="500px">
  217. <div class="integrity">
  218. <h3 style="font-weight: normal;display: inline-block;margin: 0 0 20px 0;">{{ $t('taskprogress') }} :{{ProgressList.length}}</h3>
  219. <!-- <span class="write"><i class="el-icon-circle-plus"></i>填写进展</span> -->
  220. <el-divider></el-divider>
  221. <!-- -->
  222. <div class="block" style="height: 200px;">
  223. <el-timeline style="padding:20px 0 0 0;">
  224. <el-timeline-item
  225. v-for="(activity, index) in ProgressList"
  226. :key="index">
  227. <div class="tb">
  228. <span v-if="activity.status == 0" style="color: #43D14F" class="icon"></span>
  229. <span v-if="activity.status == 1" style="color: #FD7624" class="icon"></span>
  230. <span v-if="activity.status == 2" style="color: red" class="icon"></span>
  231. <div>
  232. <span v-if="activity.status == 0" style="color: #43D14F">{{ $t('normals') }}</span>
  233. <span v-if="activity.status == 1" style="color: #FD7624">{{ $t('atrisk') }}</span>
  234. <span v-if="activity.status == 2" style="color: red">{{ $t('withinthetimelimit') }}</span>
  235. <span style="display: inline-block; float: right; color: #8C8C8C">{{activity.indate | relativeTime}}</span>
  236. </div>
  237. <p style="color: #8C8C8C">{{activity.content}}</p>
  238. </div>
  239. </el-timeline-item>
  240. </el-timeline>
  241. </div>
  242. <!-- -->
  243. </div>
  244. <span slot="footer" class="dialog-footer foooot">
  245. <el-button type="primary" @click="innerVisibless = false">{{ $t('Shutdown') }}</el-button>
  246. </span>
  247. </el-dialog>
  248. </template>
  249. </div>
  250. </template>
  251. </el-form>
  252. <!-- 关联文件列表 -->
  253. <template v-if="isEditFile && addForm.needAudit && addForm.taskStatus == 0">
  254. <div style="width:100%;margin:1em 0;">
  255. <i class="iconfont firerock-icontree themeFontColor" style="margin-left:10px;">{{ $t('jiafuchengguo') }}</i>
  256. <el-link @click="relationFileClick()" style="float:right;margin-left:10px">{{ $t('associatedfiles') }}</el-link>
  257. <el-upload style="float:right;" action="#" :http-request="uploadFileClick" :show-file-list="false" :multiple="false">
  258. <el-link>{{ $t('uoloadFiles') }}</el-link>
  259. </el-upload>
  260. </div>
  261. <el-table
  262. v-loading="fileListLoading"
  263. ref="filetable"
  264. :data="taskFileList"
  265. :header-cell-style="{'font-weight':'normal'}"
  266. highlight-current-row
  267. max-height="240"
  268. style="width: 100%;margin-top:10px;margin-bottom:15px">
  269. <el-table-column :label="$t('headerTop.serialNumber')" prop="documentType" min-width="60" align="center">
  270. <template slot-scope="scope">
  271. <div>
  272. {{scope.$index + 1}}
  273. </div>
  274. </template>
  275. </el-table-column>
  276. <el-table-column :label="$t('filenames')" prop="documentName" min-width="180">
  277. <template slot-scope="scope">
  278. <el-link @click.stop.native="viewOnline(scope.row)">
  279. {{scope.row.documentName}}
  280. </el-link>
  281. </template>
  282. </el-table-column>
  283. <el-table-column :label="$t('filesize')" prop="size" min-width="80" align="center"></el-table-column>
  284. <el-table-column :label="$t('founder')" prop="creatorName" min-width="60" align="center">
  285. <template slot-scope="scope">
  286. <div>
  287. <span v-if="user.userNameNeedTranslate != 1">{{scope.row.creatorName}}</span>
  288. <span v-if="user.userNameNeedTranslate == 1">
  289. <TranslationOpenDataText type='userName' :openid='scope.row.creatorName'></TranslationOpenDataText>
  290. </span>
  291. </div>
  292. </template>
  293. </el-table-column>
  294. <el-table-column :label="$t('creationtime')" prop="indate" min-width="150" align="center">
  295. <template slot-scope="scope">
  296. <span>{{scope.row.indate}}</span>
  297. </template>
  298. </el-table-column>
  299. <el-table-column :label="$t('operation')" min-width="150" fixed="right">
  300. <template slot-scope="scope">
  301. <el-link :href="scope.row.url" :download="scope.row.documentName" type="primary" style="margin-right:7px">{{ $t('other.download') }}</el-link>
  302. <el-link @click="taskFileDelete(scope.row.id)">{{ $t('btn.delete') }}</el-link>
  303. <el-upload style="display: inline-block;" action="#" :http-request="(row) => uploadFileClickTwo(row, scope.row)" :show-file-list="false" :multiple="false" v-if="scope.row.fileChargeStatus == 2">
  304. <el-link type="primary">重新上传</el-link>
  305. </el-upload>
  306. </template>
  307. </el-table-column>
  308. <el-table-column label="状态" min-width="140" v-if="user.timeType.taskFileCharge == 1 || user.timeType.taskFileCharge == 2" fixed="right">
  309. <template slot-scope="scope">
  310. <template v-if="scope.row.fileChargeStatus != 2">
  311. <el-link :type="{'0': 'warning', '1': 'info', '2': 'danger'}[scope.row.fileChargeStatus]" :underline="false">
  312. {{ scope.row.fileChargeStatusTextList[0] || '' }}
  313. <template v-if="(scope.row.fileChargeStatusTextList || []).length > 1">
  314. <TranslationOpenDataText :openid='scope.row.fileChargeStatusTextList[1]'></TranslationOpenDataText>
  315. {{ scope.row.fileChargeStatusTextList[2] || '' }}
  316. </template>
  317. </el-link>
  318. </template>
  319. <template v-else>
  320. <el-tooltip class="item" effect="dark" content="点击查看" placement="top">
  321. <el-link :type="'danger'" :underline="false" @click="showReasonForRejection(scope.row)">
  322. {{ scope.row.fileChargeStatusTextList[0] || '' }}
  323. <template v-if="(scope.row.fileChargeStatusTextList || []).length > 1">
  324. <TranslationOpenDataText :openid='scope.row.fileChargeStatusTextList[1]'></TranslationOpenDataText>
  325. {{ scope.row.fileChargeStatusTextList[2] || '' }}
  326. </template>
  327. </el-link>
  328. </el-tooltip>
  329. </template>
  330. </template>
  331. </el-table-column>
  332. </el-table>
  333. </template>
  334. <!-- 关联文件dialog -->
  335. <el-dialog v-if="relationFileDialog" :visible.sync="relationFileDialog" :title="$t('associatedfiles')" append-to-body>
  336. <span>{{ $t('wenjian1guanli') }}</span>
  337. <div>
  338. <span>{{ $t('xuanzwenjian') }}</span>
  339. <el-select v-model="addFileId" filterable >
  340. <el-option
  341. v-for="item in projectFileList"
  342. :key="item.id"
  343. :label="item.documentName"
  344. :value="item.id"
  345. ></el-option>
  346. </el-select>
  347. <el-button @click="addTaskFile()">{{ $t('btn.determine') }}</el-button>
  348. </div>
  349. </el-dialog>
  350. <el-dialog v-if="isRelationTab" :visible.sync="isRelationTab" :title="$t('associatedTask')" width="800px" append-to-body>
  351. <el-form ref="relationItemForm" label-width="100px">
  352. <el-form-item :label="$t('selecttask')" prop="taskType">
  353. <el-select v-model="relationvalue" multiple style="width:80%">
  354. <el-option
  355. v-for="item in relationdata"
  356. :key="item.id"
  357. :label="item.name"
  358. :value="item.id"
  359. ></el-option>
  360. </el-select>
  361. </el-form-item>
  362. </el-form>
  363. <div slot="footer" class="dialog-footer foooot">
  364. <el-button @click="isRelationTab = false">{{ $t('btn.cancel') }}</el-button>
  365. <el-button type="primary" @click="addRelationTask()">{{ $t('btn.determine') }}</el-button>
  366. </div>
  367. </el-dialog>
  368. </div>
  369. <div slot="footer" class="dialog-footer foooot">
  370. <el-button v-if="(user.id == showMmeiLaiDeData.checkFirstId && showMmeiLaiDeData.taskStatus == 3) || (user.id == showMmeiLaiDeData.checkSecondId && [4, '4', '1', 1].includes(showMmeiLaiDeData.taskStatus))" @click.native="deleteTask()" style="float:left;">{{ $t('btn.delete') }}</el-button>
  371. <el-button v-if="showMmeiLaiDeData.taskPlan && showMmeiLaiDeData.taskStatus == 2" @click.native="deleteTask()" style="float:left;">删除</el-button>
  372. <el-button @click.native="closeBounceds()">{{ $t('btn.cancel') }}</el-button>
  373. <template v-if="(showMmeiLaiDeData.leaderIdList || []).includes(user.id) && showMmeiLaiDeData.taskStatus == 3">
  374. <el-button @click.native="planToWithdraw()">撤回</el-button>
  375. </template>
  376. <template v-if="addForm.id && millerSReviewer.includes(user.id) && [3, 4].includes(showMmeiLaiDeData.taskStatus)">
  377. <template v-if="(showMmeiLaiDeData.taskStatus == 3 && user.id == showMmeiLaiDeData.checkFirstId) || (showMmeiLaiDeData.taskStatus == 4 && user.id == showMmeiLaiDeData.checkSecondId)">
  378. <el-button type="danger" @click="planOperation(false)" :loading="addLoading">驳回</el-button>
  379. <el-button type="success" @click="planOperation(true)" :loading="addLoading">通过</el-button>
  380. </template>
  381. </template>
  382. <template>
  383. <el-button type="primary" @click="submitInsert()" :loading="addLoading" v-if="addForm.id == null || canEditTask">
  384. 提交
  385. </el-button>
  386. <!--对于需要审核的情况-->
  387. <!-- <el-button type="primary" @click="submitInsert(1)" :loading="addLoading" v-if="selectType.needAudit && (showMmeiLaiDeData.taskStatus == 2 || showMmeiLaiDeData.taskStatus == 5 || showMmeiLaiDeData.taskStatus == 6)">
  388. 保存并提交审核
  389. </el-button> -->
  390. </template>
  391. </div>
  392. <!-- <div slot="title" v-if="addForm.parentTid != null || isRelationItem" >
  393. <el-page-header @back="backToParentTask" :title="timelabel ? $t('returnmilestone') : $t('parenttask')" :content="timelabel ? relationPar.name : addForm.parentTname"></el-page-header>
  394. </div> -->
  395. <!-- 评论 -->
  396. <div class="remark" v-show="addForm.id != null && !showMmeiLaiDe">
  397. <span class="zh">
  398. <div class="player">
  399. <p>{{ $t('participantin') }}</p>
  400. <div class="bj">
  401. <span v-for="(pl, i) in critic" :key="i">
  402. <span style="background: #778899" v-if="user.userNameNeedTranslate != 1">{{pl.length > 2 ? pl.substring(pl.length - 2, pl.length) : pl}}</span>
  403. <span v-if="user.userNameNeedTranslate == 1">
  404. <TranslationOpenDataText type='userName' :openid='pl'></TranslationOpenDataText>
  405. </span>
  406. </span>
  407. <!-- <span style="background: #778899">{{pl.length}}</span> -->
  408. </div>
  409. </div>
  410. <div class="subject">
  411. <div class="sub-all">
  412. <div :class="dynamicTab ? 'subOn' : ''" @click="dynamicTab = true">{{ $t('alldynamic') }}</div>
  413. <div :class="dynamicTab ? '' : 'subOn'" @click="dynamicTab = false">{{ $t('xiang-guan-ri-bao') }}</div>
  414. </div>
  415. <div class="sub-details" ref="main" v-if="dynamicTab">
  416. <ul class="infinite-list" v-infinite-scroll="load" ref="contRoll">
  417. <div style="width: 100%" v-if="commentList.length <= 0">
  418. <img src="../assets/image/xiao.png" alt="">
  419. </div>
  420. <li v-for="i in count" class="infinite-list-item counli" :key="i">
  421. <p><i class="el-icon-s-fold"></i> <em>{{ $t('managerQucompletedthedependencytask') }}</em><span>{{ $t('onApril20') }}</span></p>
  422. </li>
  423. <li class="carts" v-for="item in commentList" :key="item.id">
  424. <!-- <el-image style="width: 30px; height: 30px" :src="url" :fit="fit"></el-image> -->
  425. <!-- <i :style="'background' + item.userColor"> -->
  426. <i :style="'background' + item.userColor">
  427. <i v-if="user.userNameNeedTranslate != 1">
  428. {{item.userName.length > 2 ? item.userName.substring(item.userName.length - 2, item.userName.length) : item.userName}}
  429. </i>
  430. <i v-if="user.userNameNeedTranslate == 1">
  431. <TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText>
  432. </i>
  433. </i>
  434. <div>
  435. <!-- <p>{{item.userName}}</p> -->
  436. <!-- <p> -->
  437. <p v-if="user.userNameNeedTranslate != 1">
  438. {{item.userName}}
  439. </p>
  440. <p v-if="user.userNameNeedTranslate == 1">
  441. <TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText>
  442. </p>
  443. <!-- </p> -->
  444. <em>
  445. <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate == 1">
  446. <template v-for="listItem in item.newContent">
  447. <template v-if="listItem.type == 'user'">
  448. <TranslationOpenDataText type='userName' :openid='listItem.value'></TranslationOpenDataText>
  449. </template>
  450. <template v-if="listItem.type == 'text'">{{ listItem.value }}</template>
  451. </template>
  452. </p>
  453. <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate != 1">{{item.content}}</p>
  454. <!-- 重启原因和责任人 -->
  455. <span class="commentSpan" v-if="user.timeType.restartTaskNeedReason == 1 && item.reason != ''">{{ $t('zhongQiYuanYin') }}:{{item.reason}}</span>
  456. <span class="commentSpan" v-if="user.timeType.restartTaskNeedReason == 1 && item.taskPersonLiableList.length > 0">{{ $t('zeRenRen') }}
  457. <span v-for="responsibility, responsibilityIndex in item.taskPersonLiableList" :key="responsibilityIndex">
  458. <span v-if="user.userNameNeedTranslate == 1">
  459. <TranslationOpenDataText type='userName' :openid='responsibility.userName'></TranslationOpenDataText>
  460. </span>
  461. <span v-if="user.userNameNeedTranslate != 1">{{responsibility.userName}}</span>
  462. <span v-if="responsibilityIndex < item.taskPersonLiableList.length - 1">,</span>
  463. </span>
  464. </span>
  465. </em>
  466. </div>
  467. <span>{{item.createTime | relativeTime}}</span>
  468. </li>
  469. </ul>
  470. </div>
  471. <div class="Daily" v-if="!dynamicTab">
  472. <div class="one_daily_body DailyBody">
  473. <el-card shadow="never" v-for="(item2,index2) in dailyList" :key="index2" style="margin-bottom: 20px;">
  474. <p>
  475. {{ $t('tian-bao-ren') }}: <span v-if="user.userNameNeedTranslate != 1">{{item2.userName}}</span>
  476. <span v-if="user.userNameNeedTranslate == 1">
  477. <TranslationOpenDataText type='userName' :openid='item2.userName'></TranslationOpenDataText>
  478. </span>
  479. <span style="float: right;">{{item2.createDate}}</span>
  480. </p>
  481. <p>{{ $t('other.approvalStatus') }}:
  482. <span v-if="user.company.packageEngineering == 0">
  483. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0">
  484. <span v-if="item2.isDeptAudit==0">
  485. <span v-if="item2.projectAuditState==0">
  486. <!-- 待项目审核人 --> {{$t('other.waitForTheProjectReviewer')}}
  487. <span v-if="item2.projectAuditorName != null">(
  488. <span v-if="user.userNameNeedTranslate == '1'">
  489. <TranslationOpenDataText type='userName' :openid='item2.projectAuditorName'></TranslationOpenDataText>
  490. </span>
  491. <span v-if="user.userNameNeedTranslate != '1'">{{item2.projectAuditorName}}</span>
  492. )</span>
  493. <!-- 审核 --> {{$t('other.audit')}}
  494. </span>
  495. <span style="color:#32CD32;" v-else-if="item2.projectAuditState==1">
  496. <!-- 项目审核人 --> {{$t('other.projectAuditor')}}
  497. <span v-if="item2.projectAuditorName != null">(
  498. <!-- {{item2.projectAuditorName}} -->
  499. <span v-if="user.userNameNeedTranslate == '1'">
  500. <TranslationOpenDataText type='userName' :openid='item2.projectAuditorName'></TranslationOpenDataText>
  501. </span>
  502. <span v-if="user.userNameNeedTranslate != '1'">{{item2.projectAuditorName}}</span>
  503. )</span>
  504. <!-- 审核通过 --> {{$t('state.approved')}}
  505. </span>
  506. </span>
  507. <span v-else-if="item2.isDeptAudit==1">
  508. ({{$t('other.await')}}
  509. <span v-if="user.userNameNeedTranslate == '1'">
  510. <TranslationOpenDataText type='departmentName' :openid='item2.auditDeptName'></TranslationOpenDataText>
  511. </span>
  512. <span v-if="user.userNameNeedTranslate != '1'">{{item2.auditDeptName}}</span>
  513. {{$t('other.audit')}})
  514. </span>
  515. </span>
  516. <span style="margin-left:15px;color:#DAA520;" v-else-if="item2.state == -1">{{$t('other.importWaitingForReview')}}</span>
  517. <span style="margin-left:15px;color:#32CD32;" v-else-if="item2.state == 1">{{$t('state.alreadyPassed')}}
  518. <span style="color:#c7e944" v-if="item2.reportAutoApprove == 1">{{$t('other.automaticReview')}}</span>
  519. </span>
  520. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 2">{{$t('state.rejected')}} {{$t('other.reason')}}:{{item2.rejectReason}}</span>
  521. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 3">{{$t('state.waitingsubmit')}}</span>
  522. </span>
  523. <span v-if="user.company.packageEngineering == 1">
  524. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == -1">{{$t('other.importWaitingForReview')}}</span>
  525. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == -1">{{$t('other.waitingForProfessionalReview')}}</span>
  526. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == 0">{{$t('other.waitingForDepartmentReview')}}</span>
  527. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == 1">{{$t('other.waitForTheProjectReviewer')}}<span v-if="item2.projectAuditorName != null">
  528. (
  529. <span v-if="user.userNameNeedTranslate != 1">
  530. {{item2.projectAuditorName}}
  531. </span>
  532. <span v-if="user.userNameNeedTranslate == 1">
  533. <TranslationOpenDataText type='userName' :openid='item2.projectAuditorName'></TranslationOpenDataText>
  534. </span>
  535. )
  536. </span>{{$t('other.audit')}}</span>
  537. <span style="margin-left:15px;color:#32CD32;" v-else-if="item2.state == 1">{{$t('state.alreadyPassed')}}</span>
  538. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 2">{{$t('state.rejected')}} {{$t('other.reason')}}:{{item2.rejectReason}}</span>
  539. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 3">{{$t('state.waitingsubmit')}}</span>
  540. </span>
  541. </p>
  542. <p v-if="user.timeType.customDegreeActive==1 && item2.degree_id != null && item2.degree_id != -1">{{user.timeType.customDegreeName}}:{{item2.degreeName}}</p>
  543. <p v-if="user.timeType.customDataActive==1">{{user.timeType.customDataName}}:{{item2.customData}}</p>
  544. <!-- 自定义日报文本 -->
  545. <p v-if="user.timeType.customTextActive==1">{{user.timeType.customTextName}}:{{item2.customText}}</p>
  546. <div v-if="item2.multiWorktime==0">
  547. <p style="display: inline-block;">{{$t('time.duration')}}:
  548. <span v-if="item2.reportTimeType == 0" style="margin-right:10px;">{{typeList[item2.timeType]}}</span>
  549. <span v-if="item2.reportTimeType == 2" style="margin-right:10px;">{{item2.startTime+'-'+item2.endTime}}</span>
  550. {{item2.time.toFixed(1)}}h
  551. <el-tag type="danger" size="mini" style="margin-left: 65px" v-if="item2.isOvertime === 1">{{$t('other.WorkOvertime')}}<span v-if="item2.overtimeHours">{{item2.overtimeHours.toFixed(1)}}h</span></el-tag>
  552. </p>
  553. <p>{{$t('other.matters')}}:<span v-html="item2.content"></span></p>
  554. </div>
  555. <div v-if="item2.multiWorktime==1" >
  556. <p>{{$t('other.projectDuration')}}:{{item2.time.toFixed(1)}}h <el-tag type="danger" size="mini" style="margin-left: 65px" v-if="item2.isOvertime === 1">{{ $t('other.WorkOvertime') }}<span v-if="item2.overtimeHours">{{item2.overtimeHours.toFixed(1)}}h</span></el-tag></p>
  557. <div v-for="(timeItem, tIndex) in item2.worktimeList" :key="tIndex"
  558. style="border: 0.5px #ddd solid;margin-bottom:5px;padding:5px;">
  559. <p style="display: inline-block;">{{$t('time.duration')}}:
  560. <span v-if="item2.reportTimeType == 2" style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>
  561. {{timeItem.time.toFixed(1)}}h
  562. </p>
  563. <p>{{$t('other.matters')}}:<span v-html="timeItem.content"></span></p>
  564. </div>
  565. </div>
  566. <p v-if="item2.state == 1 && user.timeType.needEvaluate == 1">{{$t('other.evaluation')}}:<span v-html="item2.evaluate"></span></p>
  567. <!--照片的显示 -->
  568. <p v-if="item2.pics != null && item2.pics.length > 0">
  569. <el-image v-for="(pic, index) in item2.pics" :key="index"
  570. style="width: 100px; height: 100px; margin-right:10px;"
  571. :src="pic"
  572. :preview-src-list="item2.pics">
  573. </el-image>
  574. </p>
  575. </el-card>
  576. </div>
  577. </div>
  578. </div>
  579. <div class="issue" v-if="dynamicTab">
  580. <!-- <el-input type="textarea" class="textareays" label-width="100%" label-height="140px"></el-input> -->
  581. <div class="issue_fixation">
  582. <div class="inputDeep"><el-input
  583. type="textarea"
  584. :placeholder="$t('pleaseentercontent')"
  585. :autosize="{ minRows: 6, maxRows: 6}"
  586. v-model="textarea2"
  587. class="inputDeeps"
  588. >
  589. </el-input></div>
  590. <el-button class="issue-button" type="primary" @click="release()">{{ $t('fa-bu') }}</el-button>
  591. </div>
  592. </div>
  593. </span>
  594. </div>
  595. <!-- 修改工时弹窗 -->
  596. <el-dialog title="修改计划" :visible.sync="modifyWorkingHoursRowVisable" width="840px" top="6.5vh" :before-close="handleClose" append-to-body>
  597. <div>
  598. <div class="modifyPlanTitle">
  599. <div class="modifyPlanTitle-item">
  600. <div>执行人:</div>
  601. <el-select v-model="modifyWorkingHoursRow.userId" placeholder="请选择" filterable size="small" style="width: 180px;" @change="getViewTaskTimeList()">
  602. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
  603. <span style="float: left">{{ item.name }}</span>
  604. <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
  605. </el-option>
  606. </el-select>
  607. </div>
  608. <div class="modifyPlanTitle-item">
  609. <div>时间段:</div>
  610. <el-date-picker v-model="modifyWorkingHoursRow.startDate" type="datetime" style="width: 200px;" value-format="yyyy-MM-dd HH:mm:ss"
  611. default-time="09:00:00" :placeholder="$t('pleaseselectadate')" size="small" @change="getViewTaskTimeList()" :clearable="false"></el-date-picker>
  612. <span style="margin:0 10px;">至</span>
  613. <el-date-picker style="width: 200px;" v-model="modifyWorkingHoursRow.endDate" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
  614. default-time="17:30:00" :placeholder="$t('pleaseselectadate')" size="small" @change="getViewTaskTimeList()" :clearable="false"></el-date-picker>
  615. </div>
  616. </div>
  617. <el-table :data="modifyWorkingHoursList" style="width: 100%" border v-loading="modifyWorkingHoursListLoading" height="58vh">
  618. <el-table-column prop="name" label="项目名称"></el-table-column>
  619. <el-table-column prop="typeName" label="计划名称"></el-table-column>
  620. <el-table-column prop="startDate" label="开始时间" width="180"></el-table-column>
  621. <el-table-column prop="endDate" label="截止时间" width="180"></el-table-column>
  622. </el-table>
  623. </div>
  624. <span slot="footer" class="dialog-footer">
  625. <el-button @click="modifyWorkingHoursRowVisable = false">取 消</el-button>
  626. <el-button type="primary" @click="confirmArrangement()">确认安排</el-button>
  627. </span>
  628. </el-dialog>
  629. </div>
  630. </template>
  631. <script>
  632. import selectCat from "@/components/select.vue"
  633. import selectPersonnel from "@/components/selectPersonnel.vue"
  634. // 富文本样式
  635. import 'quill/dist/quill.core.css'
  636. import 'quill/dist/quill.snow.css'
  637. import 'quill/dist/quill.bubble.css'
  638. // 导入富文本
  639. import { quillEditor } from 'vue-quill-editor'
  640. import { getThemeColor } from '@/utils/commonMethod.js'
  641. export default {
  642. props: {
  643. integrationTask:{
  644. type: Object,
  645. default: {}
  646. },
  647. // 是否显示选择任务
  648. showOrNot: {
  649. type: Boolean,
  650. default: false
  651. },
  652. // 是否属于美莱得定制化的工作计划
  653. showMmeiLaiDe: {
  654. type: Boolean,
  655. default: false
  656. },
  657. showMmeiLaiDeData: {
  658. type: Object,
  659. default: {}
  660. }
  661. },
  662. components: {
  663. quillEditor, // 富文本
  664. selectCat,
  665. selectPersonnel
  666. },
  667. data() {
  668. return {
  669. selectType: {},
  670. degreeList:[],
  671. doYouWantToDisableAll: false,
  672. startNum: 0,
  673. endNum: 5,
  674. shownumber: 5,
  675. sizeNum: 65,
  676. meeting: false,
  677. numnnumnum: 2,
  678. componentFlg: false,
  679. mileageCup: false,
  680. loadingExport : false,
  681. saveTemplateLoading: false,
  682. joinMembList:[],
  683. setInchargerDialog: false,
  684. recentProgressInfo:{},
  685. addToTmpDialog:false,
  686. templateForm:{},
  687. importTaskDialog:false,
  688. importToStageId:null,
  689. exportDialog: false,
  690. exportTaskType:null,
  691. groupTemplateList:[],
  692. createGroupWay:'new',
  693. modGroupDialog:false,
  694. subTaskVisible:false,
  695. orderList:[{id:"seq",name:this.$t('manuallydragthesequence'),isDesc:false},{id:"create_date",name:this.$t('creationtimeisthelatest'),isDesc:true},
  696. {id:"end_date",name:this.$t('deadlineisthelatest'),isDesc:true},
  697. {id:"task_level",name:this.$t('highestpriority'),isDesc:true}],
  698. order:"seq",
  699. isDesc:false,
  700. taskDataList:[],
  701. displayTable: false,
  702. viewList: [{id:1,name:this.$t('alltaskss')},{id:2,name:this.$t('taskinprogress')},{id:3,name:this.$t('missionscompleted')},{id:4,name:this.$t('taskscheduled')},
  703. {id:5,name:this.$t('createdthetask')},{id:6,name:this.$t('missionIwason')},{id:7,name:this.$t('todaytask')},{id:8,name:this.$t('taskthatisoverdue')}],
  704. importanceList:[{id:0,name:this.$t('yi-ban')},{id:1,name:this.$t('zhong-yao')},{id:2,name:this.$t('jin-ji')},],
  705. taskTypeList:[{id:0,name:this.$t('other.task'), icon:"iconfont firerock-iconrenwu"},{id:1,name:this.$t('other.milestone'),icon:"iconfont firerock-iconicon-"},{id:2,name:this.$t('risk'),icon:"iconfont firerock-iconfengxian"}],
  706. taskTypeColor:[getThemeColor(),'#8613ad','#bf0404'],
  707. taskTypeIcon:['iconfont firerock-iconrenwu','iconfont firerock-iconicon-','iconfont firerock-iconfengxian'],
  708. taskStatusList:[this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone'),'待第一审核人审核','待第二审核人审核','第一审核人驳回','第二审核人驳回'],
  709. taskStatusColorList:['#20a0ff','#E6A23C','#a0a0a0','#f7863b','#262626','#FF0000','#FF0000'],
  710. //优先级
  711. taskLevelColor:['#262626','#E6A23C','#F56C6C'],
  712. stageListHeight:0,
  713. taskListinH:0,
  714. groupWidth:260,
  715. drag: false,
  716. stageDrag: false,
  717. dragging: false,
  718. stageList:[],
  719. selectedGroup:{},
  720. allGroupData:[],
  721. defaultGroupId:null,
  722. addGroupDialog: false,
  723. addStageDialog: false,
  724. groupSearch:null,
  725. groupType:0,//0-分组,1-视图
  726. groupList: [],
  727. groupForm:{},
  728. stageForm:[],
  729. curProjectId:null,
  730. projectList:null,
  731. activeIndex:"1",
  732. activeName:"projectInside",
  733. searchField:null,
  734. keyword:null,
  735. user: JSON.parse(sessionStorage.getItem("user")),
  736. permissions: JSON.parse(sessionStorage.getItem("permissions")),
  737. userDetailVisible: false,
  738. userDetail:{},
  739. date: new Date(),
  740. users: [],
  741. tableHeight: 0,
  742. listLoading: false,
  743. subProjectVisible: false,
  744. subProjectList: [],//子项目列表
  745. currentProject:{},
  746. addSubProject: false,
  747. addFormVisible: false,
  748. typeList:[],
  749. addLoading: false,
  750. title: "",
  751. addForm: {
  752. name: '',
  753. executorListFront: [
  754. {
  755. executorId:null
  756. }
  757. ]
  758. },
  759. rules: {
  760. name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
  761. },
  762. rules2: {
  763. stagesName: [{ required: true, message: this.$t('pleaseenteratasklistname'), trigger: "blur" }],
  764. },
  765. taskRules : {
  766. name: [{ required: true, message: this.$t('enterthetaskcontent'), trigger: "blur" }],
  767. serviceId: [{ required: true, message: this.$t('qingXuanZeFuWu'), trigger: "blur" }],
  768. projectId: [{ required: true, message: this.$t('qingXuanZeSuoShuXiangMu'), trigger: "blur" }],
  769. groupId: [{ required: true, message: this.$t('qingXuanZeSuoShuRenWuFenZu'), trigger: "blur" }],
  770. stagesId: [{ required: true, message: this.$t('qingXuanZeSuoShuRenWuLieBiao'), trigger: "blur" }],
  771. planCost: [{ required: true, message: this.$t('planCostHint'), trigger: "blur" }],
  772. taskPlanType: [{ required: true, message: '请选择类型', trigger: "blur" }],
  773. checkSecondId: [{ required: true, message: '请选择审核人', trigger: "blur" }],
  774. // centerId: [{ required: true, message: '请选择研究中心', trigger: "blur" }]
  775. },
  776. formGrouping: {
  777. name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
  778. },
  779. sleectId: null,
  780. sleectProjectId: null,
  781. sidebarIndex: 0, // 侧边栏索引
  782. url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
  783. count: 0,
  784. textarea2: '',
  785. taskId: null,
  786. commentList: [],
  787. radio: 0,
  788. critic: [], // 评论头像的数组
  789. editorOption: { // 富文本框里面的默认值
  790. placeholder: this.$t('pleaseentethetext'),
  791. modules: {
  792. toolbar:[
  793. ['bold', 'italic', 'underline', 'strike'], //加粗,斜体,下划线,删除线
  794. // ['blockquote', 'code-block'], //引用,代码块
  795. [{ 'header': 1 }, { 'header': 2 }], // 标题,键值对的形式;1、2表示字体大小
  796. // [{ 'list': 'ordered'}, { 'list': 'bullet' }], //列表
  797. // [{ 'script': 'sub'}, { 'script': 'super' }], // 上下标
  798. // [{ 'indent': '-1'}, { 'indent': '+1' }], // 缩进
  799. // [{ 'direction': 'rtl' }], // 文本方向
  800. [{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小
  801. [{ 'header': [1, 2, 3, 4, 5, 6, false] }], //几级标题
  802. [{ 'color': [] }, { 'background': [] }], // 字体颜色,字体背景颜色
  803. // [{ 'font': [] }], //字体
  804. [{ 'align': [] }], //对齐方式
  805. ['clean'], //清除字体样式
  806. // ['image','video'] //上传图片、上传视频
  807. ['image'] //上传图片、上传视频
  808. ], //工具栏设置
  809. },
  810. theme: 'snow',
  811. },
  812. textContent: true, // 控制提交
  813. times: null,
  814. text2: '',
  815. innerVisibless: false, // 任务展示弹出层
  816. activities: [{
  817. content: this.$t('normals'),
  818. timestamp: this.$t('hoursago'),
  819. size: 'large',
  820. type: 'primary',
  821. icon: 'el-icon-circle-check',
  822. color: '#409EFF'
  823. }, {
  824. content: this.$t('withinthetimelimit'),
  825. timestamp: this.$t('hoursago8'),
  826. color: '#F87872'
  827. }],
  828. ProgressList: [],
  829. checkboxGrounp: [], // 选中人的数据
  830. checkLists: [], // 选中人数据的ID
  831. taskIid: null,
  832. gstimday:[1],
  833. gstimhour:[8],
  834. timelabel: false,
  835. relationdata: [],
  836. isRelationTab: false,
  837. relationvalue:[],
  838. relationSubTaskList:[],
  839. relationItemData: null,
  840. relationPar:{name: ''},
  841. isRelationItem: false,
  842. // 关联文件
  843. fileListLoading:false,
  844. projectFileList:[],
  845. taskFileList:[],
  846. relationFileDialog: false,
  847. addFileId: null,
  848. isEditFile: false,
  849. // 设置项目参与人
  850. participantsDialog: false,
  851. participantsFilterText: '',
  852. deptMembData: [
  853. {
  854. id: 0,
  855. label: this.$t('lable.unassigned'),
  856. }
  857. ],
  858. defaultProps: {
  859. children: 'children',
  860. label: 'label'
  861. },
  862. chosenMembCount: 0,
  863. ididid:null,
  864. alreadyPartArray: [],
  865. projectCreatorId: null,
  866. projectInchargerId: null,
  867. canEditTask: false, // 是否可创建任务的判断标志
  868. canEditStageList: false, //是否可编辑列表的判断标志
  869. groupResponsibleId: '', // 分组负责人的id
  870. groupDetailsShow: false,
  871. groupDetailData: {},
  872. groupDetailTil: '',
  873. setTemplateData: {},
  874. setTemplateDialog: false,
  875. taskListPage: 1,
  876. taskListSize: 20,
  877. taskListTotal: 0,
  878. dynamicTab: true,
  879. dailyList: [],
  880. meetingId: '',
  881. integrationProjectList: [],
  882. sapServiceList:[],
  883. meetingVisable: false,
  884. initiateAMeetingForm: {
  885. startTime: '',
  886. endTime: '',
  887. taskId: ''
  888. },
  889. pmUserList: [],
  890. millerSReviewer: [],
  891. modifyWorkingHoursRow: {},
  892. modifyWorkingHoursList: [],
  893. modifyWorkingHoursListLoading: false,
  894. modifyWorkingHoursRowVisable: false,
  895. };
  896. },
  897. computed: {
  898. showData() {
  899. // return this.addForm.executorListFront.slice(this.startNum, this.endNum)
  900. let newList = this.addForm.executorListFront
  901. newList.forEach((item, index) => {
  902. item.indexList = index
  903. })
  904. console.log(newList.slice(this.startNum, this.endNum), '<==== newList')
  905. return newList.slice(this.startNum, this.endNum)
  906. },
  907. containerHeight() {
  908. if(this.addForm.executorListFront.length < this.shownumber) {
  909. return this.sizeNum * this.addForm.executorListFront.length + 'px'
  910. } else {
  911. return (this.sizeNum * this.shownumber) - 20 + 'px'
  912. }
  913. },
  914. barHeight() {
  915. return this.sizeNum * (this.addForm.executorListFront || []).length + 'px'
  916. },
  917. listTop() {
  918. return this.startNum * this.sizeNum + 'px'
  919. }
  920. },
  921. watch: {},
  922. created() {},
  923. mounted() {
  924. console.log('我获取到的数据', this.integrationTask, this.showOrNot)
  925. this.triggerEvent(this.integrationTask)
  926. this.gstimhour = [this.user.timeType.allday]
  927. this.gstimday = [1]
  928. this.getTaskTypeList();
  929. this.getSapServiceList()
  930. this.timess();
  931. if(this.showMmeiLaiDe) {
  932. this.getPmUserList()
  933. this.setDisabledPermission()
  934. }
  935. },
  936. methods: {
  937. onTypeChange(e) {
  938. this.selectType = this.typeList.filter(a=>a.id == e)[0];
  939. },
  940. confirmArrangement() {
  941. const { index, userId, startDate, endDate } = this.modifyWorkingHoursRow
  942. const userList = (this.addForm.executorListFront || []).filter(item => item.executorId == userId)
  943. const row = this.addForm.executorListFront[index].executorId
  944. if(userList.length > 0 && row != userId) {
  945. this.$message({ message: '执行人已存在', type: "error" });
  946. return
  947. }
  948. const name = this.users.find(item => item.id == userId).name
  949. this.addForm.executorListFront[index].executorId = userId
  950. this.addForm.executorListFront[index].executorName = name
  951. this.addForm.startDate = startDate
  952. this.addForm.endDate = endDate
  953. this.modifyWorkingHoursRowVisable = false
  954. this.$message({ message: '修改成功', type: "success" });
  955. },
  956. viewTaskTimeList(executorId, index) {
  957. this.modifyWorkingHoursRow = { taskId: this.addForm.id, userId: executorId, startDate: this.addForm.startDate, endDate: this.addForm.endDate, index}
  958. this.modifyWorkingHoursRowVisable = true
  959. this.getViewTaskTimeList()
  960. },
  961. getViewTaskTimeList() {
  962. this.modifyWorkingHoursListLoading = true
  963. let obj = { ...this.modifyWorkingHoursRow }
  964. delete obj.index
  965. this.http.post('/task/viewUserTaskSchedule', { ...obj },
  966. res => {
  967. this.modifyWorkingHoursListLoading = false
  968. if (res.code == "ok") {
  969. this.modifyWorkingHoursList = res.data;
  970. } else {
  971. this.$message({ message: res.msg, type: "error" });
  972. }
  973. },
  974. error => {
  975. this.modifyWorkingHoursListLoading = false
  976. this.$message({ message: error, type: "error" });
  977. });
  978. },
  979. getTaskTypeList() {
  980. this.http.post('/task-type/list', { companyId: this.user.companyId },
  981. res => {
  982. if (res.code == "ok") {
  983. this.typeList = res.data;
  984. if (!this.isEditFile) {
  985. //创建新任务,默认第一个类型
  986. this.$set(this.addForm,'taskPlanType',this.typeList[0].id);
  987. this.selectType = this.typeList[0];
  988. } else {
  989. //编辑任务,有类型
  990. const curType = this.integrationTask.task.taskPlanType;
  991. this.selectType = this.typeList.filter(a=>a.id == curType)[0];
  992. }
  993. } else {
  994. this.$message({ message: res.msg, type: "error" });
  995. }
  996. },
  997. error => {
  998. this.$message({ message: error, type: "error" });
  999. });
  1000. },
  1001. planToWithdraw() {
  1002. this.$confirm(`确定撤回该计划吗?`, {
  1003. type: 'warning'
  1004. }).then(() => {
  1005. this.http.post('/task/withdrawalTaskPlan',{taskId: this.addForm.id},
  1006. res => {
  1007. if (res.code == "ok") {
  1008. this.$message({
  1009. message: '撤回成功',
  1010. type: 'success'
  1011. });
  1012. let obj = {
  1013. submitInsert: true,
  1014. showOrNot: this.showOrNot
  1015. }
  1016. this.$emit('closeBounced', obj)
  1017. } else {
  1018. this.$message({
  1019. message: res.msg,
  1020. type: "error"
  1021. });
  1022. }
  1023. },
  1024. error => {
  1025. this.$message({
  1026. message: error,
  1027. type: "error"
  1028. });
  1029. });
  1030. })
  1031. },
  1032. setDisabledPermission() {
  1033. const { taskStatus } = this.showMmeiLaiDeData
  1034. this.doYouWantToDisableAll = taskStatus == 3 || taskStatus == 4
  1035. if(this.millerSReviewer.includes(this.user.id)) {
  1036. this.doYouWantToDisableAll = false
  1037. }
  1038. },
  1039. viewOnline(row) {
  1040. sessionStorage.setItem("fileName",row.documentName);
  1041. sessionStorage.setItem("fileUrl",row.url);
  1042. let routeUrl;
  1043. if (row.documentName.endsWith('.doc') || row.documentName.endsWith('.docx')) {
  1044. routeUrl = this.$router.resolve({
  1045. path: "/viewWord",
  1046. params: {}
  1047. });
  1048. } else if (row.documentName.endsWith('.xls') || row.documentName.endsWith('.xlsx')) {
  1049. routeUrl = this.$router.resolve({
  1050. path: "/viewExcel",
  1051. params: {}
  1052. });
  1053. }
  1054. if (routeUrl != null) {
  1055. console.log(routeUrl.href);
  1056. window.open(routeUrl.href, '_blank');
  1057. } else {
  1058. window.open(row.url, '_blank');
  1059. }
  1060. },
  1061. // 容器的滚动事件
  1062. handleScroll() {
  1063. const scrollTop = this.$refs.container.scrollTop
  1064. this.startNum = Math.floor(scrollTop / this.sizeNum)
  1065. console.log(this.startNum, this.shownumber, '<==== 计算')
  1066. this.endNum = this.startNum + this.shownumber
  1067. },
  1068. bottomScrollClick(val) {
  1069. this.$nextTick(() => {
  1070. let scrollEl = this.$refs.container;
  1071. let bum = scrollEl.scrollHeight
  1072. let current = scrollEl.scrollTop + 1
  1073. scrollEl.scrollTo({ top: val ? current : bum, behavior: 'smooth' });
  1074. });
  1075. },
  1076. // 刷新数据
  1077. refreshData() {
  1078. this.$forceUpdate()
  1079. },
  1080. serviceIdChange() {
  1081. this.refreshData()
  1082. },
  1083. confirmMeeting() {
  1084. this.http.post('/task/operateMeeting',{...this.initiateAMeetingForm},
  1085. res => {
  1086. if (res.code == "ok") {
  1087. this.meetingVisable=false,
  1088. this.$message({
  1089. message: this.$t('chengGongFaQiHuiYi'),
  1090. type: "success"
  1091. });
  1092. } else {
  1093. this.meetingVisable=false,
  1094. this.$message({
  1095. message: res.msg,
  1096. type: "error"
  1097. });
  1098. }
  1099. },
  1100. error => {
  1101. this.meetingVisable=false,
  1102. this.$message({
  1103. message: error,
  1104. type: "error"
  1105. });
  1106. });
  1107. },
  1108. planOperation(type) {
  1109. this.$confirm(`确定${type ? '通过' : '驳回'}该计划吗?`, {
  1110. type: 'warning'
  1111. }).then(() => {
  1112. this.http.post('/task/taskPlanPassOrReject', {
  1113. taskId: this.addForm.id, type
  1114. },
  1115. res => {
  1116. if (res.code == "ok") {
  1117. this.$message({
  1118. message: '操作成功',
  1119. type: "success"
  1120. });
  1121. let obj = {
  1122. submitInsert: true,
  1123. showOrNot: this.showOrNot
  1124. }
  1125. this.$emit('closeBounced', obj)
  1126. } else {
  1127. this.$message({
  1128. message: res.msg,
  1129. type: "error"
  1130. });
  1131. }
  1132. },
  1133. error => {
  1134. this.$message({
  1135. message: error,
  1136. type: "error"
  1137. });
  1138. });
  1139. })
  1140. },
  1141. // 触发外层的会议
  1142. meetingCli() {
  1143. // this.$parent.$parent.parentMeetingCli(this.integrationTask.id)
  1144. this.initiateAMeetingForm = {
  1145. startTime: '',
  1146. endTime: '',
  1147. taskId: this.integrationTask.id
  1148. }
  1149. this.meetingVisable = true
  1150. },
  1151. // 触发事件
  1152. triggerEvent(obj) {
  1153. console.log(obj, '触发事件')
  1154. this.curProjectId = obj.curProjectId
  1155. this.getProjectListTwo()
  1156. if(!obj.taskVue) {
  1157. this.getStageList(obj.integrationTaskNingwai)
  1158. }
  1159. if(obj.create) {
  1160. console.log(obj, '<=== 双击获取的')
  1161. this.getUsers(); // 获取名单数据
  1162. this.mileageCup = false
  1163. this.addFormVisible = true;
  1164. this.curProjectId = obj.stage.projectId;
  1165. const startDates = obj.addForm.startDate ? obj.addForm.startDate + ' 08:00:00' : ''
  1166. this.addForm = {
  1167. projectId: obj.stage.projectId,
  1168. groupId: obj.stage.groupId,
  1169. stagesId: obj.stage.id,
  1170. startDate: startDates,
  1171. taskLevel:0,
  1172. planHours: 8,
  1173. taskType: 0
  1174. };
  1175. // this.addForm.executorListFront = [
  1176. // {executorId:obj.executorListFront[0] && obj.executorListFront[0].executorId, planHours:this.user.timeType.allday}
  1177. // ];
  1178. this.addForm.executorListFront = (obj.executorListFront || []).map(em => {
  1179. return {
  1180. executorId: em.executorId,
  1181. planHours: this.user.timeType.allday
  1182. }
  1183. })
  1184. this.gstimhour = [this.user.timeType.allday]
  1185. this.gstimday = [1]
  1186. this.addLoading = false;
  1187. this.isEditFile = false;
  1188. this.title=this.$t('createtask ');
  1189. this.commentList = [];
  1190. this.timelabel = false
  1191. console.log(this.addForm, '<====== this.addForm')
  1192. } else {
  1193. console.log('1111',obj)
  1194. if(!obj.taskVue) {
  1195. this.isEditFile = true;
  1196. this.getDetail(obj.curProjectId)
  1197. }
  1198. this.curProjectId = obj.task.projectId;
  1199. // this.getTaskDetail(obj.id);
  1200. this.getTaskProgressList(obj.id); // 获取任务进展列表
  1201. this.gain(obj.task); // 获取评论列表
  1202. this.getDailyList(obj.id) // 获取来自日报
  1203. this.getRelationTaskList(obj.num, obj.id)
  1204. this.getTaskFileList(obj.num,obj.id)
  1205. const { integrationTaskNingwai = {} } = obj
  1206. if(integrationTaskNingwai.groupId) {
  1207. this.getTaskGrouping(obj.curProjectId)
  1208. }
  1209. setTimeout(() => {
  1210. this.getTaskDetail(obj.id);
  1211. }, 200)
  1212. }
  1213. this.getrelation();
  1214. },
  1215. // 代办任务创建事件
  1216. agentCreatesEvents(num) {
  1217. if(num == 1) {
  1218. this.addForm.groupId = ''
  1219. this.addForm.stagesId = ''
  1220. this.getTaskGrouping()
  1221. this.getrelation();
  1222. this.getDegreeList();
  1223. if(this.showMmeiLaiDe) {
  1224. this.getProjectManager()
  1225. }
  1226. this.getUsers();
  1227. } else if(num == 2) {
  1228. this.addForm.stagesId = ''
  1229. this.getTaskList()
  1230. }
  1231. },
  1232. // 获取维度数据
  1233. getDegreeList() {
  1234. if(this.addForm.projectId == '') {
  1235. return
  1236. }
  1237. this.http.post('/project/getDegreeList',{
  1238. projectId: this.addForm.projectId,
  1239. },
  1240. res => {
  1241. if (res.code == "ok") {
  1242. this.degreeList = res.data;
  1243. this.$forceUpdate();
  1244. }
  1245. },
  1246. error => {
  1247. this.$message({
  1248. message: error,
  1249. type: "error"
  1250. });
  1251. }
  1252. );
  1253. },
  1254. getProjectManager() {
  1255. const { projectId } = this.addForm
  1256. this.http.post('/user/getChargeUserByProjectId', { projectId },
  1257. res => {
  1258. if (res.code == "ok") {
  1259. if(!res.data.id) {
  1260. this.$message({
  1261. message: '当前项目没有项目经理',
  1262. type: "warning"
  1263. });
  1264. return
  1265. }
  1266. this.addForm.checkFirstId = res.data.id || '';
  1267. } else {
  1268. this.$message({
  1269. message: res.msg,
  1270. type: "error"
  1271. });
  1272. }
  1273. },
  1274. error => {
  1275. this.$message({
  1276. message: error,
  1277. type: "error"
  1278. });
  1279. });
  1280. },
  1281. getPmUserList() {
  1282. this.http.post('/user/getSecondCheckUser', { },
  1283. res => {
  1284. if (res.code == "ok") {
  1285. this.pmUserList = res.data || [];
  1286. } else {
  1287. this.$message({
  1288. message: res.msg,
  1289. type: "error"
  1290. });
  1291. }
  1292. },
  1293. error => {
  1294. this.$message({
  1295. message: error,
  1296. type: "error"
  1297. });
  1298. });
  1299. },
  1300. //获取项目列表
  1301. getProjectList() {
  1302. this.http.post(this.port.project.list, {},
  1303. res => {
  1304. if (res.code == "ok") {
  1305. this.projectList = res.data;
  1306. this.getRecentlyProject()
  1307. } else {
  1308. this.$message({
  1309. message: res.msg,
  1310. type: "error"
  1311. });
  1312. }
  1313. },
  1314. error => {
  1315. this.$message({
  1316. message: error,
  1317. type: "error"
  1318. });
  1319. });
  1320. },
  1321. getProjectListTwo() {
  1322. let obj = {}
  1323. if(this.curProjectId) {
  1324. obj.projectId = this.curProjectId
  1325. }
  1326. this.http.post(`/project/getProjectByLeader`, {
  1327. ...obj
  1328. },
  1329. res => {
  1330. if (res.code == "ok") {
  1331. this.projectList = res.data;
  1332. this.integrationProjectList = [
  1333. { label: '相关项目', peojectList: res.data }
  1334. ]
  1335. } else {
  1336. this.$message({
  1337. message: res.msg,
  1338. type: "error"
  1339. });
  1340. }
  1341. },
  1342. error => {
  1343. this.$message({
  1344. message: error,
  1345. type: "error"
  1346. });
  1347. });
  1348. },
  1349. // 获取最近项目列表
  1350. getRecentlyProject() {
  1351. this.http.post('/project/nearProject',{},res => {
  1352. if(res.code == 'ok'){
  1353. let topObj = {
  1354. label: this.$t('zuiJinXuanZeXiangMu'),
  1355. peojectList: res.data
  1356. }
  1357. let botomObj = {
  1358. label: this.$t('other.allProject'),
  1359. peojectList: this.projectList
  1360. }
  1361. this.integrationProjectList = [topObj, botomObj]
  1362. console.log(this.integrationProjectList, '整合')
  1363. }else {
  1364. this.$message({
  1365. message: res.msg,
  1366. type: 'error'
  1367. })
  1368. }
  1369. },err => {
  1370. this.$message({
  1371. message: err,
  1372. type: 'error'
  1373. })
  1374. })
  1375. },
  1376. // 获取任务分组
  1377. getTaskGrouping(projectId) {
  1378. this.http.post('/task-group/list', {projectId: projectId ? projectId : this.addForm.projectId},
  1379. res => {
  1380. if (res.code == "ok") {
  1381. this.groupList = res.data;
  1382. } else {
  1383. this.$message({
  1384. message: res.msg,
  1385. type: "error"
  1386. });
  1387. }
  1388. },
  1389. error => {
  1390. this.$message({
  1391. message: error,
  1392. type: "error"
  1393. });
  1394. });
  1395. },
  1396. getTaskList() {
  1397. let obj = {
  1398. groupId: this.addForm.groupId,
  1399. projectId: this.addForm.projectId,
  1400. order: 'seq',
  1401. isDesc: false
  1402. }
  1403. this.getStageList(obj)
  1404. },
  1405. // 关闭最外层弹窗
  1406. closeBounceds() {
  1407. console.log('我被触发了')
  1408. this.$emit('closeBounced', {})
  1409. },
  1410. chggstim(e,i){
  1411. if(e){
  1412. this.gstimday[i] = Math.ceil(this.gstimhour[i] / this.user.timeType.allday)
  1413. }else{
  1414. this.gstimhour[i] = this.gstimday[i] * this.user.timeType.allday
  1415. }
  1416. },
  1417. removeExecutorLine(index,e) {
  1418. if(e == 1){
  1419. this.relationItemData.executorList.splice(index,1);
  1420. this.gstimday.splice(index,1)
  1421. this.gstimhour.splice(index,1)
  1422. this.$forceUpdate();
  1423. }else{
  1424. this.addForm.executorListFront.splice(index,1);
  1425. this.gstimday.splice(index,1)
  1426. this.gstimhour.splice(index,1)
  1427. this.$forceUpdate();
  1428. }
  1429. },
  1430. removeExecutorLineNew(item, e) {
  1431. let index = item.indexList
  1432. if(e == 1){
  1433. this.relationItemData.executorList.splice(index,1);
  1434. this.gstimday.splice(index,1)
  1435. this.gstimhour.splice(index,1)
  1436. this.$forceUpdate();
  1437. }else{
  1438. this.addForm.executorListFront.splice(index,1);
  1439. this.gstimday.splice(index,1)
  1440. this.gstimhour.splice(index,1)
  1441. this.$forceUpdate();
  1442. }
  1443. this.replacementResult()
  1444. setTimeout(() => {
  1445. this.bottomScrollClick(true)
  1446. }, 100)
  1447. },
  1448. addExecutorLine(e) {
  1449. if(e == 1){
  1450. if (this.relationItemData.executorList == null) {
  1451. this.relationItemData.executorList = [];//初始化
  1452. }
  1453. this.relationItemData.executorList.push({executorId:null, planHours:this.user.timeType.allday});
  1454. this.gstimday.push(1)
  1455. this.gstimhour.push(this.user.timeType.allday)
  1456. this.$forceUpdate();
  1457. }else{
  1458. if (this.addForm.executorListFront == null) {
  1459. this.addForm.executorListFront = [];//初始化
  1460. }
  1461. this.addForm.executorListFront.push({executorId:null, planHours:this.user.timeType.allday});
  1462. this.gstimday.push(1)
  1463. this.gstimhour.push(this.user.timeType.allday)
  1464. this.$forceUpdate();
  1465. this.replacementResult()
  1466. setTimeout(() => {
  1467. this.bottomScrollClick()
  1468. }, 100)
  1469. }
  1470. },
  1471. replacementResult() {
  1472. let lengths = (this.addForm.executorListFront || []).length
  1473. if(lengths > this.shownumber) {
  1474. this.startNum = lengths - this.shownumber
  1475. this.endNum = lengths
  1476. } else {
  1477. this.startNum = 0
  1478. this.endNum = lengths
  1479. }
  1480. this.sizeNum = typeof this.sizeNum == 'number' ? this.sizeNum+'' : +this.sizeNum
  1481. },
  1482. getTaskDetail(id) {
  1483. this.http.post('/task/getTask',{id: id},
  1484. res => {
  1485. if (res.code == "ok") {
  1486. this.millerSReviewer = [res.data.checkFirstId, res.data.checkSecondId]
  1487. if(this.showMmeiLaiDe) {
  1488. this.setDisabledPermission()
  1489. }
  1490. this.meetingId = res.data.meetingId
  1491. this.addForm = res.data;
  1492. if (this.addForm.aheadTid) {
  1493. this.addForm.aheadTidList = JSON.parse(this.addForm.aheadTid);
  1494. } else {
  1495. this.addForm.aheadTidList = [];
  1496. }
  1497. this.selectType = {id:this.addForm.taskPlanType, needAudit: this.addForm.needAudit};
  1498. this.addForm.createDate = null;
  1499. this.addForm.indate = null;
  1500. this.addLoading = false;
  1501. this.canEditTask = res.data.canEditTask
  1502. this.recentProgressInfo = res.data.progress;
  1503. if(res.data.executorList.length > 0) {
  1504. for(var i in res.data.executorList){
  1505. if(res.data.executorList[i].serviceId) {
  1506. res.data.executorList[i].serviceId = JSON.parse(res.data.executorList[i].serviceId)
  1507. }
  1508. }
  1509. console.log("==================",res.data.executorList)
  1510. this.addForm.executorListFront = res.data.executorList;
  1511. } else {
  1512. this.addForm.executorListFront = [{executorId: null, planHours: 8}];
  1513. }
  1514. this.gstimday = []
  1515. this.gstimhour = []
  1516. for(let i=0;i<this.addForm.executorListFront.length;i++){
  1517. this.gstimhour.push(this.addForm.executorListFront[i].planHours)
  1518. this.gstimday.push(Math.ceil(this.addForm.executorListFront[i].planHours / this.user.timeType.allday))
  1519. }
  1520. console.log(this.gstimday, this.gstimhour)
  1521. // //删除中间传值的变量数组
  1522. delete this.addForm.executorList;
  1523. //人员处理
  1524. this.users = res.data.userList;
  1525. // 触发类型切换事件
  1526. this.selchg()
  1527. //加载研究中心
  1528. this.degreeList = res.data.degreeList;
  1529. // this.$set(this.addForm,'centerId', this.addForm.centerId);
  1530. } else {
  1531. this.$message({
  1532. message: res.msg,
  1533. type: "error"
  1534. });
  1535. }
  1536. },
  1537. error => {
  1538. this.$message({
  1539. message: error,
  1540. type: "error"
  1541. });
  1542. });
  1543. },
  1544. //获取任务进展列表
  1545. getTaskProgressList(taskId) {
  1546. this.taskIid = taskId
  1547. this.http.post('/task-progress/list', {taskId: taskId},
  1548. res => {
  1549. if (res.code == "ok") {
  1550. this.ProgressList = res.data;
  1551. this.recentProgressInfo = res.data[0]
  1552. } else {
  1553. this.$message({
  1554. message: res.msg,
  1555. type: "error"
  1556. });
  1557. }
  1558. }
  1559. );
  1560. },
  1561. getUsers() {
  1562. this.http.post('/participation/getByProjectId', {projectId: this.addForm.projectId},
  1563. res => {
  1564. if (res.code == "ok") {
  1565. this.users = res.data;
  1566. } else {
  1567. this.$message({
  1568. message: res.msg,
  1569. type: "error"
  1570. });
  1571. }
  1572. },
  1573. error => {
  1574. this.$message({
  1575. message: error,
  1576. type: "error"
  1577. });
  1578. });
  1579. },
  1580. // 获取评论列表
  1581. gain(task,e) {
  1582. this.commentList = [];
  1583. this.taskId = e == 1 ? task.taskId : task.id;
  1584. this.http.post('/task-comment/getList', {taskId: e == 1 ? task.taskId : task.id},
  1585. res => {
  1586. if (res.code == "ok") {
  1587. if(this.user.userNameNeedTranslate == 1) {
  1588. for (let i = 0; i < res.data.length; i++) {
  1589. const originalString = res.data[i].content;
  1590. const regex = /\$userName=[^$]*\$|[^$]+/g;
  1591. const parts = originalString.match(regex);
  1592. let newArrList = [];
  1593. for (let j = 0; j < parts.length; j++) {
  1594. const newStr = parts[j];
  1595. if (newStr.startsWith('$userName=')) {
  1596. const userName = newStr.slice(10, -1);
  1597. newArrList.push({ type: 'user', value: userName });
  1598. } else {
  1599. newArrList.push({ type: 'text', value: newStr });
  1600. }
  1601. }
  1602. res.data[i].newContent = newArrList;
  1603. }
  1604. }
  1605. this.commentList = res.data
  1606. this.sppk(this.commentList) // 获取参与人的方法
  1607. this.contRoll()
  1608. } else {
  1609. this.$message({
  1610. message: res.msg,
  1611. type: "error"
  1612. });
  1613. }
  1614. },
  1615. error => {
  1616. this.$message({
  1617. message: error,
  1618. type: "error"
  1619. });
  1620. });
  1621. },
  1622. // 获取评论参与人
  1623. sppk(comit) {
  1624. var sk = []
  1625. comit.forEach(function(e){
  1626. sk.push(e.userName)
  1627. })
  1628. this.critic = new Set(sk)
  1629. },
  1630. getRelationTaskList(i,e){ //获取关联任务列表
  1631. let eid = null
  1632. if(i){
  1633. eid = e
  1634. }else{
  1635. eid = this.addForm.id
  1636. }
  1637. this.http.post('/task/getMilestoneTaskList',{
  1638. milestoneId: eid
  1639. },res => {
  1640. if(res.code == 'ok') {
  1641. this.relationSubTaskList = res.data
  1642. // console.log('res',res.data);
  1643. }else {
  1644. this.$message({
  1645. message: res.msg,
  1646. type: 'error'
  1647. })
  1648. }
  1649. },error => {
  1650. this.$message({
  1651. message: error,
  1652. type: 'error'
  1653. })
  1654. })
  1655. },
  1656. // 获取来自日报
  1657. getDailyList(id) {
  1658. this.http.post('/report/getTaskReportList',{
  1659. // taskId: '22131'
  1660. taskId: id
  1661. },
  1662. res => {
  1663. if (res.code == "ok") {
  1664. this.dailyList = res.data
  1665. } else {
  1666. this.$message({
  1667. message: res.msg,
  1668. type: "error"
  1669. });
  1670. }
  1671. },
  1672. error => {
  1673. this.$message({
  1674. message: error,
  1675. type: "error"
  1676. });
  1677. });
  1678. },
  1679. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  1680. const { timeType } = this.user
  1681. if (columnIndex === 6 && timeType.taskFileCharge == 1) {
  1682. return [this.taskFileList.length, 1];
  1683. }
  1684. return [1, 1];
  1685. },
  1686. // 获取任务下的文档列表
  1687. getTaskFileList(e,eid){
  1688. let etaskId
  1689. if(e == 1){etaskId = eid}
  1690. else{etaskId = this.addForm.id}
  1691. this.fileListLoading = true
  1692. this.http.post('/task-files/getTaskFiles',{
  1693. taskId: etaskId
  1694. },res => {
  1695. if(res.code == 'ok'){
  1696. this.fileListLoading = false
  1697. this.taskFileList = res.data.map(item => {
  1698. let str = item.fileChargeStatusText || ''
  1699. let arr = str.split(/\$|=/).filter(item => item && item !== 'userName');
  1700. return {
  1701. ...item,
  1702. fileChargeStatusTextList: arr || []
  1703. }
  1704. })
  1705. console.log(this.taskFileList, '<+======this.taskFileList')
  1706. }else {
  1707. this.fileListLoading = false
  1708. this.$message({
  1709. message: res.msg,
  1710. type: 'error'
  1711. })
  1712. }
  1713. },error => {
  1714. this.fileListLoading = false
  1715. this.$message({
  1716. message: error,
  1717. type: 'error'
  1718. })
  1719. })
  1720. },
  1721. DateChange(){
  1722. if(this.addForm.startDate != undefined && this.addForm.endDate != undefined){
  1723. let stdate = Date.parse(this.addForm.startDate)
  1724. let eddate = Date.parse(this.addForm.endDate)
  1725. // if(stdate <= eddate){
  1726. // let days = (eddate - stdate) / (1*24*60*60*1000) + 1
  1727. // for (let i=0;i<this.gstimday.length;i++) {
  1728. // this.gstimday[i] = days
  1729. // this.gstimhour[i] = days * this.user.timeType.allday
  1730. // }
  1731. // this.$forceUpdate()
  1732. // }
  1733. }
  1734. },
  1735. // 自定义组件事件
  1736. selectCal(obj) {
  1737. if(obj.distinction == '1') {
  1738. this.addForm.executorListFront[obj.index].executorId = obj.id
  1739. } else if(obj.distinction == '2') {
  1740. this.groupForm.inchargerId = obj.id
  1741. } else if(obj.distinction == '101') {
  1742. this.addForm.executorListFront[obj.index].fileChargeOneId = obj.id
  1743. } else if(obj.distinction == '102') {
  1744. this.addForm.executorListFront[obj.index].fileChargeTwoId = obj.id
  1745. }
  1746. },
  1747. getDetail(id) {
  1748. this.http.post('/project/detail',{
  1749. id: id
  1750. },
  1751. res => {
  1752. if (res.code == "ok") {
  1753. console.log('触发更新试一下')
  1754. this.currentProject = res.data;
  1755. this.getjurisdictionIds(this.currentProject)
  1756. this.joinMembList = this.currentProject.participationList;
  1757. } else {
  1758. }
  1759. },
  1760. error => {
  1761. this.$message({
  1762. message: error,
  1763. type: "error"
  1764. });
  1765. }
  1766. );
  1767. },
  1768. getjurisdictionIds(pro){
  1769. console.log('pro',pro.creatorId);
  1770. this.projectCreatorId = pro.creatorId
  1771. this.projectInchargerId = pro.inchargerId
  1772. },
  1773. //加载项目内的任务列表
  1774. getStageList(obj) {
  1775. this.http.post('/stages/list', {
  1776. groupId: obj.groupId,
  1777. projectId: obj.projectId,
  1778. order: obj.order,
  1779. isDesc: obj.isDesc
  1780. },
  1781. res => {
  1782. if (res.code == "ok") {
  1783. this.stageList = res.data.list;
  1784. this.canEditTask = res.data.canEditTask
  1785. this.canEditStageList = res.data.canEditStageList
  1786. this.timess() // 处理时间的方法
  1787. } else {
  1788. this.$message({
  1789. message: res.msg,
  1790. type: "error"
  1791. });
  1792. }
  1793. },
  1794. error => {
  1795. this.$message({
  1796. message: error,
  1797. type: "error"
  1798. });
  1799. });
  1800. },
  1801. timess(){
  1802. // console.log('timess');
  1803. var date = new Date()
  1804. let Y = date.getFullYear()
  1805. let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
  1806. let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
  1807. this.times = `${Y}-${M}-${D}`
  1808. console.log(this.times, '时间')
  1809. },
  1810. // 提交按钮
  1811. submitInsert() {
  1812. if (this.textContent !== true) return this.$message({
  1813. showClose: true,
  1814. message: this.$t('pictureistoolargepleaseuploaditagain'),
  1815. type: 'warning'
  1816. });
  1817. //检查是有重名的执行人
  1818. var exeList = this.addForm.executorListFront;
  1819. console.log(this.addForm.executorListFront)
  1820. for (var i=0;i<exeList.length;i++) {
  1821. var findSameUser = false;
  1822. exeList[i].planHours = this.gstimhour[i]
  1823. for (var j=i+1;j<exeList.length; j++) {
  1824. if (exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId) {
  1825. findSameUser = true;
  1826. break;
  1827. }
  1828. }
  1829. if (findSameUser) {
  1830. return this.$message({
  1831. showClose: true,
  1832. message: this.$t('executorhasduplication'),
  1833. type: 'error'
  1834. });
  1835. }
  1836. }
  1837. if(this.addForm.startDate && this.addForm.endDate) {
  1838. if(this.addForm.endDate < this.addForm.startDate) {
  1839. return this.$message({
  1840. showClose: true,
  1841. message: this.$t('ren-wu-jie-zhi-shi-jian-bu-neng-xiao-yu-kai-shi-shi-jian'),
  1842. type: 'error'
  1843. });
  1844. }
  1845. }
  1846. if(this.showMmeiLaiDe && !this.addForm.endDate) {
  1847. return this.$message({
  1848. showClose: true,
  1849. message: '请选择截止时间',
  1850. type: 'warning'
  1851. });
  1852. }
  1853. this.$refs.form1.validate(valid => {
  1854. if (valid) {
  1855. delete this.addForm.subTaskList;
  1856. delete this.addForm.refTaskList;
  1857. delete this.addForm.progress;
  1858. delete this.addForm.userList;
  1859. //去掉没有执行人的.(因为要有计划工时,执行人可以暂不设置)
  1860. // this.addForm.executorListFront = this.addForm.executorListFront.filter(exe=>exe.executorId);
  1861. if(this.addForm.executorListFront.serviceId){
  1862. this.addForm.executorListFront.serviceId= this.addForm.executorListFront.serviceId;
  1863. }
  1864. this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
  1865. // this.addForm.executorList = this.addForm.aheadTidList;
  1866. this.addForm.aheadTid = JSON.stringify(this.addForm.aheadTidList);
  1867. if (this.addForm.centerId) {
  1868. this.addForm.centerName = this.degreeList.filter(a=>a.id == this.addForm.centerId)[0].name;
  1869. }
  1870. let addFormData = { ...this.addForm }
  1871. //不需要审核,简化字段
  1872. if(!this.selectType.needAudit) {
  1873. addFormData = {
  1874. id: this.addForm.id,
  1875. name: this.addForm.name,
  1876. taskPlanType: this.addForm.taskPlanType,
  1877. startDate: this.addForm.startDate,
  1878. endDate: this.addForm.endDate,
  1879. executorListStr: this.addForm.executorListStr
  1880. }
  1881. }
  1882. this.addLoading = true;
  1883. this.http.post('/task/save',{ ...addFormData, isTaskPlan: this.showMmeiLaiDe ? 1 : 0},
  1884. res => {
  1885. this.addLoading = false;
  1886. if (res.code == "ok") {
  1887. this.$message({
  1888. message: this.$t('message.submittedSuccessfully'),
  1889. type: "success"
  1890. });
  1891. if (this.addForm.parentTid == null) {
  1892. let obj = {
  1893. submitInsert: true,
  1894. showOrNot: this.showOrNot
  1895. }
  1896. // if(!addFormData.id) {
  1897. // obj.dateList = [addFormData.startDate, addFormData.endDate]
  1898. // }
  1899. if(!addFormData.id) {
  1900. localStorage.setItem('ganttChartTaskId', JSON.stringify(res.data || []))
  1901. }
  1902. this.$emit('closeBounced', obj)
  1903. } else {
  1904. // this.backToParentTask();
  1905. // if(!addFormData.id) {
  1906. // this.$emit('closeBounced', {
  1907. // backToParentTaskSub: true,
  1908. // dateList: [addFormData.startDate, addFormData.endDate]
  1909. // })
  1910. // } else {
  1911. if(!addFormData.id) {
  1912. localStorage.setItem('ganttChartTaskId', JSON.stringify(res.data || []))
  1913. }
  1914. this.$emit('closeBounced', {backToParentTaskSub: true})
  1915. // }
  1916. }
  1917. } else {
  1918. this.$message({
  1919. message: res.msg,
  1920. type: "error"
  1921. });
  1922. }
  1923. },
  1924. error => {
  1925. this.$message({
  1926. message: error,
  1927. type: "error"
  1928. });
  1929. }
  1930. );
  1931. }
  1932. });
  1933. },
  1934. backToParentTask() {
  1935. this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
  1936. this.isEditFile = true;
  1937. if(this.timelabel){
  1938. this.isRelationItem = false
  1939. this.getRelationTaskList(1, this.relationPar.id)
  1940. this.gain(this.relationPar)
  1941. }
  1942. },
  1943. onEditorFocus() {
  1944. this.onEditorBlur()
  1945. },
  1946. // 获得焦点时触发
  1947. onEditorBlur(){
  1948. let theEle = this.$refs.text; // 获取元素
  1949. if(!theEle.value) {
  1950. return
  1951. }
  1952. var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
  1953. var arrImg = ''
  1954. for (var j = 0; j < img.length; j++) {
  1955. // 正则匹配,摘出img标签下的src里的内容,即capture
  1956. img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
  1957. arrImg += capture
  1958. });
  1959. }
  1960. // 原来的字符流大小,单位为字节
  1961. var strLen = arrImg.length;
  1962. // 计算后得到的文件流大小,单位为字节
  1963. var fileSize=parseInt(strLen-(strLen/8)*2);
  1964. var size = "";
  1965. size = (fileSize/1024/1024).toFixed(2);
  1966. if (size > 2){
  1967. this.textContent = false
  1968. this.$message({
  1969. showClose: true,
  1970. message: this.$t('imageexceeds2MBpleaseuploaditagain'),
  1971. type: 'warning'
  1972. });
  1973. }
  1974. this.textContent = true
  1975. },
  1976. //删除当前编辑的任务
  1977. deleteTask() {
  1978. var warning='';
  1979. if (this.addForm.subTaskList.length > 0) {
  1980. warning=this.$t('currenttaskanditssubtasks');
  1981. } else {
  1982. warning=this.$t('wanttodeletethecurrent task');
  1983. }
  1984. this.$confirm(warning, this.$t('other.prompts'), {
  1985. //type: 'warning'
  1986. }).then(() => {
  1987. this.http.post('/task/delete',{id: this.addForm.id},
  1988. res => {
  1989. if (res.code == "ok") {
  1990. this.$message({
  1991. message: '删除成功',
  1992. type: 'success'
  1993. });
  1994. this.$emit('closeBounced', {deleteTask: true})
  1995. } else {
  1996. this.$message({
  1997. message: res.msg,
  1998. type: "error"
  1999. });
  2000. }
  2001. },
  2002. error => {
  2003. this.$message({
  2004. message: error,
  2005. type: "error"
  2006. });
  2007. });
  2008. });
  2009. },
  2010. addprogress(){ // 添加子任务进展事件
  2011. this.$refs.proBox.style.display="block"
  2012. this.$refs.addPro.style.display="none"
  2013. },
  2014. shutPro() { // 关闭任务进展
  2015. this.$refs.addPro.style.display="block"
  2016. this.$refs.addRem.style.display="none"
  2017. this.$refs.proBox.style.display="none"
  2018. },
  2019. //创建任务进展
  2020. addTaskProgress() {
  2021. var param = {
  2022. taskId: this.taskIid,
  2023. status: this.radio,
  2024. content: this.text2,
  2025. participatorIds: this.checkLists.toString()
  2026. };
  2027. this.http.post('/task-progress/addProgress', param,
  2028. res => {
  2029. if (res.code == "ok") {
  2030. this.shutPro()
  2031. this.getTaskProgressList(this.taskIid)
  2032. this.$message({
  2033. message: this.$t('releasesuccess'),
  2034. type: "success"
  2035. });
  2036. this.checkboxGrounp = [],
  2037. this.checkLists = [],
  2038. this.text2 = '',
  2039. this.radio = 0
  2040. let obj = {
  2041. id: this.taskIid
  2042. }
  2043. this.gain(obj)
  2044. } else {
  2045. this.$message({
  2046. message: res.msg,
  2047. type: "error"
  2048. });
  2049. }
  2050. }
  2051. );
  2052. },
  2053. addI() { // 打开选择查看
  2054. this.$refs.addRem.style.display="block"
  2055. },
  2056. selchg(){ //类型切换
  2057. if(this.addForm.taskType == 1){
  2058. this.timelabel = true
  2059. if(!this.addForm.executorListFront[0].executorId) {
  2060. console.log(this.currentProject)
  2061. this.addForm.executorListFront[0].executorId = this.currentProject.inchargerId
  2062. }
  2063. }else{
  2064. this.timelabel = false
  2065. }
  2066. },
  2067. kkk(el){
  2068. var k = this.checkLists.indexOf(el.id)
  2069. if (k == -1) {
  2070. this.checkLists.push(el.id)
  2071. } else {
  2072. this.checkLists.splice(k, 1)
  2073. }
  2074. },
  2075. //删除任务进展
  2076. deleteTaskProgress(id) {
  2077. this.http.post('/task-progress/deleteProgress', {id: id},
  2078. res => {
  2079. if (res.code == "ok") {
  2080. this.getTaskProgressList(this.taskIid)
  2081. this.$message({
  2082. message: this.$t('message.successfullyDeleted'),
  2083. type: "success"
  2084. });
  2085. } else {
  2086. this.$message({
  2087. message: res.msg,
  2088. type: "error"
  2089. });
  2090. }
  2091. }
  2092. );
  2093. },
  2094. addRelation(){ //关联任务卡片
  2095. this.relationvalue = []
  2096. this.isRelationTab = true
  2097. this.getrelation()
  2098. },
  2099. getrelation(){
  2100. //获取选择关联列表
  2101. this.http.post('/task/getTaskOnlyList',{
  2102. projectId: this.curProjectId?this.curProjectId:this.addForm.projectId
  2103. },
  2104. res => {
  2105. if (res.code == "ok") {
  2106. this.relationdata = []
  2107. res.data.forEach( (item) =>{
  2108. if(item.taskType != 1){
  2109. if (item.id != this.addForm.id) {
  2110. this.relationdata.push(item)
  2111. }
  2112. }
  2113. })
  2114. // console.log('map',this.relationdata);
  2115. } else {
  2116. this.$message({
  2117. message: res.msg,
  2118. type: "error"
  2119. });
  2120. }
  2121. },
  2122. error => {
  2123. this.$message({
  2124. message: error,
  2125. type: "error"
  2126. });
  2127. });
  2128. },
  2129. //显示子任务创建卡片
  2130. addSubTask() {
  2131. if(this.isRelationItem){return}
  2132. this.addFormVisible = true;
  2133. this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
  2134. // this.addForm.executorListFront = [{executorId:null, planHours:8}];
  2135. this.addForm.executorListFront = [{executorId:null, planHours:8, serviceId: null}];
  2136. this.addLoading = false;
  2137. //创建子任务,非编辑状态
  2138. this.isEditFile = false;
  2139. // 触发外界子任务事件
  2140. this.$emit('closeBounced', {addSubTask: true, addForms: this.addForm})
  2141. },
  2142. // 关联任务点击事件
  2143. relationTaskClick(row,column,event){
  2144. // console.log('relationTaskClick',row);
  2145. this.relationPar = JSON.parse(JSON.stringify(this.addForm))
  2146. // console.log(this.relationPar);
  2147. this.addFormVisible = true;
  2148. this.addLoading = false;
  2149. this.isRelationItem = true;
  2150. this.isEditFile = true;
  2151. this.title = this.$t('editingtasks');
  2152. this.getTaskDetail(row.taskId);
  2153. // this.getUsers();
  2154. this.gain(row,1);
  2155. this.getRelationTaskList(1, row.taskId)
  2156. this.getTaskFileList(1,row.taskId)
  2157. },
  2158. // 解除关联
  2159. deleteRelationItem(eid){
  2160. this.listLoading = true
  2161. this.http.post('/task/removeMileStoneTask',{
  2162. id: eid
  2163. },res => {
  2164. if(res.code == 'ok') {
  2165. this.getRelationTaskList()
  2166. this.listLoading = false
  2167. this.$message({
  2168. message: this.$t('jie-chu-cheng-gong'),
  2169. type: 'success'
  2170. })
  2171. }else {
  2172. this.listLoading = false
  2173. this.$message({
  2174. message: res.msg,
  2175. type: 'error'
  2176. })
  2177. }
  2178. },error => {
  2179. this.listLoading = false
  2180. this.$message({
  2181. message: error,
  2182. type: 'error'
  2183. })
  2184. })
  2185. },
  2186. // 关联任务列表是否完成修改
  2187. relationFinishTask(row){
  2188. this.http.post('/task/finish',{
  2189. id: row.taskId,
  2190. taskStatus: row.taskStatus
  2191. },res => {
  2192. if(res.code == 'ok'){
  2193. // if(this.groupType == 0){
  2194. // this.getStageList();
  2195. // }else {
  2196. // this.getViewTaskList();
  2197. let obj = {
  2198. submitInsert: true
  2199. }
  2200. this.$emit('closeBounced', obj)
  2201. // }
  2202. }else{
  2203. this.$message({
  2204. message: res.msg,
  2205. type: 'error'
  2206. })
  2207. }
  2208. },error => {
  2209. this.$message({
  2210. message: error,
  2211. type: 'error'
  2212. })
  2213. })
  2214. },
  2215. finishTask(task) {
  2216. this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
  2217. res => {
  2218. if (res.code == "ok") {
  2219. // if (this.groupType == 0) {
  2220. // this.getStageList();
  2221. // } else {
  2222. // this.getViewTaskList();
  2223. // }
  2224. let obj = {
  2225. submitInsert: true
  2226. }
  2227. this.$emit('closeBounced', obj)
  2228. } else {
  2229. this.$message({
  2230. message: res.msg,
  2231. type: "error"
  2232. });
  2233. }
  2234. },
  2235. error => {
  2236. this.$message({
  2237. message: error,
  2238. type: "error"
  2239. });
  2240. });
  2241. },
  2242. // 关联文件按钮
  2243. relationFileClick(){
  2244. this.relationFileDialog = true
  2245. this.addFileId = null
  2246. this.getProjectFileList()
  2247. },
  2248. // 获取项目下的文档列表
  2249. getProjectFileList(){
  2250. this.http.post('/task-files/getDocumentList',{
  2251. projectId: this.curProjectId
  2252. },res => {
  2253. if(res.code == 'ok'){
  2254. this.projectFileList = res.data
  2255. console.log('list',res.data);
  2256. }else {
  2257. this.$message({
  2258. message: res.msg,
  2259. type: 'error'
  2260. })
  2261. }
  2262. },error => {
  2263. this.$message({
  2264. message: error,
  2265. type: 'error'
  2266. })
  2267. })
  2268. },
  2269. // 列表的删除按钮
  2270. taskFileDelete(eid){
  2271. this.$confirm(this.$t('shiFouYiChuCiWenJian'), this.$t('other.prompts'), {
  2272. confirmButtonText: this.$t('btn.determine'),
  2273. cancelButtonText: this.$t('btn.cancel'),
  2274. type: 'warning'
  2275. }).then(()=>{
  2276. this.http.post('/task-files/delete',{
  2277. id: eid
  2278. },res => {
  2279. if(res.code == 'ok'){
  2280. this.$message({
  2281. message: res.data,
  2282. type: 'success'
  2283. })
  2284. this.getTaskFileList()
  2285. this.gain({ taskId: this.taskId }, 1)
  2286. }else {
  2287. this.$message({
  2288. message: res.msg,
  2289. type: 'error'
  2290. })
  2291. }
  2292. },error => {
  2293. this.$message({
  2294. message: error,
  2295. type: 'error'
  2296. })
  2297. })
  2298. }).catch(()=>{
  2299. this.$message({
  2300. message: this.$t('thedeletionhasbeencancelled'),
  2301. type: 'info'
  2302. })
  2303. })
  2304. },
  2305. showReasonForRejection(item) {
  2306. const taskId = this.taskId
  2307. const {id} = item
  2308. this.http.post('/task/getFileRejectReason',{
  2309. taskId
  2310. },res => {
  2311. if(res.code == 'ok'){
  2312. let text = res.data.find(item => item.id == id)
  2313. console.log(text)
  2314. this.$alert(text.fileRejectReason, '驳回原因');
  2315. }else {
  2316. this.$message.error(res.msg)
  2317. }
  2318. },error => { this.$message.error(error) })
  2319. },
  2320. // 确认关联文件
  2321. addTaskFile(){
  2322. if(this.addFileId == null){
  2323. this.$message({message: this.$t('xuanzguanlianwenjian') , type: 'warning'})
  2324. return
  2325. }
  2326. this.http.post('/task-files/addDocumentRef',{
  2327. documentId: this.addFileId,
  2328. taskId: this.addForm.id,
  2329. projectId: this.curProjectId
  2330. },res => {
  2331. if(res.code == 'ok'){
  2332. this.$message({
  2333. message: this.$t('guan-lian-cheng-gong'),
  2334. type: 'success'
  2335. })
  2336. this.relationFileDialog = false
  2337. this.getTaskFileList()
  2338. }else {
  2339. this.$message({
  2340. message: res.msg,
  2341. type: 'error'
  2342. })
  2343. }
  2344. },error => {
  2345. this.$message({
  2346. message: error,
  2347. type: 'error'
  2348. })
  2349. })
  2350. },
  2351. addRelationTask(){ //添加关联任务
  2352. this.http.post('/task/addMileStoneTask',{
  2353. milestoneId: this.addForm.id,
  2354. taskIds: JSON.stringify(this.relationvalue)
  2355. },
  2356. res =>{
  2357. if(res.code == "ok") {
  2358. this.isRelationTab = false
  2359. this.$message({
  2360. message: this.$t('addsuccessful'),
  2361. type: 'success'
  2362. })
  2363. this.getRelationTaskList()
  2364. this.$forceUpdate()
  2365. }else {
  2366. this.$message({
  2367. message: res.msg,
  2368. type: 'error'
  2369. })
  2370. }
  2371. },
  2372. error => {
  2373. this.$message({
  2374. message: error,
  2375. type: 'error'
  2376. })
  2377. })
  2378. },
  2379. backToParentTask() {
  2380. // this.getTaskDetail(this.addForm.parentTid);
  2381. this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
  2382. this.isEditFile = true;
  2383. if(this.timelabel){
  2384. this.isRelationItem = false
  2385. // this.relationPar = {name: ''}
  2386. this.getRelationTaskList(1, this.relationPar.id)
  2387. this.gain(this.relationPar)
  2388. }
  2389. },
  2390. // 点击评论发布
  2391. release() {
  2392. if(this.textarea2.length <= 0) return this.$message({message: this.$t('pleaseentercontent'), type: "error"})
  2393. this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
  2394. res => {
  2395. if(res.code == "ok"){
  2396. if(res.data.content.indexOf('$userName=') != '-1') {
  2397. let obj = {
  2398. msg1: res.data.content.split('$')[0],
  2399. msg2: res.data.content.split('$')[1].split('=')[1],
  2400. msg3: res.data.content.split('$')[2]
  2401. }
  2402. res.data.content = obj
  2403. } else {
  2404. if(this.user.userNameNeedTranslate == 1) {
  2405. let obj = {
  2406. msg1: res.data.content,
  2407. msg2: '',
  2408. msg3: ''
  2409. }
  2410. res.data.content = obj
  2411. }
  2412. }
  2413. this.commentList.push(res.data)
  2414. console.log(this.commentList, '值☞')
  2415. this.sppk(this.commentList)
  2416. let obj = {
  2417. id: this.taskIid
  2418. }
  2419. this.gain(obj)
  2420. this.textarea2 = ""
  2421. // this.contRoll() // 滚动到底部
  2422. } else {
  2423. this.$message({
  2424. message: res.msg,
  2425. type: "error"
  2426. });
  2427. }
  2428. },
  2429. error => {
  2430. this.$message({
  2431. message: error,
  2432. type: "error"
  2433. });
  2434. })
  2435. },
  2436. // 滚动到底部
  2437. contRoll(){
  2438. // this.$nextTick(() => {
  2439. // this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
  2440. // })
  2441. this.$nextTick(() => {
  2442. let scrollElem = this.$refs.main;
  2443. scrollElem.scrollTo({ top: scrollElem.scrollHeight});
  2444. });
  2445. console.log('最后执行')
  2446. },
  2447. sss(){
  2448. this.$refs.addRem.style.display="none"
  2449. },
  2450. taskLineClick(row, column, event) {
  2451. if(this.isRelationItem){return}
  2452. this.mileageCup = true
  2453. if(row.taskType == 1){
  2454. this.timelabel = true
  2455. this.isRelationItem = false
  2456. }else{
  2457. this.timelabel = false
  2458. }
  2459. this.addFormVisible = true;
  2460. this.isEditFile = true;
  2461. this.addLoading = false;
  2462. this.getTaskDetail(row.id);
  2463. this.getTaskProgressList(row.id); // 获取任务进展列表
  2464. // this.getUsers(); // 获取名单数据
  2465. this.gain(row); // 获取评论列表
  2466. this.getDailyList(row.id) // 获取来自日报
  2467. this.getRelationTaskList(1, row.id)
  2468. this.getTaskFileList(1,row.id)
  2469. this.$emit('closeBounced', {taskLineClickAbs: true, items: row})
  2470. },
  2471. //获取SAP项目服务数据列表
  2472. getSapServiceList(){
  2473. this.http.post('/sap-project-service/sapServiceList', {},
  2474. res => {
  2475. if(res.code == "ok"){
  2476. this.sapServiceList=res.data
  2477. } else {
  2478. this.$message({
  2479. message: res.msg,
  2480. type: "error"
  2481. });
  2482. }
  2483. },
  2484. error => {
  2485. this.$message({
  2486. message: error,
  2487. type: "error"
  2488. });
  2489. })
  2490. },
  2491. // 列表的上传按钮
  2492. uploadFileClick(item){
  2493. console.log("upload",item.file);
  2494. let files = new FormData()
  2495. files.append("projectId",this.curProjectId);
  2496. files.append("taskId", this.addForm.id);
  2497. files.append("file", item.file);
  2498. this.http.uploadFile('/task-files/uploadFile', files,
  2499. res => {
  2500. if(res.code == 'ok'){
  2501. console.log(res);
  2502. this.$message({
  2503. message: this.$t('yi-shang-chuan'),
  2504. type: 'success'
  2505. })
  2506. this.gain({ taskId: this.taskId }, 1)
  2507. this.getTaskFileList()
  2508. }else {
  2509. this.$message({
  2510. message: res.msg,
  2511. type: 'error'
  2512. })
  2513. }
  2514. },error => {
  2515. this.$message({
  2516. message: error,
  2517. type: 'error'
  2518. })
  2519. })
  2520. },
  2521. uploadFileClickTwo(item, row) {
  2522. let files = new FormData()
  2523. files.append("projectId",this.curProjectId);
  2524. files.append("taskId", this.addForm.id);
  2525. files.append("taskFileId", row.id);
  2526. files.append("file", item.file);
  2527. this.http.uploadFile('/task-files/reUploadFile', files,
  2528. res => {
  2529. if(res.code == 'ok'){
  2530. console.log(res);
  2531. this.$message({
  2532. message: this.$t('yi-shang-chuan'),
  2533. type: 'success'
  2534. })
  2535. this.gain({ taskId: this.taskId }, 1)
  2536. this.getTaskFileList()
  2537. }else {
  2538. this.$message({
  2539. message: res.msg,
  2540. type: 'error'
  2541. })
  2542. }
  2543. },error => {
  2544. this.$message({
  2545. message: error,
  2546. type: 'error'
  2547. })
  2548. })
  2549. }
  2550. },
  2551. };
  2552. </script>
  2553. <style lang="scss" scoped>
  2554. @import "../assets/scss/handle";
  2555. .reviewImages {
  2556. display: flex;
  2557. align-items: center;
  2558. margin: 0 25px;
  2559. img {
  2560. width: 100px
  2561. }
  2562. }
  2563. .themeFontColor {
  2564. @include font_color("color");
  2565. }
  2566. .customizedReviewer {
  2567. display: flex;
  2568. align-items: center;
  2569. }
  2570. .editingTask {
  2571. display: flex;
  2572. flex-wrap: wrap;
  2573. }
  2574. .carts .commentSpan {
  2575. float: none;
  2576. display: block;
  2577. margin-top: 0;
  2578. font-size: 14px;
  2579. span {
  2580. float: none;
  2581. display: inline-block;
  2582. margin-top: 0;
  2583. font-size: 14px;
  2584. }
  2585. }
  2586. .foooot {
  2587. padding: 10px 20px 20px;
  2588. text-align: right;
  2589. -webkit-box-sizing: border-box;
  2590. box-sizing: border-box;
  2591. }
  2592. .Daily p {
  2593. margin: 0 !important;
  2594. padding: 0 0 10px 0 !important;
  2595. }
  2596. .sub-all {
  2597. div {
  2598. display: inline-block;
  2599. padding: 0 20px;
  2600. font-size: 20px;
  2601. cursor: pointer;
  2602. }
  2603. .subOn {
  2604. color: #66b1ff;
  2605. }
  2606. }
  2607. .DailyBody {
  2608. margin: 0 20px;
  2609. }
  2610. .Daily{
  2611. height: 120%;
  2612. overflow: auto;
  2613. }
  2614. .inputDeep {
  2615. position: absolute;
  2616. bottom: 85px;
  2617. width: 95%;
  2618. margin: 0 12px;
  2619. }
  2620. .inputDeep .el-textarea .el-textarea__inner{
  2621. border: 0 !important;
  2622. resize: none !important;
  2623. }
  2624. .inputDeeps .el-textarea__inner {
  2625. border: 0 !important;
  2626. resize: none !important;
  2627. }
  2628. .scop_span {
  2629. display: inline-block;
  2630. padding: 2px 5px;
  2631. }
  2632. .counli {
  2633. em {
  2634. font-style: normal;
  2635. display: inline-block;
  2636. margin-left: 9%;
  2637. }
  2638. span {
  2639. float: right;
  2640. }
  2641. }
  2642. .carts {
  2643. position: relative;
  2644. .el-image{
  2645. border-radius: 50%;
  2646. float: left;
  2647. width: 20%;
  2648. }
  2649. i {
  2650. width: 30px;
  2651. height: 30px;
  2652. // background: #778899;
  2653. display: inline-block;
  2654. float: left;
  2655. border-radius:50%;
  2656. font-style:normal;
  2657. font-size: 12px;
  2658. line-height: 30px;
  2659. text-align: center;
  2660. color: #fff;
  2661. background: #778899;
  2662. overflow: hidden;
  2663. direction: rtl;
  2664. }
  2665. div {
  2666. text-align: left;
  2667. p {
  2668. text-align: left;
  2669. margin-left: 10px;
  2670. margin-left: 13%;
  2671. }
  2672. em {
  2673. display: block;
  2674. font-style: normal;
  2675. margin-left: 13%;
  2676. }
  2677. }
  2678. span {
  2679. font-size: 10px;
  2680. float: right;
  2681. margin-top: -40px;
  2682. }
  2683. }
  2684. .issue {
  2685. // height: 20%;
  2686. // position: relative;
  2687. // z-index: 4;
  2688. .zh{
  2689. position: relative;
  2690. width: 100%;
  2691. height: 100%;
  2692. }
  2693. .textareays {
  2694. background: #000;
  2695. height: 140px;
  2696. border: 0;
  2697. .el-textarea__inner {
  2698. height: 85%;
  2699. }
  2700. }
  2701. .issue-button {
  2702. position: absolute;
  2703. bottom: 20px;
  2704. right: 20px;
  2705. }
  2706. }
  2707. .inputDeep {
  2708. position: absolute;
  2709. bottom: 85px;
  2710. width: 95%;
  2711. margin: 0 12px;
  2712. }
  2713. .inputDeep .el-textarea .el-textarea__inner{
  2714. border: 0 !important;
  2715. resize: none !important;
  2716. }
  2717. .inputDeeps .el-textarea__inner {
  2718. border: 0 !important;
  2719. resize: none !important;
  2720. }
  2721. .scop_span {
  2722. display: inline-block;
  2723. padding: 2px 5px;
  2724. }
  2725. .container {
  2726. position: relative;
  2727. overflow-y: scroll;
  2728. }
  2729. .list {
  2730. position: absolute;
  2731. top: 0;
  2732. width: 100%;
  2733. }
  2734. .reviewerClass {
  2735. display: flex;
  2736. align-items: center;
  2737. margin-right: 20px;
  2738. .reviewerTitles {
  2739. margin-right: 10px;
  2740. }
  2741. }
  2742. .modifyPlanTitle {
  2743. display: flex;
  2744. align-items: center;
  2745. margin-bottom: 20px;
  2746. }
  2747. .modifyPlanTitle-item {
  2748. display: flex;
  2749. align-items: center;
  2750. margin-right: 20px;
  2751. }
  2752. </style>