taskComponent.vue 120 KB

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