12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194 |
- <template>
- <div>
- <div style="height: 72vh;overflow: auto;">
- <el-form ref="form1" :model="addForm" :rules="taskRules" label-width="120px">
- <el-form-item label="状态" v-if="addForm.id > 0">
- <span :style="'color:'+taskStatusColorList[addForm.taskStatus]">{{ taskStatusList[addForm.taskStatus] }}</span>
- </el-form-item>
- <el-form-item :label="'类型'" prop="taskPlanType">
- <el-select v-model="addForm.taskPlanType" :placeholder="$t('defaultText.pleaseChoose')" style="width:100%;" :disabled="doYouWantToDisableAll" @change="onTypeChange($event)">
- <el-option v-for="item in typeList" :label="item.name" :value="item.id" :key="item.id">
- <div style="display: flex;justify-content: space-between;align-items: center;">
- <!--左边是文字,右边是色块(有color的话)-->
- <div style="float: left; ">{{ item.name }}</div>
- <div v-if="item.color" :style="'width:80px;height:20px;background-color:'+item.color"></div>
- </div>
- </el-option>
- </el-select>
- </el-form-item>
- <template v-if="selectType.needAudit">
- <el-form-item :label="$t('subordinatetotheproject')" v-if="showOrNot" prop="projectId">
- <el-select v-model="addForm.projectId" :placeholder="$t('defaultText.pleaseChoose')" @change="agentCreatesEvents(1)" filterable="true" style="width:100%;"
- :disabled="doYouWantToDisableAll" no-data-text="您尚无担任LA的相关项目">
- <el-option-group v-for="group in integrationProjectList" :key="group.label" :label="group.label">
- <el-option v-for="item in group.peojectList" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
- <span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
- <span style="float: right;">{{ item.projectName }}</span>
- </el-option>
- </el-option-group>
- </el-select>
- </el-form-item>
- <el-form-item label="研究中心" v-if="showOrNot" prop="centerId">
- <el-select v-model="addForm.centerId" :placeholder="$t('defaultText.pleaseChoose')" filterable="true" style="width:100%;" :disabled="doYouWantToDisableAll" clearable="true">
- <el-option v-for="item in degreeList" :key="item.id" :label="item.name" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item :label="$t('suoShuRenWuFenZu')" v-if="showOrNot" prop="groupId">
- <el-select v-model="addForm.groupId" :placeholder="$t('defaultText.pleaseChoose')" @change="agentCreatesEvents(2)" filterable="true" style="width:100%;" :disabled="doYouWantToDisableAll">
- <el-option v-for="item in groupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item :label="$t('suoShuRenWuLieBiao')" v-if="showOrNot" prop="stagesId">
- <el-select v-model="addForm.stagesId" :placeholder="$t('defaultText.pleaseChoose')" filterable="true" style="width:100%;" :disabled="doYouWantToDisableAll">
- <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <!--子任务需要选择任务列表 -->
- <el-form-item :label="$t('tasklist')" prop="stages" v-if="addForm.parentTid != null">
- <el-select v-model="addForm.stagesId" style="width:100%;" >
- <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item :label="$t('qianZhiRenWu')" prop="aheadTidList" >
- <el-select v-model="addForm.aheadTidList" style="width:100%;" multiple filterable @change="$forceUpdate()" :disabled="doYouWantToDisableAll">
- <el-option v-for="item in relationdata" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <!-- <el-form-item :label="$t('types')" v-if="!showMmeiLaiDe">
- <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()">
- <el-option v-for="item in taskTypeList" :key="item.id" :label="item.name" :value="item.id">
- <i :class="item.icon" ></i>
- <span>{{item.name}}</span>
- </el-option>
- </el-select>
- </el-form-item> -->
- <el-form-item label="任务完成校验" v-if="user.timeType.taskFileCharge">
- <el-checkbox v-model="addForm.attachFileRequired" >是否必须上传成果文件</el-checkbox>
- </el-form-item>
- <el-form-item label="任务内容" prop="name">
- <!-- <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> -->
- <el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="addForm.name" :maxlength="500" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !permissions.editAnyTask && !(groupResponsibleId == user.id)" clearable show-word-limit></el-input>
- </el-form-item>
- <el-form-item :label="$t('planCost')" prop="planCost" v-if="user.timeType.taskPlanCost">
- <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>
- </el-form-item>
- </template>
-
- <!-- {{timelabel}}{{mileageCup}} -->
- <el-form-item :label="!timelabel ? $t('starttimes') : $t('jie-zhi-shi-jian')" prop="startDate">
- <el-date-picker v-model="addForm.startDate" type="datetime" style="width:40%;" value-format="yyyy-MM-dd HH:mm:ss"
- 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>
- <span style="margin-left:30px;margin-right:10px;" v-if="!timelabel">{{ $t('deadline') }}</span>
- <el-date-picker style="width:40%;" v-model="addForm.endDate" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
- 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>
- <span style="margin-left:30px;margin-right:10px;" v-if="timelabel && mileageCup">{{ $t('wan-cheng-shi-jian') }}</span>
- <el-date-picker style="width:40%;" v-if="timelabel && mileageCup" v-model="addForm.finishDate" type="date" value-format="yyyy-MM-dd"
- :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>
- </el-form-item>
- <div class="executorBox" style="margin-bottom: 20px;" v-if="addForm.startDate && addForm.endDate">
- <div style="margin-left: 50px;">计划天数: </div>
- <div>{{ addForm.plannedDays }} 天</div>
- <div style="margin-left: 50px;">计划工时: </div>
- <div>{{ addForm.planHours }} H</div>
- </div>
- <div style="border: 1px solid #ddd;margin:5px 0;padding:5px 0;">
- <div class="container" :style="{ height: containerHeight }" @scroll="handleScroll" ref="container">
- <div class="list" :style="{ top: listTop }">
- <el-form-item :label="$t('zhi-hang-ren') + (executorItem.indexList + 1)" v-for="(executorItem, index) in showData" :key="index">
- <div class="editingTask">
- <div style="margin-right: 30px">
- <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()">
- <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
- <span style="float: left">{{ item.name }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
- </el-option>
- </el-select>
- <!-- <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> -->
- </div>
-
- <!-- 计划工时 -->
- <div class="executorBox">
- <!-- <span style="margin-right:10px;">{{ $t('plantime') }}</span>
- <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>
- <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>
- <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> -->
- 计划总工时: {{ executorItem.planHours }} H
- <el-link type="primary" :underline="false" v-if="executorItem.executorId && addForm.startDate && addForm.endDate" style="margin-left: 30px;" @click="allocateDailyWorkingHoursCli(executorItem, executorItem.indexList)">分配每日工时</el-link>
- <el-link type="danger" icon="el-icon-delete" :underline="false" 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: 20px" @click="removeExecutorLineNew(executorItem)"></el-link>
- </div>
- </div>
- </el-form-item>
- </div>
- <div class="bar" :style="{ height: barHeight }"></div>
- </div>
- <el-link type="primary" v-if="(((addForm.executorListFront == null || addForm.executorListFront.length<100) &&
- (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id || permissions.projectManagement || permissions.editAnyTask)) ||
- groupResponsibleId == user.id)"
- style="margin:0 0 10px 35px;position: relative;z-index: 999;" @click.stop="addExecutorLine">{{ $t('addinganexecutor') }}</el-link>
- </div>
- <template v-if="selectType.needAudit">
- <el-form-item :label="$t('priority')">
- <el-select v-model="addForm.taskLevel" style="width:100%;" :disabled="doYouWantToDisableAll">
- <el-option v-for="item in importanceList" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <!-- 富文本 -->
- <el-form-item :label="$t('detaileddescription')" style="height: 200px">
- <!-- <Editor id="tinymce" v-model="tinymceHtml" :init="editorInit"></Editor> -->
- <!-- <el-input type="textarea" v-model="addForm.taskDesc" :rows="3"></el-input> -->
- <!-- <quill-edito v-model="addForm.taskDesc"></quill-edito> -->
- <quill-editor style="height: 150px" ref="text" v-model="addForm.taskDesc" class="myQuillEditor" :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" :disabled="doYouWantToDisableAll"/>
- </el-form-item>
- <!-- 富文本 -->
- <div v-if="addForm.id != null && addForm.taskStatus == 0">
- <el-divider ></el-divider>
- <!-- 任务进展 -->
- <template v-if="!timelabel || isRelationItem">
-
- <p ><i class="iconfont firerock-icontree themeFontColor" style="margin-left:10px;">{{ $t('taskprogress') }}</i>
- <span ref="addPro" style="display: block; float:right;"><el-link @click="addprogress">{{ $t('addtaskprogress') }}</el-link></span>
- </p>
- <!-- 任务进展展示 -->
- <div style="display: none;" ref="proBox" class="progress">
- <!-- <el-form :model="> -->
- <el-radio-group v-model="radio">
- <el-radio :label="0" class="rala1">{{ $t('normals') }}</el-radio>
- <el-radio :label="1" class="rala2">{{ $t('atrisk') }}</el-radio>
- <el-radio :label="2" class="rala3">{{ $t('withinthetimelimit') }}</el-radio>
- </el-radio-group>
- <el-input
- type="textarea"
- border="0"
- :autosize="{ minRows: 2, maxRows: 6}"
- :placeholder="$t('detailedprogressdescription')"
- v-model="text2"
- style="margin:10px 0 0 0">
- </el-input>
- <h4 style="font-weight: normal;">{{ $t('tixiang') }}{{checkLists.length}}</h4>
- <i class="el-icon-circle-plus pron_i themeFontColor" style="font-size: 28px;" @click="addI(0)"></i>
- <div class="remind" ref="addRem" style="display: none">
- <el-checkbox-group v-model="checkboxGrounp" v-for="item in users" :key="item.id">
- <p>
- <el-checkbox :label="item.name" @change="kkk(item)">
- <span>
- <span v-if="user.userNameNeedTranslate != '1'">
- {{item.name}}
- </span>
- <span v-if="user.userNameNeedTranslate == '1'">
- <TranslationOpenDataText type='userName' :openid='item.name'></TranslationOpenDataText>
- </span>
- </span>
- </el-checkbox>
- </p>
- </el-checkbox-group>
- </div>
- <div class="ssp" @click="sss"></div>
- <!-- </el-form> -->
- <div class="pro_btn">
- <el-button size="mini" @click="shutPro">{{ $t('btn.cancel') }}</el-button>
- <el-button size="mini" type="primary" @click="addTaskProgress">{{ $t('fa-bu') }}</el-button>
- </div>
- </div>
-
- <div class="ddl" v-if="recentProgressInfo != null && recentProgressInfo.id != null">
- <div class="elCard" style="margin-bottom: 10px; height:" >
- <i class="el-icon-success" style="color: #43d14f;" v-if="recentProgressInfo.status == 0"></i>
- <i class="el-icon-success" style="color: #fd7624;" v-else-if="recentProgressInfo.status == 1"></i>
- <i class="el-icon-success" style="color: #fd4d47;" v-else></i>
- <span v-if="recentProgressInfo.status == 0">{{ $t('normals') }}</span>
- <span v-else-if="recentProgressInfo.status == 1">{{ $t('normals') }}</span>
- <span v-else>{{ $t('withinthetimelimit') }}</span>
- <el-dropdown trigger="click" style="float:right;cursor:pointer; float: right;">
- <i class="el-icon-more" ></i>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item divided>
- <span @click="deleteTaskProgress(recentProgressInfo.id)"><i class="el-icon-delete"></i>{{ $t('deleteList ') }}</span></el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- <!-- <div class="elCard_qu">{{recentProgressInfo.creatorName}}{{ $t('geng-xin-yu') }}{{recentProgressInfo.indate | relativeTime}}</div> -->
- <div class="elCard_qu">
- <span>
- <span v-if="user.userNameNeedTranslate != '1'">
- {{recentProgressInfo.creatorName}}
- </span>
- <span v-if="user.userNameNeedTranslate == '1'">
- <TranslationOpenDataText type='userName' :openid='recentProgressInfo.creatorName'></TranslationOpenDataText>
- </span>
- </span>
- {{ $t('geng-xin-yu') }}{{recentProgressInfo.indate | relativeTime}}
- </div>
- <p style="padding-left: 20px;">{{recentProgressInfo.content}}</p>
- <div class="examine"><el-button type="text" @click="innerVisibless = true" style="color: #8F87A3;">{{ $t('viewingHistory') }}</el-button></div>
- </div>
- </div>
- <!-- 任务列表没有数据的时候展示 -->
- <div class="nones" v-if="ProgressList.length <= 0">
- {{ $t('nodata') }}
- </div>
- <!-- 任务进展完整状态 -->
- <el-dialog :title="$t('other.prompts')" :visible.sync="innerVisibless" append-to-body width="500px">
- <div class="integrity">
- <h3 style="font-weight: normal;display: inline-block;margin: 0 0 20px 0;">{{ $t('taskprogress') }} :{{ProgressList.length}}</h3>
- <!-- <span class="write"><i class="el-icon-circle-plus"></i>填写进展</span> -->
- <el-divider></el-divider>
- <!-- -->
- <div class="block" style="height: 200px;">
- <el-timeline style="padding:20px 0 0 0;">
- <el-timeline-item
- v-for="(activity, index) in ProgressList"
- :key="index">
- <div class="tb">
- <span v-if="activity.status == 0" style="color: #43D14F" class="icon"></span>
- <span v-if="activity.status == 1" style="color: #FD7624" class="icon"></span>
- <span v-if="activity.status == 2" style="color: red" class="icon"></span>
- <div>
- <span v-if="activity.status == 0" style="color: #43D14F">{{ $t('normals') }}</span>
- <span v-if="activity.status == 1" style="color: #FD7624">{{ $t('atrisk') }}</span>
- <span v-if="activity.status == 2" style="color: red">{{ $t('withinthetimelimit') }}</span>
- <span style="display: inline-block; float: right; color: #8C8C8C">{{activity.indate | relativeTime}}</span>
- </div>
- <p style="color: #8C8C8C">{{activity.content}}</p>
-
- </div>
- </el-timeline-item>
- </el-timeline>
- </div>
- <!-- -->
- </div>
- <span slot="footer" class="dialog-footer foooot">
- <el-button type="primary" @click="innerVisibless = false">{{ $t('Shutdown') }}</el-button>
- </span>
- </el-dialog>
- </template>
- </div>
- </template>
-
- </el-form>
- <!-- 关联文件列表 -->
- <template v-if="isEditFile && addForm.needAudit && addForm.taskStatus == 0">
- <div style="width:100%;margin:1em 0;">
- <i class="iconfont firerock-icontree themeFontColor" style="margin-left:10px;">{{ $t('jiafuchengguo') }}</i>
- <el-link @click="relationFileClick()" style="float:right;margin-left:10px">{{ $t('associatedfiles') }}</el-link>
- <el-upload style="float:right;" action="#" :http-request="uploadFileClick" :show-file-list="false" :multiple="false">
- <el-link>{{ $t('uoloadFiles') }}</el-link>
- </el-upload>
- </div>
- <el-table
- v-loading="fileListLoading"
- ref="filetable"
- :data="taskFileList"
- :header-cell-style="{'font-weight':'normal'}"
- highlight-current-row
- max-height="240"
- style="width: 100%;margin-top:10px;margin-bottom:15px">
- <el-table-column :label="$t('headerTop.serialNumber')" prop="documentType" min-width="60" align="center">
- <template slot-scope="scope">
- <div>
- {{scope.$index + 1}}
- </div>
- </template>
- </el-table-column>
- <el-table-column :label="$t('filenames')" prop="documentName" min-width="180">
- <template slot-scope="scope">
- <el-link @click.stop.native="viewOnline(scope.row)">
- {{scope.row.documentName}}
- </el-link>
- </template>
- </el-table-column>
- <el-table-column :label="$t('filesize')" prop="size" min-width="80" align="center"></el-table-column>
- <el-table-column :label="$t('founder')" prop="creatorName" min-width="60" align="center">
- <template slot-scope="scope">
- <div>
- <span v-if="user.userNameNeedTranslate != 1">{{scope.row.creatorName}}</span>
- <span v-if="user.userNameNeedTranslate == 1">
- <TranslationOpenDataText type='userName' :openid='scope.row.creatorName'></TranslationOpenDataText>
- </span>
- </div>
- </template>
- </el-table-column>
- <el-table-column :label="$t('creationtime')" prop="indate" min-width="150" align="center">
- <template slot-scope="scope">
- <span>{{scope.row.indate}}</span>
- </template>
- </el-table-column>
- <el-table-column :label="$t('operation')" min-width="150" fixed="right">
- <template slot-scope="scope">
- <el-link :href="scope.row.url" :download="scope.row.documentName" type="primary" style="margin-right:7px">{{ $t('other.download') }}</el-link>
- <el-link @click="taskFileDelete(scope.row.id)">{{ $t('btn.delete') }}</el-link>
- <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">
- <el-link type="primary">重新上传</el-link>
- </el-upload>
- </template>
- </el-table-column>
- <el-table-column label="状态" min-width="140" v-if="user.timeType.taskFileCharge == 1 || user.timeType.taskFileCharge == 2" fixed="right">
- <template slot-scope="scope">
- <template v-if="scope.row.fileChargeStatus != 2">
- <el-link :type="{'0': 'warning', '1': 'info', '2': 'danger'}[scope.row.fileChargeStatus]" :underline="false">
- {{ scope.row.fileChargeStatusTextList[0] || '' }}
- <template v-if="(scope.row.fileChargeStatusTextList || []).length > 1">
- <TranslationOpenDataText :openid='scope.row.fileChargeStatusTextList[1]'></TranslationOpenDataText>
- {{ scope.row.fileChargeStatusTextList[2] || '' }}
- </template>
- </el-link>
- </template>
- <template v-else>
- <el-tooltip class="item" effect="dark" content="点击查看" placement="top">
- <el-link :type="'danger'" :underline="false" @click="showReasonForRejection(scope.row)">
- {{ scope.row.fileChargeStatusTextList[0] || '' }}
- <template v-if="(scope.row.fileChargeStatusTextList || []).length > 1">
- <TranslationOpenDataText :openid='scope.row.fileChargeStatusTextList[1]'></TranslationOpenDataText>
- {{ scope.row.fileChargeStatusTextList[2] || '' }}
- </template>
- </el-link>
- </el-tooltip>
- </template>
- </template>
- </el-table-column>
- </el-table>
- </template>
- <!-- 关联文件dialog -->
- <el-dialog v-if="relationFileDialog" :visible.sync="relationFileDialog" :title="$t('associatedfiles')" append-to-body>
- <span>{{ $t('wenjian1guanli') }}</span>
- <div>
- <span>{{ $t('xuanzwenjian') }}</span>
- <el-select v-model="addFileId" filterable >
- <el-option
- v-for="item in projectFileList"
- :key="item.id"
- :label="item.documentName"
- :value="item.id"
- ></el-option>
- </el-select>
- <el-button @click="addTaskFile()">{{ $t('btn.determine') }}</el-button>
- </div>
- </el-dialog>
- <el-dialog v-if="isRelationTab" :visible.sync="isRelationTab" :title="$t('associatedTask')" width="800px" append-to-body>
- <el-form ref="relationItemForm" label-width="100px">
- <el-form-item :label="$t('selecttask')" prop="taskType">
- <el-select v-model="relationvalue" multiple style="width:80%">
- <el-option
- v-for="item in relationdata"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer foooot">
- <el-button @click="isRelationTab = false">{{ $t('btn.cancel') }}</el-button>
- <el-button type="primary" @click="addRelationTask()">{{ $t('btn.determine') }}</el-button>
- </div>
- </el-dialog>
- </div>
- <div slot="footer" class="dialog-footer foooot">
- <!-- <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>
- <el-button v-if="showMmeiLaiDeData.taskPlan && showMmeiLaiDeData.taskStatus == 2" @click.native="deleteTask()" style="float:left;">删除</el-button> -->
- <el-button v-if="addForm.createrId == user.id && addForm.taskStatus == 2" @click.native="deleteTask()" style="float:left;">删除</el-button>
- <el-button @click.native="closeBounceds()">{{ $t('btn.cancel') }}</el-button>
- <template v-if="addForm.taskStatus == 3 && addForm.createrId == user.id">
- <el-button @click.native="planToWithdraw()">撤回</el-button>
- </template>
- <template v-if="addForm.id && millerSReviewer.includes(user.id) && [3, 4].includes(showMmeiLaiDeData.taskStatus)">
- <template v-if="(showMmeiLaiDeData.taskStatus == 3 && user.id == showMmeiLaiDeData.checkFirstId) || (showMmeiLaiDeData.taskStatus == 4 && user.id == showMmeiLaiDeData.checkSecondId)">
- <el-button type="danger" @click="planOperation(false)" :loading="addLoading">驳回</el-button>
- <el-button type="success" @click="planOperation(true)" :loading="addLoading">通过</el-button>
- </template>
- </template>
-
- <template>
- <el-button type="primary" @click="submitInsert()" :loading="addLoading" v-if="addForm.canEditTask || !addForm.id">
- 提交
- </el-button>
- <!--对于需要审核的情况-->
- <!-- <el-button type="primary" @click="submitInsert(1)" :loading="addLoading" v-if="selectType.needAudit && (showMmeiLaiDeData.taskStatus == 2 || showMmeiLaiDeData.taskStatus == 5 || showMmeiLaiDeData.taskStatus == 6)">
- 保存并提交审核
- </el-button> -->
- </template>
- </div>
-
- <!-- <div slot="title" v-if="addForm.parentTid != null || isRelationItem" >
- <el-page-header @back="backToParentTask" :title="timelabel ? $t('returnmilestone') : $t('parenttask')" :content="timelabel ? relationPar.name : addForm.parentTname"></el-page-header>
- </div> -->
- <!-- 评论 -->
- <div class="remark" v-show="addForm.id != null && !showMmeiLaiDe">
- <span class="zh">
- <div class="player">
- <p>{{ $t('participantin') }}</p>
- <div class="bj">
- <span v-for="(pl, i) in critic" :key="i">
- <span style="background: #778899" v-if="user.userNameNeedTranslate != 1">{{pl.length > 2 ? pl.substring(pl.length - 2, pl.length) : pl}}</span>
- <span v-if="user.userNameNeedTranslate == 1">
- <TranslationOpenDataText type='userName' :openid='pl'></TranslationOpenDataText>
- </span>
- </span>
- <!-- <span style="background: #778899">{{pl.length}}</span> -->
- </div>
- </div>
- <div class="subject">
- <div class="sub-all">
- <div :class="dynamicTab ? 'subOn' : ''" @click="dynamicTab = true">{{ $t('alldynamic') }}</div>
- <div :class="dynamicTab ? '' : 'subOn'" @click="dynamicTab = false">{{ $t('xiang-guan-ri-bao') }}</div>
- </div>
- <div class="sub-details" ref="main" v-if="dynamicTab">
- <ul class="infinite-list" v-infinite-scroll="load" ref="contRoll">
- <div style="width: 100%" v-if="commentList.length <= 0">
- <img src="../assets/image/xiao.png" alt="">
- </div>
- <li v-for="i in count" class="infinite-list-item counli" :key="i">
- <p><i class="el-icon-s-fold"></i> <em>{{ $t('managerQucompletedthedependencytask') }}</em><span>{{ $t('onApril20') }}</span></p>
- </li>
- <li class="carts" v-for="item in commentList" :key="item.id">
- <!-- <el-image style="width: 30px; height: 30px" :src="url" :fit="fit"></el-image> -->
- <!-- <i :style="'background' + item.userColor"> -->
- <i :style="'background' + item.userColor">
- <i v-if="user.userNameNeedTranslate != 1">
- {{item.userName.length > 2 ? item.userName.substring(item.userName.length - 2, item.userName.length) : item.userName}}
- </i>
- <i v-if="user.userNameNeedTranslate == 1">
- <TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText>
- </i>
- </i>
- <div>
- <!-- <p>{{item.userName}}</p> -->
- <!-- <p> -->
- <p v-if="user.userNameNeedTranslate != 1">
- {{item.userName}}
- </p>
- <p v-if="user.userNameNeedTranslate == 1">
- <TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText>
- </p>
- <!-- </p> -->
- <em>
- <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate == 1">
- <template v-for="listItem in item.newContent">
- <template v-if="listItem.type == 'user'">
- <TranslationOpenDataText type='userName' :openid='listItem.value'></TranslationOpenDataText>
- </template>
- <template v-if="listItem.type == 'text'">{{ listItem.value }}</template>
- </template>
- </p>
- <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate != 1">{{item.content}}</p>
- <!-- 重启原因和责任人 -->
- <span class="commentSpan" v-if="user.timeType.restartTaskNeedReason == 1 && item.reason != ''">{{ $t('zhongQiYuanYin') }}:{{item.reason}}</span>
- <span class="commentSpan" v-if="user.timeType.restartTaskNeedReason == 1 && item.taskPersonLiableList.length > 0">{{ $t('zeRenRen') }}
- <span v-for="responsibility, responsibilityIndex in item.taskPersonLiableList" :key="responsibilityIndex">
- <span v-if="user.userNameNeedTranslate == 1">
- <TranslationOpenDataText type='userName' :openid='responsibility.userName'></TranslationOpenDataText>
- </span>
- <span v-if="user.userNameNeedTranslate != 1">{{responsibility.userName}}</span>
- <span v-if="responsibilityIndex < item.taskPersonLiableList.length - 1">,</span>
- </span>
- </span>
- </em>
- </div>
- <span>{{item.createTime | relativeTime}}</span>
- </li>
- </ul>
- </div>
- <div class="Daily" v-if="!dynamicTab">
- <div class="one_daily_body DailyBody">
- <el-card shadow="never" v-for="(item2,index2) in dailyList" :key="index2" style="margin-bottom: 20px;">
- <p>
- {{ $t('tian-bao-ren') }}: <span v-if="user.userNameNeedTranslate != 1">{{item2.userName}}</span>
- <span v-if="user.userNameNeedTranslate == 1">
- <TranslationOpenDataText type='userName' :openid='item2.userName'></TranslationOpenDataText>
- </span>
- <span style="float: right;">{{item2.createDate}}</span>
- </p>
- <p>{{ $t('other.approvalStatus') }}:
- <span v-if="user.company.packageEngineering == 0">
- <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0">
- <span v-if="item2.isDeptAudit==0">
- <span v-if="item2.projectAuditState==0">
- <!-- 待项目审核人 --> {{$t('other.waitForTheProjectReviewer')}}
- <span v-if="item2.projectAuditorName != null">(
- <span v-if="user.userNameNeedTranslate == '1'">
- <TranslationOpenDataText type='userName' :openid='item2.projectAuditorName'></TranslationOpenDataText>
- </span>
- <span v-if="user.userNameNeedTranslate != '1'">{{item2.projectAuditorName}}</span>
- )</span>
- <!-- 审核 --> {{$t('other.audit')}}
- </span>
- <span style="color:#32CD32;" v-else-if="item2.projectAuditState==1">
- <!-- 项目审核人 --> {{$t('other.projectAuditor')}}
- <span v-if="item2.projectAuditorName != null">(
- <!-- {{item2.projectAuditorName}} -->
- <span v-if="user.userNameNeedTranslate == '1'">
- <TranslationOpenDataText type='userName' :openid='item2.projectAuditorName'></TranslationOpenDataText>
- </span>
- <span v-if="user.userNameNeedTranslate != '1'">{{item2.projectAuditorName}}</span>
- )</span>
- <!-- 审核通过 --> {{$t('state.approved')}}
- </span>
- </span>
- <span v-else-if="item2.isDeptAudit==1">
- ({{$t('other.await')}}
- <span v-if="user.userNameNeedTranslate == '1'">
- <TranslationOpenDataText type='departmentName' :openid='item2.auditDeptName'></TranslationOpenDataText>
- </span>
- <span v-if="user.userNameNeedTranslate != '1'">{{item2.auditDeptName}}</span>
- {{$t('other.audit')}})
- </span>
- </span>
- <span style="margin-left:15px;color:#DAA520;" v-else-if="item2.state == -1">{{$t('other.importWaitingForReview')}}</span>
- <span style="margin-left:15px;color:#32CD32;" v-else-if="item2.state == 1">{{$t('state.alreadyPassed')}}
- <span style="color:#c7e944" v-if="item2.reportAutoApprove == 1">{{$t('other.automaticReview')}}</span>
- </span>
-
- <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 2">{{$t('state.rejected')}} {{$t('other.reason')}}:{{item2.rejectReason}}</span>
- <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 3">{{$t('state.waitingsubmit')}}</span>
- </span>
- <span v-if="user.company.packageEngineering == 1">
- <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == -1">{{$t('other.importWaitingForReview')}}</span>
- <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == -1">{{$t('other.waitingForProfessionalReview')}}</span>
- <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == 0">{{$t('other.waitingForDepartmentReview')}}</span>
- <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == 1">{{$t('other.waitForTheProjectReviewer')}}<span v-if="item2.projectAuditorName != null">
- (
- <span v-if="user.userNameNeedTranslate != 1">
- {{item2.projectAuditorName}}
- </span>
- <span v-if="user.userNameNeedTranslate == 1">
- <TranslationOpenDataText type='userName' :openid='item2.projectAuditorName'></TranslationOpenDataText>
- </span>
- )
- </span>{{$t('other.audit')}}</span>
- <span style="margin-left:15px;color:#32CD32;" v-else-if="item2.state == 1">{{$t('state.alreadyPassed')}}</span>
- <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 2">{{$t('state.rejected')}} {{$t('other.reason')}}:{{item2.rejectReason}}</span>
- <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 3">{{$t('state.waitingsubmit')}}</span>
- </span>
- </p>
- <p v-if="user.timeType.customDegreeActive==1 && item2.degree_id != null && item2.degree_id != -1">{{user.timeType.customDegreeName}}:{{item2.degreeName}}</p>
- <p v-if="user.timeType.customDataActive==1">{{user.timeType.customDataName}}:{{item2.customData}}</p>
- <!-- 自定义日报文本 -->
- <p v-if="user.timeType.customTextActive==1">{{user.timeType.customTextName}}:{{item2.customText}}</p>
- <div v-if="item2.multiWorktime==0">
- <p style="display: inline-block;">{{$t('time.duration')}}:
- <span v-if="item2.reportTimeType == 0" style="margin-right:10px;">{{typeList[item2.timeType]}}</span>
- <span v-if="item2.reportTimeType == 2" style="margin-right:10px;">{{item2.startTime+'-'+item2.endTime}}</span>
- {{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>
- <p>{{$t('other.matters')}}:<span v-html="item2.content"></span></p>
- </div>
- <div v-if="item2.multiWorktime==1" >
- <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>
- <div v-for="(timeItem, tIndex) in item2.worktimeList" :key="tIndex"
- style="border: 0.5px #ddd solid;margin-bottom:5px;padding:5px;">
- <p style="display: inline-block;">{{$t('time.duration')}}:
- <span v-if="item2.reportTimeType == 2" style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>
- {{timeItem.time.toFixed(1)}}h
- </p>
- <p>{{$t('other.matters')}}:<span v-html="timeItem.content"></span></p>
- </div>
- </div>
- <p v-if="item2.state == 1 && user.timeType.needEvaluate == 1">{{$t('other.evaluation')}}:<span v-html="item2.evaluate"></span></p>
-
- <!--照片的显示 -->
- <p v-if="item2.pics != null && item2.pics.length > 0">
- <el-image v-for="(pic, index) in item2.pics" :key="index"
- style="width: 100px; height: 100px; margin-right:10px;"
- :src="pic"
- :preview-src-list="item2.pics">
- </el-image>
- </p>
- </el-card>
- </div>
- </div>
- </div>
- <div class="issue" v-if="dynamicTab">
- <!-- <el-input type="textarea" class="textareays" label-width="100%" label-height="140px"></el-input> -->
- <div class="issue_fixation">
- <div class="inputDeep"><el-input
- type="textarea"
- :placeholder="$t('pleaseentercontent')"
- :autosize="{ minRows: 6, maxRows: 6}"
- v-model="textarea2"
- class="inputDeeps"
- >
- </el-input></div>
- <el-button class="issue-button" type="primary" @click="release()">{{ $t('fa-bu') }}</el-button>
- </div>
- </div>
- </span>
- </div>
- <!-- 修改工时弹窗 -->
- <el-dialog title="查看已有计划" :visible.sync="modifyWorkingHoursRowVisable" width="840px" top="6.5vh" :before-close="handleClose" append-to-body>
- <div>
- <div class="modifyPlanTitle">
- <div class="modifyPlanTitle-item">
- <div>执行人:</div>
- <el-select v-model="modifyWorkingHoursRow.userId" placeholder="请选择" filterable size="small" style="width: 180px;" @change="getViewTaskTimeList()" disabled>
- <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
- <span style="float: left">{{ item.name }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
- </el-option>
- </el-select>
- </div>
- <div class="modifyPlanTitle-item">
- <div>时间段:</div>
- <el-date-picker v-model="modifyWorkingHoursRow.startDate" type="datetime" style="width: 200px;" value-format="yyyy-MM-dd HH:mm:ss"
- default-time="09:00:00" :placeholder="$t('pleaseselectadate')" size="small" @change="getViewTaskTimeList()" :clearable="false" :disabled="true"></el-date-picker>
- <span style="margin:0 10px;">至</span>
- <el-date-picker style="width: 200px;" v-model="modifyWorkingHoursRow.endDate" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
- default-time="17:30:00" :placeholder="$t('pleaseselectadate')" size="small" @change="getViewTaskTimeList()" :clearable="false" :disabled="true"></el-date-picker>
- </div>
- </div>
- <el-table :data="modifyWorkingHoursList" style="width: 100%" border v-loading="modifyWorkingHoursListLoading" height="58vh">
- <el-table-column prop="name" label="项目名称"></el-table-column>
- <el-table-column prop="typeName" label="计划名称"></el-table-column>
- <el-table-column prop="startDate" label="开始时间" width="180"></el-table-column>
- <el-table-column prop="endDate" label="截止时间" width="180"></el-table-column>
- </el-table>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="modifyWorkingHoursRowVisable = false">取 消</el-button>
- <!-- <el-button type="primary" @click="confirmArrangement()">确认安排</el-button> -->
- </span>
- </el-dialog>
- <!-- 分配每日工时 -->
- <el-dialog :visible.sync="allocateDailyWorkingHoursVisable" width="900px" top="6.5vh" :before-close="handleClose" append-to-body>
- <div slot="title" class="allocateDailyWorkingHoursClass">
- <div class="allocate-title">分配每日工时</div>
- <div class="allocate-title">{{ addForm.startDate }} - {{ addForm.endDate }}</div>
- <el-link type="primary" :underline="false" @click="viewExistingPlans()">查看已有计划</el-link>
- </div>
- <div class="allocateDailyWorkingHoursClass-table">
- <el-table ref="allocateTableRef" :data="allocateDailyWorkingHoursList" tooltip-effect="dark" border style="width: 100%" height="60vh" @selection-change="allocateTableSelectionChange" :span-method="allocateTableObjectSpanMethod">
- <el-table-column type="selection" width="55"></el-table-column>
- <el-table-column prop="allocateDate" label="日期" width="100px" align="center"></el-table-column>
- <el-table-column label="开始时间" width="180px" align="center">
- <template slot-scope="scope">
- <el-time-picker v-model="scope.row.startTime" value-format="HH:mm:ss" :clearable="false" size="small" @change="calculateWorkingHours(scope.row, scope.$index)" style="width: 120px;"></el-time-picker>
- </template>
- </el-table-column>
- <el-table-column label="截止时间" width="180px" align="center">
- <template slot-scope="scope">
- <el-time-picker v-model="scope.row.endTime" value-format="HH:mm:ss" :clearable="false" size="small" @change="calculateWorkingHours(scope.row, scope.$index)" style="width: 120px;"></el-time-picker>
- </template>
- </el-table-column>
- <el-table-column prop="workHour" label="总工时" align="center"></el-table-column>
- <el-table-column prop="overWorkHour" label="含加班" align="center"></el-table-column>
- <el-table-column label="操作" width="160px">
- <template slot-scope="scope">
- <el-button type="danger" size="small" @click="deleteASingleDateSchedule(scope.$index)">删除</el-button>
- <el-button type="primary" size="small" @click="addSingleDateSchedule(scope.row, scope.$index)">添加</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div slot="footer" class="allocateDailyWorkingHoursClass-footer">
- <div class="footer-left">
- <el-time-picker v-model="startingTimePeriod" value-format="HH:mm:ss" :clearable="false" size="small" :disabled="!tableSelection.length" style="width: 120px;margin-right: 14px"></el-time-picker>
- -
- <el-time-picker v-model="endTimePeriod" value-format="HH:mm:ss" :clearable="false" size="small" :disabled="!tableSelection.length" style="width: 120px;margin: 0 14px"></el-time-picker>
- <el-button size="small" :disabled="startingTimePeriod > endTimePeriod || !tableSelection.length" @click="batchSetTimePeriod()">批量设置</el-button>
- <el-select v-model="dateDropdownMenuSelectionVal" clearable filterable size="small" placeholder="请选择添加日期" :disabled="!dateDropdownMenuSelection.length" style="width: 140px;margin: 0 14px">
- <el-option v-for="(item, index) in dateDropdownMenuSelection" :key="index" :label="item" :value="item"></el-option>
- </el-select>
- <el-button size="small" :disabled="!dateDropdownMenuSelectionVal" @click="addASingleDate()">添加日期</el-button>
- </div>
- <div>
- <el-button @click="allocateDailyWorkingHoursVisable = false" size="small">取 消</el-button>
- <el-button type="primary" :disabled="!allocateDailyWorkingHoursList.length" @click="determineWorkingHours()" size="small" :loading="allocateDailyWorkingHoursLoading">确认工时</el-button>
- </div>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import selectCat from "@/components/select.vue"
- import selectPersonnel from "@/components/selectPersonnel.vue"
- // 富文本样式
- import 'quill/dist/quill.core.css'
- import 'quill/dist/quill.snow.css'
- import 'quill/dist/quill.bubble.css'
- // 导入富文本
- import { quillEditor } from 'vue-quill-editor'
- import { getThemeColor } from '@/utils/commonMethod.js'
- // 工时计算
- import { calculateWorkHours, generateUUID } from './taskComponent'
- export default {
- props: {
- integrationTask:{
- type: Object,
- default: {}
- },
- // 是否显示选择任务
- showOrNot: {
- type: Boolean,
- default: false
- },
- // 是否属于美莱得定制化的工作计划
- showMmeiLaiDe: {
- type: Boolean,
- default: false
- },
- showMmeiLaiDeData: {
- type: Object,
- default: {}
- }
- },
- components: {
- quillEditor, // 富文本
- selectCat,
- selectPersonnel
- },
- data() {
- return {
- restPeriod: [], // 休息时间段
- selectType: {},
- degreeList:[],
- doYouWantToDisableAll: false,
- startNum: 0,
- endNum: 5,
- shownumber: 5,
- sizeNum: 65,
- meeting: false,
- numnnumnum: 2,
- componentFlg: false,
- mileageCup: false,
- loadingExport : false,
- saveTemplateLoading: false,
- joinMembList:[],
- setInchargerDialog: false,
- recentProgressInfo:{},
- addToTmpDialog:false,
- templateForm:{},
- importTaskDialog:false,
- importToStageId:null,
- exportDialog: false,
- exportTaskType:null,
- groupTemplateList:[],
- createGroupWay:'new',
- modGroupDialog:false,
- subTaskVisible:false,
- orderList:[{id:"seq",name:this.$t('manuallydragthesequence'),isDesc:false},{id:"create_date",name:this.$t('creationtimeisthelatest'),isDesc:true},
- {id:"end_date",name:this.$t('deadlineisthelatest'),isDesc:true},
- {id:"task_level",name:this.$t('highestpriority'),isDesc:true}],
- order:"seq",
- isDesc:false,
- taskDataList:[],
- displayTable: false,
- 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')},
- {id:5,name:this.$t('createdthetask')},{id:6,name:this.$t('missionIwason')},{id:7,name:this.$t('todaytask')},{id:8,name:this.$t('taskthatisoverdue')}],
- importanceList:[{id:0,name:this.$t('yi-ban')},{id:1,name:this.$t('zhong-yao')},{id:2,name:this.$t('jin-ji')},],
- 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"}],
- taskTypeColor:[getThemeColor(),'#8613ad','#bf0404'],
- taskTypeIcon:['iconfont firerock-iconrenwu','iconfont firerock-iconicon-','iconfont firerock-iconfengxian'],
- taskStatusList:[this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone'),'待第一审核人审核','待第二审核人审核','第一审核人驳回','第二审核人驳回'],
- taskStatusColorList:['#20a0ff','#E6A23C','#a0a0a0','#f7863b','#262626','#FF0000','#FF0000'],
-
- //优先级
- taskLevelColor:['#262626','#E6A23C','#F56C6C'],
- stageListHeight:0,
- taskListinH:0,
- groupWidth:260,
- drag: false,
- stageDrag: false,
- dragging: false,
- stageList:[],
- selectedGroup:{},
- allGroupData:[],
- defaultGroupId:null,
- addGroupDialog: false,
- addStageDialog: false,
- groupSearch:null,
- groupType:0,//0-分组,1-视图
- groupList: [],
- groupForm:{},
- stageForm:[],
- curProjectId:null,
- projectList:null,
- activeIndex:"1",
- activeName:"projectInside",
- searchField:null,
- keyword:null,
- user: JSON.parse(sessionStorage.getItem("user")),
- permissions: JSON.parse(sessionStorage.getItem("permissions")),
- userDetailVisible: false,
- userDetail:{},
- date: new Date(),
- users: [],
- tableHeight: 0,
- listLoading: false,
-
- subProjectVisible: false,
- subProjectList: [],//子项目列表
- currentProject:{},
- addSubProject: false,
- addFormVisible: false,
- typeList:[],
- addLoading: false,
- title: "",
- addForm: {
- name: '',
- executorListFront: [
- {
- executorId:null
- }
- ]
- },
- rules: {
- name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
- },
- rules2: {
- stagesName: [{ required: true, message: this.$t('pleaseenteratasklistname'), trigger: "blur" }],
- },
- taskRules : {
- name: [{ required: true, message: this.$t('enterthetaskcontent'), trigger: "blur" }],
- serviceId: [{ required: true, message: this.$t('qingXuanZeFuWu'), trigger: "blur" }],
- projectId: [{ required: true, message: this.$t('qingXuanZeSuoShuXiangMu'), trigger: "blur" }],
- groupId: [{ required: true, message: this.$t('qingXuanZeSuoShuRenWuFenZu'), trigger: "blur" }],
- stagesId: [{ required: true, message: this.$t('qingXuanZeSuoShuRenWuLieBiao'), trigger: "blur" }],
- planCost: [{ required: true, message: this.$t('planCostHint'), trigger: "blur" }],
- taskPlanType: [{ required: true, message: '请选择类型', trigger: "blur" }],
- checkSecondId: [{ required: true, message: '请选择审核人', trigger: "blur" }],
- // centerId: [{ required: true, message: '请选择研究中心', trigger: "blur" }]
- },
- formGrouping: {
- name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
- },
- sleectId: null,
- sleectProjectId: null,
- sidebarIndex: 0, // 侧边栏索引
- url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
- count: 0,
- textarea2: '',
- taskId: null,
- commentList: [],
- radio: 0,
- critic: [], // 评论头像的数组
- editorOption: { // 富文本框里面的默认值
- placeholder: this.$t('pleaseentethetext'),
- modules: {
- toolbar:[
- ['bold', 'italic', 'underline', 'strike'], //加粗,斜体,下划线,删除线
- // ['blockquote', 'code-block'], //引用,代码块
-
- [{ 'header': 1 }, { 'header': 2 }], // 标题,键值对的形式;1、2表示字体大小
- // [{ 'list': 'ordered'}, { 'list': 'bullet' }], //列表
- // [{ 'script': 'sub'}, { 'script': 'super' }], // 上下标
- // [{ 'indent': '-1'}, { 'indent': '+1' }], // 缩进
- // [{ 'direction': 'rtl' }], // 文本方向
-
- [{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小
- [{ 'header': [1, 2, 3, 4, 5, 6, false] }], //几级标题
-
- [{ 'color': [] }, { 'background': [] }], // 字体颜色,字体背景颜色
- // [{ 'font': [] }], //字体
- [{ 'align': [] }], //对齐方式
-
- ['clean'], //清除字体样式
- // ['image','video'] //上传图片、上传视频
- ['image'] //上传图片、上传视频
- ], //工具栏设置
- },
- theme: 'snow',
- },
- textContent: true, // 控制提交
- times: null,
- text2: '',
- innerVisibless: false, // 任务展示弹出层
- activities: [{
- content: this.$t('normals'),
- timestamp: this.$t('hoursago'),
- size: 'large',
- type: 'primary',
- icon: 'el-icon-circle-check',
- color: '#409EFF'
- }, {
- content: this.$t('withinthetimelimit'),
- timestamp: this.$t('hoursago8'),
- color: '#F87872'
- }],
- ProgressList: [],
- checkboxGrounp: [], // 选中人的数据
- checkLists: [], // 选中人数据的ID
- taskIid: null,
- gstimday:[1],
- gstimhour:[8],
- timelabel: false,
- relationdata: [],
- isRelationTab: false,
- relationvalue:[],
- relationSubTaskList:[],
- relationItemData: null,
- relationPar:{name: ''},
- isRelationItem: false,
- // 关联文件
- fileListLoading:false,
- projectFileList:[],
- taskFileList:[],
- relationFileDialog: false,
- addFileId: null,
- isEditFile: false,
- // 设置项目参与人
- participantsDialog: false,
- participantsFilterText: '',
- deptMembData: [
- {
- id: 0,
- label: this.$t('lable.unassigned'),
- }
- ],
- defaultProps: {
- children: 'children',
- label: 'label'
- },
- chosenMembCount: 0,
- ididid:null,
- alreadyPartArray: [],
- projectCreatorId: null,
- projectInchargerId: null,
- canEditTask: false, // 是否可创建任务的判断标志
- canEditStageList: false, //是否可编辑列表的判断标志
- groupResponsibleId: '', // 分组负责人的id
- groupDetailsShow: false,
- groupDetailData: {},
- groupDetailTil: '',
- setTemplateData: {},
- setTemplateDialog: false,
-
- taskListPage: 1,
- taskListSize: 20,
- taskListTotal: 0,
- dynamicTab: true,
- dailyList: [],
- meetingId: '',
- integrationProjectList: [],
- sapServiceList:[],
- meetingVisable: false,
- initiateAMeetingForm: {
- startTime: '',
- endTime: '',
- taskId: ''
- },
- pmUserList: [],
- millerSReviewer: [],
- modifyWorkingHoursRow: {},
- modifyWorkingHoursList: [],
- modifyWorkingHoursListLoading: false,
- modifyWorkingHoursRowVisable: false,
- allocateDailyWorkingHoursVisable: false,
- allocateDailyWorkingHoursLoading: false,
- allocateDailyWorkingIndex: 0,
- allocateDailyWorkingHoursList: [],
- tableSelection: [],
- dateDropdownMenuSelection: [],
- dateDropdownMenuSelectionVal: '',
- startingTimePeriod: '', // 开始时间段
- endTimePeriod: '', // 结束时间段
- };
- },
- computed: {
- showData() {
- // return this.addForm.executorListFront.slice(this.startNum, this.endNum)
- let newList = this.addForm.executorListFront
- newList.forEach((item, index) => {
- item.indexList = index
- })
- // console.log(newList.slice(this.startNum, this.endNum), '<==== newList')
- return newList.slice(this.startNum, this.endNum)
- },
- containerHeight() {
- if(this.addForm.executorListFront.length < this.shownumber) {
- return this.sizeNum * this.addForm.executorListFront.length + 'px'
- } else {
- return (this.sizeNum * this.shownumber) - 20 + 'px'
- }
- },
- barHeight() {
- return this.sizeNum * (this.addForm.executorListFront || []).length + 'px'
- },
- listTop() {
- return this.startNum * this.sizeNum + 'px'
- },
- },
- watch: {},
- created() {},
- mounted() {
- console.log('我获取到的数据', this.integrationTask, this.showOrNot)
- this.triggerEvent(this.integrationTask)
- this.gstimhour = [this.user.timeType.allday]
- this.gstimday = [1]
- this.getTaskTypeList();
- this.getSapServiceList()
- this.timess();
- if(this.showMmeiLaiDe) {
- this.getPmUserList()
- this.setDisabledPermission()
- }
- this.getRestPeriod()
- },
- methods: {
- allocateDailyWorkingHoursCli(item, index) {
- this.startingTimePeriod = '09:00:00'
- this.endTimePeriod = '17:30:00'
- this.allocateDailyWorkingIndex = index
- this.tableSelection = []
- console.log(item, '<==== allocateDailyWorkingHoursCli')
- this.allocateDailyWorkingHoursList = (item.dailyAllocateList || []).map(item => {
- return {
- ...item,
- uuID: generateUUID()
- }
- })
- this.retrieveMissingDates(item.dailyAllocateList)
- this.allocateDailyWorkingHoursVisable = true
- },
- onTypeChange(e) {
- this.selectType = this.typeList.filter(a=>a.id == e)[0];
- },
- confirmArrangement() {
- const { index, userId, startDate, endDate } = this.modifyWorkingHoursRow
- const userList = (this.addForm.executorListFront || []).filter(item => item.executorId == userId)
- const row = this.addForm.executorListFront[index].executorId
- if(userList.length > 0 && row != userId) {
- this.$message({ message: '执行人已存在', type: "error" });
- return
- }
- const name = this.users.find(item => item.id == userId).name
- this.addForm.executorListFront[index].executorId = userId
- this.addForm.executorListFront[index].executorName = name
- this.addForm.startDate = startDate
- this.addForm.endDate = endDate
- this.modifyWorkingHoursRowVisable = false
- this.$message({ message: '修改成功', type: "success" });
- },
- viewTaskTimeList(executorId, index) {
- this.modifyWorkingHoursRow = { taskId: this.addForm.id, userId: executorId, startDate: this.addForm.startDate, endDate: this.addForm.endDate, index}
- this.modifyWorkingHoursRowVisable = true
- this.getViewTaskTimeList()
- },
- getViewTaskTimeList() {
- this.modifyWorkingHoursListLoading = true
- let obj = { ...this.modifyWorkingHoursRow }
- delete obj.index
- this.http.post('/task/viewUserTaskSchedule', { ...obj },
- res => {
- this.modifyWorkingHoursListLoading = false
- if (res.code == "ok") {
- this.modifyWorkingHoursList = res.data;
- } else {
- this.$message({ message: res.msg, type: "error" });
- }
- },
- error => {
- this.modifyWorkingHoursListLoading = false
- this.$message({ message: error, type: "error" });
- });
- },
- getTaskTypeList() {
- this.http.post('/task-type/list', { companyId: this.user.companyId },
- res => {
- if (res.code == "ok") {
- this.typeList = res.data;
- if (!this.isEditFile) {
- //创建新任务,默认第一个类型
- this.$set(this.addForm,'taskPlanType',this.typeList[0].id);
- this.selectType = this.typeList[0];
- } else {
- //编辑任务,有类型
- const curType = this.integrationTask.task.taskPlanType;
- this.selectType = this.typeList.filter(a=>a.id == curType)[0];
- }
- } else {
- this.$message({ message: res.msg, type: "error" });
- }
- },
- error => {
- this.$message({ message: error, type: "error" });
- });
- },
- planToWithdraw() {
- this.$confirm(`确定撤回该计划吗?`, {
- type: 'warning'
- }).then(() => {
- this.http.post('/task/withdrawalTaskPlan',{taskId: this.addForm.id},
- res => {
- if (res.code == "ok") {
- this.$message({
- message: '撤回成功',
- type: 'success'
- });
- let obj = {
- submitInsert: true,
- showOrNot: this.showOrNot
- }
- this.$emit('closeBounced', obj)
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- })
- },
- setDisabledPermission() {
- const { taskStatus } = this.showMmeiLaiDeData
- this.doYouWantToDisableAll = taskStatus == 3 || taskStatus == 4
- if(this.millerSReviewer.includes(this.user.id)) {
- this.doYouWantToDisableAll = false
- }
- },
- viewOnline(row) {
- sessionStorage.setItem("fileName",row.documentName);
- sessionStorage.setItem("fileUrl",row.url);
- let routeUrl;
- if (row.documentName.endsWith('.doc') || row.documentName.endsWith('.docx')) {
- routeUrl = this.$router.resolve({
- path: "/viewWord",
- params: {}
- });
- } else if (row.documentName.endsWith('.xls') || row.documentName.endsWith('.xlsx')) {
- routeUrl = this.$router.resolve({
- path: "/viewExcel",
- params: {}
- });
- }
- if (routeUrl != null) {
- console.log(routeUrl.href);
- window.open(routeUrl.href, '_blank');
- } else {
- window.open(row.url, '_blank');
- }
- },
- // 容器的滚动事件
- handleScroll() {
- const scrollTop = this.$refs.container.scrollTop
- this.startNum = Math.floor(scrollTop / this.sizeNum)
- console.log(this.startNum, this.shownumber, '<==== 计算')
- this.endNum = this.startNum + this.shownumber
- },
- bottomScrollClick(val) {
- this.$nextTick(() => {
- let scrollEl = this.$refs.container;
- let bum = scrollEl.scrollHeight
- let current = scrollEl.scrollTop + 1
- scrollEl.scrollTo({ top: val ? current : bum, behavior: 'smooth' });
- });
- },
- // 刷新数据
- refreshData() {
- this.$forceUpdate()
- },
- serviceIdChange() {
- this.refreshData()
- },
- confirmMeeting() {
- this.http.post('/task/operateMeeting',{...this.initiateAMeetingForm},
- res => {
- if (res.code == "ok") {
- this.meetingVisable=false,
- this.$message({
- message: this.$t('chengGongFaQiHuiYi'),
- type: "success"
- });
- } else {
- this.meetingVisable=false,
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.meetingVisable=false,
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- planOperation(type) {
- this.$confirm(`确定${type ? '通过' : '驳回'}该计划吗?`, {
- type: 'warning'
- }).then(() => {
- this.http.post('/task/taskPlanPassOrReject', {
- taskId: this.addForm.id, type
- },
- res => {
- if (res.code == "ok") {
- this.$message({
- message: '操作成功',
- type: "success"
- });
- let obj = {
- submitInsert: true,
- showOrNot: this.showOrNot
- }
- this.$emit('closeBounced', obj)
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- })
- },
- // 触发外层的会议
- meetingCli() {
- // this.$parent.$parent.parentMeetingCli(this.integrationTask.id)
- this.initiateAMeetingForm = {
- startTime: '',
- endTime: '',
- taskId: this.integrationTask.id
- }
- this.meetingVisable = true
- },
- // 触发事件
- triggerEvent(obj) {
- console.log(obj, '触发事件')
- this.curProjectId = obj.curProjectId
- this.getProjectListTwo()
- if(!obj.taskVue) {
- this.getStageList(obj.integrationTaskNingwai)
- }
- if(obj.create) {
- console.log(obj, '<=== 双击获取的')
- this.getUsers(); // 获取名单数据
- this.mileageCup = false
- this.addFormVisible = true;
- this.curProjectId = obj.stage.projectId;
- const startDates = obj.addForm.startDate ? obj.addForm.startDate + ' 09:00:00' : ''
- this.addForm = {
- projectId: obj.stage.projectId,
- groupId: obj.stage.groupId,
- stagesId: obj.stage.id,
- startDate: startDates,
- taskLevel:0,
- planHours: 8,
- taskType: 0,
- plannedDays: 0,
- planHours: 0
- };
- // this.addForm.executorListFront = [
- // {executorId:obj.executorListFront[0] && obj.executorListFront[0].executorId, planHours:this.user.timeType.allday}
- // ];
- this.addForm.executorListFront = (obj.executorListFront || []).map(em => {
- return {
- executorId: em.executorId,
- planHours: this.user.timeType.allday,
- dailyAllocateList: []
- }
- })
- this.gstimhour = [this.user.timeType.allday]
- this.gstimday = [1]
- this.addLoading = false;
- this.isEditFile = false;
- this.title=this.$t('createtask ');
- this.commentList = [];
- this.timelabel = false
- console.log(this.addForm, '<====== this.addForm')
- } else {
- console.log('1111',obj)
- if(!obj.taskVue) {
- this.isEditFile = true;
- this.getDetail(obj.curProjectId)
- }
- this.curProjectId = obj.task.projectId;
- // this.getTaskDetail(obj.id);
- this.getTaskProgressList(obj.id); // 获取任务进展列表
- this.gain(obj.task); // 获取评论列表
- this.getDailyList(obj.id) // 获取来自日报
- this.getRelationTaskList(obj.num, obj.id)
- this.getTaskFileList(obj.num,obj.id)
- const { integrationTaskNingwai = {} } = obj
- if(integrationTaskNingwai.groupId) {
- this.getTaskGrouping(obj.curProjectId)
- }
- setTimeout(() => {
- this.getTaskDetail(obj.id);
- }, 200)
- }
- this.getrelation();
- },
- // 代办任务创建事件
- agentCreatesEvents(num) {
- if(num == 1) {
- this.addForm.groupId = ''
- this.addForm.stagesId = ''
- this.getTaskGrouping()
- this.getrelation();
- this.getDegreeList();
- if(this.showMmeiLaiDe) {
- this.getProjectManager()
- }
- this.getUsers();
- } else if(num == 2) {
- this.addForm.stagesId = ''
- this.getTaskList()
- }
- },
- // 获取维度数据
- getDegreeList() {
- if(this.addForm.projectId == '') {
- return
- }
- this.http.post('/project/getDegreeList',{
- projectId: this.addForm.projectId,
- },
- res => {
- if (res.code == "ok") {
- this.degreeList = res.data;
- this.$forceUpdate();
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- }
- );
- },
- getProjectManager() {
- const { projectId } = this.addForm
- this.http.post('/user/getChargeUserByProjectId', { projectId },
- res => {
- if (res.code == "ok") {
- if(!res.data.id) {
- this.$message({
- message: '当前项目没有项目经理',
- type: "warning"
- });
- return
- }
- this.addForm.checkFirstId = res.data.id || '';
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- getPmUserList() {
- this.http.post('/user/getSecondCheckUser', { },
- res => {
- if (res.code == "ok") {
- this.pmUserList = res.data || [];
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //获取项目列表
- getProjectList() {
- this.http.post(this.port.project.list, {},
- res => {
- if (res.code == "ok") {
- this.projectList = res.data;
- this.getRecentlyProject()
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- getProjectListTwo() {
- let obj = {}
- if(this.curProjectId) {
- obj.projectId = this.curProjectId
- }
- this.http.post(`/project/getProjectByLeader`, {
- ...obj
- },
- res => {
- if (res.code == "ok") {
- this.projectList = res.data;
- this.integrationProjectList = [
- { label: '相关项目', peojectList: res.data }
- ]
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 获取最近项目列表
- getRecentlyProject() {
- this.http.post('/project/nearProject',{},res => {
- if(res.code == 'ok'){
- let topObj = {
- label: this.$t('zuiJinXuanZeXiangMu'),
- peojectList: res.data
- }
- let botomObj = {
- label: this.$t('other.allProject'),
- peojectList: this.projectList
- }
- this.integrationProjectList = [topObj, botomObj]
- console.log(this.integrationProjectList, '整合')
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },err => {
- this.$message({
- message: err,
- type: 'error'
- })
- })
- },
- // 获取任务分组
- getTaskGrouping(projectId) {
- this.http.post('/task-group/list', {projectId: projectId ? projectId : this.addForm.projectId},
- res => {
- if (res.code == "ok") {
- this.groupList = res.data;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- getTaskList() {
- let obj = {
- groupId: this.addForm.groupId,
- projectId: this.addForm.projectId,
- order: 'seq',
- isDesc: false
- }
- this.getStageList(obj)
- },
- // 关闭最外层弹窗
- closeBounceds() {
- console.log('我被触发了')
- this.$emit('closeBounced', {})
- },
- chggstim(e,i){
- if(e){
- this.gstimday[i] = Math.ceil(this.gstimhour[i] / this.user.timeType.allday)
- }else{
- this.gstimhour[i] = this.gstimday[i] * this.user.timeType.allday
- }
- },
- removeExecutorLine(index,e) {
- if(e == 1){
- this.relationItemData.executorList.splice(index,1);
- this.gstimday.splice(index,1)
- this.gstimhour.splice(index,1)
- this.$forceUpdate();
- }else{
- this.addForm.executorListFront.splice(index,1);
- this.gstimday.splice(index,1)
- this.gstimhour.splice(index,1)
- this.$forceUpdate();
- }
- },
- removeExecutorLineNew(item, e) {
- let index = item.indexList
- if(e == 1){
- this.relationItemData.executorList.splice(index,1);
- this.gstimday.splice(index,1)
- this.gstimhour.splice(index,1)
- this.$forceUpdate();
- }else{
- this.addForm.executorListFront.splice(index,1);
- this.gstimday.splice(index,1)
- this.gstimhour.splice(index,1)
- this.$forceUpdate();
- }
- this.replacementResult()
- setTimeout(() => {
- this.bottomScrollClick(true)
- }, 100)
- },
- addExecutorLine(e) {
- if(e == 1){
- if (this.relationItemData.executorList == null) {
- this.relationItemData.executorList = [];//初始化
- }
- this.relationItemData.executorList.push({
- executorId:null, planHours: this.addForm.planHours || this.user.timeType.allday,
- dailyAllocateList: this.setDateDataBasedOnTime()
- });
- this.gstimday.push(1)
- this.gstimhour.push(this.user.timeType.allday)
- this.$forceUpdate();
- }else{
- if (this.addForm.executorListFront == null) {
- this.addForm.executorListFront = [];//初始化
- }
- this.addForm.executorListFront.push({
- executorId:null, planHours: this.addForm.planHours || this.user.timeType.allday,
- dailyAllocateList: this.setDateDataBasedOnTime()
- });
- this.gstimday.push(1)
- this.gstimhour.push(this.user.timeType.allday)
- this.$forceUpdate();
- this.replacementResult()
- setTimeout(() => {
- this.bottomScrollClick()
- }, 100)
- }
- },
- replacementResult() {
- let lengths = (this.addForm.executorListFront || []).length
- if(lengths > this.shownumber) {
- this.startNum = lengths - this.shownumber
- this.endNum = lengths
- } else {
- this.startNum = 0
- this.endNum = lengths
- }
- this.sizeNum = typeof this.sizeNum == 'number' ? this.sizeNum+'' : +this.sizeNum
- },
- getTaskDetail(id) {
- this.http.post('/task/getTask',{id: id},
- res => {
- if (res.code == "ok") {
- this.millerSReviewer = [res.data.checkFirstId, res.data.checkSecondId]
- if(this.showMmeiLaiDe) {
- this.setDisabledPermission()
- }
- this.meetingId = res.data.meetingId
- this.addForm = res.data;
- if (this.addForm.aheadTid) {
- this.addForm.aheadTidList = JSON.parse(this.addForm.aheadTid);
- } else {
- this.addForm.aheadTidList = [];
- }
- this.selectType = {id:this.addForm.taskPlanType, needAudit: this.addForm.needAudit};
- this.addForm.createDate = null;
- this.addForm.indate = null;
- this.addLoading = false;
- this.canEditTask = res.data.canEditTask
- this.recentProgressInfo = res.data.progress;
-
- if(res.data.executorList.length > 0) {
- for(var i in res.data.executorList){
- if(res.data.executorList[i].serviceId) {
- res.data.executorList[i].serviceId = JSON.parse(res.data.executorList[i].serviceId)
- }
- }
- console.log("==================",res.data.executorList)
- this.addForm.executorListFront = res.data.executorList;
- } else {
- this.addForm.executorListFront = [{executorId: null, planHours: 8}];
- }
- this.gstimday = []
- this.gstimhour = []
- for(let i=0;i<this.addForm.executorListFront.length;i++){
- this.gstimhour.push(this.addForm.executorListFront[i].planHours)
- this.gstimday.push(Math.ceil(this.addForm.executorListFront[i].planHours / this.user.timeType.allday))
- }
- console.log(this.gstimday, this.gstimhour)
- // //删除中间传值的变量数组
- delete this.addForm.executorList;
-
- //人员处理
- this.users = res.data.userList;
- // 触发类型切换事件
- this.selchg()
- //加载研究中心
- this.degreeList = res.data.degreeList;
- // this.$set(this.addForm,'centerId', this.addForm.centerId);
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //获取任务进展列表
- getTaskProgressList(taskId) {
- this.taskIid = taskId
- this.http.post('/task-progress/list', {taskId: taskId},
- res => {
- if (res.code == "ok") {
- this.ProgressList = res.data;
- this.recentProgressInfo = res.data[0]
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- getUsers() {
- this.http.post('/participation/getByProjectId', {projectId: this.addForm.projectId},
- res => {
- if (res.code == "ok") {
- this.users = res.data;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 获取评论列表
- gain(task,e) {
- this.commentList = [];
- this.taskId = e == 1 ? task.taskId : task.id;
- this.http.post('/task-comment/getList', {taskId: e == 1 ? task.taskId : task.id},
- res => {
- if (res.code == "ok") {
- if(this.user.userNameNeedTranslate == 1) {
- for (let i = 0; i < res.data.length; i++) {
- const originalString = res.data[i].content;
- const regex = /\$userName=[^$]*\$|[^$]+/g;
- const parts = originalString.match(regex);
- let newArrList = [];
- for (let j = 0; j < parts.length; j++) {
- const newStr = parts[j];
- if (newStr.startsWith('$userName=')) {
- const userName = newStr.slice(10, -1);
- newArrList.push({ type: 'user', value: userName });
- } else {
- newArrList.push({ type: 'text', value: newStr });
- }
- }
- res.data[i].newContent = newArrList;
- }
- }
- this.commentList = res.data
- this.sppk(this.commentList) // 获取参与人的方法
- this.contRoll()
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 获取评论参与人
- sppk(comit) {
- var sk = []
- comit.forEach(function(e){
- sk.push(e.userName)
- })
- this.critic = new Set(sk)
- },
- getRelationTaskList(i,e){ //获取关联任务列表
- let eid = null
- if(i){
- eid = e
- }else{
- eid = this.addForm.id
- }
- this.http.post('/task/getMilestoneTaskList',{
- milestoneId: eid
- },res => {
- if(res.code == 'ok') {
- this.relationSubTaskList = res.data
- // console.log('res',res.data);
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 获取来自日报
- getDailyList(id) {
- this.http.post('/report/getTaskReportList',{
- // taskId: '22131'
- taskId: id
- },
- res => {
- if (res.code == "ok") {
- this.dailyList = res.data
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- objectSpanMethod({ row, column, rowIndex, columnIndex }) {
- const { timeType } = this.user
- if (columnIndex === 6 && timeType.taskFileCharge == 1) {
- return [this.taskFileList.length, 1];
- }
- return [1, 1];
- },
- // 获取任务下的文档列表
- getTaskFileList(e,eid){
- let etaskId
- if(e == 1){etaskId = eid}
- else{etaskId = this.addForm.id}
- this.fileListLoading = true
- this.http.post('/task-files/getTaskFiles',{
- taskId: etaskId
- },res => {
- if(res.code == 'ok'){
- this.fileListLoading = false
- this.taskFileList = res.data.map(item => {
- let str = item.fileChargeStatusText || ''
- let arr = str.split(/\$|=/).filter(item => item && item !== 'userName');
- return {
- ...item,
- fileChargeStatusTextList: arr || []
- }
- })
- console.log(this.taskFileList, '<+======this.taskFileList')
- }else {
- this.fileListLoading = false
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.fileListLoading = false
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- DateChange(){
- const { startDate, endDate } = this.addForm
- if(startDate && endDate){
- const listData = this.setDateDataBasedOnTime()
- const totalHours = listData.reduce((sum, item) => sum + item.workHour, 0);
- const start = this.dayjs(startDate)
- const end = this.dayjs(endDate)
- const diffInDays = end.diff(start, 'hour') / 24
- const result = Math.ceil(diffInDays)
- this.addForm.plannedDays = result
- this.addForm.planHours = totalHours
- for(let i in (this.addForm.executorListFront || [])) {
- this.addForm.executorListFront[i].planHours = totalHours
- this.addForm.executorListFront[i].dailyAllocateList = listData
- }
- console.log(startDate, endDate)
- console.log(this.addForm)
- }
- },
- // 自定义组件事件
- selectCal(obj) {
- if(obj.distinction == '1') {
- this.addForm.executorListFront[obj.index].executorId = obj.id
- } else if(obj.distinction == '2') {
- this.groupForm.inchargerId = obj.id
- } else if(obj.distinction == '101') {
- this.addForm.executorListFront[obj.index].fileChargeOneId = obj.id
- } else if(obj.distinction == '102') {
- this.addForm.executorListFront[obj.index].fileChargeTwoId = obj.id
- }
- },
- getDetail(id) {
- this.http.post('/project/detail',{
- id: id
- },
- res => {
- if (res.code == "ok") {
- console.log('触发更新试一下')
- this.currentProject = res.data;
- this.getjurisdictionIds(this.currentProject)
- this.joinMembList = this.currentProject.participationList;
- } else {
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- }
- );
- },
- getjurisdictionIds(pro){
- console.log('pro',pro.creatorId);
- this.projectCreatorId = pro.creatorId
- this.projectInchargerId = pro.inchargerId
- },
- //加载项目内的任务列表
- getStageList(obj) {
- this.http.post('/stages/list', {
- groupId: obj.groupId,
- projectId: obj.projectId,
- order: obj.order,
- isDesc: obj.isDesc
- },
- res => {
- if (res.code == "ok") {
- this.stageList = res.data.list;
- this.canEditTask = res.data.canEditTask
- this.canEditStageList = res.data.canEditStageList
- this.timess() // 处理时间的方法
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- timess(){
- // console.log('timess');
- var date = new Date()
- let Y = date.getFullYear()
- let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
- let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
- this.times = `${Y}-${M}-${D}`
- console.log(this.times, '时间')
- },
- // 提交按钮
- submitInsert() {
- if (this.textContent !== true) return this.$message({
- showClose: true,
- message: this.$t('pictureistoolargepleaseuploaditagain'),
- type: 'warning'
- });
- //检查是有重名的执行人
- var exeList = this.addForm.executorListFront;
- console.log(this.addForm.executorListFront)
- for (var i=0;i<exeList.length;i++) {
- var findSameUser = false;
- for (var j=i+1;j<exeList.length; j++) {
- if (exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId) {
- findSameUser = true;
- break;
- }
- }
- if (findSameUser) {
- return this.$message({
- showClose: true,
- message: this.$t('executorhasduplication'),
- type: 'error'
- });
- }
- }
- if(this.addForm.startDate && this.addForm.endDate) {
- if(this.addForm.endDate < this.addForm.startDate) {
- return this.$message({
- showClose: true,
- message: this.$t('ren-wu-jie-zhi-shi-jian-bu-neng-xiao-yu-kai-shi-shi-jian'),
- type: 'error'
- });
- }
- }
- if(this.showMmeiLaiDe && !this.addForm.endDate) {
- return this.$message({
- showClose: true,
- message: '请选择截止时间',
- type: 'warning'
- });
- }
- this.$refs.form1.validate(valid => {
- if (valid) {
- delete this.addForm.subTaskList;
- delete this.addForm.refTaskList;
- delete this.addForm.progress;
- delete this.addForm.userList;
- let executorListFrontExtraList = JSON.parse(JSON.stringify(this.addForm.executorListFront))
- console.log(JSON.parse(JSON.stringify(this.addForm)) , '<==== this.addForm')
- // 针对执行人的分配工时配置值
- for(let userIndex in this.addForm.executorListFront) {
- const executeList = this.addForm.executorListFront[userIndex].dailyAllocateList
- const list = executeList.map(item => {
- const { startTime, endTime, workHour, overWorkHour, allocateDate, id } = item
- return {
- id: id || '',
- startTime, endTime, workHour, overWorkHour, allocateDate,
- taskId: this.addForm.id,
- userId: this.addForm.executorListFront[userIndex].executorId
- }
- })
- executorListFrontExtraList[userIndex].dailyAllocateListStr = JSON.stringify(list)
- delete executorListFrontExtraList[userIndex].dailyAllocateList
- }
- //去掉没有执行人的.(因为要有计划工时,执行人可以暂不设置)
- // this.addForm.executorListFront = this.addForm.executorListFront.filter(exe=>exe.executorId);
- if(this.addForm.executorListFront.serviceId){
- this.addForm.executorListFront.serviceId= this.addForm.executorListFront.serviceId;
- }
- // this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
- // this.addForm.executorList = this.addForm.aheadTidList;
- this.addForm.aheadTid = JSON.stringify(this.addForm.aheadTidList);
- if (this.addForm.centerId) {
- this.addForm.centerName = this.degreeList.filter(a=>a.id == this.addForm.centerId)[0].name;
- }
- let addFormData = {
- ...this.addForm,
- executorListFront: executorListFrontExtraList,
- executorListStr: JSON.stringify(executorListFrontExtraList)
- }
- //不需要审核,简化字段
- if(!this.selectType.needAudit) {
- addFormData = {
- id: this.addForm.id,
- name: this.addForm.name,
- taskPlanType: this.addForm.taskPlanType,
- startDate: this.addForm.startDate,
- endDate: this.addForm.endDate,
- executorListFront: executorListFrontExtraList,
- executorListStr: JSON.stringify(executorListFrontExtraList)
- // executorListStr: this.addForm.executorListStr
- }
- }
- console.log({ ...addFormData, isTaskPlan: this.showMmeiLaiDe ? 1 : 0}, '<==== 将要提交的数据')
- this.addLoading = true;
- this.http.post('/task/save',{ ...addFormData, isTaskPlan: this.showMmeiLaiDe ? 1 : 0},
- res => {
- this.addLoading = false;
- if (res.code == "ok") {
- this.$message({
- message: this.$t('message.submittedSuccessfully'),
- type: "success"
- });
- if (this.addForm.parentTid == null) {
- let obj = {
- submitInsert: true,
- showOrNot: this.showOrNot
- }
- // if(!addFormData.id) {
- // obj.dateList = [addFormData.startDate, addFormData.endDate]
- // }
- if(!addFormData.id) {
- localStorage.setItem('ganttChartTaskId', JSON.stringify(res.data || []))
- }
- this.$emit('closeBounced', obj)
- } else {
- // this.backToParentTask();
- // if(!addFormData.id) {
- // this.$emit('closeBounced', {
- // backToParentTaskSub: true,
- // dateList: [addFormData.startDate, addFormData.endDate]
- // })
- // } else {
- if(!addFormData.id) {
- localStorage.setItem('ganttChartTaskId', JSON.stringify(res.data || []))
- }
- this.$emit('closeBounced', {backToParentTaskSub: true})
- // }
- }
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- }
- );
- }
- });
- },
- backToParentTask() {
- this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
- this.isEditFile = true;
- if(this.timelabel){
- this.isRelationItem = false
- this.getRelationTaskList(1, this.relationPar.id)
- this.gain(this.relationPar)
- }
- },
- onEditorFocus() {
- this.onEditorBlur()
- },
- // 获得焦点时触发
- onEditorBlur(){
- let theEle = this.$refs.text; // 获取元素
- if(!theEle.value) {
- return
- }
- var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
- var arrImg = ''
- for (var j = 0; j < img.length; j++) {
- // 正则匹配,摘出img标签下的src里的内容,即capture
- img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
- arrImg += capture
- });
- }
- // 原来的字符流大小,单位为字节
- var strLen = arrImg.length;
- // 计算后得到的文件流大小,单位为字节
- var fileSize=parseInt(strLen-(strLen/8)*2);
- var size = "";
- size = (fileSize/1024/1024).toFixed(2);
- if (size > 2){
- this.textContent = false
- this.$message({
- showClose: true,
- message: this.$t('imageexceeds2MBpleaseuploaditagain'),
- type: 'warning'
- });
- }
- this.textContent = true
- },
- //删除当前编辑的任务
- deleteTask() {
- var warning='';
- if (this.addForm.subTaskList.length > 0) {
- warning=this.$t('currenttaskanditssubtasks');
- } else {
- warning=this.$t('wanttodeletethecurrent task');
- }
- this.$confirm(warning, this.$t('other.prompts'), {
- //type: 'warning'
- }).then(() => {
- this.http.post('/task/delete',{id: this.addForm.id},
- res => {
- if (res.code == "ok") {
- this.$message({
- message: '删除成功',
- type: 'success'
- });
- this.$emit('closeBounced', {deleteTask: true})
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- });
- },
- addprogress(){ // 添加子任务进展事件
- this.$refs.proBox.style.display="block"
- this.$refs.addPro.style.display="none"
- },
- shutPro() { // 关闭任务进展
- this.$refs.addPro.style.display="block"
- this.$refs.addRem.style.display="none"
- this.$refs.proBox.style.display="none"
- },
- //创建任务进展
- addTaskProgress() {
- var param = {
- taskId: this.taskIid,
- status: this.radio,
- content: this.text2,
- participatorIds: this.checkLists.toString()
- };
- this.http.post('/task-progress/addProgress', param,
- res => {
- if (res.code == "ok") {
- this.shutPro()
- this.getTaskProgressList(this.taskIid)
- this.$message({
- message: this.$t('releasesuccess'),
- type: "success"
- });
- this.checkboxGrounp = [],
- this.checkLists = [],
- this.text2 = '',
- this.radio = 0
- let obj = {
- id: this.taskIid
- }
- this.gain(obj)
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- addI() { // 打开选择查看
- this.$refs.addRem.style.display="block"
- },
- selchg(){ //类型切换
- if(this.addForm.taskType == 1){
- this.timelabel = true
- if(!this.addForm.executorListFront[0].executorId) {
- console.log(this.currentProject)
- this.addForm.executorListFront[0].executorId = this.currentProject.inchargerId
- }
- }else{
- this.timelabel = false
- }
- },
- kkk(el){
- var k = this.checkLists.indexOf(el.id)
- if (k == -1) {
- this.checkLists.push(el.id)
- } else {
- this.checkLists.splice(k, 1)
- }
- },
- //删除任务进展
- deleteTaskProgress(id) {
- this.http.post('/task-progress/deleteProgress', {id: id},
- res => {
- if (res.code == "ok") {
- this.getTaskProgressList(this.taskIid)
- this.$message({
- message: this.$t('message.successfullyDeleted'),
- type: "success"
- });
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- addRelation(){ //关联任务卡片
- this.relationvalue = []
- this.isRelationTab = true
- this.getrelation()
- },
- getrelation(){
- //获取选择关联列表
- this.http.post('/task/getTaskOnlyList',{
- projectId: this.curProjectId?this.curProjectId:this.addForm.projectId
- },
- res => {
- if (res.code == "ok") {
- this.relationdata = []
- res.data.forEach( (item) =>{
- if(item.taskType != 1){
- if (item.id != this.addForm.id) {
- this.relationdata.push(item)
- }
- }
- })
-
- // console.log('map',this.relationdata);
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //显示子任务创建卡片
- addSubTask() {
- if(this.isRelationItem){return}
- this.addFormVisible = true;
- this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
- // this.addForm.executorListFront = [{executorId:null, planHours:8}];
- this.addForm.executorListFront = [{executorId:null, planHours:8, serviceId: null}];
- this.addLoading = false;
- //创建子任务,非编辑状态
- this.isEditFile = false;
- // 触发外界子任务事件
- this.$emit('closeBounced', {addSubTask: true, addForms: this.addForm})
- },
- // 关联任务点击事件
- relationTaskClick(row,column,event){
- // console.log('relationTaskClick',row);
- this.relationPar = JSON.parse(JSON.stringify(this.addForm))
- // console.log(this.relationPar);
- this.addFormVisible = true;
- this.addLoading = false;
- this.isRelationItem = true;
- this.isEditFile = true;
- this.title = this.$t('editingtasks');
- this.getTaskDetail(row.taskId);
- // this.getUsers();
- this.gain(row,1);
- this.getRelationTaskList(1, row.taskId)
- this.getTaskFileList(1,row.taskId)
- },
- // 解除关联
- deleteRelationItem(eid){
- this.listLoading = true
- this.http.post('/task/removeMileStoneTask',{
- id: eid
- },res => {
- if(res.code == 'ok') {
- this.getRelationTaskList()
- this.listLoading = false
- this.$message({
- message: this.$t('jie-chu-cheng-gong'),
- type: 'success'
- })
- }else {
- this.listLoading = false
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.listLoading = false
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 关联任务列表是否完成修改
- relationFinishTask(row){
- this.http.post('/task/finish',{
- id: row.taskId,
- taskStatus: row.taskStatus
- },res => {
- if(res.code == 'ok'){
- // if(this.groupType == 0){
- // this.getStageList();
- // }else {
- // this.getViewTaskList();
- let obj = {
- submitInsert: true
- }
- this.$emit('closeBounced', obj)
- // }
- }else{
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- finishTask(task) {
- this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
- res => {
- if (res.code == "ok") {
- // if (this.groupType == 0) {
- // this.getStageList();
- // } else {
- // this.getViewTaskList();
- // }
- let obj = {
- submitInsert: true
- }
- this.$emit('closeBounced', obj)
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 关联文件按钮
- relationFileClick(){
- this.relationFileDialog = true
- this.addFileId = null
- this.getProjectFileList()
- },
- // 获取项目下的文档列表
- getProjectFileList(){
- this.http.post('/task-files/getDocumentList',{
- projectId: this.curProjectId
- },res => {
- if(res.code == 'ok'){
- this.projectFileList = res.data
- console.log('list',res.data);
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 列表的删除按钮
- taskFileDelete(eid){
- this.$confirm(this.$t('shiFouYiChuCiWenJian'), this.$t('other.prompts'), {
- confirmButtonText: this.$t('btn.determine'),
- cancelButtonText: this.$t('btn.cancel'),
- type: 'warning'
- }).then(()=>{
- this.http.post('/task-files/delete',{
- id: eid
- },res => {
- if(res.code == 'ok'){
- this.$message({
- message: res.data,
- type: 'success'
- })
- this.getTaskFileList()
- this.gain({ taskId: this.taskId }, 1)
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- }).catch(()=>{
- this.$message({
- message: this.$t('thedeletionhasbeencancelled'),
- type: 'info'
- })
- })
- },
- showReasonForRejection(item) {
- const taskId = this.taskId
- const {id} = item
- this.http.post('/task/getFileRejectReason',{
- taskId
- },res => {
- if(res.code == 'ok'){
- let text = res.data.find(item => item.id == id)
- console.log(text)
- this.$alert(text.fileRejectReason, '驳回原因');
- }else {
- this.$message.error(res.msg)
- }
- },error => { this.$message.error(error) })
- },
- // 确认关联文件
- addTaskFile(){
- if(this.addFileId == null){
- this.$message({message: this.$t('xuanzguanlianwenjian') , type: 'warning'})
- return
- }
- this.http.post('/task-files/addDocumentRef',{
- documentId: this.addFileId,
- taskId: this.addForm.id,
- projectId: this.curProjectId
- },res => {
- if(res.code == 'ok'){
- this.$message({
- message: this.$t('guan-lian-cheng-gong'),
- type: 'success'
- })
- this.relationFileDialog = false
- this.getTaskFileList()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- addRelationTask(){ //添加关联任务
- this.http.post('/task/addMileStoneTask',{
- milestoneId: this.addForm.id,
- taskIds: JSON.stringify(this.relationvalue)
- },
- res =>{
- if(res.code == "ok") {
- this.isRelationTab = false
- this.$message({
- message: this.$t('addsuccessful'),
- type: 'success'
- })
- this.getRelationTaskList()
- this.$forceUpdate()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },
- error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- backToParentTask() {
- // this.getTaskDetail(this.addForm.parentTid);
- this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
- this.isEditFile = true;
- if(this.timelabel){
- this.isRelationItem = false
- // this.relationPar = {name: ''}
- this.getRelationTaskList(1, this.relationPar.id)
- this.gain(this.relationPar)
- }
- },
- // 点击评论发布
- release() {
- if(this.textarea2.length <= 0) return this.$message({message: this.$t('pleaseentercontent'), type: "error"})
- this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
- res => {
- if(res.code == "ok"){
- if(res.data.content.indexOf('$userName=') != '-1') {
- let obj = {
- msg1: res.data.content.split('$')[0],
- msg2: res.data.content.split('$')[1].split('=')[1],
- msg3: res.data.content.split('$')[2]
- }
- res.data.content = obj
- } else {
- if(this.user.userNameNeedTranslate == 1) {
- let obj = {
- msg1: res.data.content,
- msg2: '',
- msg3: ''
- }
- res.data.content = obj
- }
- }
- this.commentList.push(res.data)
- console.log(this.commentList, '值☞')
- this.sppk(this.commentList)
- let obj = {
- id: this.taskIid
- }
- this.gain(obj)
- this.textarea2 = ""
- // this.contRoll() // 滚动到底部
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- })
- },
- // 滚动到底部
- contRoll(){
- // this.$nextTick(() => {
- // this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
- // })
- this.$nextTick(() => {
- let scrollElem = this.$refs.main;
- scrollElem.scrollTo({ top: scrollElem.scrollHeight});
- });
- console.log('最后执行')
- },
- sss(){
- this.$refs.addRem.style.display="none"
- },
- taskLineClick(row, column, event) {
- if(this.isRelationItem){return}
- this.mileageCup = true
- if(row.taskType == 1){
- this.timelabel = true
- this.isRelationItem = false
- }else{
- this.timelabel = false
- }
- this.addFormVisible = true;
- this.isEditFile = true;
- this.addLoading = false;
- this.getTaskDetail(row.id);
- this.getTaskProgressList(row.id); // 获取任务进展列表
- // this.getUsers(); // 获取名单数据
- this.gain(row); // 获取评论列表
- this.getDailyList(row.id) // 获取来自日报
- this.getRelationTaskList(1, row.id)
- this.getTaskFileList(1,row.id)
- this.$emit('closeBounced', {taskLineClickAbs: true, items: row})
- },
- //获取SAP项目服务数据列表
- getSapServiceList(){
- this.http.post('/sap-project-service/sapServiceList', {},
- res => {
- if(res.code == "ok"){
- this.sapServiceList=res.data
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- })
- },
- // 列表的上传按钮
- uploadFileClick(item){
- console.log("upload",item.file);
- let files = new FormData()
- files.append("projectId",this.curProjectId);
- files.append("taskId", this.addForm.id);
- files.append("file", item.file);
- this.http.uploadFile('/task-files/uploadFile', files,
- res => {
- if(res.code == 'ok'){
- console.log(res);
- this.$message({
- message: this.$t('yi-shang-chuan'),
- type: 'success'
- })
- this.gain({ taskId: this.taskId }, 1)
- this.getTaskFileList()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- uploadFileClickTwo(item, row) {
- let files = new FormData()
- files.append("projectId",this.curProjectId);
- files.append("taskId", this.addForm.id);
- files.append("taskFileId", row.id);
- files.append("file", item.file);
- this.http.uploadFile('/task-files/reUploadFile', files,
- res => {
- if(res.code == 'ok'){
- console.log(res);
- this.$message({
- message: this.$t('yi-shang-chuan'),
- type: 'success'
- })
- this.gain({ taskId: this.taskId }, 1)
- this.getTaskFileList()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 获取休息时间段
- getRestPeriod() {
- this.http.post('/time-auto-exclude/list', {},
- res => {
- if(res.code == "ok"){
- this.restPeriod = (res.data || []).map(item => {
- return {
- start: `${item.startTime}:00`,
- end: `${item.endTime}:00`
- }
- })
- }
- },)
- },
- // 查看已有计划
- viewExistingPlans() {
- const index = this.allocateDailyWorkingIndex
- const { executorId } = this.addForm.executorListFront[index]
- this.viewTaskTimeList(executorId, index)
- },
- // 表格选中
- allocateTableSelectionChange(val) {
- this.tableSelection = val || []
- },
- // 根据开始时间和截止时间设置执行人的分配每日工时数据
- setDateDataBasedOnTime() {
- const { startDate = '', endDate = '' } = this.addForm;
- if (!startDate || !endDate) return [];
- const dayjs = this.dayjs;
- const start = dayjs(startDate);
- const end = dayjs(endDate);
- const result = [];
- let current = start.startOf('day');
- while (current.isBefore(end, 'day') || current.isSame(end, 'day')) {
- const currentDate = current.format('YYYY-MM-DD');
- let startTime = '09:00:00';
- let endTime = '17:30:00';
- if (current.isSame(start, 'day')) {
- startTime = start.format('HH:mm:ss');
- }
- if (current.isSame(end, 'day')) {
- endTime = end.format('HH:mm:ss');
- }
- const fullStart = `${currentDate} ${startTime}`;
- const fullEnd = `${currentDate} ${endTime}`;
- const { workHours = 0, overtimeHours = 0, totalHours = 0 } = calculateWorkHours(fullStart, fullEnd, this.restPeriod)
- result.push({
- allocateDate: currentDate,
- startTime,
- endTime,
- workHour: totalHours,
- overWorkHour: overtimeHours,
- taskId: this.addForm.id || '',
- });
- current = current.add(1, 'day');
- }
- return result;
- },
- // 获取缺失的日期
- retrieveMissingDates(list) {
- const { startDate, endDate } = this.addForm;
- const dateLst = list.map(item => item.allocateDate);
- const missingDates = [];
- const current = new Date(startDate);
- const last = new Date(endDate);
- const dateSet = new Set(dateLst);
- while (current <= last) {
- const dateStr = current.toISOString().split('T')[0]; // 格式化为 YYYY-MM-DD
- if (!dateSet.has(dateStr)) {
- missingDates.push(dateStr);
- }
- current.setDate(current.getDate() + 1);
- }
- this.dateDropdownMenuSelection = missingDates || []
- },
- // 删除单个日期计划
- deleteASingleDateSchedule(index) {
- this.$confirm(`确定删除当前日期?`, '删除', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.allocateDailyWorkingHoursList.splice(index, 1)
- this.retrieveMissingDates(this.allocateDailyWorkingHoursList)
- })
- },
- addSingleDateSchedule(item, index) {
- const { taskId, userId, allocateDate } = item
- const singleObject = {
- startTime: '09:00:00',
- endTime: '17:30:00',
- workHour: 7.5,
- overWorkHour: 0,
- taskId, userId, allocateDate,
- uuID: generateUUID()
- }
- this.allocateDailyWorkingHoursList.splice(index, 0, singleObject)
- },
- // 日期工时重新计算
- calculateWorkingHours(item, index) {
- const { allocateDate, startTime, endTime } = item
- if(startTime > endTime) {
- this.$message({
- message: `${allocateDate}日期的开始时间小于截止时间,请调整!`,
- type: 'warning'
- });
- return
- }
- const fullStart = `${allocateDate} ${startTime}`;
- const fullEnd = `${allocateDate} ${endTime}`;
- const { workHours = 0, overtimeHours = 0, totalHours = 0 } = calculateWorkHours(fullStart, fullEnd, this.restPeriod)
- this.allocateDailyWorkingHoursList[index].workHour = totalHours
- this.allocateDailyWorkingHoursList[index].overWorkHour = overtimeHours
- },
- // 批量设置时间段
- batchSetTimePeriod() {
- this.$confirm(`确定将选择的日期的时间段设置为【${this.startingTimePeriod} - ${this.endTimePeriod}】?`, '批量操作', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- const uuIDList = this.tableSelection.map(item => item.uuID)
- this.allocateDailyWorkingHoursList = this.allocateDailyWorkingHoursList.map(item => {
- if(uuIDList.includes(item.uuID)) {
- const { allocateDate, startTime, endTime } = item
- const fullStart = `${allocateDate} ${this.startingTimePeriod}`;
- const fullEnd = `${allocateDate} ${this.endTimePeriod}`;
- const { workHours = 0, overtimeHours = 0, totalHours = 0 } = calculateWorkHours(fullStart, fullEnd, this.restPeriod)
- return {
- ...item,
- startTime: this.startingTimePeriod,
- endTime: this.endTimePeriod,
- workHour: totalHours,
- overWorkHour: overtimeHours
- }
- } else {
- return {
- ...item,
- }
- }
- })
- })
- },
- // 添加单个日期
- addASingleDate() {
- const singleObject = {
- startTime: '09:00:00',
- endTime: '17:30:00',
- workHour: 7.5,
- overWorkHour: 0,
- taskId: '',
- userId: '',
- allocateDate: this.dateDropdownMenuSelectionVal,
- uuID: generateUUID()
- }
- this.allocateDailyWorkingHoursList.push(singleObject)
- this.dateDropdownMenuSelectionVal = ''
- this.retrieveMissingDates(this.allocateDailyWorkingHoursList)
- },
- // 合并执行人计划单元格
- allocateTableObjectSpanMethod({ row, column, rowIndex, columnIndex }) {
- if (columnIndex === 1) {
- // 只合并第一列
- const _rowSpanArr = this.getSpanArr(this.allocateDailyWorkingHoursList, 'allocateDate');
- return {
- rowspan: _rowSpanArr[rowIndex],
- colspan: 1
- };
- }
- },
- getSpanArr(data, field) {
- const spanArr = [];
- let pos = 0;
- data.forEach((item, index) => {
- if (index === 0) {
- spanArr.push(1);
- pos = 0;
- } else {
- if (item[field] === data[index - 1][field]) {
- spanArr[pos] += 1;
- spanArr.push(0);
- } else {
- spanArr.push(1);
- pos = index;
- }
- }
- });
- return spanArr;
- },
- // 确定工时
- determineWorkingHours() {
- this.allocateDailyWorkingHoursLoading = true
- const userId = this.addForm.executorListFront[this.allocateDailyWorkingIndex].executorId
- let list = this.allocateDailyWorkingHoursList.map(item => {
- return { ...item, userId }
- })
- this.http.post('/task-daily-allocate/getConflict', {
- jsonStr: JSON.stringify(list)
- },
- res => {
- this.allocateDailyWorkingHoursLoading = false
- if(res.code == "ok"){
- const list = this.allocateDailyWorkingHoursList.map(item => {
- let singleObject = { ...item }
- delete singleObject.uuID
- return singleObject
- })
- const totalPlanHours = this.allocateDailyWorkingHoursList.reduce((sum, item) => sum + item.workHour, 0)
- this.addForm.executorListFront[this.allocateDailyWorkingIndex].planHours = totalPlanHours
- this.addForm.executorListFront[this.allocateDailyWorkingIndex].dailyAllocateList = list
- this.allocateDailyWorkingHoursVisable = false
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.allocateDailyWorkingHoursLoading = false
- this.$message({
- message: error,
- type: "error"
- });
- })
- }
- },
- };
- </script>
- <style lang="scss" scoped>
- @import "../assets/scss/handle";
- .reviewImages {
- display: flex;
- align-items: center;
- margin: 0 25px;
- img {
- width: 100px
- }
- }
- .themeFontColor {
- @include font_color("color");
- }
- .customizedReviewer {
- display: flex;
- align-items: center;
- }
- .editingTask {
- display: flex;
- flex-wrap: wrap;
- }
- .carts .commentSpan {
- float: none;
- display: block;
- margin-top: 0;
- font-size: 14px;
- span {
- float: none;
- display: inline-block;
- margin-top: 0;
- font-size: 14px;
- }
- }
- .foooot {
- padding: 10px 20px 20px;
- text-align: right;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
- .Daily p {
- margin: 0 !important;
- padding: 0 0 10px 0 !important;
- }
- .sub-all {
- div {
- display: inline-block;
- padding: 0 20px;
- font-size: 20px;
- cursor: pointer;
- }
- .subOn {
- color: #66b1ff;
- }
- }
- .DailyBody {
- margin: 0 20px;
- }
- .Daily{
- height: 120%;
- overflow: auto;
- }
- .inputDeep {
- position: absolute;
- bottom: 85px;
- width: 95%;
- margin: 0 12px;
- }
- .inputDeep .el-textarea .el-textarea__inner{
- border: 0 !important;
- resize: none !important;
- }
- .inputDeeps .el-textarea__inner {
- border: 0 !important;
- resize: none !important;
- }
- .scop_span {
- display: inline-block;
- padding: 2px 5px;
- }
- .counli {
- em {
- font-style: normal;
- display: inline-block;
- margin-left: 9%;
- }
- span {
- float: right;
- }
- }
- .carts {
- position: relative;
- .el-image{
- border-radius: 50%;
- float: left;
- width: 20%;
- }
- i {
- width: 30px;
- height: 30px;
- // background: #778899;
- display: inline-block;
- float: left;
- border-radius:50%;
- font-style:normal;
- font-size: 12px;
- line-height: 30px;
- text-align: center;
- color: #fff;
- background: #778899;
- overflow: hidden;
- direction: rtl;
- }
- div {
- text-align: left;
- p {
- text-align: left;
- margin-left: 10px;
- margin-left: 13%;
- }
- em {
- display: block;
- font-style: normal;
- margin-left: 13%;
- }
- }
- span {
- font-size: 10px;
- float: right;
- margin-top: -40px;
- }
- }
- .issue {
- // height: 20%;
- // position: relative;
- // z-index: 4;
- .zh{
- position: relative;
- width: 100%;
- height: 100%;
- }
- .textareays {
- background: #000;
- height: 140px;
- border: 0;
- .el-textarea__inner {
- height: 85%;
- }
- }
- .issue-button {
- position: absolute;
- bottom: 20px;
- right: 20px;
- }
- }
- .inputDeep {
- position: absolute;
- bottom: 85px;
- width: 95%;
- margin: 0 12px;
- }
- .inputDeep .el-textarea .el-textarea__inner{
- border: 0 !important;
- resize: none !important;
- }
- .inputDeeps .el-textarea__inner {
- border: 0 !important;
- resize: none !important;
- }
- .scop_span {
- display: inline-block;
- padding: 2px 5px;
- }
- .container {
- position: relative;
- overflow-y: scroll;
- }
- .list {
- position: absolute;
- top: 0;
- width: 100%;
- }
- .reviewerClass {
- display: flex;
- align-items: center;
- margin-right: 20px;
- .reviewerTitles {
- margin-right: 10px;
- }
- }
- .modifyPlanTitle {
- display: flex;
- align-items: center;
- margin-bottom: 20px;
- }
- .modifyPlanTitle-item {
- display: flex;
- align-items: center;
- margin-right: 20px;
- }
- .executorBox {
- display: flex;
- align-items: center;
- }
- .allocateDailyWorkingHoursClass {
- display: flex;
- align-items: center;
- color: #303133;
- font-size: 18px;
- .allocate-title {
- font-size: 18px;
- margin-right: 24px;
- }
- }
- .allocateDailyWorkingHoursClass-footer {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- .footer-left {
- display: flex;
- align-items: center;
- }
- }
- </style>
|