2
0

staffAssDet.vue 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456
  1. <template>
  2. <div class="all boxMinHeight">
  3. <PageHead phName="员工绩效详情"></PageHead>
  4. <div class="flex-box-ce" style="position: absolute;right: 20px;top: 20px;z-index: 2;">
  5. <!-- <div style="padding-right: 10px;">
  6. <el-checkbox v-model="isShowOneselfScore">只看自己评分内容</el-checkbox>
  7. </div> -->
  8. <el-select v-model="headvalue" style="width: 250px;" placeholder="请选择" v-if="!isDisabled">
  9. <el-option v-for="item in headoptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
  10. </el-select>
  11. <div v-else class="fontColorB font-flex-word" style="width: 250px;">{{ packageName }}</div>
  12. </div>
  13. <header v-loading="staffLoad">
  14. <div class="flex-box-ce head">
  15. <div class="flex-box-ce head2User flex-1">
  16. <userImage class="fl" :id="remployee.id" :user_name="remployee.name" :img_url="remployee.img_url" width="50px" height="50px"></userImage>
  17. <div class="headTname">
  18. <div style="">{{ remployee.name }}</div>
  19. <span v-for="(item, index) in remployee.deptList" :key="index" v-if="remployee.deptList.length > 0">
  20. <span>{{ item.name }}</span>
  21. <span v-if="remployee.deptList.length - index > 1">,</span>
  22. </span>
  23. </div>
  24. <img v-if="has_finish" src="@/assets/image/guidang.png" class="guidang" />
  25. </div>
  26. <template v-if="!gradeBegin">
  27. <div class="button-width" v-if="!has_finish">
  28. <!-- 撤销上一次操作 -->
  29. <template v-if="revocationShow">
  30. <el-button @click="isShowCx = true" type="primary">重新评分</el-button>
  31. </template>
  32. <!-- 目标制定节点 -->
  33. <template v-if="isShowTargetBtn">
  34. <el-button @click="openFormulate()" type="primary">制定目标</el-button>
  35. <el-button @click="submit()" type="primary">提交</el-button>
  36. </template>
  37. <!-- 目标确认 -->
  38. <template v-if="isShowConfirmBtn">
  39. <el-button type="primary" @click="gradeOk">同意</el-button>
  40. <el-button class="red" type="danger" plain @click="gradeTurn" style="background-color: #fff;">驳回</el-button>
  41. <el-button v-if="isUpdateIndex" @click="openFormulate()">修改目标</el-button>
  42. </template>
  43. <!-- 录入结果值 -->
  44. <el-button v-if="resultButShow" @click="openResult()" type="primary">录入结果值</el-button>
  45. <!-- 审批 -->
  46. <template v-if="examineButShow">
  47. <el-button type="primary" @click="gradeOk">同意</el-button>
  48. <el-button class="red" type="danger" plain v-if="isAction" @click="gradeTurn" style="background-color: #fff;">驳回</el-button>
  49. </template>
  50. <!-- 评分 -->
  51. <el-button v-if="gradeButShow" type="primary" @click="gradeClick">评分</el-button>
  52. <el-button v-if="recordsManagement" @click="isTrack = true">管理记录</el-button>
  53. <el-button v-if="actionButShow" @click="isPlan = true">执行计划</el-button>
  54. <el-button v-if="feedbackBut" @click="communication = true">沟通反馈
  55. <el-tooltip class="item" effect="dark" content="在整个考核过程中,若有需要反馈的内容可在【沟通反馈】处留言,支持发钉钉通知" placement="top-start">
  56. <i class="fontColorF el-icon-warning"></i>
  57. </el-tooltip>
  58. </el-button>
  59. <!-- 主次管理员,被考核人上级 -->
  60. <template v-if="$getRole(1) || isSuperior">
  61. <el-dropdown style="margin-left:10px;" @command="handleCommand">
  62. <el-button>管理</el-button>
  63. <el-dropdown-menu slot="dropdown">
  64. <el-dropdown-item v-for="(item, index) in dropdownMenu" :key="index" :command="item.key" :divided="item.bordok" v-if="item.isShow">
  65. {{ item.name }}
  66. </el-dropdown-item>
  67. </el-dropdown-menu>
  68. </el-dropdown>
  69. </template>
  70. </div>
  71. </template>
  72. </div>
  73. <!-- 流程 -->
  74. <div class="flex-box-ce flex-d-wrap">
  75. <div
  76. v-for="(item, index) in flow"
  77. :key="index"
  78. :class="[item.status == 1 ? 'flow-item-color' : '', index == 0 ? 'flow-item-start' : 'flow-item']"
  79. class="flex-box-ce"
  80. >
  81. <el-tooltip effect="dark" :content="item.code == 'execution' ? execution : item.remarks" placement="top">
  82. <span class="flow-box">
  83. <span>{{ index + 1 }}.{{ item.remark }}</span>
  84. <span v-if="item.code == 'execution'">
  85. <i class="el-icon-warning-outline"></i>
  86. :
  87. </span>
  88. <template v-if="item.target.length > 0">
  89. <span v-for="(item2, index2) in item.target" :key="index2">
  90. {{ item2.employee_name }}
  91. <span v-if="item.target.length - index2 > 1">,</span>
  92. </span>
  93. </template>
  94. </span>
  95. </el-tooltip>
  96. <i class="el-icon-success blue" v-if="item.status == 2" style="margin-right:10px;"></i>
  97. <div @click.stop="processDet(item)" style="width: 20px;" class="dian" v-if="item.target.length > 0 && !gradeBegin">
  98. <svg-icon icon-class="detailsPonit" class="detailsPonit" />
  99. </div>
  100. <img src="@/assets/image/jt.png" class="flow-img" v-if="index != flow.length - 1 || flow[flow.length - 1].status == 2" />
  101. </div>
  102. <template v-if="flow.length > 0">
  103. <div class="flow-item flex-box-ce flex-center-center" v-if="flow[flow.length - 1].status == 2">
  104. <span class="flex-1">{{ flow.length + 1 }}.结束</span>
  105. <i class="el-icon-success blue" style="margin-right:10px;"></i>
  106. </div>
  107. </template>
  108. </div>
  109. <!-- 考核结果 -->
  110. <div class="flex-box-end flex-v-ce" style="margin-top: 20px;">
  111. <template v-if="dimension.length > 0">
  112. <div class="flex-box-ce result" v-if="dimension[0].final_point" style="margin-right: 20px;">
  113. <span style="padding-right: 20px;">考核结果分数:{{ dimension[0].final_point }}分</span>
  114. <span>等级:{{ dimension[0].final_level }}</span>
  115. </div>
  116. </template>
  117. <el-tooltip placement="bottom">
  118. <div class="popover-box" slot="content">
  119. <div class="popover-title">开启显示更多可浏览全部考核内容</div>
  120. <div class="popover-content">点击右边箭头和滑动下方滚动条都可以查看更多内容</div>
  121. </div>
  122. <el-switch v-model="isShowOneselfScore" active-text="显示更多"></el-switch>
  123. </el-tooltip>
  124. </div>
  125. <!-- 表格 -->
  126. <div class="dimensionCla" v-loading="tableLoad">
  127. <!-- 点击滚动 -->
  128. <TableBox
  129. :tableData="dimension"
  130. :isShowYd="isShowOneselfScore"
  131. :headerCellStyle="{ background: '#ECF5FF', textAlign: 'center' }"
  132. :objectSpanMethod="objectSpanMethod"
  133. >
  134. <el-table-column prop="theDimension" width="80" label="维度" align="center">
  135. <template slot-scope="scope">
  136. <span style="width: 13px;display: inline-block;">{{ scope.row.theDimension }}</span>
  137. <template v-if="calc_dimension && (scope.row.type == 1 || scope.row.type == 2)">
  138. <div v-if="!scope.row.toScore">({{ scope.row.dimension_weight }}%)</div>
  139. </template>
  140. </template>
  141. </el-table-column>
  142. <el-table-column prop="name" label="名称" min-width="220">
  143. <template slot-scope="scope">
  144. <template v-if="Number(scope.row.weight) > 0">
  145. <PreBox :value="scope.row.name + '(权重:' + scope.row.weight + '%)'"></PreBox>
  146. </template>
  147. <PreBox v-else :value="scope.row.name"></PreBox>
  148. </template>
  149. </el-table-column>
  150. <template v-if="isShowOneselfScore">
  151. <el-table-column prop="type" width="100" label="指标类型">
  152. <template slot-scope="scope">
  153. <span v-if="scope.row.type == 1">量化指标</span>
  154. <span v-if="scope.row.type == 2">非量化指标</span>
  155. <span v-if="scope.row.type == 3">额外加分项</span>
  156. <span v-if="scope.row.type == 4">额外扣分项</span>
  157. </template>
  158. </el-table-column>
  159. </template>
  160. <el-table-column prop="target" label="目标值" align="left" min-width="150" v-if="getTableItem('target')">
  161. <template slot-scope="scope">
  162. <div v-if="scope.row.target != '-' && scope.row.target != undefined&&scope.row.target!='0'">
  163. 目标值:
  164. <span>{{ scope.row.target + '' + scope.row.unit }}</span>
  165. </div>
  166. <span v-else>-</span>
  167. <div v-if="scope.row.result !== null&&scope.row.result !== ''&&scope.row.result !== undefined" class="yellow">
  168. <template v-if="scope.row.type==1">
  169. 结果值: <span>{{ scope.row.result + '' + scope.row.unit }}</span>
  170. </template>
  171. <template v-if="scope.row.result_file">
  172. <!-- <div v-if="scope.row.result_file.images.length>0">
  173. <div style="margin-bottom: 3px;cursor: pointer;" class="blue" v-for="(item, index) in scope.row.result_file.images" :key="index" @click="onFilePreView(item)">{{ item.name }}</div>
  174. </div> -->
  175. <div v-if="scope.row.result_file.append.length>0">
  176. <div style="margin-bottom: 3px;cursor: pointer;" class="blue" v-for="(item, index) in scope.row.result_file.append" :key="index" @click="openImg(item)">{{ item.fileName }}</div>
  177. </div>
  178. </template>
  179. </div>
  180. <span v-else>-</span>
  181. </template>
  182. </el-table-column>
  183. <template v-if="isShowOneselfScore">
  184. <el-table-column prop="point_limit" label="加扣分上限" align="center" width="100" v-if="getTableItem('point_limit')">
  185. <template slot-scope="scope">
  186. <span>{{scope.row.point_limit}}</span>
  187. </template>
  188. </el-table-column>
  189. </template>
  190. <el-table-column prop="per_remark" label="考核标准" min-width="200" v-if="getTableItem('per_remark')">
  191. <template slot-scope="scope">
  192. <PreBox :value="scope.row.per_remark"></PreBox>
  193. </template>
  194. </el-table-column>
  195. <el-table-column prop="remark" label="备注" min-width="200" v-if="isShowOneselfScore">
  196. <template slot-scope="scope">
  197. <PreBox :value="scope.row.remark"></PreBox>
  198. </template>
  199. </el-table-column>
  200. <el-table-column prop="schedule" label="执行计划" align="center" min-width="200" v-if="getTableItem('schedule')">
  201. <template slot-scope="scope">
  202. <div class="flex-box-ce" v-if="scope.row.schedule && scope.row.schedule.length > 0">
  203. <el-button type="text" class="flex-1" @click="openPlan(scope.row.planIndex)">({{ scope.row.schedule.length }}) 条执行计划</el-button>
  204. </div>
  205. <span v-else>-</span>
  206. </template>
  207. </el-table-column>
  208. <el-table-column prop="mamage_record" label="跟踪管理记录" align="center" min-width="200" v-if="getTableItem('mamage_record')">
  209. <template slot-scope="scope">
  210. <div class="flex-box-ce" v-if="scope.row.mamage_record && scope.row.mamage_record.length > 0">
  211. <el-button type="text" class="flex-1" @click="openTrack(scope.row.planIndex)">({{ scope.row.mamage_record.length }}) 条管理记录</el-button>
  212. </div>
  213. <span v-else>-</span>
  214. </template>
  215. </el-table-column>
  216. <el-table-column v-for="(item, index) in lingScore_infos" :key="index" min-width="200" v-if="(item.poiSco || item.poicom) && isShowOneself(item)">
  217. <template slot="header" slot-scope="scope">
  218. <el-tooltip effect="dark" :content="item.title" placement="top">
  219. <span>
  220. <div class="font-flex-word">{{ item.title }}</div>
  221. </span>
  222. </el-tooltip>
  223. </template>
  224. <el-table-column prop="title" min-width="100" v-if="item.poiSco">
  225. <template slot="header" slot-scope="scope">
  226. <span>评分</span>
  227. </template>
  228. <template slot-scope="scope">
  229. <div v-for="(arr, att) in scope.row.score_infos" :key="att">
  230. <div v-if="arr.newKey == item.newKey">
  231. <span v-if="arr.employee_id == item.employee_id">
  232. {{ initData(arr.point) }}
  233. <span class="blue">{{ arr.level }}</span>
  234. </span>
  235. <span v-else>-</span>
  236. </div>
  237. </div>
  238. <span v-if="scope.row.score_infos ? scope.row.score_infos.length == 0 : ''">-</span>
  239. <!-- 总分分数 -->
  240. <span v-if="scope.row.toScore">{{ item.totalScore }}</span>
  241. </template>
  242. </el-table-column>
  243. <el-table-column prop="title" min-width="100" v-if="item.poicom">
  244. <template slot="header" slot-scope="scope">
  245. <span>说明</span>
  246. </template>
  247. <template slot-scope="scope">
  248. <div v-for="(arr, att) in scope.row.score_infos" :key="att">
  249. <div v-if="arr.newKey == item.newKey">
  250. <span v-if="arr.employee_id == item.employee_id"><PreBox :value="initData(arr.remark)"></PreBox></span>
  251. <span v-else>-</span>
  252. </div>
  253. </div>
  254. <span v-if="scope.row.score_infos ? scope.row.score_infos.length == 0 : ''">-</span>
  255. <span v-if="scope.row.toScore"><PreBox :value="item.comment"></PreBox></span>
  256. </template>
  257. </el-table-column>
  258. </el-table-column>
  259. <!-- 输入框 -->
  260. <template v-if="gradeBegin">
  261. <!-- 评分输入 -->
  262. <el-table-column min-width="150" fixed="right">
  263. <template slot="header" slot-scope="scope">
  264. <div>{{ scoreTab.title }}</div>
  265. </template>
  266. <template slot-scope="scope">
  267. <div v-if="thecurrentFlow == 'score_supervisor'">
  268. <el-input
  269. v-if="ruleScore == 1 && !scope.row.totalScore"
  270. :rows="1"
  271. @blur="sgradeBlur(scope.$index)"
  272. @input="
  273. [
  274. sgradeInp(scope.$index, scope.row),
  275. (scope.row.score_grade = scope.row.score_grade.match(/\d+(\.\d{0,2})?/) ? scope.row.score_grade.match(/\d+(\.\d{0,2})?/)[0] : '')
  276. ]
  277. "
  278. v-model="scope.row.score_grade"
  279. placeholder="请输入"
  280. ></el-input>
  281. <span v-else-if="ruleScore == 1 && scope.row.totalScore">{{ tabTotaScore }}</span>
  282. <el-input
  283. v-else-if="ruleScore == 2 && scope.row.totalScore"
  284. :rows="1"
  285. @input="
  286. [
  287. sgradeInp(scope.$index, scope.row),
  288. (scope.row.score_grade = scope.row.score_grade.match(/\d+(\.\d{0,2})?/) ? scope.row.score_grade.match(/\d+(\.\d{0,2})?/)[0] : '')
  289. ]
  290. "
  291. v-model="scope.row.score_grade"
  292. placeholder="请输入"
  293. ></el-input>
  294. <span v-else>-</span>
  295. </div>
  296. <div v-else>
  297. <span v-if="scope.row.totalScore">{{ tabTotaScore }}</span>
  298. <el-input
  299. v-else
  300. :rows="1"
  301. @blur="sgradeBlur(scope.$index)"
  302. @input="
  303. [
  304. sgradeInp(scope.$index, scope.row),
  305. (scope.row.score_grade = scope.row.score_grade.match(/\d+(\.\d{0,2})?/) ? scope.row.score_grade.match(/\d+(\.\d{0,2})?/)[0] : '')
  306. ]
  307. "
  308. v-model="scope.row.score_grade"
  309. placeholder="请输入"
  310. ></el-input>
  311. </div>
  312. </template>
  313. </el-table-column>
  314. <!-- 说明 -->
  315. <el-table-column min-width="150" fixed="right">
  316. <template slot="header" slot-scope="scope">
  317. <div>{{ scoreTab.explain }}</div>
  318. </template>
  319. <template slot-scope="scope">
  320. <div style="cursor: pointer;">
  321. <!-- 指标评分说明 -->
  322. <template v-if="ruleScore == 1 && !scope.row.totalScore">
  323. <div @click="showPf(scope.$index, 1)">
  324. <PreBox :value="scope.row.score_remark" v-if="scope.row.score_remark"></PreBox>
  325. <div v-else class="shuru">请输入</div>
  326. </div>
  327. </template>
  328. <!-- 总分说明 -->
  329. <template v-if="ruleScore == 2 && scope.row.totalScore">
  330. <div @click="showPf(scope.$index, 2)">
  331. <PreBox :value="scope.row.total_score_comment" v-if="scope.row.total_score_comment"></PreBox>
  332. <div v-else class="shuru">请输入</div>
  333. </div>
  334. </template>
  335. </div>
  336. </template>
  337. </el-table-column>
  338. </template>
  339. </TableBox>
  340. </div>
  341. <Record :record="record"></Record>
  342. </header>
  343. <footer class="footer flex-box-end" v-if="gradeBegin">
  344. <el-button @click="cancel">取消</el-button>
  345. <el-button class="primaryBtn" @click="save(0)">暂存</el-button>
  346. <el-button type="primary" @click="save(1)">提交评分</el-button>
  347. </footer>
  348. <!-- 上一个 下一个 -->
  349. <div class="upDown-box" v-if="isDisabled && !gradeBegin">
  350. <div class="flex-box-ce flex-center-center fontColorB" style="height: 60px;">
  351. <div class="flex-1 yellow" v-if="!up.employeeID" style="text-align: center;border-right: 1px solid #f1f1f1;">已无待办</div>
  352. <div class="flex-1 flex-box-ce flex-center-center up-item" v-else style="border-right: 1px solid #f1f1f1;" @click="qieh(1)">
  353. <userImage :user_name="up.name" :img_url="up.img_url" width="40px" height="40px" fontSize="12"></userImage>
  354. <div class="upName font-flex-word">{{ up.name }}</div>
  355. <div>上一个</div>
  356. </div>
  357. <div class="flex-1 yellow" v-if="!down.employeeID" style="text-align: center;">已无待办</div>
  358. <div class="flex-1 flex-box-ce flex-center-center up-item" v-else @click="qieh(2)">
  359. <div>下一个</div>
  360. <div class="upName font-flex-word">{{ down.name }}</div>
  361. <userImage :user_name="down.name" :img_url="down.img_url" width="40px" height="40px" fontSize="12"></userImage>
  362. </div>
  363. </div>
  364. </div>
  365. <!-- 流程详情 -->
  366. <BrawerBox :drawerTitle="processDel.remarkDel + proNum" :footNo="false" :showDrawer.sync="isChecks">
  367. <template slot="main">
  368. <div class="processSty">
  369. <div v-for="(item, index) in processDel.target" :key="index" class="flex-box flex-d-center proListSty">
  370. <div style="width:230px;" class="flex-box flex-d-center flex-h-ce">
  371. <div>
  372. <userImage class="fl" :id="item.employee_id" :user_name="item.employee_name" width="30px" height="30px" fontSize="12"></userImage>
  373. <span class="proName">{{ item.employee_name }}</span>
  374. </div>
  375. <el-tag v-if="processDel.status == 0" size="mini" type="warning" color="#ffe7d3" style="color:#ff8d00;">流程未到</el-tag>
  376. <!-- 针对任一人处理了,其他人显示无需处理 -->
  377. <template v-else-if="item.status == 1">
  378. <template v-if="processDel.multi_executor == 2 && getStrus()">
  379. <el-tag size="mini">无需处理</el-tag>
  380. </template>
  381. <template v-else>
  382. <el-tag size="mini">处理中</el-tag>
  383. </template>
  384. </template>
  385. <el-tag v-else-if="item.status == 2" size="mini" type="success">已处理</el-tag>
  386. </div>
  387. <!-- 主子管理员 并且当前节点里包括登录者-->
  388. <template v-if="$getRole(1) || item.employee_id == userInfo.id">
  389. <template v-if="processDel.code == 'score_supervisor' || processDel.code == 'special_scorer'">
  390. <!-- 指定评分人节点 -->
  391. <template v-if="processDel.code == 'score_supervisor'">
  392. <el-button v-if="transferBut && item.status == 1 && (processDel.transfer || $getRole(1))" class="proButt" @click="careOf(item)">转交</el-button>
  393. </template>
  394. <!-- 特定指标指定评分人,因为默认是可以转交的,所有没有 transfer 字段 -->
  395. <template v-else>
  396. <el-button v-if="transferBut && item.status == 1" class="proButt" @click="careOf(item)">转交</el-button>
  397. </template>
  398. </template>
  399. <template v-else-if="processDel.code == 'review' || processDel.code == 'confirm'">
  400. <el-button
  401. v-if="transferBut && item.status == 1 && (processDel.action.indexOf('transfer') >= 0 || $getRole(1))"
  402. class="proButt"
  403. @click="careOf(item)"
  404. >
  405. 转交
  406. </el-button>
  407. </template>
  408. <template v-else>
  409. <el-button v-if="transferBut && item.status == 1" class="proButt" @click="careOf(item)">转交</el-button>
  410. </template>
  411. </template>
  412. </div>
  413. </div>
  414. </template>
  415. </BrawerBox>
  416. <!-- 审批同意 -->
  417. <el-dialog title="意见说明" :visible.sync="examineConsent" width="500px" :close-on-click-modal="false">
  418. <el-input type="textarea" v-model="tDownList.comment" rows="4" placeholder="请输入意见说明(选填)"></el-input>
  419. <span slot="footer" class="dialog-footer">
  420. <el-button @click="tDlose(1)">取 消</el-button>
  421. <el-button type="primary" @click="tDownOk(1)">确 定</el-button>
  422. </span>
  423. </el-dialog>
  424. <!--驳回评分 -->
  425. <BrawerBox drawerTitle="驳回评分" :showDrawer.sync="turnDown">
  426. <template slot="main">
  427. <el-form label-position="top" label-width="80px" :rules="rFlowRules" :model="tDownList" ref="tDownList" class="elFrom-margin">
  428. <el-form-item label="重置到" prop="node_id">
  429. <el-select v-model="tDownList.node_id" clearable placeholder="请选择阶段" style="width:100%;">
  430. <el-option v-for="item in rFlowArrive" :key="item.value" :label="item.label" :value="item.value"></el-option>
  431. </el-select>
  432. <el-select v-if="rUsers.length > 0" multiple v-model="tDownList.employee_id" clearable placeholder="请选择重置人员" style="width:100%;margin-top: 10px;">
  433. <el-option v-for="item in rUsers" :key="item.value" :label="item.label" :value="item.value"></el-option>
  434. </el-select>
  435. </el-form-item>
  436. <el-form-item label="驳回说明" :required="true">
  437. <el-input type="textarea" rows="7" placeholder="请输入驳回意见(必填)" v-model="tDownList.comment"></el-input>
  438. </el-form-item>
  439. </el-form>
  440. </template>
  441. <template slot="footer">
  442. <el-button plain size="" @click="tDlose(0)">取消</el-button>
  443. <el-button type="primary" @click="tDownOk(0, 'tDownList')">确认</el-button>
  444. </template>
  445. </BrawerBox>
  446. <!-- 重置流程 -->
  447. <BrawerBox drawerTitle="重置流程" :showDrawer.sync="resetFlow">
  448. <template slot="main">
  449. <el-form label-position="top" :rules="rFlowRules" :model="rFlowList" ref="rFlowList" label-width="80px" class="elFrom-margin">
  450. <el-form-item label="操作">
  451. <el-radio-group v-model="rFlowList.type">
  452. <el-radio :label="1">把流程重置到指定节点</el-radio>
  453. <el-radio :label="2">读取最新的考核模板并重置流程</el-radio>
  454. </el-radio-group>
  455. </el-form-item>
  456. <div v-if="rFlowList.type == 2" style="color: #666;font-size: 12px;position: relative;top: -20px;" class="red">确认后流程将重新开始,回到最开始的节点</div>
  457. <el-form-item label="指标处理" v-if="rFlowList.type == 2">
  458. <el-radio-group v-model="rFlowList.overwrite_mode">
  459. <el-radio :label="2">保留已制定指标</el-radio>
  460. <el-radio :label="1">重置指标</el-radio>
  461. </el-radio-group>
  462. </el-form-item>
  463. <el-form-item label="指定节点" prop="node_id" v-if="rFlowList.type == 1">
  464. <el-select v-model="rFlowList.node_id" clearable placeholder="请选择阶段" style="width:100%;">
  465. <el-option v-for="item in rFlowArrive" :key="item.value" :label="item.label" :value="item.value"></el-option>
  466. </el-select>
  467. <el-select v-if="rUsers.length > 0" multiple v-model="rFlowList.employee_id" clearable placeholder="请选择重置人员" style="width:100%;margin-top: 10px;">
  468. <el-option v-for="item in rUsers" :key="item.value" :label="item.label" :value="item.value"></el-option>
  469. </el-select>
  470. </el-form-item>
  471. <el-form-item label="说明" prop="comment">
  472. <el-input type="textarea" rows="6" placeholder="请输入说明(必填)" v-model="rFlowList.comment" maxlength="200" show-word-limit></el-input>
  473. </el-form-item>
  474. </el-form>
  475. </template>
  476. <template slot="footer">
  477. <el-button plain @click="resetFlow = false">取消</el-button>
  478. <el-button type="primary" @click="rFlowOk('rFlowList')">确认</el-button>
  479. </template>
  480. </BrawerBox>
  481. <!-- 跟踪管理 -->
  482. <TrackManagement
  483. :showDrawer.sync="isTrack"
  484. :isCz="!isCzData"
  485. :recordMemberIds="recordMemberIds"
  486. :id="employeeID"
  487. :apList="apList"
  488. :assessId="employID"
  489. @confirm="employeeDet"
  490. :planIndex="planIndex"
  491. ></TrackManagement>
  492. <!-- 执行计划 -->
  493. <ActionPlan :showDrawer.sync="isPlan" :isCz="!isCzData" :id="employeeID" :apList="apList" :assessId="employID" @confirm="employeeDet" :planIndex="planIndex"></ActionPlan>
  494. <!-- 沟通反馈 -->
  495. <BrawerBox drawerTitle="沟通反馈" :showDrawer.sync="communication">
  496. <template slot="main">
  497. <el-input type="textarea" v-model="communicationVal" rows="10" placeholder="请输入反馈内容(必填)" maxlength="200" show-word-limit></el-input>
  498. <div style="height: 20px;"></div>
  499. <el-checkbox v-model="ding_msg" :true-label="1" :false-label="0">发送钉钉通知</el-checkbox>
  500. <div class="aite" @click="selectUser = true">@</div>
  501. <el-tag style="margin: 0 5px;" v-for="(tag, index) in tags" :key="tag.id" closable @close="handleClose(tag, index)">{{ tag.name }}</el-tag>
  502. </template>
  503. <template slot="footer">
  504. <span class="dialog-footer">
  505. <el-button @click="communication = false">取 消</el-button>
  506. <el-button type="primary" @click="saveCommunication()">确 定</el-button>
  507. </span>
  508. </template>
  509. </BrawerBox>
  510. <!-- 沟通反馈 -->
  511. <EmployeeSelector title="选择@人员" :is_filtration_creator="false" :visible.sync="selectUser" @confirm="confirmCreator" />
  512. <!-- 转交 -->
  513. <EmployeeSelector title="选择人员" :is_filtration_creator="false" :multi="false" :isChecKedAll="false" :visible.sync="careOfSelector" @confirm="confirmcareOf" />
  514. <!-- 评分说明 -->
  515. <el-dialog title="评分说明" :visible.sync="isShowPf" width="500px" :close-on-click-modal="false">
  516. <el-input type="textarea" v-model="pfText" rows="4" placeholder="请输入评分说明" maxlength="100" show-word-limit></el-input>
  517. <span slot="footer" class="dialog-footer">
  518. <el-button @click="isShowPf = false">取 消</el-button>
  519. <el-button type="primary" @click="updateText()">确 定</el-button>
  520. </span>
  521. </el-dialog>
  522. <!-- 重新评分操作 -->
  523. <el-dialog title="重新评分" :visible.sync="isShowCx" width="500px" :close-on-click-modal="false">
  524. <el-input type="textarea" v-model="cxText" rows="4" placeholder="请输入重新评分理由" maxlength="200" show-word-limit></el-input>
  525. <span slot="footer" class="dialog-footer">
  526. <el-button @click="isShowCx = false">取 消</el-button>
  527. <el-button type="primary" @click="revocation()">确 定</el-button>
  528. </span>
  529. </el-dialog>
  530. <!-- 调整目标反馈 -->
  531. <el-dialog title="调整目标" :visible.sync="isAdjustment" :close-on-click-modal="false" width="700px">
  532. <div>
  533. <el-radio-group v-model="radio">
  534. <div class="flex-box-v">
  535. <el-radio :label="1" style="margin-bottom: 30px;">
  536. 仅修改指标内容,不重置流程
  537. <br />
  538. <span style="font-size: 12px;color: #C0C4CF;padding-left: 25px;padding-top: 5px;">不影响进行中的考核流程,只对指标内容和信息进行修改</span>
  539. </el-radio>
  540. <el-radio :label="2">
  541. 修改指标,并重置考核流程
  542. <br />
  543. <span style="font-size: 12px;color: #C0C4CF;padding-left: 25px;">修改指标并按照新的流程来进行考核,已评分和已审批的记录也会被重置</span>
  544. </el-radio>
  545. >
  546. </div>
  547. </el-radio-group>
  548. </div>
  549. <span slot="footer">
  550. <el-button @click="isAdjustment = false">取消</el-button>
  551. <el-button type="primary" @click="setDataAccess">确定</el-button>
  552. </span>
  553. </el-dialog>
  554. <!-- 评分确认 -->
  555. <el-dialog title="请确认您的评分" :visible.sync="isPoint" :close-on-click-modal="false" width="700px">
  556. <div>
  557. <el-table :data="pointList" :header-cell-style="{ background: '#ECF5FF' }" border>
  558. <el-table-column prop="name" min-width="150" label="指标">
  559. <template slot="header" slot-scope="scope">
  560. <span>
  561. 指标(
  562. <span style="color:#ff9600;">每项指标评分</span>
  563. )
  564. </span>
  565. </template>
  566. </el-table-column>
  567. <!-- <el-table-column prop="score_remark" label="评分说明"></el-table-column> -->
  568. <el-table-column prop="score" label="评分" align="left"></el-table-column>
  569. </el-table>
  570. </div>
  571. <span slot="footer">
  572. <el-button @click="isPoint = false">返回修改</el-button>
  573. <el-button type="primary" @click="score">确定</el-button>
  574. </span>
  575. </el-dialog>
  576. </div>
  577. </template>
  578. <script>
  579. import BrawerBox from '@/components/public/BrawerBox';
  580. import PageHead from '@/components/public/PageHead'; //头部---返回
  581. import Record from '@/components/public/Record';
  582. import ActionPlan from '@/components/public/ActionPlan';
  583. import TableBox from '@/components/public/TableBox';
  584. import TrackManagement from '@/components/public/TrackManagement';
  585. import EmployeeSelector from '@/components/public/EmployeeSelector';
  586. export default {
  587. name: 'staffAssDet',
  588. components: {
  589. PageHead,
  590. BrawerBox,
  591. Record,
  592. ActionPlan,
  593. TableBox,
  594. TrackManagement,
  595. EmployeeSelector
  596. },
  597. data() {
  598. return {
  599. radio: 1,
  600. isAdjustment: false,
  601. gradeList: [],
  602. dropdownMenu: [{ key: 'a', name: '重置流程', isShow: true }, { key: 'b', name: '调整目标', isShow: true }],
  603. lingScore_infos: [],
  604. staffLoad: false, //loading
  605. tableLoad: false, //loading
  606. execution: '目标制定并确认完毕后,进入到【执行中】阶段,期间员工执行计划,上级跟踪过程。管理员可以点击【开始评分】后,进入结果数据收集和评分阶段',
  607. isChecks: false, //侧边弹窗
  608. headvalue: '',
  609. headoptions: [],
  610. employeeID: 0, //考核记录ID
  611. employID: 0, //当前角色ID
  612. empDetList: {},
  613. remployee: {}, //被考核人员信息
  614. flow: [], //步骤
  615. atPresentFlow: 0, //当前步骤ID
  616. dimension: [], //维度表格信息
  617. config: {}, //配置
  618. tableData: [],
  619. communication: false, //沟通
  620. communicationVal: '',
  621. tags: [], //沟通@人员
  622. selectUser: false,
  623. nowFLow: '', //当前的流程
  624. turnDown: false, //驳回开关
  625. tDownArrive: [], //驳回到--数据
  626. tDownList: {
  627. node_id: '', //重置到某个节点,
  628. employee_id: [], //重置到节点的某个用户 0表示驳回到节点
  629. comment: '' //审核意见
  630. },
  631. userInfo: this.$getUserData(),
  632. processDel: {}, //流程侧边栏
  633. proNum: '', //流程侧边栏头部
  634. calc_dimension: 0, //是否参与权重
  635. revocationNodeId: 1, //撤销节点ID
  636. isShowCx: false,
  637. cxText: '',
  638. //按钮显示隐藏
  639. revocationShow: false, //是否可以撤销
  640. gradeButShow: false, //评分
  641. actionButShow: true, //执行计划
  642. recordsManagement: true, //管理记录
  643. examineButShow: false, //审批
  644. isAction: false, //驳回控制
  645. resultButShow: false, //结果值录入
  646. gradeBegin: false, //评分确定
  647. scoreTab: {}, //评分表头
  648. record: [], //考核记录
  649. planIndex: [], //执行计划的下标,当点击表格查看时用到
  650. apList: [], //执行计划数据
  651. isPlan: false, //计划弹窗
  652. // 重置流程
  653. resetFlow: false,
  654. rFlowArrive: [], //重置节点数据
  655. rUsers: [], //重置用户数据
  656. rFlowList: {
  657. type: 1, //重置类型 1 流程内重置 2 重读维度流程 重置
  658. node_id: '', //重置到某个节点, (type 1 必填)
  659. employee_id: [], //重置到节点的某个用户 0表示驳回到节点 (type 1 必填)
  660. overwrite_mode: 2, //1 从原来考核表覆写,2 从个人考核包重置 (type 2 必填)
  661. comment: '' //审核意见
  662. },
  663. rFlowRules: {
  664. node_id: [{ required: true, message: '请选择重置节点', trigger: 'change' }],
  665. comment: [{ required: true, message: '请填写重置说明', trigger: 'blur' }]
  666. },
  667. feedbackBut: false, //沟通反馈按钮
  668. isTrack: false, //跟踪管理
  669. weight: '指标权重(0%)',
  670. packageName: '', //考核包名称 结果值录入用到
  671. ruleScore: 1, //1-指标均要评分 2-评分总结
  672. thecurrentFlow: '', //当前节点
  673. tabTotaScore: 0, //表格展示的总分
  674. mandatoryScore: false, //指标说明是否必填
  675. mandatoryNote: false, //总分说明是否必填(暂不做)
  676. scoreInfo: [], //各个节点的人评的总分
  677. examineConsent: false, //审批
  678. transferBut: false, //转交按钮
  679. careOfSelector: false, //转交选人
  680. careOfPeopleId: 0, //转交的 -- 转出ID
  681. isCs: false, //是否抄送人进入(抄送人能看到全部评分内容)
  682. isShowTargetBtn: false, // 目标制定相关
  683. isShowConfirmBtn: false, //目标确认按钮
  684. isUpdateIndex: false, //确认人是否允许修改指标
  685. has_finish: false, //是否归档
  686. // 评分说明弹窗
  687. isShowPf: false,
  688. pfText: '',
  689. indexText: {
  690. //定位评分说明
  691. e: 0,
  692. index: 0
  693. },
  694. isShowOneselfScore: false, //是否只看自己的评分内容
  695. // 控制上下
  696. isDisabled: false,
  697. up: {},
  698. down: {},
  699. package_id: '',
  700. recordMemberIds: [],
  701. pendingList: '',
  702. page: 1,
  703. isJz: true,
  704. activeName: '', //待办带进来的节点类型
  705. // 评分确认列表
  706. pointList: [],
  707. pointData: {},
  708. isPoint: false,
  709. publicity: 0,
  710. isSuperior: false,
  711. ding_msg:0
  712. };
  713. },
  714. computed: {
  715. isCzData() {
  716. if (this.gradeBegin) {
  717. return true;
  718. }
  719. if (this.has_finish) {
  720. return true;
  721. }
  722. return false;
  723. },
  724. isShowOneself() {
  725. return function(value) {
  726. if (!this.isShowOneselfScore) {
  727. if (value.employee_id == this.userInfo.id) {
  728. return true;
  729. } else {
  730. return false;
  731. }
  732. } else {
  733. return true;
  734. }
  735. };
  736. }
  737. },
  738. watch: {
  739. isAdjustment(val) {
  740. if (!val) {
  741. this.radio = 1;
  742. }
  743. },
  744. isShowOneselfScore() {
  745. this.tableLoad = true;
  746. setTimeout(() => {
  747. this.tableLoad = false;
  748. }, 500);
  749. },
  750. examineConsent(val) {
  751. if (!val) {
  752. this.tDownList = {
  753. node_id: '', //重置到某个节点,
  754. employee_id: [], //重置到节点的某个用户 0表示驳回到节点
  755. comment: '' //审核意见
  756. };
  757. }
  758. },
  759. isChecks(val) {
  760. if (!val) {
  761. this.transferBut = false;
  762. }
  763. },
  764. headvalue(id) {
  765. this.headoptions.some(item => {
  766. if (item.id == id) {
  767. this.packageName = item.name;
  768. return true;
  769. }
  770. });
  771. // let data = {
  772. // //缓存的数据用于录入结果后返回页面复原数据
  773. // employeeID: this.employeeID,
  774. // employID: this.employID,
  775. // assID: id
  776. // };
  777. // this.$setCache('staffAssDet', data);
  778. if (this.pendingList) {
  779. this.employeeDet();
  780. } else {
  781. this.employeeDet(true);
  782. }
  783. },
  784. resetFlow(val) {
  785. if (!val) {
  786. this.rFlowList = {
  787. type: 1, //重置类型 1 流程内重置 2 重读维度流程 重置
  788. node_id: '', //重置到某个节点, (type 1 必填)
  789. employee_id: [], //重置到节点的某个用户 0表示驳回到节点 (type 1 必填)
  790. overwrite_mode: 1, //1 从原来考核表覆写,2 从个人考核包重置 (type 2 必填)
  791. comment: '' //审核意见
  792. };
  793. this.$nextTick(() => {
  794. this.$refs.rFlowList.resetFields();
  795. });
  796. }
  797. },
  798. 'rFlowList.node_id'(val) {
  799. if (!val) {
  800. this.rUsers = [];
  801. return false;
  802. }
  803. this.rFlowArrive.some(item => {
  804. if (val == item.id) {
  805. let users = [];
  806. item.target.map(item2 => {
  807. if (item2.status == 2) {
  808. users.push({ value: item2.employee_id, label: item2.employee_name });
  809. }
  810. });
  811. this.rUsers = users;
  812. return true;
  813. }
  814. });
  815. },
  816. 'tDownList.node_id'(val) {
  817. if (!val) {
  818. this.rUsers = [];
  819. return false;
  820. }
  821. this.rFlowArrive.some(item => {
  822. if (val == item.id) {
  823. let users = [];
  824. item.target.map(item2 => {
  825. if (item2.status == 2) {
  826. users.push({ value: item2.employee_id, label: item2.employee_name });
  827. }
  828. });
  829. this.rUsers = users;
  830. return true;
  831. }
  832. });
  833. },
  834. flow(val) {
  835. //重置要用到
  836. let executionIndex = 0; //执行中下标
  837. let targetIndex = 0; //目标下标(处理中的)
  838. let isNoe = true; //是否完成了整个流程
  839. val.forEach((item, index) => {
  840. item.index = index + 1;
  841. if (item.status == 1) {
  842. targetIndex = index;
  843. isNoe = false;
  844. }
  845. });
  846. if (targetIndex == 0 && isNoe) {
  847. //当流程执行完会是0
  848. targetIndex = val.length;
  849. }
  850. let rFlowArrive = val.slice(executionIndex, targetIndex);
  851. // 过滤掉 抄送与执行中节点,还有节点人员为空的节点
  852. var arrs = [];
  853. rFlowArrive.forEach((item, index) => {
  854. item.value = item.id;
  855. item.label = item.index + '.' + item.remarks;
  856. if (item.code == 'cc' || item.code == 'execution' || item.target.length == 0) {
  857. return;
  858. }
  859. arrs.push(item);
  860. });
  861. this.rFlowArrive = arrs;
  862. },
  863. communication(val) {
  864. if (!val) {
  865. this.tags = [];
  866. this.communicationVal = '';
  867. }
  868. },
  869. isFlow(val) {
  870. if (!val) {
  871. this.target = [];
  872. }
  873. },
  874. isShowPf(val) {
  875. if (!val) {
  876. this.pfText = '';
  877. this.indexText = { e: 0, index: 0 };
  878. }
  879. }
  880. },
  881. created() {
  882. // let staffAssDet = this.$getCache('staffAssDet'); //缓存的数据
  883. // if (staffAssDet) {
  884. // this.employeeID = staffAssDet.employeeID; //个人记录ID
  885. // this.employID = staffAssDet.employID; //被考核人ID
  886. // this.assList(staffAssDet.assID);
  887. // } else {
  888. this.employeeID = Number(this.$route.query.employeeID); //个人记录ID
  889. this.employID = Number(this.$route.query.employeeIDs); //被考核人ID
  890. this.assList(this.$route.query.assID);
  891. // }
  892. // 是否显示上下人
  893. if (this.$route.query.pendingList) {
  894. this.pendingList = JSON.parse(this.$route.query.pendingList);
  895. this.activeName = this.$route.query.activeName;
  896. this.page = this.$route.query.page || 1;
  897. this.isDisabled = true;
  898. } else {
  899. this.isDisabled = false;
  900. this.activeName = '';
  901. }
  902. },
  903. methods: {
  904. openImg(item) {
  905. let corpId = this.$getCache('corpId');
  906. let loading = this.$loading({
  907. lock: true,
  908. text: 'Loading',
  909. spinner: 'el-icon-loading'
  910. });
  911. if (item) {
  912. this.$axios('get', 'api/drive/grant', { file_id: item.fileId })
  913. .then(res => {
  914. this.$dd.ready(() => {
  915. this.$dd.biz.cspace.preview({
  916. corpId: corpId,
  917. spaceId: item.spaceId,
  918. fileId: item.fileId,
  919. fileName: item.fileName,
  920. fileSize: item.fileSize,
  921. fileType: item.fileType,
  922. onSuccess: function(res) {
  923. console.log(JSON.stringify(res));
  924. },
  925. onFail: function(err) {
  926. console.log(JSON.stringify(err));
  927. }
  928. });
  929. });
  930. })
  931. .finally(() => {
  932. loading.close();
  933. });
  934. }
  935. },
  936. // 获取待办数据
  937. getAgency() {
  938. if (!this.isJz) {
  939. return false;
  940. }
  941. this.page = this.page + 1;
  942. this.$axios('get', '/api/per/package/msg/agency', { node_type: this.activeName, status: 0, page: this.page, page_size: 10 }).then(res => {
  943. let list = res.data.data.list;
  944. let pendingList = [];
  945. list.forEach(item => {
  946. if (item.remark.employee_id) {
  947. //被考核人
  948. let userInfo = this.$getEmployeeList()[item.remark.employee_id];
  949. item.userInfo = userInfo;
  950. pendingList.push({ name: userInfo.name, img_url: userInfo.img_url, employeeID: item.remark.packageEmployee_id, package_name: item.remark.package_name });
  951. }
  952. });
  953. if (list.length < 10) {
  954. this.isJz = false;
  955. }
  956. this.pendingList.push(...pendingList);
  957. });
  958. },
  959. //撤销
  960. revocation() {
  961. let params = {
  962. id: this.employeeID,
  963. node_id: this.revocationNodeId,
  964. comment: this.cxText
  965. };
  966. this.$axios('post', '/api/per/package/revoke', params)
  967. .then(res => {
  968. if (res.data.code == 1) {
  969. this.$message.success('撤销成功');
  970. this.employeeDet();
  971. }
  972. })
  973. .finally(() => {
  974. this.isShowCx = false;
  975. this.cxText = '';
  976. });
  977. },
  978. // 判断是否能点击列表打开管理记录
  979. isShowGl() {
  980. if ((this.$getRole(2) || this.$getRole(3)) && this.recordMemberIds.indexOf(this.$getUserData().id) >= 0) {
  981. return false;
  982. } else {
  983. return true;
  984. }
  985. },
  986. qieh(index) {
  987. this.employeeID = index == 1 ? this.up.employeeID : this.down.employeeID;
  988. this.employeeDet('', () => {
  989. let data = {
  990. //缓存的数据用于录入结果后返回页面复原数据
  991. employeeID: this.employeeID,
  992. employID: this.remployee.id,
  993. assID: this.package_id
  994. };
  995. this.$setCache('staffAssDet', data);
  996. });
  997. },
  998. updateText() {
  999. let list = this.dimension[this.indexText.e];
  1000. this.indexText.index == 1 ? (list.score_remark = this.pfText) : (list.total_score_comment = this.pfText);
  1001. this.$set(this.dimension, this.indexText.e, list);
  1002. this.isShowPf = false;
  1003. },
  1004. // 填写评分说明
  1005. showPf(e, index) {
  1006. let list = this.dimension[e];
  1007. let text = index == 1 ? list.score_remark : list.total_score_comment; //判断是指标说明,还是总分说明
  1008. this.indexText = { e: e, index: index };
  1009. this.pfText = text;
  1010. this.isShowPf = true;
  1011. },
  1012. // 目标确认-提交
  1013. submit() {
  1014. this.$confirm('请确认提交制定的指标,提交后不能再自行修改!', '提示', {
  1015. confirmButtonText: '确定',
  1016. cancelButtonText: '取消'
  1017. })
  1018. .then(() => {
  1019. let data = {
  1020. id: this.employeeID,
  1021. node_id: this.atPresentFlow,
  1022. submit: 1,
  1023. dimension: JSON.stringify(this.apList)
  1024. };
  1025. this.$axios('post', '/api/per/package/target_set', data).then(res => {
  1026. if (res.data.code == 1) {
  1027. this.$message.success('提交成功');
  1028. this.employeeDet();
  1029. }
  1030. });
  1031. })
  1032. .catch(() => {
  1033. console.log('取消');
  1034. });
  1035. },
  1036. // 判断是否当前被考核人的上级
  1037. getSuperior() {
  1038. this.$axios('get', '/api/per/user/manager_list', { id_code: this.$returnCode(this.remployee.id) }).then(res => {
  1039. let superiorList = res.data.data; //被考核人上级
  1040. superiorList.some(item => {
  1041. if (item.id == this.userInfo.id) {
  1042. this.isSuperior = true;
  1043. return true;
  1044. }
  1045. });
  1046. });
  1047. },
  1048. //判断当有一个人完成,其他显示无需操作
  1049. getStrus() {
  1050. let is = false;
  1051. if (this.processDel.multi_executor == 2) {
  1052. this.processDel.target.some(item => {
  1053. if (item.status == 2) {
  1054. is = true;
  1055. return true;
  1056. }
  1057. });
  1058. return is;
  1059. } else {
  1060. return false;
  1061. }
  1062. },
  1063. //转交
  1064. careOf(data) {
  1065. this.careOfPeopleId = data.employee_id;
  1066. this.careOfSelector = true;
  1067. },
  1068. //转交选人
  1069. confirmcareOf(list) {
  1070. let data = {
  1071. id: this.employeeID, //个人考核记录ID
  1072. node_id: this.processDel.id, //节点ID
  1073. to_employee_id_code: this.$returnCode(list.employee[0].id), //接收用户ID
  1074. from_employee_id_code: this.$returnCode(this.careOfPeopleId) //转出用户ID
  1075. };
  1076. this.$axios('post', '/api/per/package/transfer', data).then(res => {
  1077. if (res.data.code == 1) {
  1078. this.$message.success('转交成功');
  1079. this.isChecks = false;
  1080. this.employeeDet();
  1081. }
  1082. });
  1083. },
  1084. // 打开结果值录入
  1085. openResult() {
  1086. this.$router.push({
  1087. name: 'resultSet',
  1088. query: { id: this.employeeID, packageName: this.packageName }
  1089. });
  1090. },
  1091. // 打开目标制定
  1092. openFormulate() {
  1093. this.$router.push({
  1094. name: 'formulate',
  1095. query: { id: this.employeeID, packageName: this.packageName, nodeId: this.atPresentFlow }
  1096. });
  1097. },
  1098. //打开管理记录
  1099. openTrack(index) {
  1100. this.planIndex = index;
  1101. this.isTrack = true;
  1102. },
  1103. //打开执行计划
  1104. openPlan(index) {
  1105. this.planIndex = index;
  1106. this.isPlan = true;
  1107. },
  1108. //评分--取消
  1109. cancel() {
  1110. this.$confirm('是否暂存当前页面内容?', '提示', {
  1111. confirmButtonText: '暂存',
  1112. cancelButtonText: '不暂存'
  1113. })
  1114. .then(() => {
  1115. this.save(0);
  1116. })
  1117. .catch(() => {
  1118. this.employeeDet();
  1119. this.gradeBegin = false;
  1120. });
  1121. },
  1122. //评分提交
  1123. save(num) {
  1124. let data = {
  1125. id: this.employeeID, //个人考核包ID
  1126. is_submit: num, //是否提交 0否(暂存) 1 是
  1127. node_id: this.atPresentFlow //当前节点
  1128. };
  1129. let point_info = []; //各项评分数据
  1130. let sumData = {
  1131. //总分数据
  1132. total_score: '',
  1133. total_score_comment: ''
  1134. };
  1135. this.dimension.forEach(item => {
  1136. let resultInfo = {};
  1137. if (this.ruleScore == 1 && !item.totalScore) {
  1138. //各项评分
  1139. resultInfo = {
  1140. //评分信息--只评总分不需要
  1141. score: item.score_grade ? item.score_grade : '', //单项目结果值
  1142. score_remark: item.score_remark,
  1143. dimension_key: item.dimension_key, //维度索引
  1144. index_key: item.index_key, //指标索引
  1145. index_id: item.id, //指标ID
  1146. name: item.name,
  1147. // 用于计算分数
  1148. d_weight: item.dimension_weight, //维度权重
  1149. weight: item.weight, //指标权重
  1150. type: item.type //所属指标种类 1-量化指标 2-行为价值观指标 3-额外加分项 4-额外扣分项
  1151. };
  1152. point_info.push(resultInfo);
  1153. } else {
  1154. //等于2:只评总分
  1155. if (item.totalScore) {
  1156. sumData = {
  1157. total_score: item.score_grade ? item.score_grade : '',
  1158. total_score_comment: item.total_score_comment
  1159. };
  1160. }
  1161. }
  1162. });
  1163. let isMust = true,isExplain = true; //isMust验证评分,isExplain验证说明
  1164. if (num == 1) {
  1165. //提交验证必填
  1166. if (this.ruleScore == 1) {
  1167. //各项评分
  1168. point_info.forEach(item => {
  1169. if (this.mandatoryScore) {
  1170. //评分说明必填
  1171. if (!item.score_remark) {
  1172. isExplain = false;
  1173. }
  1174. }
  1175. if (!item.score) {
  1176. isMust = false;
  1177. }
  1178. });
  1179. if (!isMust) {
  1180. this.$message.warning('请输入所有评分');
  1181. return false;
  1182. }
  1183. if (!isExplain) {
  1184. this.$message.warning('请输入所有评分说明');
  1185. return false;
  1186. }
  1187. } else {
  1188. //总分
  1189. if (!sumData.total_score) {
  1190. this.$message.warning('请输入评分总分');
  1191. return false;
  1192. }
  1193. if (this.mandatoryScore) {
  1194. if (!sumData.total_score_comment){
  1195. this.$message.warning('请输入总分说明');
  1196. return false;
  1197. }
  1198. }
  1199. }
  1200. }
  1201. if (this.ruleScore == 1) {
  1202. data.total_score = this.fomatFloat(this.totalPointsCount(point_info), 2); //计算的个人评出的总分(保留小数后两位)
  1203. } else {
  1204. data.total_score = this.fomatFloat(sumData.total_score, 2); //计算的个人评出的总分(保留小数后两位)
  1205. data.total_score_comment = sumData.total_score_comment;
  1206. }
  1207. data.point_info = JSON.stringify(point_info); // 评分信息 -- 填所有评分时必须的字段(传入某指标的分数、说明、维度索引、制表索引、指标ID)
  1208. data.num=num;//判断是暂存还是提交
  1209. let pointList = JSON.parse(JSON.stringify(point_info));
  1210. pointList.push({
  1211. name: '总分',
  1212. score: data.total_score,
  1213. score_remark: data.total_score_comment
  1214. });
  1215. this.pointList = pointList;
  1216. this.pointData = data;
  1217. if (this.ruleScore == 1&&num) {
  1218. //只评总分不需要弹窗
  1219. this.isPoint = true;
  1220. } else {
  1221. this.score();
  1222. }
  1223. },
  1224. score() {
  1225. this.$axios('post', '/api/per/package/submit_score', this.pointData).then(res => {
  1226. this.$message.success(this.pointData.num==0? '暂存成功':'评分成功');
  1227. this.gradeBegin = false;
  1228. this.isPoint = false;
  1229. this.employeeDet();
  1230. });
  1231. },
  1232. fomatFloat(src, pos) {
  1233. return Math.round(src * Math.pow(10, pos)) / Math.pow(10, pos);
  1234. },
  1235. //计算总分
  1236. totalPointsCount(data) {
  1237. let ct = this.empDetList.calc_type; //1-加和计算 2-加权计算
  1238. let cd = this.empDetList.calc_dimension; //是否维度权重参与计算 1-是 0-否
  1239. let num = 0;
  1240. data.forEach(item => {
  1241. if (item.score) {
  1242. if (item.type == 3) {
  1243. //3-额外加分项
  1244. num += Number(item.score);
  1245. } else if (item.type == 4) {
  1246. //4-额外扣分项 不计算
  1247. num -= Number(item.score);
  1248. } else {
  1249. if (ct == 1 && cd == 0) {
  1250. //加和
  1251. num += Number(item.score);
  1252. } else if (ct == 1 && cd == 1) {
  1253. //加和--维度权重参与计算
  1254. num += Number(item.score) * Number(item.d_weight / 100);
  1255. } else if (ct == 2 && cd == 0) {
  1256. //加权
  1257. num += Number(item.score) * Number(item.weight / 100);
  1258. } else if (ct == 2 && cd == 1) {
  1259. //加权--维度权重参与计算
  1260. num += Number(item.score) * Number(item.d_weight / 100) * Number(item.weight / 100);
  1261. }
  1262. }
  1263. }
  1264. });
  1265. return num;
  1266. },
  1267. sgradeBlur(e) {
  1268. let list = this.dimension[e];
  1269. let tPoints = [];
  1270. this.dimension.forEach(item => {
  1271. if (item.score_grade) {
  1272. tPoints.push({
  1273. score: item.score_grade, //分值
  1274. d_weight: item.dimension_weight, //维度权重
  1275. weight: item.weight, //指标权重
  1276. type: item.type //所属指标种类 1-量化指标 2-行为价值观指标 3-额外加分项 4-额外扣分项
  1277. });
  1278. }
  1279. });
  1280. this.tabTotaScore = this.fomatFloat(this.totalPointsCount(tPoints), 2);
  1281. },
  1282. sgradeInp(e, item) {
  1283. //e当前行 ,item用于判断当前输入是否超过评分上限
  1284. let list = this.dimension[e];
  1285. if (item) {
  1286. if (item.type == 3 || item.type == 4) {
  1287. if (item.point_limit != '-') {
  1288. if (item.score_grade > Number(item.point_limit)) {
  1289. this.$message.error('评分超过上限');
  1290. list.score_grade = '';
  1291. this.$set(this.dimension, e, list);
  1292. return false;
  1293. }
  1294. }
  1295. }
  1296. }
  1297. this.$set(this.dimension, e, list);
  1298. },
  1299. //绩效包列表
  1300. assList(assID) {
  1301. let params = {
  1302. page: 0, //当期页
  1303. employee_id_code: this.$returnCode(this.employID),
  1304. };
  1305. this.staffLoad = true;
  1306. this.$axios('get', '/api/per/package/list', params).then(res => {
  1307. if (res.data.code == 1) {
  1308. this.headoptions = res.data.data.list;
  1309. this.headvalue = Number(assID);
  1310. }
  1311. });
  1312. },
  1313. setUpD() {
  1314. let pendingList = this.pendingList;
  1315. this.up = {};
  1316. this.down = {};
  1317. pendingList.some((item, index) => {
  1318. if (this.employeeID == item.employeeID) {
  1319. this.packageName = item.package_name;
  1320. if (pendingList[index - 1]) {
  1321. this.up = pendingList[index - 1];
  1322. }
  1323. if (pendingList[index + 1]) {
  1324. this.down = pendingList[index + 1];
  1325. }
  1326. if (index == pendingList.length - 2 && pendingList.length >= 10) {
  1327. //如果当点击到待办人员的倒数第二个,加载剩余的
  1328. this.getAgency();
  1329. }
  1330. return true;
  1331. }
  1332. });
  1333. },
  1334. // 绩效考核详情
  1335. employeeDet(is, func = function() {}) {
  1336. let params = {};
  1337. // 重置按钮状态
  1338. (this.revocationShow = false), (this.gradeButShow = false);
  1339. this.examineButShow = false;
  1340. this.isAction = false;
  1341. this.resultButShow = false;
  1342. this.isShowTargetBtn = false;
  1343. this.isShowConfirmBtn = false;
  1344. this.isUpdateIndex = false;
  1345. this.atPresentFlow = 0;
  1346. this.nowFLow = '';
  1347. if (is) {
  1348. params.package_id = this.headvalue;
  1349. params.employee_id_code = this.$returnCode(this.employID); //用户ID
  1350. } else {
  1351. params.id = this.employeeID; //个人考核记录ID
  1352. }
  1353. this.staffLoad = true;
  1354. this.$axios('get', '/api/per/package/employee/info', params)
  1355. .then(res => {
  1356. if (res.data.code == 1) {
  1357. let data = res.data.data;
  1358. this.has_finish = data.has_finish;
  1359. this.recordMemberIds = data.record_member_ids;
  1360. this.empDetList = data;
  1361. this.employeeID = data.id; //考核记录id
  1362. this.package_id = data.package_id;
  1363. this.publicity = data.publicity;
  1364. if (this.pendingList) {
  1365. this.setUpD();
  1366. }
  1367. this.remployee = this.$getEmployeeList()[data.relevance_employee.id]; //被考核人员信息
  1368. this.remployee.deptList = data.relevance_employee.dept_list; //部门
  1369. data.flow.map(item => {
  1370. if (item.target && item.target.length > 0) {
  1371. item.target.map(item2 => {
  1372. item2.employee_name = this.$getEmployeeList()[item2.employee_id].name;
  1373. });
  1374. }
  1375. });
  1376. this.flow = data.flow; //流程
  1377. this.config = data.config;
  1378. this.calc_dimension = data.calc_dimension; //是否参与权重
  1379. this.apList = JSON.parse(JSON.stringify(data.dimension));
  1380. this.scoreInfo = data.score_info; //各个节点的人评的总分
  1381. // 沟通反馈是否启用
  1382. this.feedbackBut = data.config.assessment.feedback == '1' ? true : false;
  1383. let point_scope = data.config.assessment.point_scope; //评分可见权限
  1384. let point_comment = data.config.assessment.point_comment; //说明可见权限
  1385. let executor = {}; //与当前登录账号相同的执行人
  1386. let review = {}; //与当前登录账号相同的审批人
  1387. data.flow.forEach((item, index) => {
  1388. if (item.code == 'execution') {
  1389. //查找 已开始或已结束的执行节点中有无当前账号
  1390. if (item.status != 0) {
  1391. item.target.forEach(tar => {
  1392. if (tar.employee_id == this.userInfo.id) {
  1393. executor = tar; //存入与当前登录账号相同的执行人
  1394. executor.newCode = 'employee'; //保存执行人节点code
  1395. }
  1396. });
  1397. }
  1398. }
  1399. if (item.code == 'review') {
  1400. //查找 已开始或已结束的审批节点中有无当前账号
  1401. if (item.status != 0) {
  1402. item.target.forEach(tar => {
  1403. if (tar.employee_id == this.userInfo.id) {
  1404. review = tar; //存入与当前登录账号相同的审批人
  1405. review.newCode = 'reviewer'; //保存审批人节点code
  1406. }
  1407. });
  1408. }
  1409. }
  1410. //当前步骤
  1411. if (item.status == 1) {
  1412. // 判断是否显示撤销按钮
  1413. if (item.code != 'cc') {
  1414. this.isRevocation(item, data.flow[index - 1]);
  1415. }
  1416. this.nowFLow = item.code;
  1417. this.atPresentFlow = item.id;
  1418. this.setBtn(item); //其他按钮控制
  1419. if (item.code == 'target' || item.code == 'confirm') {
  1420. //当是目标制定,目标确认时,隐藏调整目标按钮
  1421. this.dropdownMenu[1].isShow = false;
  1422. } else {
  1423. this.dropdownMenu[1].isShow = true;
  1424. }
  1425. //审批按钮
  1426. if (item.code == 'review') {
  1427. let reviewif = false;
  1428. item.target.forEach(tar => {
  1429. if (tar.employee_id == this.userInfo.id && tar.status == 1) {
  1430. reviewif = true;
  1431. }
  1432. });
  1433. this.examineButShow = reviewif ? true : false;
  1434. this.isAction = item.action.indexOf('refuse') >= 0 ? true : false;
  1435. }
  1436. }
  1437. let remName = item.remark;
  1438. item.target.forEach((add, att) => {
  1439. remName += add.employee_name;
  1440. remName += item.target.length - att > 1 ? ',' : '';
  1441. });
  1442. item.remarks = remName;
  1443. item.remarkDel = item.remark.split(':')[0];
  1444. });
  1445. if (this.atPresentFlow == 0) {
  1446. //如果当前节点id为0,代表此考核详情已完毕,把最后一个节点作为当前节点
  1447. this.atPresentFlow = data.flow[data.flow.length - 1].id;
  1448. // 判断抄送节点里是否包含当前登录者
  1449. let cs = data.flow[data.flow.length - 1];
  1450. cs.target.some(item => {
  1451. if (item.employee_id == this.userInfo.id) {
  1452. this.isCs = true;
  1453. return true;
  1454. }
  1455. });
  1456. }
  1457. //整合表格格式
  1458. let dimension = data.dimension;
  1459. let dimeTab = [];
  1460. let gradeTab = [];
  1461. let weight = 0; //权重统计
  1462. dimension.forEach((item, keys) => {
  1463. item.index.forEach((arr, index) => {
  1464. weight += Number(arr.weight);
  1465. arr.wdLeg = 0; //其他这个指标集合的指标给值为0
  1466. item.index[0].wdLeg = item.index.length; //找出这个指标集合的第一个并给与他的长度
  1467. arr.theDimension = item.name;
  1468. arr.dimension_weight = item.dimension_weight; //维度权重
  1469. arr.score_infos = [];
  1470. arr.planIndex = [keys, index]; //当打开执行计划时的下标
  1471. arr.per_remark = this.initData(arr.per_remark);
  1472. arr.remark = this.initData(arr.remark);
  1473. arr.target = this.initData(arr.target);
  1474. arr.result = this.initData(arr.result);
  1475. arr.point_limit = this.initData(arr.point_limit);
  1476. if (item.index_type == 3 || item.index_type == 4) {
  1477. arr.weight = this.initData(Number(arr.weight));
  1478. }
  1479. // 权限区分
  1480. arr.score_info.forEach((list, auto) => {
  1481. if (list.id <= this.atPresentFlow) {
  1482. //atPresentFlow为当前节点id。。数据-id <= 当前节点id . :筛选出当前节点及之前的评分节点的数据
  1483. list.employees.forEach(emplo => {
  1484. //获取code
  1485. data.flow.forEach(codes => {
  1486. if (codes.id == list.id) {
  1487. emplo.code = codes.code;
  1488. codes.target.some(tar => {
  1489. //找到每个评分人获取评分状态
  1490. if (tar.employee_id == emplo.employee_id) {
  1491. emplo.status = tar.status;
  1492. return true;
  1493. }
  1494. });
  1495. }
  1496. });
  1497. emplo.id = list.id;
  1498. emplo.newKey = Number(emplo.id + '' + emplo.employee_id); //给一个唯一key,目的:找到不同节点的相同的人 去重
  1499. arr.score_infos.push(emplo);
  1500. gradeTab.push(emplo);
  1501. });
  1502. }
  1503. });
  1504. dimeTab.push(arr);
  1505. });
  1506. });
  1507. this.weight = '指标权重(' + weight + '%)';
  1508. let poiSco = data.config.assessment.point_scope; //评分可见权限
  1509. let poicom = data.config.assessment.point_comment; //说明可见权限
  1510. let duplicat = this.duplicateRemoval(gradeTab, 'newKey');
  1511. duplicat.forEach(item => {
  1512. if (item.code == 'review') {
  1513. //审批
  1514. item.newCode = 'reviewer';
  1515. } else if (item.code == 'execution') {
  1516. //执行中
  1517. item.newCode = 'employee';
  1518. } else if (item.code == 'score_supervisor') {
  1519. //指定上级
  1520. item.newCode = 'manager';
  1521. } else if (item.code == 'special_scorer') {
  1522. //特定上级
  1523. item.newCode = 'special';
  1524. }
  1525. //item为评分数据,数据内只有两个节点:指定(score_supervisor,权限名:manager) 特定上级(special_scorer,权限名:special)
  1526. //poiSco 评分权限
  1527. //poicom 说明权限
  1528. //executor 执行人中的当前登陆账号
  1529. //review 审批人中的当前登陆账号
  1530. if (executor.employee_id) {
  1531. //若有数据,那么当前登录账号必定在执行人中并且执行节点正在执行或已结束(哪怕正在执行也无所谓,前方已经过滤评分数据,会得到[])
  1532. if (poiSco[executor.newCode] == '2') {
  1533. //已有数据并且为2 ‘查看所有的’ ,那就可以将所有的评分权限都改为 ‘2’
  1534. for (let i in poiSco) {
  1535. poiSco[i] = '2';
  1536. }
  1537. }
  1538. if (poicom[executor.newCode] == '2') {
  1539. //说明同上
  1540. for (let i in poicom) {
  1541. poicom[i] = '2';
  1542. }
  1543. }
  1544. }
  1545. if (review.employee_id) {
  1546. //审批节点--同上 (审批节点默认为2,可以直接全部变成2)
  1547. if (poiSco[review.newCode] == '2') {
  1548. for (let i in poiSco) {
  1549. poiSco[i] = '2';
  1550. }
  1551. }
  1552. if (poicom[review.newCode] == '2') {
  1553. //说明同上
  1554. for (let i in poicom) {
  1555. poicom[i] = '2';
  1556. }
  1557. }
  1558. }
  1559. if (item.employee_id == executor.employee_id) {
  1560. //判断当前评分数据是否 与 执行节点的当前帐号一致
  1561. if (poiSco[executor.newCode] == '2') {
  1562. //如果一致并且执行节点为‘2’即查看所有,那么就修改当前 评分数据 的权限也为‘2’
  1563. poiSco[item.newCode] = '2';
  1564. }
  1565. if (poicom[executor.newCode] == '2') {
  1566. //执行中的 -- 说明权限-同上
  1567. poicom[item.newCode] = '2';
  1568. }
  1569. }
  1570. if (item.employee_id == review.employee_id) {
  1571. //判断当前评分数据是否 与 审批节点的当前帐号一致
  1572. if (poiSco[review.newCode] == '2') {
  1573. poiSco[item.newCode] = '2';
  1574. }
  1575. if (poicom[review.newCode] == '2') {
  1576. //审批的 -- 说明权限-同上
  1577. poicom[item.newCode] = '2';
  1578. }
  1579. }
  1580. });
  1581. let poiSOk = false; //评分--为true时所有评分可看
  1582. let poiCOk = false; //说明--为true时所有说明可看
  1583. duplicat.forEach(item => {
  1584. if (poiSco[item.newCode] == '1' && item.employee_id == this.userInfo.id) {
  1585. item.poiSco = true;
  1586. } else if (poiSco[item.newCode] == '2') {
  1587. //当前 评分 数据权限等于2时并且 (当前数据id为登陆账号 或 执行中权限等于2(代表当前登陆账号为执行中的一员 或 审批权限等于2(代表当前登陆账号为审批中的一员)) 时,所有评分都可见
  1588. if (item.employee_id == this.userInfo.id || poiSco[executor.newCode] == '2' || poiSco[review.newCode] == '2') {
  1589. poiSOk = true;
  1590. }
  1591. }
  1592. //说明可见权限。
  1593. if (poicom[item.newCode] == '1' && item.employee_id == this.userInfo.id) {
  1594. //说明--同上
  1595. item.poicom = true;
  1596. } else if (poicom[item.newCode] == '2') {
  1597. if (item.employee_id == this.userInfo.id || poicom[executor.newCode] == '2' || poicom[review.newCode] == '2') {
  1598. poiCOk = true;
  1599. }
  1600. }
  1601. });
  1602. duplicat.forEach(item => {
  1603. if (poiSOk || this.$getRole(1) || this.isCs) {
  1604. item.poiSco = true;
  1605. }
  1606. if (poiCOk || this.$getRole(1) || this.isCs) {
  1607. item.poicom = true;
  1608. }
  1609. });
  1610. //遍历列表总分
  1611. let scoreListInfo = [];
  1612. let totSco = false;
  1613. let points = []; //最终显示评分
  1614. this.scoreInfo.forEach(item => {
  1615. item.employees.forEach(arr => {
  1616. arr.newKey = Number(item.id + '' + arr.employee_id);
  1617. arr.codeId = item.id;
  1618. scoreListInfo.push(arr);
  1619. });
  1620. });
  1621. duplicat.forEach((item, index) => {
  1622. scoreListInfo.forEach(arr => {
  1623. if (item.newKey == arr.newKey) {
  1624. item.totalScore = arr.point;
  1625. item.comment = arr.comment;
  1626. if (arr.point) {
  1627. totSco = true;
  1628. }
  1629. }
  1630. });
  1631. if (item.status != 2 && item.id != this.atPresentFlow) {
  1632. delete duplicat[index]
  1633. } else {
  1634. points.push(item);
  1635. }
  1636. });
  1637. points.sort(this.rule('id')); //跟距ID排序
  1638. this.lingScore_infos = points; //表格 评分、说明 头部
  1639. let toScore = {
  1640. theDimension: '总分',
  1641. wdLeg: 0,
  1642. toScore: true
  1643. };
  1644. if (totSco) {
  1645. let poiScoDimeTab = false;
  1646. duplicat.forEach(item => {
  1647. if (item.poiSco) {
  1648. poiScoDimeTab = true;
  1649. }
  1650. });
  1651. if (poiScoDimeTab) {
  1652. dimeTab.push(toScore);
  1653. this.$nextTick(() => {
  1654. //刷新总分--行
  1655. dimeTab.forEach((item, index) => {
  1656. if (item.toScore) {
  1657. this.sgradeInp(index);
  1658. }
  1659. });
  1660. });
  1661. }
  1662. }
  1663. //流程结束后的判断
  1664. this.pdLc();
  1665. if (data.publicity == 1 && (!this.nowFLow || this.nowFLow == 'review')) {
  1666. //判断是否公开,并且是审批节点或者流程结束,(流程结束nowFLow为空)
  1667. dimeTab[0].final_point = data.final_point; //考核结果--总分
  1668. dimeTab[0].final_level = data.final_level; //考核结果--等级
  1669. dimeTab[0].doing_id = 11;
  1670. dimeTab[0].zfLeg = dimeTab.length;
  1671. }
  1672. this.dimension = dimeTab; //表格数据
  1673. //记录
  1674. let record = res.data.data.record;
  1675. record.forEach(item => {
  1676. item.userData = this.$getEmployeeList()[item.employee_id];
  1677. });
  1678. this.record = record;
  1679. func();
  1680. }
  1681. })
  1682. .finally(() => {
  1683. this.staffLoad = false;
  1684. this.getSuperior();
  1685. });
  1686. },
  1687. // 判断是否显示撤销按钮
  1688. isRevocation(dqItem, upItem) {
  1689. // 当前只需要评分节点需要撤回
  1690. //当前节点包含自己并且其他任意一人未完成的显示按钮
  1691. if (dqItem.code == 'score_supervisor' || dqItem.code == 'special_scorer') {
  1692. dqItem.target.some((item, index) => {
  1693. if (item.employee_id == this.userInfo.id && item.status == 2) {
  1694. dqItem.target.some((item2, index2) => {
  1695. if (item2.status == 1) {
  1696. this.revocationNodeId = dqItem.id;
  1697. this.revocationShow = true;
  1698. return true;
  1699. }
  1700. });
  1701. }
  1702. });
  1703. }
  1704. let is = true; //判断当前节点人员是否有完成的
  1705. //上一节点中包含登录者并且是完成的状态显示按钮
  1706. if (upItem) {
  1707. dqItem.target.some((item, index) => {
  1708. if (item.status == 2) {
  1709. is = false;
  1710. }
  1711. });
  1712. if (upItem.code == 'score_supervisor' || upItem.code == 'special_scorer') {
  1713. upItem.target.some((item, index) => {
  1714. if (item.employee_id == this.userInfo.id && item.status == 2 && is) {
  1715. this.revocationNodeId = upItem.id;
  1716. this.revocationShow = true;
  1717. return true;
  1718. }
  1719. });
  1720. }
  1721. }
  1722. },
  1723. pdLc() {
  1724. let flow = JSON.parse(JSON.stringify(this.flow)).reverse(); //反转流程,找第一个评分节点
  1725. //流程结束,但是最后一个“评分”节点里有自己显示撤销
  1726. if (this.publicity == 1) {
  1727. flow.some(item => {
  1728. if (item.code == 'review' || item.code == 'cc') {
  1729. return true;
  1730. }
  1731. if (item.code == 'score_supervisor' || item.code == 'special_scorer') {
  1732. item.target.some(e => {
  1733. if (e.employee_id == this.userInfo.id && e.status == 2) {
  1734. this.revocationNodeId = item.id;
  1735. this.revocationShow = true;
  1736. return true;
  1737. }
  1738. });
  1739. return true;
  1740. }
  1741. });
  1742. }
  1743. },
  1744. // 各按钮控制
  1745. setBtn(item) {
  1746. // console.log(item,this.userInfo.id)
  1747. // 目标制定
  1748. if (item.code == 'target') {
  1749. item.target.forEach(tar => {
  1750. if (tar.employee_id == this.userInfo.id && tar.status == 1) {
  1751. this.isShowTargetBtn = true;
  1752. }
  1753. });
  1754. return;
  1755. }
  1756. // 目标确认
  1757. if (item.code == 'confirm') {
  1758. item.target.forEach(tar => {
  1759. if (tar.employee_id == this.userInfo.id && tar.status == 1) {
  1760. this.isShowConfirmBtn = true;
  1761. }
  1762. });
  1763. this.isUpdateIndex = item.action.indexOf('index') >= 0 ? true : false;
  1764. return;
  1765. }
  1766. //评分按钮
  1767. if (item.code == 'score_self' || item.code == 'score_mutual' || item.code == 'score_supervisor' || item.code == 'special_scorer') {
  1768. item.target.forEach(tar => {
  1769. if (tar.employee_id == this.userInfo.id && tar.status == 1) {
  1770. this.gradeButShow = true;
  1771. }
  1772. });
  1773. return;
  1774. }
  1775. //结果值录入按钮
  1776. if (item.code == 'result_value') {
  1777. item.target.forEach(tar => {
  1778. if (tar.employee_id == this.userInfo.id) {
  1779. this.resultButShow = true;
  1780. }
  1781. });
  1782. return;
  1783. }
  1784. },
  1785. //去重
  1786. duplicateRemoval(data, name) {
  1787. let bbt = {};
  1788. let abbts = data.reduce((cur, next) => {
  1789. bbt[next[name]] ? '' : (bbt[next[name]] = true && cur.push(next));
  1790. return cur;
  1791. }, []);
  1792. return abbts;
  1793. },
  1794. //跟距ID排序
  1795. rule(key) {
  1796. return function(a, b) {
  1797. // sort 默认接受a,b两个参数表示数组中的值
  1798. var value1 = a[key];
  1799. var value2 = b[key];
  1800. return value1 - value2;
  1801. };
  1802. },
  1803. groupBy(data, params) {
  1804. const groups = {};
  1805. data.forEach(v => {
  1806. const group = JSON.stringify(v[params]);
  1807. groups[group] = groups[group] || [];
  1808. groups[group].push(v);
  1809. });
  1810. return Object.values(groups);
  1811. },
  1812. //数据初始化,没有值或者空数组的显示-
  1813. initData(str) {
  1814. if (str == null) {
  1815. return str ? str : '-';
  1816. }
  1817. if (typeof str == 'object') {
  1818. return str.length > 0 ? str : '-';
  1819. } else {
  1820. return str ? str : '-';
  1821. }
  1822. },
  1823. // 根据数据结构显示table,
  1824. getTableItem(str) {
  1825. let dimension = this.dimension;
  1826. let is = false;
  1827. dimension.some(item => {
  1828. for (var key in item) {
  1829. if (str == key) {
  1830. if (typeof item[key] == 'object') {
  1831. //是数组并且长度大于0
  1832. if (item[key].length > 0) {
  1833. is = true;
  1834. return true;
  1835. }
  1836. } else {
  1837. if (key == 'target') {
  1838. if (item[key] != '0' && item[key] != '-') {
  1839. //是有数据并且!= -
  1840. is = true;
  1841. return true;
  1842. }
  1843. } else {
  1844. if (item[key] != '-') {
  1845. //是有数据并且!= -
  1846. is = true;
  1847. return true;
  1848. }
  1849. }
  1850. }
  1851. }
  1852. }
  1853. });
  1854. return is;
  1855. },
  1856. //流程点击
  1857. processDet(data) {
  1858. // console.log(JSON.stringify(data))
  1859. this.processDel = data;
  1860. this.isChecks = true;
  1861. if (data.target.length == 0) {
  1862. this.proNum = '';
  1863. } else {
  1864. let arr = 0;
  1865. data.target.forEach((item, index) => {
  1866. if (item.status == 2) {
  1867. arr++;
  1868. }
  1869. });
  1870. this.proNum = '(' + arr + '/' + data.target.length + ')';
  1871. }
  1872. let code = this.processDel.code;
  1873. if (this.processDel.status == 1) {
  1874. //当是目标制定,目标确认 结果值录入,上级评分,指定人评分,审批时显示转交按钮
  1875. if (code == 'target' || code == 'confirm' || code == 'score_supervisor' || code == 'special_scorer' || code == 'result_value' || code == 'review') {
  1876. this.transferBut = true;
  1877. } //当上级评分,指定人评分,判断是否具有转交权限
  1878. }
  1879. },
  1880. handleCommand(val) {
  1881. //管理选项
  1882. if (val == 'a') {
  1883. //重置流程
  1884. this.resetFlow = true;
  1885. } else if (val == 'b') {
  1886. this.isAdjustment = true;
  1887. }
  1888. },
  1889. //
  1890. setDataAccess() {
  1891. this.isAdjustment = false;
  1892. if (this.radio == 2) {
  1893. //调整目标
  1894. this.$router.push({
  1895. name: 'adjustment',
  1896. query: { id: this.employeeID }
  1897. });
  1898. } else {
  1899. //调整目标
  1900. this.$router.push({
  1901. name: 'adjustment2',
  1902. query: { id: this.employeeID }
  1903. });
  1904. }
  1905. },
  1906. // 沟通反馈
  1907. saveCommunication() {
  1908. if (!this.communicationVal) {
  1909. this.$message.error('请输入沟通内容');
  1910. return false;
  1911. }
  1912. let target_id = this.tags.map(item => {
  1913. return item.id;
  1914. });
  1915. this.$axios('post', '/api/per/package/negotiation', {
  1916. id: this.employeeID,
  1917. content: this.communicationVal,
  1918. target_id: JSON.stringify(target_id),
  1919. ding_msg:this.ding_msg,
  1920. }).then(res => {
  1921. this.$message.success('已沟通');
  1922. this.employeeDet();
  1923. this.ding_msg=0;
  1924. this.communication = false;
  1925. });
  1926. },
  1927. confirmCreator(e) {
  1928. this.tags = e.employee;
  1929. },
  1930. handleClose(tag, index) {
  1931. this.tags.splice(index, 1);
  1932. },
  1933. //评分按钮
  1934. gradeClick() {
  1935. this.gradeBegin = true;
  1936. let dnsion = [];
  1937. this.dimension.forEach(item => {
  1938. if (!item.toScore) {
  1939. item.score_infos.forEach(arr => {
  1940. if (arr.employee_id == this.userInfo.id && arr.id == this.atPresentFlow) {
  1941. item.score_grade = arr.point; //某指标的分数
  1942. item.score_remark = arr.remark; //评分说明
  1943. dnsion.push(item);
  1944. }
  1945. });
  1946. }
  1947. });
  1948. let data = {};
  1949. dnsion.forEach(item => {
  1950. item.wdLeg = 0;
  1951. });
  1952. let totalScore = {
  1953. theDimension: '总分',
  1954. wdLeg: 0,
  1955. totalScore: true
  1956. };
  1957. this.flow.forEach(item => {
  1958. if (item.code == 'score_supervisor' && item.status == 1) {
  1959. this.ruleScore = item.rule == 2 ? 2 : 1; //1-指标均要评分 2-评分总结
  1960. this.thecurrentFlow = 'score_supervisor';
  1961. totalScore.codeId = item.id;
  1962. } else if (item.code == 'special_scorer' && item.status == 1) {
  1963. this.ruleScore = 1;
  1964. }
  1965. if ((item.code == 'score_supervisor' && item.status == 1) || (item.code == 'special_scorer' && item.status == 1)) {
  1966. //上级评分,特定评分 评分人必填项
  1967. item.action.forEach(arr => {
  1968. this.mandatoryScore = arr == 'comment' ? true : false; //指标说明是否必填
  1969. });
  1970. }
  1971. });
  1972. this.scoreInfo.forEach(item => {
  1973. item.employees.forEach(arr => {
  1974. if (arr.employee_id == this.userInfo.id) {
  1975. this.tabTotaScore = arr.point ? arr.point : 0;
  1976. if (item.id == totalScore.codeId && this.ruleScore == 2) {
  1977. totalScore.score_grade = arr.point;
  1978. totalScore.total_score_comment = arr.comment ? arr.comment : '';
  1979. }
  1980. }
  1981. });
  1982. });
  1983. let dimenList = [];
  1984. let users = []; //当前节点的自己的信息
  1985. this.flow.forEach(item => {
  1986. //根据流程当前节点,找节点的人员中的登陆者
  1987. if (item.status == 1) {
  1988. item.target.some(arr => {
  1989. if (arr.employee_id == this.userInfo.id) {
  1990. arr.flowStatusId = item.id; //当前节点的ID
  1991. users = arr;
  1992. return true;
  1993. }
  1994. });
  1995. }
  1996. });
  1997. users.list.forEach(att => {
  1998. //获取当前节点审批人员中的登陆者
  1999. dnsion.forEach((add, index) => {
  2000. if (att.index_id == add.id && att.dimension_key == add.planIndex[0] && att.index_key == add.planIndex[1]) {
  2001. //因为不同维度下可能存在相同的指标,所以也要判断他的维度是否一致
  2002. add.dimension_key = att.dimension_key; //维度索引
  2003. add.index_key = att.index_key; //指标索引
  2004. add.score_infos.forEach(user => {
  2005. //显示的文案,找到当前登录人
  2006. if (user.id == users.flowStatusId) {
  2007. if (user.employee_id == this.userInfo.id) {
  2008. this.scoreTab.title = user.title;
  2009. this.scoreTab.explain = user.title.split(':')[0] + '说明';
  2010. }
  2011. }
  2012. });
  2013. dimenList.push(add);
  2014. }
  2015. });
  2016. });
  2017. dimenList.push(totalScore);
  2018. this.$nextTick(() => {
  2019. this.dimension = dimenList;
  2020. });
  2021. },
  2022. gradeTurn() {
  2023. //评分驳回按钮
  2024. this.turnDown = true;
  2025. },
  2026. gradeOk() {
  2027. //评分驳回按钮
  2028. this.examineConsent = true;
  2029. },
  2030. tDownOk(num, formName) {
  2031. let tDownList = this.tDownList;
  2032. if (num == 1) {
  2033. let data = {
  2034. id: this.employeeID, //个人考核包ID
  2035. agree: 1, //同意1 驳回0
  2036. c_node_id: this.atPresentFlow, //当前节点ID
  2037. comment: tDownList.comment //审核意见
  2038. };
  2039. this.tDownHttpJx(1, data);
  2040. } else if (num == 0) {
  2041. //驳回
  2042. this.$refs[formName].validate(valid => {
  2043. if (valid) {
  2044. if (tDownList.employee_id.length == 0) {
  2045. this.$message.error('至少选择一名重置人员');
  2046. return false;
  2047. }
  2048. if (!tDownList.comment) {
  2049. this.$message.error('请输入驳回说明');
  2050. return false;
  2051. }
  2052. this.$confirm('流程将驳回到选中节点,已完成的节点需要重新进行处理,确认重置流程?', '提示', {
  2053. confirmButtonText: '确定',
  2054. cancelButtonText: '取消',
  2055. type: 'warning'
  2056. })
  2057. .then(() => {
  2058. let data = {
  2059. id: this.employeeID, //个人考核包ID
  2060. agree: 0, //同意1 驳回0
  2061. node_id: tDownList.node_id, //重置到某个节点, (type 1 必填)
  2062. c_node_id: this.atPresentFlow, //当前节点ID
  2063. employee_id_code: this.$returnCode(tDownList.employee_id), //重置到节点的某个用户 string(JSOn)
  2064. comment: tDownList.comment //审核意见
  2065. };
  2066. this.tDownHttpJx(0, data);
  2067. })
  2068. .catch(() => {});
  2069. } else {
  2070. return false;
  2071. }
  2072. });
  2073. }
  2074. },
  2075. tDownHttpJx(num, data) {
  2076. this.$axios('post', '/api/per/package/review', data).then(res => {
  2077. this.$message.success('提交成功');
  2078. this.tDlose(num);
  2079. this.employeeDet();
  2080. });
  2081. },
  2082. tDlose(num) {
  2083. //驳回侧边栏关闭
  2084. if (num == 0) {
  2085. this.turnDown = false;
  2086. } else if (num == 1) {
  2087. this.examineConsent = false;
  2088. }
  2089. },
  2090. //重置确定
  2091. rFlowOk(formName) {
  2092. this.$refs[formName].validate(valid => {
  2093. if (valid) {
  2094. let rFlowList = this.rFlowList;
  2095. if (rFlowList.type == 1) {
  2096. if (rFlowList.employee_id.length == 0) {
  2097. this.$message.error('至少选择一名重置人员');
  2098. return false;
  2099. }
  2100. }
  2101. this.$confirm('流程将重置,已完成的节点需要重新进行处理,确认重置流程?', '提示', {
  2102. confirmButtonText: '确定',
  2103. cancelButtonText: '取消',
  2104. type: 'warning'
  2105. })
  2106. .then(() => {
  2107. let data;
  2108. if (rFlowList.type == 1) {
  2109. data = {
  2110. id: this.employeeID, //个人考核包ID
  2111. type: rFlowList.type, //重置类型 1 流程内重置 2 重读维度流程 重置
  2112. node_id: rFlowList.node_id, //重置到某个节点, (type 1 必填)
  2113. employee_id_code: this.$returnCode(rFlowList.employee_id), //重置到节点的某个用户 string(JSOn)
  2114. comment: rFlowList.comment //审核意见
  2115. };
  2116. } else {
  2117. data = {
  2118. id: this.employeeID, //个人考核包ID
  2119. type: rFlowList.type, //重置类型 1 流程内重置 2 重读维度流程 重置
  2120. overwrite_mode: rFlowList.overwrite_mode, //1 从原来考核表覆写,2 从个人考核包重置 (type 2 必填)
  2121. comment: rFlowList.comment //审核意见
  2122. };
  2123. }
  2124. this.$axios('post', 'api/per/package/reset_flow', data).then(res => {
  2125. this.$message.success('提交成功');
  2126. this.resetFlow = false;
  2127. this.employeeDet();
  2128. });
  2129. })
  2130. .catch(() => {});
  2131. } else {
  2132. return false;
  2133. }
  2134. });
  2135. },
  2136. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  2137. if (!this.gradeBegin && !row.toScore) {
  2138. if (columnIndex === 0) {
  2139. return {
  2140. rowspan: row.wdLeg,
  2141. colspan: 1
  2142. };
  2143. }
  2144. }
  2145. if (row.zfLeg) {
  2146. //考核结果、绩效等级
  2147. if (column.label == '考核结果' || column.label == '绩效等级') {
  2148. if (rowIndex != 1) {
  2149. return {
  2150. rowspan: row.zfLeg,
  2151. colspan: 1
  2152. };
  2153. } else {
  2154. return {
  2155. rowspan: 0,
  2156. colspan: 0
  2157. };
  2158. }
  2159. }
  2160. }
  2161. }
  2162. },
  2163. beforeRouteLeave(to, from, next) {
  2164. if (to.name != 'formulate' && to.name != 'resultSet') {
  2165. localStorage.removeItem('staffAssDet');
  2166. }
  2167. next();
  2168. }
  2169. };
  2170. </script>
  2171. <style scoped lang="scss">
  2172. .guidang {
  2173. margin-left: 20px;
  2174. width: 70px;
  2175. animation: example 1s;
  2176. }
  2177. @keyframes example {
  2178. from {
  2179. transform: scale(1.4);
  2180. }
  2181. to {
  2182. transform: scale(1);
  2183. }
  2184. }
  2185. .popover-box {
  2186. opacity: 1;
  2187. border-radius: 4px;
  2188. width: 250px;
  2189. }
  2190. .popover-title {
  2191. font-size: 14px;
  2192. font-family: PingFang SC;
  2193. font-weight: 400;
  2194. text-align: center;
  2195. color: #ffcb00;
  2196. margin-bottom: 10px;
  2197. }
  2198. .popover-content {
  2199. font-size: 14px;
  2200. font-family: PingFang SC;
  2201. font-weight: 400;
  2202. opacity: 1;
  2203. color: #fff;
  2204. }
  2205. .result {
  2206. border: 2px solid #ff9600;
  2207. padding: 5px 10px;
  2208. color: #ff9600;
  2209. text-align: center;
  2210. }
  2211. .flow-img {
  2212. width: 20px;
  2213. position: absolute;
  2214. right: -30px;
  2215. }
  2216. .all {
  2217. position: relative;
  2218. font-size: 14px;
  2219. background-color: #fff;
  2220. padding: 20px;
  2221. header {
  2222. margin-bottom: 60px;
  2223. .head {
  2224. border-top: 1px solid #e6e6e6;
  2225. border-bottom: 1px solid #e6e6e6;
  2226. padding: 20px 0;
  2227. margin-top: 10px;
  2228. }
  2229. .head2User {
  2230. .headTname {
  2231. padding: 7px 0 0 15px;
  2232. div {
  2233. padding: 0 0 3px 0;
  2234. font-size: 15px;
  2235. }
  2236. span {
  2237. font-size: 13px;
  2238. color: #969696;
  2239. }
  2240. }
  2241. }
  2242. }
  2243. }
  2244. .upDown-box {
  2245. position: fixed;
  2246. bottom: 10px;
  2247. left: 50%;
  2248. background-color: #fff;
  2249. z-index: 100;
  2250. width: 370px;
  2251. height: 60px;
  2252. border-radius: 100px;
  2253. margin-left: -185px;
  2254. box-shadow: 0 0 5px #999999;
  2255. }
  2256. .upName {
  2257. width: 80px;
  2258. text-align: center;
  2259. padding: 0 5px;
  2260. font-weight: 600;
  2261. }
  2262. .up-item {
  2263. cursor: pointer;
  2264. }
  2265. .up-item:hover {
  2266. cursor: pointer;
  2267. color: #238dfa;
  2268. }
  2269. .shuru {
  2270. border-bottom: 1px solid #dcdfe6;
  2271. cursor: pointer;
  2272. color: #c0c4cc;
  2273. line-height: 36px;
  2274. height: 36px;
  2275. }
  2276. .aite {
  2277. padding: 10px;
  2278. font-size: 16px;
  2279. cursor: pointer;
  2280. width: 40px;
  2281. }
  2282. .aite:hover {
  2283. color: #26a2ff;
  2284. }
  2285. .flow-item-start,
  2286. .flow-item {
  2287. background-color: #ecf5ff;
  2288. height: 60px;
  2289. min-width: 280px;
  2290. position: relative;
  2291. margin-right: 40px;
  2292. margin-top: 20px;
  2293. padding: 0 10px;
  2294. border-radius: 5px;
  2295. }
  2296. .flow-box {
  2297. overflow: hidden;
  2298. text-overflow: ellipsis;
  2299. white-space: nowrap;
  2300. width: 230px;
  2301. display: inline-block;
  2302. }
  2303. // .flow-item-start::after {
  2304. // position: absolute;
  2305. // content: '';
  2306. // width: 0;
  2307. // height: 0;
  2308. // border-top: 18px solid transparent;
  2309. // border-left: 20px solid #f4f6f9;
  2310. // border-bottom: 18px solid transparent;
  2311. // border-radius: 2px;
  2312. // top: 0;
  2313. // right: -20px;
  2314. // }
  2315. // .flow-item::before {
  2316. // content: '';
  2317. // position: absolute;
  2318. // width: 0;
  2319. // height: 0;
  2320. // border-top: 18px solid transparent;
  2321. // border-left: 20px solid #fff;
  2322. // border-bottom: 18px solid transparent;
  2323. // border-radius: 2px;
  2324. // top: 0;
  2325. // left: 0px;
  2326. // }
  2327. // .flow-item::after {
  2328. // content: '';
  2329. // position: absolute;
  2330. // width: 0;
  2331. // height: 0;
  2332. // border-top: 18px solid transparent;
  2333. // border-left: 20px solid #f4f6f9;
  2334. // border-bottom: 18px solid transparent;
  2335. // border-radius: 2px;
  2336. // top: 0;
  2337. // right: -20px;
  2338. // }
  2339. .el-icon-warning-outline {
  2340. color: #848484;
  2341. position: relative;
  2342. top: 1px;
  2343. }
  2344. .flow-item-color {
  2345. background-color: #409eff;
  2346. color: #fff;
  2347. .detailsPonit {
  2348. color: #ffffff;
  2349. }
  2350. .el-icon-warning-outline {
  2351. color: #ffffff;
  2352. }
  2353. }
  2354. .detailsPonit {
  2355. margin-left: 10px;
  2356. font-size: 14px;
  2357. color: #848484;
  2358. cursor: pointer;
  2359. }
  2360. .flow-item-color::after {
  2361. border-left: 20px solid #409eff;
  2362. }
  2363. .feedDoalog {
  2364. ::v-deep .el-dialog__body {
  2365. padding: 0 20px 30px;
  2366. }
  2367. }
  2368. .mentSty {
  2369. max-width: 300px;
  2370. height: 23px;
  2371. display: inline-block;
  2372. }
  2373. // .button-width {
  2374. // button {
  2375. // width: 80px;
  2376. // }
  2377. // }
  2378. .elFrom-margin {
  2379. ::v-deep .el-form-item__label {
  2380. padding: 0;
  2381. }
  2382. padding: 0 20px 0 0;
  2383. }
  2384. .processSty {
  2385. margin-top: -20px;
  2386. .proListSty {
  2387. border-bottom: 1px solid #e2e2e2;
  2388. padding: 17px 0;
  2389. .proButt {
  2390. color: #4799ff;
  2391. border: 1px solid #78a1ff;
  2392. font-size: 14px;
  2393. padding: 0px 10px;
  2394. height: 30px;
  2395. }
  2396. .proName {
  2397. font-size: 15px;
  2398. line-height: 30px;
  2399. padding-left: 8px;
  2400. }
  2401. }
  2402. }
  2403. .footer {
  2404. position: fixed;
  2405. bottom: 0;
  2406. left: 0;
  2407. right: 0;
  2408. background-color: #fff;
  2409. border-top: 1px solid #e8e8e8;
  2410. padding: 12px 30px;
  2411. z-index: 100;
  2412. }
  2413. .dian {
  2414. position: absolute;
  2415. right: 10px;
  2416. }
  2417. </style>