staffAssDet.vue 78 KB

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