detailsPage.vue 95 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849
  1. <template>
  2. <div class="borderless" v-loading="allloading">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button
  6. type="danger"
  7. style="border: none;background: none;color: red"
  8. icon="el-icon-arrow-left"
  9. @click="backToList"
  10. >返回列表
  11. </el-button>
  12. </div>
  13. <div class="add-customer-btn" v-if="permission.primary_edit">
  14. <el-button
  15. type="primary"
  16. size="small"
  17. v-if="detailData.status == 1"
  18. class="el-button--small-yh "
  19. :disabled="form.status > 0"
  20. @click.stop="openEdit"
  21. >编辑
  22. </el-button>
  23. <el-dropdown style="margin-right: 8px;margin-left: 8px;">
  24. <el-button type="primary" size="small" :disabled="loadingBtn">
  25. 审核处理<i class="el-icon-arrow-down el-icon--right"></i>
  26. </el-button>
  27. <el-dropdown-menu slot="dropdown">
  28. <el-dropdown-item
  29. :disabled="form.status > 0"
  30. @click.native="pleaseCheck"
  31. >请核数据</el-dropdown-item
  32. >
  33. <el-dropdown-item disabled>审核进度</el-dropdown-item>
  34. <el-dropdown-item disabled>撤销请核</el-dropdown-item>
  35. </el-dropdown-menu>
  36. </el-dropdown>
  37. <el-button
  38. type="success"
  39. :disabled="loadingBtn || !form.id"
  40. size="small"
  41. @click="copyDoc"
  42. >
  43. 复制新单
  44. </el-button>
  45. <el-button
  46. class="el-button--small-yh"
  47. type="primary"
  48. :disabled="loadingBtn || detailData.status == 1"
  49. size="small"
  50. @click="editCustomer"
  51. >保存数据
  52. </el-button>
  53. </div>
  54. </div>
  55. <div class="customer-main" v-loading="loadingBtn">
  56. <containerTitle title="基础资料"></containerTitle>
  57. <basic-container>
  58. <avue-form
  59. class="trading-form"
  60. ref="form"
  61. v-model="form"
  62. :option="option"
  63. />
  64. </basic-container>
  65. <containerTitle title="基础明细"></containerTitle>
  66. <basic-container>
  67. <avue-crud
  68. ref="crud"
  69. v-model="crudForm"
  70. :option="optionList"
  71. :data="dataList"
  72. :page.sync="page"
  73. :search.sync="search"
  74. :table-loading="loading"
  75. @current-change="currentChange"
  76. @size-change="sizeChange"
  77. @search-change="searchChange"
  78. @saveColumn="saveColumn"
  79. @resetColumn="resetColumn"
  80. @refresh-change="refreshChange"
  81. @row-save="rowSave"
  82. @row-update="rowUpdate"
  83. :cell-style="cellStyle"
  84. :header-cell-class-name="headerCellClassName"
  85. >
  86. <template slot="menuLeft">
  87. <el-button
  88. type="primary"
  89. @click.stop="$refs.crud.rowAdd()"
  90. size="small"
  91. :disabled="detailData.status == 1"
  92. >新增</el-button
  93. >
  94. <el-button
  95. type="primary"
  96. size="small"
  97. @click="importExcel()"
  98. :disabled="detailData.status == 1"
  99. >导入
  100. </el-button>
  101. <el-button type="primary" size="small" @click.stop="openExport()"
  102. >导出
  103. </el-button>
  104. <!-- <el-button
  105. type="primary"
  106. size="small"
  107. @click.stop="calculate()"
  108. :disabled="detailData.status == 1"
  109. >重新计算
  110. </el-button> -->
  111. <el-button
  112. type="primary"
  113. size="small"
  114. @click.stop="calculate2()"
  115. :disabled="detailData.status == 1"
  116. >导入职工信息
  117. </el-button>
  118. <el-button
  119. type="info"
  120. icon="el-icon-printer"
  121. size="small"
  122. :disabled="!form.id"
  123. @click.stop="openReport()"
  124. >报表打印</el-button
  125. >
  126. </template>
  127. <template slot="basicsSalaryLabel">
  128. <el-tag>基础工资:</el-tag>
  129. </template>
  130. <template slot="workloadSalaryLabel">
  131. <el-tag>工作量工资:</el-tag>
  132. </template>
  133. <template slot="customizeFourLabel">
  134. <el-tag>绩效工资:</el-tag>
  135. </template>
  136. <template slot="awardSalaryLabel">
  137. <el-tag>奖励工资:</el-tag>
  138. </template>
  139. <template slot="dutyAllowancesLabel">
  140. <el-tag>职务津贴:</el-tag>
  141. </template>
  142. <template slot="classTeacherSubsidyLabel">
  143. <el-tag>班主任津贴:</el-tag>
  144. </template>
  145. <template slot="subsidyLabel">
  146. <el-tag>补贴项:</el-tag>
  147. </template>
  148. <template slot="deductionsLabel">
  149. <el-tag>扣除项:</el-tag>
  150. </template>
  151. <template slot="salaryLabel">
  152. <el-tag>应发工资:</el-tag>
  153. </template>
  154. <template slot="fSalaryLabel">
  155. <el-tag>实发工资:</el-tag>
  156. </template>
  157. <!-- 1. 基础工资 = +M153(校龄工资)+N153(增资)+O153(学历工资)+Q153(职级工资)+L153(履约奖)+R153(工资基数) -->
  158. <template
  159. slot="schoolAgeSalaryForm"
  160. slot-scope="{ column, disabled }"
  161. >
  162. <el-input
  163. :disabled="disabled"
  164. :placeholder="'请输入 ' + column.label"
  165. v-model="crudForm.schoolAgeSalary"
  166. @change="salaryAdd(crudForm)"
  167. />
  168. </template>
  169. <template
  170. slot="capitalIncreaseForm"
  171. slot-scope="{ column, disabled }"
  172. >
  173. <el-input
  174. :disabled="disabled"
  175. :placeholder="'请输入 ' + column.label"
  176. v-model="crudForm.capitalIncrease"
  177. @change="salaryAdd(crudForm)"
  178. />
  179. </template>
  180. <template
  181. slot="educationSalaryForm"
  182. slot-scope="{ column, disabled }"
  183. >
  184. <el-input
  185. :disabled="disabled"
  186. :placeholder="'请输入 ' + column.label"
  187. v-model="crudForm.educationSalary"
  188. @change="salaryAdd(crudForm)"
  189. />
  190. </template>
  191. <template slot="rankSalaryForm" slot-scope="{ column, disabled }">
  192. <el-input
  193. :disabled="disabled"
  194. :placeholder="'请输入 ' + column.label"
  195. v-model="crudForm.rankSalary"
  196. @change="salaryAdd(crudForm)"
  197. />
  198. </template>
  199. <template
  200. slot="performanceAwardForm"
  201. slot-scope="{ column, disabled }"
  202. >
  203. <el-input
  204. :disabled="disabled"
  205. :placeholder="'请输入 ' + column.label"
  206. v-model="crudForm.performanceAward"
  207. @change="salaryAdd(crudForm)"
  208. />
  209. </template>
  210. <template slot="salaryBaseForm" slot-scope="{ column, disabled }">
  211. <el-input
  212. :disabled="disabled"
  213. :placeholder="'请输入 ' + column.label"
  214. v-model="crudForm.salaryBase"
  215. @change="salaryAdd(crudForm)"
  216. />
  217. </template>
  218. <!-- //2. 工作量工资 = 月份工作量工资+代课工作量工资+双休日工作量工资+工作量工资1+…+工作量工资5 -->
  219. <template
  220. slot="momthWorkloadSalaryForm"
  221. slot-scope="{ column, disabled }"
  222. >
  223. <el-input
  224. :disabled="disabled"
  225. :placeholder="'请输入 ' + column.label"
  226. v-model="crudForm.momthWorkloadSalary"
  227. @change="salaryAdd(crudForm)"
  228. />
  229. </template>
  230. <template slot="customTwoForm" slot-scope="{ column, disabled }">
  231. <el-input
  232. :disabled="disabled"
  233. :placeholder="'请输入 ' + column.label"
  234. v-model="crudForm.customTwo"
  235. @change="salaryAdd(crudForm)"
  236. />
  237. </template>
  238. <template slot="doubleMoneyForm" slot-scope="{ column, disabled }">
  239. <el-input
  240. :disabled="disabled"
  241. :placeholder="'请输入 ' + column.label"
  242. v-model="crudForm.doubleMoney"
  243. @change="salaryAdd(crudForm)"
  244. />
  245. </template>
  246. <template slot="customThreeForm" slot-scope="{ column, disabled }">
  247. <el-input
  248. :disabled="disabled"
  249. :placeholder="'请输入 ' + column.label"
  250. v-model="crudForm.customThree"
  251. @change="salaryAdd(crudForm)"
  252. />
  253. </template>
  254. <template slot="customFourForm" slot-scope="{ column, disabled }">
  255. <el-input
  256. :disabled="disabled"
  257. :placeholder="'请输入 ' + column.label"
  258. v-model="crudForm.customFour"
  259. @change="salaryAdd(crudForm)"
  260. />
  261. </template>
  262. <template slot="customFiveForm" slot-scope="{ column, disabled }">
  263. <el-input
  264. :disabled="disabled"
  265. :placeholder="'请输入 ' + column.label"
  266. v-model="crudForm.customFive"
  267. @change="salaryAdd(crudForm)"
  268. />
  269. </template>
  270. <template slot="customSixForm" slot-scope="{ column, disabled }">
  271. <el-input
  272. :disabled="disabled"
  273. :placeholder="'请输入 ' + column.label"
  274. v-model="crudForm.customSix"
  275. @change="salaryAdd(crudForm)"
  276. />
  277. </template>
  278. <template slot="customSevenForm" slot-scope="{ column, disabled }">
  279. <el-input
  280. :disabled="disabled"
  281. :placeholder="'请输入 ' + column.label"
  282. v-model="crudForm.customSeven"
  283. @change="salaryAdd(crudForm)"
  284. />
  285. </template>
  286. <template
  287. slot="virtualDailyAssessmentCriteriaForm"
  288. slot-scope="{ column, disabled }"
  289. >
  290. <el-input
  291. :disabled="disabled"
  292. :placeholder="'请输入 ' + column.label"
  293. v-model="crudForm.virtualDailyAssessmentCriteria"
  294. @change="salaryAdd(crudForm)"
  295. />
  296. </template>
  297. <template
  298. slot="virtualDoubleCeaseForm"
  299. slot-scope="{ column, disabled }"
  300. >
  301. <el-input
  302. :disabled="disabled"
  303. :placeholder="'请输入 ' + column.label"
  304. v-model="crudForm.virtualDoubleCease"
  305. @change="salaryAdd(crudForm)"
  306. />
  307. </template>
  308. <template slot="pauseNoPayTwoForm" slot-scope="{ column, disabled }">
  309. <el-input
  310. :disabled="disabled"
  311. :placeholder="'请输入 ' + column.label"
  312. v-model="crudForm.pauseNoPayTwo"
  313. @change="salaryAdd(crudForm)"
  314. />
  315. </template>
  316. <!-- 4.绩效工资=学期绩效工资+学期绩效工资1+..+学期绩效工资5 -->
  317. <template
  318. slot="termPerformanceSalaryForm"
  319. slot-scope="{ column, disabled }"
  320. >
  321. <el-input
  322. :disabled="disabled"
  323. :placeholder="'请输入 ' + column.label"
  324. v-model="crudForm.termPerformanceSalary"
  325. @change="salaryAdd(crudForm)"
  326. />
  327. </template>
  328. <template slot="customNineForm" slot-scope="{ column, disabled }">
  329. <el-input
  330. :disabled="disabled"
  331. :placeholder="'请输入 ' + column.label"
  332. v-model="crudForm.customNine"
  333. @change="salaryAdd(crudForm)"
  334. />
  335. </template>
  336. <template slot="customizeForm" slot-scope="{ column, disabled }">
  337. <el-input
  338. :disabled="disabled"
  339. :placeholder="'请输入 ' + column.label"
  340. v-model="crudForm.customize"
  341. @change="salaryAdd(crudForm)"
  342. />
  343. </template>
  344. <template slot="customizeOneForm" slot-scope="{ column, disabled }">
  345. <el-input
  346. :disabled="disabled"
  347. :placeholder="'请输入 ' + column.label"
  348. v-model="crudForm.customizeOne"
  349. @change="salaryAdd(crudForm)"
  350. />
  351. </template>
  352. <template slot="customizeTwoForm" slot-scope="{ column, disabled }">
  353. <el-input
  354. :disabled="disabled"
  355. :placeholder="'请输入 ' + column.label"
  356. v-model="crudForm.customizeTwo"
  357. @change="salaryAdd(crudForm)"
  358. />
  359. </template>
  360. <template slot="customizeThreeForm" slot-scope="{ column, disabled }">
  361. <el-input
  362. :disabled="disabled"
  363. :placeholder="'请输入 ' + column.label"
  364. v-model="crudForm.customizeThree"
  365. @change="salaryAdd(crudForm)"
  366. />
  367. </template>
  368. <!-- 5.奖励工资=奖励1+…+奖励10 -->
  369. <template slot="customAwardForm" slot-scope="{ column, disabled }">
  370. <el-input
  371. :disabled="disabled"
  372. :placeholder="'请输入 ' + column.label"
  373. v-model="crudForm.customAward"
  374. @change="salaryAdd(crudForm)"
  375. />
  376. </template>
  377. <template slot="customAwardOneForm" slot-scope="{ column, disabled }">
  378. <el-input
  379. :disabled="disabled"
  380. :placeholder="'请输入 ' + column.label"
  381. v-model="crudForm.customAwardOne"
  382. @change="salaryAdd(crudForm)"
  383. />
  384. </template>
  385. <template slot="customAwardTwoForm" slot-scope="{ column, disabled }">
  386. <el-input
  387. :disabled="disabled"
  388. :placeholder="'请输入 ' + column.label"
  389. v-model="crudForm.customAwardTwo"
  390. @change="salaryAdd(crudForm)"
  391. />
  392. </template>
  393. <template
  394. slot="customAwardThreeForm"
  395. slot-scope="{ column, disabled }"
  396. >
  397. <el-input
  398. :disabled="disabled"
  399. :placeholder="'请输入 ' + column.label"
  400. v-model="crudForm.customAwardThree"
  401. @change="salaryAdd(crudForm)"
  402. />
  403. </template>
  404. <template
  405. slot="customAwardFourForm"
  406. slot-scope="{ column, disabled }"
  407. >
  408. <el-input
  409. :disabled="disabled"
  410. :placeholder="'请输入 ' + column.label"
  411. v-model="crudForm.customAwardFour"
  412. @change="salaryAdd(crudForm)"
  413. />
  414. </template>
  415. <template
  416. slot="customAwardFiveForm"
  417. slot-scope="{ column, disabled }"
  418. >
  419. <el-input
  420. :disabled="disabled"
  421. :placeholder="'请输入 ' + column.label"
  422. v-model="crudForm.customAwardFive"
  423. @change="salaryAdd(crudForm)"
  424. />
  425. </template>
  426. <template slot="customAwardSixForm" slot-scope="{ column, disabled }">
  427. <el-input
  428. :disabled="disabled"
  429. :placeholder="'请输入 ' + column.label"
  430. v-model="crudForm.customAwardSix"
  431. @change="salaryAdd(crudForm)"
  432. />
  433. </template>
  434. <template
  435. slot="customAwardSevenForm"
  436. slot-scope="{ column, disabled }"
  437. >
  438. <el-input
  439. :disabled="disabled"
  440. :placeholder="'请输入 ' + column.label"
  441. v-model="crudForm.customAwardSeven"
  442. @change="salaryAdd(crudForm)"
  443. />
  444. </template>
  445. <template
  446. slot="customAwardEightForm"
  447. slot-scope="{ column, disabled }"
  448. >
  449. <el-input
  450. :disabled="disabled"
  451. :placeholder="'请输入 ' + column.label"
  452. v-model="crudForm.customAwardEight"
  453. @change="salaryAdd(crudForm)"
  454. />
  455. </template>
  456. <template
  457. slot="customAwardNineForm"
  458. slot-scope="{ column, disabled }"
  459. >
  460. <el-input
  461. :disabled="disabled"
  462. :placeholder="'请输入 ' + column.label"
  463. v-model="crudForm.customAwardNine"
  464. @change="salaryAdd(crudForm)"
  465. />
  466. </template>
  467. <!-- 6.职务津贴=领导干部补贴+领导干部考核补贴+备课组长+备课组长考核补贴+教研组长+教研组长考核补贴 -->
  468. <template
  469. slot="leadingCadreSubsidyForm"
  470. slot-scope="{ column, disabled }"
  471. >
  472. <el-input
  473. :disabled="disabled"
  474. :placeholder="'请输入 ' + column.label"
  475. v-model="crudForm.leadingCadreSubsidy"
  476. @change="salaryAdd(crudForm)"
  477. />
  478. </template>
  479. <template slot="customizeFiveForm" slot-scope="{ column, disabled }">
  480. <el-input
  481. :disabled="disabled"
  482. :placeholder="'请输入 ' + column.label"
  483. v-model="crudForm.customizeFive"
  484. @change="salaryAdd(crudForm)"
  485. />
  486. </template>
  487. <template slot="prepareLessonsForm" slot-scope="{ column, disabled }">
  488. <el-input
  489. :disabled="disabled"
  490. :placeholder="'请输入 ' + column.label"
  491. v-model="crudForm.prepareLessons"
  492. @change="salaryAdd(crudForm)"
  493. />
  494. </template>
  495. <template slot="customizeSixForm" slot-scope="{ column, disabled }">
  496. <el-input
  497. :disabled="disabled"
  498. :placeholder="'请输入 ' + column.label"
  499. v-model="crudForm.customizeSix"
  500. @change="salaryAdd(crudForm)"
  501. />
  502. </template>
  503. <template
  504. slot="teachingResearchForm"
  505. slot-scope="{ column, disabled }"
  506. >
  507. <el-input
  508. :disabled="disabled"
  509. :placeholder="'请输入 ' + column.label"
  510. v-model="crudForm.teachingResearch"
  511. @change="salaryAdd(crudForm)"
  512. />
  513. </template>
  514. <template slot="customizeSevenForm" slot-scope="{ column, disabled }">
  515. <el-input
  516. :disabled="disabled"
  517. :placeholder="'请输入 ' + column.label"
  518. v-model="crudForm.customizeSeven"
  519. @change="salaryAdd(crudForm)"
  520. />
  521. </template>
  522. <!-- 7.班主任津贴=班主任补贴+班额津贴-校车考核-班级微信群考核-财务考核+班主任考核津贴 -->
  523. <template
  524. slot="classTeacherFeeForm"
  525. slot-scope="{ column, disabled }"
  526. >
  527. <el-input
  528. :disabled="disabled"
  529. :placeholder="'请输入 ' + column.label"
  530. v-model="crudForm.classTeacherFee"
  531. @change="salaryAdd(crudForm)"
  532. />
  533. </template>
  534. <template slot="classesForm" slot-scope="{ column, disabled }">
  535. <el-input
  536. :disabled="disabled"
  537. :placeholder="'请输入 ' + column.label"
  538. v-model="crudForm.classes"
  539. @change="salaryAdd(crudForm)"
  540. />
  541. </template>
  542. <template
  543. slot="adjustTheBalanceForm"
  544. slot-scope="{ column, disabled }"
  545. >
  546. <el-input
  547. :disabled="disabled"
  548. :placeholder="'请输入 ' + column.label"
  549. v-model="crudForm.adjustTheBalance"
  550. @change="salaryAdd(crudForm)"
  551. />
  552. </template>
  553. <template slot="payrollCreditForm" slot-scope="{ column, disabled }">
  554. <el-input
  555. :disabled="disabled"
  556. :placeholder="'请输入 ' + column.label"
  557. v-model="crudForm.payrollCredit"
  558. @change="salaryAdd(crudForm)"
  559. />
  560. </template>
  561. <template slot="paidForm" slot-scope="{ column, disabled }">
  562. <el-input
  563. :disabled="disabled"
  564. :placeholder="'请输入 ' + column.label"
  565. v-model="crudForm.paid"
  566. @change="salaryAdd(crudForm)"
  567. />
  568. </template>
  569. <template slot="customizeEightForm" slot-scope="{ column, disabled }">
  570. <el-input
  571. :disabled="disabled"
  572. :placeholder="'请输入 ' + column.label"
  573. v-model="crudForm.customizeEight"
  574. @change="salaryAdd(crudForm)"
  575. />
  576. </template>
  577. <!-- 8.补贴项=微信+产假工资+周末工作量工资+补贴1+…+补贴10 -->
  578. <template slot="wxForm" slot-scope="{ column, disabled }">
  579. <el-input
  580. :disabled="disabled"
  581. :placeholder="'请输入 ' + column.label"
  582. v-model="crudForm.wx"
  583. @change="salaryAdd(crudForm)"
  584. />
  585. </template>
  586. <template
  587. slot="maternityLeaveSalaryForm"
  588. slot-scope="{ column, disabled }"
  589. >
  590. <el-input
  591. :disabled="disabled"
  592. :placeholder="'请输入 ' + column.label"
  593. v-model="crudForm.maternityLeaveSalary"
  594. @change="salaryAdd(crudForm)"
  595. />
  596. </template>
  597. <template
  598. slot="overtimeAtWeekendForm"
  599. slot-scope="{ column, disabled }"
  600. >
  601. <el-input
  602. :disabled="disabled"
  603. :placeholder="'请输入 ' + column.label"
  604. v-model="crudForm.overtimeAtWeekend"
  605. @change="salaryAdd(crudForm)"
  606. />
  607. </template>
  608. <template
  609. slot="yearUpPerformanceForm"
  610. slot-scope="{ column, disabled }"
  611. >
  612. <el-input
  613. :disabled="disabled"
  614. :placeholder="'请输入 ' + column.label"
  615. v-model="crudForm.yearUpPerformance"
  616. @change="salaryAdd(crudForm)"
  617. />
  618. </template>
  619. <template
  620. slot="yearDownPerformanceForm"
  621. slot-scope="{ column, disabled }"
  622. >
  623. <el-input
  624. :disabled="disabled"
  625. :placeholder="'请输入 ' + column.label"
  626. v-model="crudForm.yearDownPerformance"
  627. @change="salaryAdd(crudForm)"
  628. />
  629. </template>
  630. <template
  631. slot="cadreAllowanceReservationForm"
  632. slot-scope="{ column, disabled }"
  633. >
  634. <el-input
  635. :disabled="disabled"
  636. :placeholder="'请输入 ' + column.label"
  637. v-model="crudForm.cadreAllowanceReservation"
  638. @change="salaryAdd(crudForm)"
  639. />
  640. </template>
  641. <template
  642. slot="vacationOvertimePayForm"
  643. slot-scope="{ column, disabled }"
  644. >
  645. <el-input
  646. :disabled="disabled"
  647. :placeholder="'请输入 ' + column.label"
  648. v-model="crudForm.vacationOvertimePay"
  649. @change="salaryAdd(crudForm)"
  650. />
  651. </template>
  652. <template slot="newPostTrainForm" slot-scope="{ column, disabled }">
  653. <el-input
  654. :disabled="disabled"
  655. :placeholder="'请输入 ' + column.label"
  656. v-model="crudForm.newPostTrain"
  657. @change="salaryAdd(crudForm)"
  658. />
  659. </template>
  660. <template slot="winningPrizeForm" slot-scope="{ column, disabled }">
  661. <el-input
  662. :disabled="disabled"
  663. :placeholder="'请输入 ' + column.label"
  664. v-model="crudForm.winningPrize"
  665. @change="salaryAdd(crudForm)"
  666. />
  667. </template>
  668. <template slot="classMinisterForm" slot-scope="{ column, disabled }">
  669. <el-input
  670. :disabled="disabled"
  671. :placeholder="'请输入 ' + column.label"
  672. v-model="crudForm.classMinister"
  673. @change="salaryAdd(crudForm)"
  674. />
  675. </template>
  676. <template
  677. slot="monthViceClassFeeForm"
  678. slot-scope="{ column, disabled }"
  679. >
  680. <el-input
  681. :disabled="disabled"
  682. :placeholder="'请输入 ' + column.label"
  683. v-model="crudForm.monthViceClassFee"
  684. @change="salaryAdd(crudForm)"
  685. />
  686. </template>
  687. <template slot="safetyFeesForm" slot-scope="{ column, disabled }">
  688. <el-input
  689. :disabled="disabled"
  690. :placeholder="'请输入 ' + column.label"
  691. v-model="crudForm.safetyFees"
  692. @change="salaryAdd(crudForm)"
  693. />
  694. </template>
  695. <template
  696. slot="reserveReplacementForm"
  697. slot-scope="{ column, disabled }"
  698. >
  699. <el-input
  700. :disabled="disabled"
  701. :placeholder="'请输入 ' + column.label"
  702. v-model="crudForm.reserveReplacement"
  703. @change="salaryAdd(crudForm)"
  704. />
  705. </template>
  706. <!-- 9.扣除项=出勤+督查+超额电话费+学习强国+宿舍管理费+生育津贴+扣除1+…+扣除10 -->
  707. <template slot="attendanceForm" slot-scope="{ column, disabled }">
  708. <el-input
  709. :disabled="disabled"
  710. :placeholder="'请输入 ' + column.label"
  711. v-model="crudForm.attendance"
  712. @change="salaryAdd(crudForm)"
  713. />
  714. </template>
  715. <template slot="inspectorFinesForm" slot-scope="{ column, disabled }">
  716. <el-input
  717. :disabled="disabled"
  718. :placeholder="'请输入 ' + column.label"
  719. v-model="crudForm.inspectorFines"
  720. @change="salaryAdd(crudForm)"
  721. />
  722. </template>
  723. <template slot="telephoneBillForm" slot-scope="{ column, disabled }">
  724. <el-input
  725. :disabled="disabled"
  726. :placeholder="'请输入 ' + column.label"
  727. v-model="crudForm.telephoneBill"
  728. @change="salaryAdd(crudForm)"
  729. />
  730. </template>
  731. <template slot="learningPowerForm" slot-scope="{ column, disabled }">
  732. <el-input
  733. :disabled="disabled"
  734. :placeholder="'请输入 ' + column.label"
  735. v-model="crudForm.learningPower"
  736. @change="salaryAdd(crudForm)"
  737. />
  738. </template>
  739. <template
  740. slot="dormitoryManagementFeeForm"
  741. slot-scope="{ column, disabled }"
  742. >
  743. <el-input
  744. :disabled="disabled"
  745. :placeholder="'请输入 ' + column.label"
  746. v-model="crudForm.dormitoryManagementFee"
  747. @change="salaryAdd(crudForm)"
  748. />
  749. </template>
  750. <template
  751. slot="childbirthAllowanceForm"
  752. slot-scope="{ column, disabled }"
  753. >
  754. <el-input
  755. :disabled="disabled"
  756. :placeholder="'请输入 ' + column.label"
  757. v-model="crudForm.childbirthAllowance"
  758. @change="salaryAdd(crudForm)"
  759. />
  760. </template>
  761. <template slot="ribbonOneForm" slot-scope="{ column, disabled }">
  762. <el-input
  763. :disabled="disabled"
  764. :placeholder="'请输入 ' + column.label"
  765. v-model="crudForm.ribbonOne"
  766. @change="salaryAdd(crudForm)"
  767. />
  768. </template>
  769. <template slot="ribbonTwoForm" slot-scope="{ column, disabled }">
  770. <el-input
  771. :disabled="disabled"
  772. :placeholder="'请输入 ' + column.label"
  773. v-model="crudForm.ribbonTwo"
  774. @change="salaryAdd(crudForm)"
  775. />
  776. </template>
  777. <template slot="ribbonThreeForm" slot-scope="{ column, disabled }">
  778. <el-input
  779. :disabled="disabled"
  780. :placeholder="'请输入 ' + column.label"
  781. v-model="crudForm.ribbonThree"
  782. @change="salaryAdd(crudForm)"
  783. />
  784. </template>
  785. <template slot="ribbonFourForm" slot-scope="{ column, disabled }">
  786. <el-input
  787. :disabled="disabled"
  788. :placeholder="'请输入 ' + column.label"
  789. v-model="crudForm.ribbonFour"
  790. @change="salaryAdd(crudForm)"
  791. />
  792. </template>
  793. <template slot="ribbonFiveForm" slot-scope="{ column, disabled }">
  794. <el-input
  795. :disabled="disabled"
  796. :placeholder="'请输入 ' + column.label"
  797. v-model="crudForm.ribbonFive"
  798. @change="salaryAdd(crudForm)"
  799. />
  800. </template>
  801. <template slot="ribbonSixForm" slot-scope="{ column, disabled }">
  802. <el-input
  803. :disabled="disabled"
  804. :placeholder="'请输入 ' + column.label"
  805. v-model="crudForm.ribbonSix"
  806. @change="salaryAdd(crudForm)"
  807. />
  808. </template>
  809. <template slot="ribbonSevenForm" slot-scope="{ column, disabled }">
  810. <el-input
  811. :disabled="disabled"
  812. :placeholder="'请输入 ' + column.label"
  813. v-model="crudForm.ribbonSeven"
  814. @change="salaryAdd(crudForm)"
  815. />
  816. </template>
  817. <template slot="ribbonEightForm" slot-scope="{ column, disabled }">
  818. <el-input
  819. :disabled="disabled"
  820. :placeholder="'请输入 ' + column.label"
  821. v-model="crudForm.ribbonEight"
  822. @change="salaryAdd(crudForm)"
  823. />
  824. </template>
  825. <template slot="ribbonNineForm" slot-scope="{ column, disabled }">
  826. <el-input
  827. :disabled="disabled"
  828. :placeholder="'请输入 ' + column.label"
  829. v-model="crudForm.ribbonNine"
  830. @change="salaryAdd(crudForm)"
  831. />
  832. </template>
  833. <template slot="pauseNoPayForm" slot-scope="{ column, disabled }">
  834. <el-input
  835. :disabled="disabled"
  836. :placeholder="'请输入 ' + column.label"
  837. v-model="crudForm.pauseNoPay"
  838. @change="salaryAdd(crudForm)"
  839. />
  840. </template>
  841. <!-- 10.应发工资=基本工资+工作量工资+日常考核工资+奖励工资+职务津贴+班主任津贴+补贴项-扣除项+保险(个人部分)+公积金(个人部分).. 大于800 保险(个人部分) 不加 -->
  842. <template slot="basicsSalaryForm" slot-scope="{ column, disabled }">
  843. <el-input
  844. :disabled="disabled"
  845. :placeholder="'请输入 ' + column.label"
  846. v-model="crudForm.basicsSalary"
  847. @change="salaryAdd(crudForm)"
  848. />
  849. </template>
  850. <template slot="workloadSalaryForm" slot-scope="{ column, disabled }">
  851. <el-input
  852. :disabled="disabled"
  853. :placeholder="'请输入 ' + column.label"
  854. v-model="crudForm.workloadSalary"
  855. @change="salaryAdd(crudForm)"
  856. />
  857. </template>
  858. <template
  859. slot="dailyAssessmentSalaryForm"
  860. slot-scope="{ column, disabled }"
  861. >
  862. <el-input
  863. :disabled="disabled"
  864. :placeholder="'请输入 ' + column.label"
  865. v-model="crudForm.dailyAssessmentSalary"
  866. @change="salaryAdd(crudForm)"
  867. />
  868. </template>
  869. <template slot="awardSalaryForm" slot-scope="{ column, disabled }">
  870. <el-input
  871. :disabled="disabled"
  872. :placeholder="'请输入 ' + column.label"
  873. v-model="crudForm.awardSalary"
  874. @change="salaryAdd(crudForm)"
  875. />
  876. </template>
  877. <template slot="dutyAllowancesForm" slot-scope="{ column, disabled }">
  878. <el-input
  879. :disabled="disabled"
  880. :placeholder="'请输入 ' + column.label"
  881. v-model="crudForm.dutyAllowances"
  882. @change="salaryAdd(crudForm)"
  883. />
  884. </template>
  885. <template
  886. slot="classTeacherSubsidyForm"
  887. slot-scope="{ column, disabled }"
  888. >
  889. <el-input
  890. :disabled="disabled"
  891. :placeholder="'请输入 ' + column.label"
  892. v-model="crudForm.classTeacherSubsidy"
  893. @change="salaryAdd(crudForm)"
  894. />
  895. </template>
  896. <template slot="subsidyForm" slot-scope="{ column, disabled }">
  897. <el-input
  898. :disabled="disabled"
  899. :placeholder="'请输入 ' + column.label"
  900. v-model="crudForm.subsidy"
  901. @change="salaryAdd(crudForm)"
  902. />
  903. </template>
  904. <template slot="deductionsForm" slot-scope="{ column, disabled }">
  905. <el-input
  906. :disabled="disabled"
  907. :placeholder="'请输入 ' + column.label"
  908. v-model="crudForm.deductions"
  909. @change="salaryAdd(crudForm)"
  910. />
  911. </template>
  912. <template
  913. slot="insurancePersonageForm"
  914. slot-scope="{ column, disabled }"
  915. >
  916. <el-input
  917. :disabled="disabled"
  918. :placeholder="'请输入 ' + column.label"
  919. v-model="crudForm.insurancePersonage"
  920. @change="salaryAdd(crudForm)"
  921. />
  922. </template>
  923. <template
  924. slot="reservedFundsPersonageForm"
  925. slot-scope="{ column, disabled }"
  926. >
  927. <el-input
  928. :disabled="disabled"
  929. :placeholder="'请输入 ' + column.label"
  930. v-model="crudForm.reservedFundsPersonage"
  931. @change="salaryAdd(crudForm)"
  932. />
  933. </template>
  934. <!-- 11.实发工资=应发工资-个人所得税-个人保险-公积金个人 -->
  935. <template slot="salaryForm" slot-scope="{ column, disabled }">
  936. <el-input
  937. :disabled="disabled"
  938. :placeholder="'请输入 ' + column.label"
  939. v-model="crudForm.salary"
  940. @change="salaryAdd(crudForm)"
  941. />
  942. </template>
  943. <template slot="personageTaxesForm" slot-scope="{ column, disabled }">
  944. <el-input
  945. :disabled="disabled"
  946. :placeholder="'请输入 ' + column.label"
  947. v-model="crudForm.personageTaxes"
  948. @change="salaryAdd(crudForm)"
  949. />
  950. </template>
  951. <!-- eslint-disable -->
  952. <template
  953. slot="enjoyOfficeTreatmentForm"
  954. slot-scope="{ column, disabled }"
  955. >
  956. <avue-radio
  957. v-model="crudForm.enjoyOfficeTreatment"
  958. :dic="dic"
  959. :disabled="disabled"
  960. @change="salaryAdd(crudForm)"
  961. ></avue-radio>
  962. </template>
  963. <!-- eslint-enable -->
  964. <template slot-scope="{ row, index }" slot="menu">
  965. <el-button
  966. type="text"
  967. size="small"
  968. @click.stop="$refs.crud.rowEdit(row, index)"
  969. :disabled="detailData.status == 1"
  970. >
  971. {{ row.$cellEdit ? "保存" : "编辑" }}
  972. </el-button>
  973. <el-button
  974. type="text"
  975. size="small"
  976. @click.stop="rowDel(row)"
  977. :disabled="detailData.status == 1"
  978. >
  979. 删除
  980. </el-button>
  981. </template>
  982. </avue-crud>
  983. <el-dialog
  984. title="导入数据"
  985. append-to-body
  986. :visible.sync="excelBox"
  987. width="555px"
  988. v-dialog-drag
  989. >
  990. <avue-form
  991. :option="excelOption"
  992. v-model="excelForm"
  993. table-loading="excelLoading"
  994. :upload-after="uploadAfter"
  995. class="schoolupload"
  996. >
  997. <template slot="excelTemplate">
  998. <el-button type="primary" @click="derivation">
  999. 点击下载<i class="el-icon-download el-icon--right"></i>
  1000. </el-button>
  1001. </template>
  1002. <template slot="date">
  1003. <span>
  1004. {{ time }}
  1005. </span>
  1006. </template>
  1007. </avue-form>
  1008. <p style="text-align: center;color: #DC0505">
  1009. 温馨提示 第一次导入时请先下载模板
  1010. </p>
  1011. </el-dialog>
  1012. </basic-container>
  1013. <containerTitle title="导入附件记录"></containerTitle>
  1014. <basic-container>
  1015. <avue-crud
  1016. :data="annexData"
  1017. :option="annexOption"
  1018. :page.sync="annexPage"
  1019. :table-loading="annexLoading"
  1020. @current-change="currentannexChange"
  1021. @size-change="sizeannexChange"
  1022. @saveColumn="saveannexColumn"
  1023. @refresh-change="refreshannexChange"
  1024. :cell-style="cellStyle"
  1025. >
  1026. <template slot-scope="{ row, index }" slot="menu">
  1027. <el-button
  1028. type="text"
  1029. size="small"
  1030. @click.stop="rowDownload(row, index)"
  1031. >
  1032. 下载
  1033. </el-button>
  1034. </template>
  1035. </avue-crud>
  1036. </basic-container>
  1037. <report-dialog
  1038. :switchDialog="switchDialog"
  1039. :reportId="form.id"
  1040. reportName="小学部"
  1041. @onClose="onClose()"
  1042. ></report-dialog>
  1043. <el-dialog
  1044. title="温馨提示"
  1045. :visible.sync="dialogVisible"
  1046. width="70%"
  1047. :before-close="handleClose"
  1048. append-to-body
  1049. class="abnormal"
  1050. >
  1051. <span>
  1052. <avue-crud :data="auditList" :option="auditOption">
  1053. <template slot="menuLeft">
  1054. <el-button type="info" size="small" @click.stop="exportAbnormal()"
  1055. >导出
  1056. </el-button>
  1057. </template>
  1058. </avue-crud></span
  1059. >
  1060. <span slot="footer" class="dialog-footer">
  1061. <el-button @click="dialogVisible = false">关闭</el-button>
  1062. </span>
  1063. </el-dialog>
  1064. </div>
  1065. </div>
  1066. </template>
  1067. <script>
  1068. import { getToken } from "@/util/auth";
  1069. import { dateFormat } from "@/util/date";
  1070. import {
  1071. detail,
  1072. copyDetail,
  1073. submit,
  1074. delItem,
  1075. itemAnnex,
  1076. itemDetail,
  1077. pleaseCheck,
  1078. calculate,
  1079. calculate2
  1080. } from "@/api/salaryManagement/primarySchool";
  1081. import { numCal } from "@/util/calculate";
  1082. import { optionList, auditOption } from "./js/optionList";
  1083. import reportDialog from "@/components/report-dialog/main";
  1084. import { mapGetters } from "vuex";
  1085. export default {
  1086. name: "detailsPage",
  1087. data() {
  1088. return {
  1089. time: "",
  1090. dialogVisible: false,
  1091. switchDialog: false,
  1092. annexLoading: false,
  1093. crudForm: {},
  1094. excelBox: false,
  1095. loading: false,
  1096. allloading: false,
  1097. xcelLoading: false,
  1098. loadingBtn: false,
  1099. excelForm: {
  1100. type: "1"
  1101. },
  1102. excelOption: {
  1103. submitBtn: false,
  1104. emptyBtn: false,
  1105. column: [
  1106. {
  1107. label: "导入类型",
  1108. prop: "type",
  1109. type: "select",
  1110. dicUrl: "/api/blade-system/dict-biz/dictionary?code=import_type",
  1111. props: {
  1112. label: "dictValue",
  1113. value: "dictKey"
  1114. },
  1115. row: true,
  1116. span: 12
  1117. },
  1118. {
  1119. label: "模板下载",
  1120. prop: "excelTemplate",
  1121. formslot: true,
  1122. span: 10
  1123. },
  1124. {
  1125. label: "当前时间",
  1126. prop: "date",
  1127. span: 13
  1128. },
  1129. {
  1130. label: "模板上传",
  1131. prop: "excelFile",
  1132. type: "upload",
  1133. drag: true,
  1134. loadText: "模板上传中,请稍等",
  1135. span: 24,
  1136. propsHttp: {
  1137. res: "data"
  1138. },
  1139. tip: "请上传 .xls,.xlsx 标准格式文件",
  1140. action: "/api/blade-school/salaryitem/import/workloadExcel",
  1141. disabled: false
  1142. }
  1143. ]
  1144. },
  1145. form: {},
  1146. dataList: [],
  1147. page: {
  1148. pageSize: 20,
  1149. currentPage: 1,
  1150. total: 0,
  1151. pageSizes: [
  1152. 10,
  1153. 20,
  1154. 30,
  1155. 40,
  1156. 50,
  1157. 100,
  1158. 150,
  1159. 200,
  1160. 250,
  1161. 300,
  1162. 350,
  1163. 400,
  1164. 450,
  1165. 500
  1166. ]
  1167. },
  1168. drawer: false,
  1169. dic: [
  1170. {
  1171. label: "是",
  1172. value: "是"
  1173. },
  1174. {
  1175. label: "否",
  1176. value: "否"
  1177. }
  1178. ],
  1179. option: {
  1180. menuBtn: false,
  1181. labelWidth: 80,
  1182. column: [
  1183. {
  1184. label: "年",
  1185. prop: "annual",
  1186. type: "year",
  1187. valueFormat: "yyyy",
  1188. rules: [
  1189. {
  1190. required: true,
  1191. message: "",
  1192. trigger: "blur"
  1193. }
  1194. ],
  1195. span: 5
  1196. },
  1197. {
  1198. label: "月",
  1199. prop: "moon",
  1200. type: "select",
  1201. filterable: true,
  1202. dicUrl: "/api/blade-system/dict-biz/dictionary?code=month",
  1203. props: {
  1204. label: "dictValue",
  1205. value: "dictKey"
  1206. },
  1207. span: 5,
  1208. rules: [
  1209. {
  1210. required: true,
  1211. message: "",
  1212. trigger: "blur"
  1213. }
  1214. ]
  1215. },
  1216. {
  1217. label: "教师人数",
  1218. prop: "personNumber",
  1219. span: 4,
  1220. disabled: true
  1221. },
  1222. {
  1223. label: "学生人数",
  1224. prop: "studentNumber",
  1225. rules: [
  1226. {
  1227. required: true,
  1228. message: "",
  1229. trigger: "blur"
  1230. }
  1231. ],
  1232. span: 4
  1233. },
  1234. {
  1235. label: "状态",
  1236. prop: "status",
  1237. type: "select",
  1238. span: 6,
  1239. props: {
  1240. label: "name",
  1241. value: "code"
  1242. },
  1243. dicData: [
  1244. {
  1245. name: "录入",
  1246. code: 0
  1247. },
  1248. {
  1249. name: "申请审批",
  1250. code: 1
  1251. },
  1252. {
  1253. name: "审批中",
  1254. code: 2
  1255. },
  1256. {
  1257. name: "审批通过",
  1258. code: 3
  1259. }
  1260. ],
  1261. disabled: true
  1262. },
  1263. {
  1264. label: "备注",
  1265. prop: "remarks",
  1266. type: "textarea",
  1267. span: 24,
  1268. minRows: 2
  1269. }
  1270. ]
  1271. },
  1272. optionList: {},
  1273. exportUrl: "/api/blade-school/salaryitem/export/workloadExcel",
  1274. annexData: [],
  1275. annexOption: {
  1276. align: "center",
  1277. menuAlign: "center",
  1278. addBtn: false,
  1279. border: true,
  1280. index: true,
  1281. viewBtn: false,
  1282. editBtn: false,
  1283. delBtn: false,
  1284. stripe: true,
  1285. menuWidth: 100,
  1286. column: [
  1287. {
  1288. label: "文件类型",
  1289. prop: "fileType",
  1290. overHidden: true
  1291. },
  1292. {
  1293. label: "文件名",
  1294. prop: "cname",
  1295. overHidden: true
  1296. },
  1297. {
  1298. label: "创建时间",
  1299. prop: "createTime",
  1300. overHidden: true
  1301. },
  1302. {
  1303. label: "创建人",
  1304. prop: "createName",
  1305. overHidden: true
  1306. },
  1307. {
  1308. label: "备注",
  1309. prop: "remarks",
  1310. overHidden: true
  1311. }
  1312. ]
  1313. },
  1314. annexPage: {
  1315. pageSize: 10,
  1316. currentPage: 1,
  1317. total: 0,
  1318. pageSizes: [
  1319. 10,
  1320. 20,
  1321. 30,
  1322. 40,
  1323. 50,
  1324. 100,
  1325. 150,
  1326. 200,
  1327. 250,
  1328. 300,
  1329. 350,
  1330. 400,
  1331. 450,
  1332. 500
  1333. ]
  1334. },
  1335. auditList: [],
  1336. auditOption: auditOption
  1337. };
  1338. },
  1339. props: {
  1340. detailData: {
  1341. type: Object
  1342. }
  1343. },
  1344. components: {
  1345. reportDialog
  1346. },
  1347. async created() {
  1348. this.optionList = await this.getColumnData(
  1349. this.getColumnName(109),
  1350. optionList
  1351. );
  1352. if (this.detailData.id) {
  1353. this.getDetail(this.detailData.id);
  1354. }
  1355. if (this.detailData.status == 1) {
  1356. this.$set(this.option, "disabled", true);
  1357. }
  1358. this.getWorkDicts("marital_status").then(res => {
  1359. this.findObject(this.optionList.column, "code").dicData = res.data.data;
  1360. this.$refs.crud.init();
  1361. });
  1362. this.optionList.height = 450;
  1363. this.annexOption.height = 450;
  1364. },
  1365. methods: {
  1366. // getOption() {
  1367. // let roleName = localStorage.getItem("roleName")
  1368. // ? localStorage.getItem("roleName").split(",")
  1369. // : [];
  1370. // if (roleName.find(el => el == "admin") == "XBKJ") {
  1371. // this.optionList.column.forEach(el => {
  1372. // el.disabled = true;
  1373. // });
  1374. // // this.findObject(this.option.column, "salaryWithdrawalStandard").disabled = false;
  1375. // }
  1376. // },
  1377. getTime() {
  1378. setInterval(() => {
  1379. this.time = dateFormat(new Date());
  1380. }, 1000);
  1381. },
  1382. cellStyle() {
  1383. return "padding:0;height:40px;";
  1384. },
  1385. headerCellClassName({ row, column, rowIndex, columnIndex }) {
  1386. if (
  1387. column.property == "basicsSalary" ||
  1388. column.property == "workloadSalary" ||
  1389. column.property == "customizeFour" ||
  1390. column.property == "awardSalary" ||
  1391. column.property == "awardSalary" ||
  1392. column.property == "dutyAllowances" ||
  1393. column.property == "classTeacherSubsidy" ||
  1394. column.property == "subsidy" ||
  1395. column.property == "deductions" ||
  1396. column.property == "salary" ||
  1397. column.property == "fSalary"
  1398. ) {
  1399. return "headerCellClass";
  1400. }
  1401. if (
  1402. column.property == "salaryWithdrawalStandard" ||
  1403. column.property == "rankWithdrawalStandard" ||
  1404. column.property == "customEight" ||
  1405. column.property == "rankStandard" ||
  1406. column.property == "salaryBaseName" ||
  1407. column.property == "workloadSalaryCritertion" ||
  1408. column.property == "virtualWorkloadSalary" ||
  1409. column.property == "doubleCease" ||
  1410. column.property == "dailyAssessmentCriteria" ||
  1411. column.property == "virtualDailyAssessmentCriteria" ||
  1412. column.property == "termPerformanceSalaryName" ||
  1413. column.property == "salaryWithdrawalStandard" ||
  1414. column.property == "rankWithdrawalStandard" ||
  1415. column.property == "rankStandard" ||
  1416. column.property == "salaryBaseName" ||
  1417. column.property == "workloadSalaryCritertion" ||
  1418. column.property == "virtualWorkloadSalary" ||
  1419. column.property == "doubleCease" ||
  1420. column.property == "dailyAssessmentCriteria" ||
  1421. column.property == "otherCriterion" ||
  1422. column.property == "teacherSubsidy" ||
  1423. column.property == "teacherAssessSubsidy" ||
  1424. column.property == "performanceAwardName" ||
  1425. column.property == "capitalIncreaseName" ||
  1426. column.property == "leadingCadreSubsidyName" ||
  1427. column.property == "assessLeadingCadreSubsidyName" ||
  1428. column.property == "prepareLessonsName" ||
  1429. column.property == "assessPrepareLessonsName" ||
  1430. column.property == "teachingResearchName" ||
  1431. column.property == "assessTeachingResearchName" ||
  1432. column.property == "virtualDoubleCease" ||
  1433. column.property == "schoolAge"
  1434. ) {
  1435. return "headerCellClass2";
  1436. }
  1437. },
  1438. copyDoc() {
  1439. this.$emit("copyOrder", this.form.id);
  1440. },
  1441. getDetail(id) {
  1442. if (this.detailData.status == "copy") {
  1443. this.allloading = true;
  1444. copyDetail(id)
  1445. .then(res => {
  1446. this.form = res.data.data;
  1447. this.getItemDetail();
  1448. })
  1449. .finally(() => {
  1450. this.allloading = false;
  1451. });
  1452. } else {
  1453. detail(id).then(res => {
  1454. this.form = res.data.data;
  1455. this.getItemDetail();
  1456. this.getitemAnnex();
  1457. });
  1458. }
  1459. },
  1460. getItemDetail() {
  1461. const data = {
  1462. pid: this.form.id,
  1463. ...this.search
  1464. };
  1465. this.loading = true;
  1466. itemDetail(this.page.currentPage, this.page.pageSize, data)
  1467. .then(res => {
  1468. this.dataList = res.data.data.records;
  1469. this.page.total = res.data.data.total;
  1470. })
  1471. .finally(() => {
  1472. this.loading = false;
  1473. });
  1474. },
  1475. getitemAnnex() {
  1476. const data = {
  1477. pid: this.form.id
  1478. };
  1479. this.annexLoading = true;
  1480. itemAnnex(this.annexPage.currentPage, this.annexPage.pageSize, data)
  1481. .then(res => {
  1482. this.annexData = res.data.data.records;
  1483. this.annexPage.total = res.data.data.total;
  1484. })
  1485. .finally(() => {
  1486. this.annexLoading = false;
  1487. });
  1488. },
  1489. rowSave(row, done, loading) {
  1490. if (!row.cname) {
  1491. loading();
  1492. return this.$message.error("请完善姓名");
  1493. }
  1494. if (!row.idNumber) {
  1495. loading();
  1496. return this.$message.error("请完善身份证号");
  1497. }
  1498. const arr = [];
  1499. arr.push(row);
  1500. submit({ ...this.form, salaryItemList: arr })
  1501. .then(res => {
  1502. this.$message.success("保存成功");
  1503. this.form = res.data.data;
  1504. this.getItemDetail();
  1505. done();
  1506. })
  1507. .finally(() => {
  1508. loading();
  1509. });
  1510. },
  1511. rowUpdate(row, index, done, loading) {
  1512. if (!row.cname) {
  1513. loading();
  1514. return this.$message.error("请完善姓名");
  1515. }
  1516. if (!row.idNumber) {
  1517. loading();
  1518. return this.$message.error("请完善身份证号");
  1519. }
  1520. const arr = [];
  1521. arr.push(row);
  1522. submit({ ...this.form, salaryType: "小学部", salaryItemList: arr })
  1523. .then(res => {
  1524. this.$message.success("修改成功");
  1525. this.form = res.data.data;
  1526. this.getItemDetail();
  1527. done();
  1528. })
  1529. .finally(() => {
  1530. loading();
  1531. });
  1532. },
  1533. rowCell(row, index) {
  1534. if (row.$cellEdit == true) {
  1535. if (!row.cname) {
  1536. return this.$message.error("请完善姓名");
  1537. }
  1538. if (!row.idNumber) {
  1539. return this.$message.error("请完善身份证号");
  1540. }
  1541. // if (!row.rankStandard) {
  1542. // return this.$message.error("请完善职级标准");
  1543. // }
  1544. const arr = [];
  1545. arr.push(row);
  1546. this.loading = true;
  1547. submit({ ...this.form, salaryItemList: arr })
  1548. .then(res => {
  1549. this.$message.success("保存成功");
  1550. this.form = res.data.data;
  1551. })
  1552. .finally(() => {
  1553. this.loading = false;
  1554. });
  1555. this.$set(row, "$cellEdit", false);
  1556. } else {
  1557. this.$set(row, "$cellEdit", true);
  1558. }
  1559. },
  1560. rowDel(row) {
  1561. this.$confirm("确定删除数据?", {
  1562. confirmButtonText: "确定",
  1563. cancelButtonText: "取消",
  1564. type: "warning"
  1565. }).then(() => {
  1566. if (row.id) {
  1567. delItem(row.id).then(res => {
  1568. this.$message({
  1569. type: "success",
  1570. message: "删除成功!"
  1571. });
  1572. this.getItemDetail();
  1573. });
  1574. } else {
  1575. this.$message({
  1576. type: "success",
  1577. message: "删除成功!"
  1578. });
  1579. this.dataList.splice(row.$index, 1);
  1580. }
  1581. });
  1582. },
  1583. rowDownload(row) {
  1584. window.open(`${row.url}?${this.website.tokenHeader}=${getToken()}`);
  1585. },
  1586. searchChange(params, done) {
  1587. if (!this.form.id) {
  1588. done();
  1589. return this.$message.error("请保存数据");
  1590. }
  1591. this.getItemDetail();
  1592. done();
  1593. },
  1594. currentChange(val) {
  1595. this.page.currentPage = val;
  1596. this.getItemDetail();
  1597. },
  1598. sizeChange(val) {
  1599. this.page.currentPage = 1;
  1600. this.page.pageSize = val;
  1601. this.getItemDetail();
  1602. },
  1603. refreshChange() {
  1604. this.getItemDetail();
  1605. },
  1606. currentannexChange(val) {
  1607. this.annexPage.currentPage = val;
  1608. this.getitemAnnex();
  1609. },
  1610. sizeannexChange(val) {
  1611. this.annexPage.currentPage = 1;
  1612. this.annexPage.pageSize = val;
  1613. this.getitemAnnex();
  1614. },
  1615. refreshannexChange() {
  1616. this.getitemAnnex();
  1617. },
  1618. uploadAfter(res, done, loading, column) {
  1619. this.excelBox = false;
  1620. // this.$message.success("导入成功!");
  1621. this.getItemDetail();
  1622. this.getitemAnnex();
  1623. done();
  1624. },
  1625. //修改提交触发
  1626. editCustomer() {
  1627. this.$refs["form"].validate((valid, done) => {
  1628. done();
  1629. if (valid) {
  1630. for (let i = 0; i < this.dataList.length; i++) {
  1631. if (!this.dataList[i].cname) {
  1632. return this.$message.error(
  1633. "请完善第" + Number(1 + i) + "行的姓名"
  1634. );
  1635. }
  1636. if (!this.dataList[i].idNumber) {
  1637. return this.$message.error(
  1638. "请完善第" + Number(1 + i) + "行的身份证号"
  1639. );
  1640. }
  1641. if (!this.dataList[i].rankStandard) {
  1642. return this.$message.error(
  1643. "请完善第" + Number(1 + i) + "行的职级标准"
  1644. );
  1645. }
  1646. }
  1647. this.loadingBtn = true;
  1648. submit({
  1649. ...this.form,
  1650. salaryType: "小学部",
  1651. salaryItemList: this.dataList
  1652. })
  1653. .then(res => {
  1654. this.$message.success("保存成功");
  1655. this.form = res.data.data;
  1656. this.getItemDetail();
  1657. })
  1658. .finally(() => {
  1659. this.loadingBtn = false;
  1660. });
  1661. } else {
  1662. return false;
  1663. }
  1664. });
  1665. },
  1666. derivation() {
  1667. if (!this.excelForm.type) {
  1668. return this.$message.error("请选择导入类型");
  1669. }
  1670. if (!this.exportUrl) {
  1671. return this.$message.error("暂无模板文件");
  1672. }
  1673. window.open(
  1674. `${this.exportUrl}?${this.website.tokenHeader}=${getToken()}`
  1675. );
  1676. },
  1677. openExport() {
  1678. if (!this.form.id) {
  1679. return this.$message.error("请先保存数据");
  1680. }
  1681. window.open(
  1682. `/api/blade-school/salaryitem/export/teacher?${
  1683. this.website.tokenHeader
  1684. }=${getToken()}&pid=${this.form.id}`
  1685. );
  1686. },
  1687. calculate() {
  1688. if (!this.form.id) {
  1689. return this.$message.error("请先保存数据");
  1690. }
  1691. this.loading = true;
  1692. calculate({ pid: this.form.id })
  1693. .then(res => {
  1694. if (res.data.code == "200") {
  1695. this.getItemDetail();
  1696. }
  1697. })
  1698. .finally(() => {
  1699. this.loading = false;
  1700. });
  1701. },
  1702. calculate2() {
  1703. // return this.$message.error("正在开发中");
  1704. if (!this.form.id) {
  1705. return this.$message.error("请先保存数据");
  1706. }
  1707. this.loading = true;
  1708. calculate2({ inSection: "小学部", pid: this.form.id })
  1709. .then(res => {
  1710. if (res.data.code == "200") {
  1711. this.getItemDetail();
  1712. }
  1713. })
  1714. .finally(() => {
  1715. this.loading = false;
  1716. });
  1717. },
  1718. importExcel() {
  1719. if (!this.form.id) {
  1720. return this.$message.error("请先保存数据");
  1721. }
  1722. this.excelOption.column.forEach(e => {
  1723. if (e.prop == "excelFile") {
  1724. e.data = {
  1725. id: this.form.id
  1726. };
  1727. }
  1728. });
  1729. this.excelBox = true;
  1730. this.getTime();
  1731. },
  1732. //导出全部
  1733. exportAll() {
  1734. let opt = {
  1735. title: "工资条",
  1736. column: this.optionList.column,
  1737. data: this.dataList
  1738. };
  1739. this.$Export.excel({
  1740. title: opt.title,
  1741. columns: opt.column,
  1742. data: opt.data
  1743. });
  1744. },
  1745. salaryAdd(row) {
  1746. // 1. 基础工资 = +M153(校龄工资)+N153(增资)+O153(学历工资)+Q153(职级工资)+L153(履约奖)+R153(工资基数)
  1747. row.basicsSalary = Number(
  1748. numCal(row.schoolAgeSalary) +
  1749. numCal(row.capitalIncrease) +
  1750. numCal(row.educationSalary) +
  1751. numCal(row.rankSalary) +
  1752. numCal(row.salaryBase) +
  1753. numCal(row.performanceAward)
  1754. ).toFixed(2);
  1755. //2. 工作量工资 = 月份工作量工资+代课工作量工资+双休日工作量工资+工作量工资1+…+工作量工资5-虚拟工作量工资标准-虚拟双休日工作量工资标准
  1756. row.workloadSalary = Number(
  1757. numCal(row.momthWorkloadSalary) +
  1758. numCal(row.customTwo) +
  1759. numCal(row.doubleMoney) +
  1760. numCal(row.customThree) +
  1761. numCal(row.customFour) +
  1762. numCal(row.customFive) +
  1763. numCal(row.customSix) +
  1764. numCal(row.customSeven) -
  1765. numCal(row.virtualDailyAssessmentCriteria) -
  1766. numCal(row.virtualDoubleCease)
  1767. ).toFixed(2);
  1768. // 4.绩效工资=学期绩效工资+学期绩效工资1+..+学期绩效工资5
  1769. row.customizeFour = Number(
  1770. numCal(row.termPerformanceSalary) +
  1771. numCal(row.customNine) +
  1772. numCal(row.customize) +
  1773. numCal(row.customizeOne) +
  1774. numCal(row.customizeTwo) +
  1775. numCal(row.customizeThree)
  1776. ).toFixed(2);
  1777. // 5.奖励工资=奖励1+…+奖励10
  1778. row.awardSalary = Number(
  1779. numCal(row.customAward) +
  1780. numCal(row.customAwardOne) +
  1781. numCal(row.customAwardTwo) +
  1782. numCal(row.customAwardThree) +
  1783. numCal(row.customAwardFour) +
  1784. numCal(row.customAwardFive) +
  1785. numCal(row.customAwardSix) +
  1786. numCal(row.customAwardSeven) +
  1787. numCal(row.customAwardEight) +
  1788. numCal(row.customAwardNine)
  1789. ).toFixed(2);
  1790. // 6.职务津贴=领导干部补贴+领导干部考核补贴+备课组长+备课组长考核补贴+教研组长+教研组长考核补贴
  1791. row.dutyAllowances = Number(
  1792. numCal(row.leadingCadreSubsidy) +
  1793. numCal(row.customizeFive) +
  1794. numCal(row.prepareLessons) +
  1795. numCal(row.customizeSix) +
  1796. numCal(row.teachingResearch) +
  1797. numCal(row.customizeSeven)
  1798. ).toFixed(2);
  1799. // 7.班主任津贴=班主任补贴+班额津贴-校车考核-班级微信群考核-财务考核+班主任考核津贴
  1800. row.classTeacherSubsidy = Number(
  1801. numCal(row.classTeacherFee) +
  1802. numCal(row.classes) -
  1803. numCal(row.adjustTheBalance) -
  1804. numCal(row.payrollCredit) -
  1805. numCal(row.paid) +
  1806. numCal(row.customizeEight)
  1807. ).toFixed(2);
  1808. // 8.补贴项=微信+产假工资+周末工作量工资+补贴1+…+补贴10
  1809. row.subsidy = Number(
  1810. numCal(row.wx) +
  1811. numCal(row.maternityLeaveSalary) +
  1812. numCal(row.overtimeAtWeekend) +
  1813. numCal(row.yearUpPerformance) +
  1814. numCal(row.yearDownPerformance) +
  1815. numCal(row.cadreAllowanceReservation) +
  1816. numCal(row.vacationOvertimePay) +
  1817. numCal(row.newPostTrain) +
  1818. numCal(row.winningPrize) +
  1819. numCal(row.classMinister) +
  1820. numCal(row.monthViceClassFee) +
  1821. numCal(row.safetyFees) +
  1822. numCal(row.reserveReplacement)
  1823. ).toFixed(2);
  1824. // 9.扣除项=出勤+督查+超额电话费+学习强国+宿舍管理费+生育津贴+扣除1+…+扣除10
  1825. row.deductions = Number(
  1826. numCal(row.attendance) +
  1827. numCal(row.inspectorFines) +
  1828. numCal(row.telephoneBill) +
  1829. numCal(row.learningPower) +
  1830. numCal(row.dormitoryManagementFee) +
  1831. numCal(row.childbirthAllowance) +
  1832. numCal(row.ribbonOne) +
  1833. numCal(row.ribbonTwo) +
  1834. numCal(row.ribbonThree) +
  1835. numCal(row.ribbonFour) +
  1836. numCal(row.ribbonFive) +
  1837. numCal(row.ribbonSix) +
  1838. numCal(row.ribbonSeven) +
  1839. numCal(row.ribbonEight) +
  1840. numCal(row.ribbonNine) +
  1841. numCal(row.pauseNoPay)
  1842. ).toFixed(2);
  1843. // 10.应发工资=基本工资+工作量工资+日常考核工资+奖励工资+职务津贴+班主任津贴+补贴项-扣除项+保险(个人部分)+公积金(个人部分).. 大于800 保险(个人部分) 不加
  1844. if (row.enjoyOfficeTreatment == "是") {
  1845. row.salary = Number(
  1846. numCal(row.basicsSalary) +
  1847. numCal(row.workloadSalary) +
  1848. numCal(row.dailyAssessmentSalary) +
  1849. numCal(row.awardSalary) +
  1850. numCal(row.dutyAllowances) +
  1851. numCal(row.classTeacherSubsidy) +
  1852. numCal(row.subsidy) -
  1853. numCal(row.deductions) +
  1854. numCal(row.reservedFundsPersonage) +
  1855. numCal(row.pauseNoPayTwo)
  1856. ).toFixed(2);
  1857. } else {
  1858. row.salary = Number(
  1859. numCal(row.basicsSalary) +
  1860. numCal(row.workloadSalary) +
  1861. numCal(row.dailyAssessmentSalary) +
  1862. numCal(row.awardSalary) +
  1863. numCal(row.dutyAllowances) +
  1864. numCal(row.classTeacherSubsidy) +
  1865. numCal(row.subsidy) -
  1866. numCal(row.deductions) +
  1867. numCal(row.insurancePersonage) +
  1868. numCal(row.reservedFundsPersonage)
  1869. ).toFixed(2);
  1870. }
  1871. // 11.实发工资=应发工资-个人所得税-个人保险-公积金个人
  1872. row.fSalary = Number(
  1873. numCal(row.salary) -
  1874. numCal(row.personageTaxes) -
  1875. numCal(row.insurancePersonage) -
  1876. numCal(row.reservedFundsPersonage)
  1877. ).toFixed(2);
  1878. },
  1879. //导出工资条
  1880. exportSalary() {
  1881. let data = [];
  1882. for (let item in this.optionList.column) {
  1883. switch (this.optionList.column[item].prop) {
  1884. case "salaryBase":
  1885. data.push(this.optionList.column[item]);
  1886. break;
  1887. case "workloadSalary":
  1888. data.push(this.optionList.column[item]);
  1889. break;
  1890. case "dailyAssessmentSalary":
  1891. data.push(this.optionList.column[item]);
  1892. break;
  1893. case "awardSalary":
  1894. data.push(this.optionList.column[item]);
  1895. break;
  1896. case "dutyAllowances":
  1897. data.push(this.optionList.column[item]);
  1898. break;
  1899. case "classTeacherSubsidy":
  1900. data.push(this.optionList.column[item]);
  1901. break;
  1902. case "subsidy":
  1903. data.push(this.optionList.column[item]);
  1904. break;
  1905. case "deductions":
  1906. data.push(this.optionList.column[item]);
  1907. break;
  1908. case "insuranceUnit":
  1909. data.push(this.optionList.column[item]);
  1910. break;
  1911. case "insurancePersonage":
  1912. data.push(this.optionList.column[item]);
  1913. break;
  1914. case "reservedFundsUnit":
  1915. data.push(this.optionList.column[item]);
  1916. break;
  1917. case "reservedFundsPersonage":
  1918. data.push(this.optionList.column[item]);
  1919. break;
  1920. case "salary":
  1921. data.push(this.optionList.column[item]);
  1922. break;
  1923. case "personageTaxes":
  1924. data.push(this.optionList.column[item]);
  1925. break;
  1926. case "fsalary":
  1927. data.push(this.optionList.column[item]);
  1928. break;
  1929. }
  1930. }
  1931. let opt = {
  1932. title: "工资条",
  1933. column: data,
  1934. data: this.dataList
  1935. };
  1936. this.$Export.excel({
  1937. title: opt.title,
  1938. columns: opt.column,
  1939. data: opt.data
  1940. });
  1941. },
  1942. openEdit() {
  1943. const data = {
  1944. moduleName: "xxb",
  1945. tableName: "primary_school",
  1946. billId: this.form.id,
  1947. no: localStorage.getItem("browserID"),
  1948. billNo: this.form.annual + "-" + this.form.moon
  1949. };
  1950. this.inDetailsKey(this.$route.name, {
  1951. moduleName: "xxb",
  1952. tableName: "primary_school",
  1953. billId: this.form.id,
  1954. billNo: this.form.annual + "-" + this.form.moon
  1955. });
  1956. this.checkLock(data).then(res => {
  1957. if (res.data.code == 200) {
  1958. this.onLock(data).then(res => {
  1959. if (res.data.code == 200) {
  1960. this.detailData.status = 2;
  1961. this.option = this.$options.data().option;
  1962. this.findObject(
  1963. this.option.column,
  1964. "studentNumber"
  1965. ).disabled = false;
  1966. }
  1967. });
  1968. }
  1969. });
  1970. },
  1971. openReport() {
  1972. this.switchDialog = !this.switchDialog;
  1973. },
  1974. onClose(val) {
  1975. this.switchDialog = val;
  1976. },
  1977. // 请核
  1978. pleaseCheck() {
  1979. this.$confirm("您确定提交此次申请吗?", {
  1980. confirmButtonText: "确定",
  1981. cancelButtonText: "取消",
  1982. type: "warning"
  1983. }).then(() => {
  1984. const data = {
  1985. id: this.form.id,
  1986. checkType: "xsgz",
  1987. url: "/salaryManagement/primarySchool/index",
  1988. pageStatus: "this.$store.getters.domSaleStatus",
  1989. pageLabel: "小学部",
  1990. checkFlag: 2
  1991. };
  1992. pleaseCheck(data).then(res => {
  1993. if (res.data.msg == "请核失败") {
  1994. this.dialogVisible = true;
  1995. this.auditList = res.data.data;
  1996. } else {
  1997. this.$message.success("请核成功");
  1998. this.detailData.status = 1;
  1999. this.option.disabled = true;
  2000. this.getDetail(this.form.id);
  2001. }
  2002. });
  2003. });
  2004. },
  2005. handleClose() {
  2006. this.auditList = [];
  2007. this.dialogVisible = false;
  2008. },
  2009. exportAbnormal() {
  2010. window.open(
  2011. `/api//blade-school/salaryitem/export/exception?${
  2012. this.website.tokenHeader
  2013. }=${getToken()}&pid=${this.form.id}`
  2014. );
  2015. },
  2016. async saveColumn() {
  2017. const inSave = await this.saveColumnData(
  2018. this.getColumnName(109),
  2019. this.optionList
  2020. );
  2021. if (inSave) {
  2022. this.$nextTick(() => {
  2023. this.$refs.crud.doLayout();
  2024. });
  2025. this.$message.success("保存成功");
  2026. //关闭窗口
  2027. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  2028. }
  2029. },
  2030. async resetColumn() {
  2031. this.optionList = optionList;
  2032. const inSave = await this.delColumnData(
  2033. this.getColumnName(109),
  2034. optionList
  2035. );
  2036. if (inSave) {
  2037. this.$nextTick(() => {
  2038. this.$refs.crud.doLayout();
  2039. });
  2040. this.$message.success("重置成功");
  2041. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  2042. }
  2043. },
  2044. //返回列表
  2045. backToList() {
  2046. if (this.form.id) {
  2047. this.unLock({
  2048. moduleName: "xxb",
  2049. tableName: "primary_school",
  2050. billId: this.form.id,
  2051. billNo: this.form.annual + "-" + this.form.moon
  2052. });
  2053. }
  2054. this.$emit("goBack");
  2055. this.leaveDetailsKey(this.$route.name);
  2056. }
  2057. },
  2058. watch: {
  2059. "excelForm.type": function(val) {
  2060. if (val) {
  2061. switch (val) {
  2062. case "1":
  2063. this.exportUrl =
  2064. "/api/blade-school/salaryitem/export/workloadExcel";
  2065. this.findObject(this.excelOption.column, "excelFile").action =
  2066. "/api/blade-school/salaryitem/import/workloadExcel";
  2067. this.findObject(
  2068. this.excelOption.column,
  2069. "excelFile"
  2070. ).disabled = false;
  2071. break;
  2072. case "2":
  2073. this.exportUrl =
  2074. "/api/blade-school/salaryitem/export/teacherSubsidy";
  2075. this.findObject(this.excelOption.column, "excelFile").action =
  2076. "/api/blade-school/salaryitem/import/teacherSubsidy";
  2077. this.findObject(
  2078. this.excelOption.column,
  2079. "excelFile"
  2080. ).disabled = false;
  2081. break;
  2082. case "3":
  2083. this.exportUrl =
  2084. "/api/blade-school/salaryitem/export/schoolBusExcel";
  2085. this.findObject(this.excelOption.column, "excelFile").action =
  2086. "/api/blade-school/salaryitem/import/schoolBusExcel";
  2087. this.findObject(
  2088. this.excelOption.column,
  2089. "excelFile"
  2090. ).disabled = false;
  2091. break;
  2092. case "4":
  2093. this.exportUrl =
  2094. "/api/blade-school/salaryitem/export/classWeChatExcel";
  2095. this.findObject(this.excelOption.column, "excelFile").action =
  2096. "/api/blade-school/salaryitem/import/classWeChatExcel";
  2097. this.findObject(
  2098. this.excelOption.column,
  2099. "excelFile"
  2100. ).disabled = false;
  2101. break;
  2102. case "5":
  2103. this.exportUrl = "/api/blade-school/salaryitem/export/fnanceExcel";
  2104. this.findObject(this.excelOption.column, "excelFile").action =
  2105. "/api/blade-school/salaryitem/import/financeExcel";
  2106. this.findObject(
  2107. this.excelOption.column,
  2108. "excelFile"
  2109. ).disabled = false;
  2110. break;
  2111. case "6":
  2112. this.exportUrl = "/api/blade-school/salaryitem/export/position";
  2113. this.findObject(this.excelOption.column, "excelFile").action =
  2114. "/api/blade-school/salaryitem/import/position";
  2115. this.findObject(
  2116. this.excelOption.column,
  2117. "excelFile"
  2118. ).disabled = false;
  2119. break;
  2120. case "7":
  2121. this.exportUrl = "/api/blade-school/salaryitem/export/zhaPingExcel";
  2122. this.findObject(this.excelOption.column, "excelFile").action =
  2123. "/api/blade-school/salaryitem/import/zhaPingExcel";
  2124. this.findObject(
  2125. this.excelOption.column,
  2126. "excelFile"
  2127. ).disabled = false;
  2128. break;
  2129. case "8":
  2130. this.exportUrl = "/api/blade-school/salaryitem/export/overtime";
  2131. this.findObject(this.excelOption.column, "excelFile").action =
  2132. "/api/blade-school/salaryitem/import/overtime";
  2133. this.findObject(
  2134. this.excelOption.column,
  2135. "excelFile"
  2136. ).disabled = false;
  2137. break;
  2138. case "9":
  2139. this.exportUrl = "/api/blade-school/salaryitem/export/weChat";
  2140. this.findObject(this.excelOption.column, "excelFile").action =
  2141. "/api/blade-school/salaryitem/import/weChat";
  2142. this.findObject(
  2143. this.excelOption.column,
  2144. "excelFile"
  2145. ).disabled = false;
  2146. break;
  2147. case "10":
  2148. this.exportUrl = "/api/blade-school/salaryitem/export/power";
  2149. this.findObject(this.excelOption.column, "excelFile").action =
  2150. "/api/blade-school/salaryitem/import/power";
  2151. this.findObject(
  2152. this.excelOption.column,
  2153. "excelFile"
  2154. ).disabled = false;
  2155. break;
  2156. case "11":
  2157. this.exportUrl = "/api/blade-school/salaryitem/export/phoneFine";
  2158. this.findObject(this.excelOption.column, "excelFile").action =
  2159. "/api/blade-school/salaryitem/import/phoneFine";
  2160. this.findObject(
  2161. this.excelOption.column,
  2162. "excelFile"
  2163. ).disabled = false;
  2164. break;
  2165. case "12":
  2166. this.exportUrl = "/api/blade-school/salaryitem/export/fineExcel";
  2167. this.findObject(this.excelOption.column, "excelFile").action =
  2168. "/api/blade-school/salaryitem/import/fineExcel";
  2169. this.findObject(
  2170. this.excelOption.column,
  2171. "excelFile"
  2172. ).disabled = false;
  2173. break;
  2174. case "13":
  2175. this.exportUrl =
  2176. "/api/blade-school/salaryitem/export/sanitationFee";
  2177. this.findObject(this.excelOption.column, "excelFile").action =
  2178. "/api/blade-school/salaryitem/import/sanitationFee";
  2179. this.findObject(
  2180. this.excelOption.column,
  2181. "excelFile"
  2182. ).disabled = false;
  2183. break;
  2184. case "14":
  2185. this.exportUrl =
  2186. "/api/blade-school/salaryitem/export/insuranceExcel";
  2187. this.findObject(this.excelOption.column, "excelFile").action =
  2188. "/api/blade-school/salaryitem/import/insuranceExcel";
  2189. this.findObject(
  2190. this.excelOption.column,
  2191. "excelFile"
  2192. ).disabled = false;
  2193. break;
  2194. case "15":
  2195. this.exportUrl =
  2196. "/api/blade-school/salaryitem/export/reservedFunds";
  2197. this.findObject(this.excelOption.column, "excelFile").action =
  2198. "/api/blade-school/salaryitem/import/reservedFunds";
  2199. this.findObject(
  2200. this.excelOption.column,
  2201. "excelFile"
  2202. ).disabled = false;
  2203. break;
  2204. case "16":
  2205. this.exportUrl =
  2206. "/api/blade-school/salaryitem/export/attendanceExcel";
  2207. this.findObject(this.excelOption.column, "excelFile").action =
  2208. "/api/blade-school/salaryitem/import/attendanceExcel";
  2209. this.findObject(
  2210. this.excelOption.column,
  2211. "excelFile"
  2212. ).disabled = false;
  2213. break;
  2214. case "17":
  2215. this.exportUrl =
  2216. "/api/blade-school/salaryitem/export/eomNumberExcel";
  2217. this.findObject(this.excelOption.column, "excelFile").action =
  2218. "/api/blade-school/salaryitem/import/eomNumberExcel";
  2219. this.findObject(
  2220. this.excelOption.column,
  2221. "excelFile"
  2222. ).disabled = false;
  2223. break;
  2224. case "18":
  2225. this.exportUrl = "/api/blade-school/salaryitem/export/payTaxes";
  2226. this.findObject(this.excelOption.column, "excelFile").action =
  2227. "/api/blade-school/salaryitem/import/payTaxes";
  2228. this.findObject(
  2229. this.excelOption.column,
  2230. "excelFile"
  2231. ).disabled = false;
  2232. break;
  2233. case "19":
  2234. this.exportUrl = "/api/blade-school/salaryitem/export/awardExcel";
  2235. this.findObject(this.excelOption.column, "excelFile").action =
  2236. "/api/blade-school/salaryitem/import/awardExcel";
  2237. this.findObject(
  2238. this.excelOption.column,
  2239. "excelFile"
  2240. ).disabled = false;
  2241. break;
  2242. case "20":
  2243. this.exportUrl = "/api/blade-school/salaryitem/export/subsidyExcel";
  2244. this.findObject(this.excelOption.column, "excelFile").action =
  2245. "/api/blade-school/salaryitem/import/subsidyExcel";
  2246. this.findObject(
  2247. this.excelOption.column,
  2248. "excelFile"
  2249. ).disabled = false;
  2250. break;
  2251. case "21":
  2252. this.exportUrl = "/api/blade-school/salaryitem/export/deductExcel";
  2253. this.findObject(this.excelOption.column, "excelFile").action =
  2254. "/api/blade-school/salaryitem/import/deductExcel";
  2255. this.findObject(
  2256. this.excelOption.column,
  2257. "excelFile"
  2258. ).disabled = false;
  2259. break;
  2260. case "22":
  2261. this.exportUrl = "/api/blade-school/salaryitem/export/leadExcel";
  2262. this.findObject(this.excelOption.column, "excelFile").action =
  2263. "/api/blade-school/salaryitem/import/leadExcel";
  2264. this.findObject(
  2265. this.excelOption.column,
  2266. "excelFile"
  2267. ).disabled = false;
  2268. break;
  2269. case "23":
  2270. this.exportUrl =
  2271. "/api/blade-school/salaryitem/export/teamLeaderExcel";
  2272. this.findObject(this.excelOption.column, "excelFile").action =
  2273. "/api/blade-school/salaryitem/import/teamLeaderExcel";
  2274. this.findObject(
  2275. this.excelOption.column,
  2276. "excelFile"
  2277. ).disabled = false;
  2278. break;
  2279. case "24":
  2280. this.exportUrl =
  2281. "/api/blade-school/salaryitem/export/prepareLessonsExcel";
  2282. this.findObject(this.excelOption.column, "excelFile").action =
  2283. "/api/blade-school/salaryitem/import/prepareLessonsExcel";
  2284. this.findObject(
  2285. this.excelOption.column,
  2286. "excelFile"
  2287. ).disabled = false;
  2288. break;
  2289. case "25":
  2290. this.exportUrl =
  2291. "/api/blade-school/salaryitem/export/teachingExcel";
  2292. this.findObject(this.excelOption.column, "excelFile").action =
  2293. "/api/blade-school/salaryitem/import/teachingExcel";
  2294. this.findObject(
  2295. this.excelOption.column,
  2296. "excelFile"
  2297. ).disabled = false;
  2298. break;
  2299. case "26":
  2300. this.exportUrl =
  2301. "/api/blade-school/salaryitem/export/doubleWorkloadExcel";
  2302. this.findObject(this.excelOption.column, "excelFile").action =
  2303. "/api/blade-school/salaryitem/import/doubleWorkloadExcel";
  2304. this.findObject(
  2305. this.excelOption.column,
  2306. "excelFile"
  2307. ).disabled = false;
  2308. break;
  2309. case "27":
  2310. this.exportUrl =
  2311. "/api/blade-school/salaryitem/export/probationExcel";
  2312. this.findObject(this.excelOption.column, "excelFile").action =
  2313. "/api/blade-school/salaryitem/import/probationExcel";
  2314. this.findObject(
  2315. this.excelOption.column,
  2316. "excelFile"
  2317. ).disabled = false;
  2318. break;
  2319. case "28":
  2320. this.exportUrl = "/api/blade-school/salaryitem/export/maternityPay";
  2321. this.findObject(this.excelOption.column, "excelFile").action =
  2322. "/api/blade-school/salaryitem/import/maternityPay";
  2323. this.findObject(
  2324. this.excelOption.column,
  2325. "excelFile"
  2326. ).disabled = false;
  2327. break;
  2328. case "29":
  2329. this.exportUrl = "/api/blade-school/salaryitem/export/woChenGeld";
  2330. this.findObject(this.excelOption.column, "excelFile").action =
  2331. "/api/blade-school/salaryitem/import/woChenGeld";
  2332. this.findObject(
  2333. this.excelOption.column,
  2334. "excelFile"
  2335. ).disabled = false;
  2336. break;
  2337. case "30":
  2338. this.exportUrl =
  2339. "/api/blade-school/salaryitem/export/customWorkload";
  2340. this.findObject(this.excelOption.column, "excelFile").action =
  2341. "/api/blade-school/salaryitem/import/customWorkload";
  2342. this.findObject(
  2343. this.excelOption.column,
  2344. "excelFile"
  2345. ).disabled = false;
  2346. break;
  2347. case "31":
  2348. this.exportUrl =
  2349. "/api/blade-school/salaryitem/export/staffInformation";
  2350. this.findObject(this.excelOption.column, "excelFile").action =
  2351. "/api/blade-school/salaryitem/import/staffInformation";
  2352. this.findObject(
  2353. this.excelOption.column,
  2354. "excelFile"
  2355. ).disabled = false;
  2356. break;
  2357. case "32":
  2358. this.exportUrl =
  2359. "/api/blade-school/salaryitem/export/salaryMessage";
  2360. this.findObject(this.excelOption.column, "excelFile").action =
  2361. "/api/blade-school/salaryitem/import/salaryMessage";
  2362. this.findObject(
  2363. this.excelOption.column,
  2364. "excelFile"
  2365. ).disabled = false;
  2366. break;
  2367. case "33":
  2368. this.exportUrl =
  2369. "/api/blade-school/salaryitem/export/teamLeaderAssessExcel";
  2370. this.findObject(this.excelOption.column, "excelFile").action =
  2371. "/api/blade-school/salaryitem/import/teamLeaderAssessExcel";
  2372. this.findObject(
  2373. this.excelOption.column,
  2374. "excelFile"
  2375. ).disabled = false;
  2376. break;
  2377. case "34":
  2378. this.exportUrl =
  2379. "/api/blade-school/salaryitem/export/prepareAssessExcel";
  2380. this.findObject(this.excelOption.column, "excelFile").action =
  2381. "/api/blade-school/salaryitem/import/prepareAssessExcel";
  2382. this.findObject(
  2383. this.excelOption.column,
  2384. "excelFile"
  2385. ).disabled = false;
  2386. break;
  2387. case "35":
  2388. this.exportUrl =
  2389. "/api/blade-school/salaryitem/export/leadAssessExcel";
  2390. this.findObject(this.excelOption.column, "excelFile").action =
  2391. "/api/blade-school/salaryitem/import/leadAssessExcel";
  2392. this.findObject(
  2393. this.excelOption.column,
  2394. "excelFile"
  2395. ).disabled = false;
  2396. break;
  2397. case "36":
  2398. this.exportUrl =
  2399. "/api/blade-school/salaryitem/export/customPerformance";
  2400. this.findObject(this.excelOption.column, "excelFile").action =
  2401. "/api/blade-school/salaryitem/import/customPerformance";
  2402. this.findObject(
  2403. this.excelOption.column,
  2404. "excelFile"
  2405. ).disabled = false;
  2406. break;
  2407. case "37":
  2408. this.exportUrl =
  2409. "/api/blade-school/salaryitem/export/adjustmentExcel";
  2410. this.findObject(this.excelOption.column, "excelFile").action =
  2411. "/api/blade-school/salaryitem/import/adjustmentExcel";
  2412. this.findObject(
  2413. this.excelOption.column,
  2414. "excelFile"
  2415. ).disabled = false;
  2416. break;
  2417. default:
  2418. this.findObject(
  2419. this.excelOption.column,
  2420. "excelFile"
  2421. ).disabled = true;
  2422. this.exportUrl = "";
  2423. }
  2424. } else {
  2425. this.findObject(this.excelOption.column, "excelFile").disabled = true;
  2426. }
  2427. },
  2428. optionList: function() {
  2429. // if (localStorage.getItem("roleName") == "XXXBKJ") {
  2430. // this.optionList.column.forEach(el => {
  2431. // el.disabled = true;
  2432. // });
  2433. // this.findObject(
  2434. // this.optionList.column,
  2435. // "salaryWithdrawalStandard"
  2436. // ).disabled = false;
  2437. // this.findObject(
  2438. // this.optionList.column,
  2439. // "rankWithdrawalStandard"
  2440. // ).disabled = false;
  2441. // this.findObject(
  2442. // this.optionList.column,
  2443. // "performanceAwardName"
  2444. // ).disabled = false;
  2445. // this.findObject(this.optionList.column, "schoolAge").disabled = false;
  2446. // this.findObject(
  2447. // this.optionList.column,
  2448. // "capitalIncreaseName"
  2449. // ).disabled = false;
  2450. // this.findObject(
  2451. // this.optionList.column,
  2452. // "salaryStandard"
  2453. // ).disabled = false;
  2454. // this.findObject(
  2455. // this.optionList.column,
  2456. // "salaryBaseName"
  2457. // ).disabled = false;
  2458. // this.findObject(
  2459. // this.optionList.column,
  2460. // "workloadSalaryCritertion"
  2461. // ).disabled = false;
  2462. // this.findObject(
  2463. // this.optionList.column,
  2464. // "virtualWorkloadSalary"
  2465. // ).disabled = false;
  2466. // this.findObject(this.optionList.column, "doubleCease").disabled = false;
  2467. // this.findObject(
  2468. // this.optionList.column,
  2469. // "virtualDoubleCease"
  2470. // ).disabled = false;
  2471. // this.findObject(
  2472. // this.optionList.column,
  2473. // "dailyAssessmentCriteria"
  2474. // ).disabled = false;
  2475. // this.findObject(
  2476. // this.optionList.column,
  2477. // "virtualDailyAssessmentCriteria"
  2478. // ).disabled = false;
  2479. // this.findObject(
  2480. // this.optionList.column,
  2481. // "termPerformanceSalaryName"
  2482. // ).disabled = false;
  2483. // this.findObject(
  2484. // this.optionList.column,
  2485. // "leadingCadreSubsidyName"
  2486. // ).disabled = false;
  2487. // this.findObject(
  2488. // this.optionList.column,
  2489. // "assessLeadingCadreSubsidyName"
  2490. // ).disabled = false;
  2491. // this.findObject(
  2492. // this.optionList.column,
  2493. // "prepareLessonsName"
  2494. // ).disabled = false;
  2495. // this.findObject(
  2496. // this.optionList.column,
  2497. // "assessPrepareLessonsName"
  2498. // ).disabled = false;
  2499. // this.findObject(
  2500. // this.optionList.column,
  2501. // "teachingResearchName"
  2502. // ).disabled = false;
  2503. // this.findObject(
  2504. // this.optionList.column,
  2505. // "teachingResearch"
  2506. // ).disabled = false;
  2507. // this.findObject(
  2508. // this.optionList.column,
  2509. // "assessTeachingResearchName"
  2510. // ).disabled = false;
  2511. // this.findObject(
  2512. // this.optionList.column,
  2513. // "teacherSubsidy"
  2514. // ).disabled = false;
  2515. // this.findObject(this.optionList.column, "classes").disabled = false;
  2516. // this.findObject(
  2517. // this.optionList.column,
  2518. // "adjustTheBalance"
  2519. // ).disabled = false;
  2520. // this.findObject(
  2521. // this.optionList.column,
  2522. // "payrollCredit"
  2523. // ).disabled = false;
  2524. // this.findObject(this.optionList.column, "paid").disabled = false;
  2525. // this.findObject(
  2526. // this.optionList.column,
  2527. // "teacherAssessSubsidy"
  2528. // ).disabled = false;
  2529. // this.findObject(this.optionList.column, "wx").disabled = false;
  2530. // this.findObject(
  2531. // this.optionList.column,
  2532. // "maternityLeaveSalary"
  2533. // ).disabled = false;
  2534. // this.findObject(
  2535. // this.optionList.column,
  2536. // "inspectorFines"
  2537. // ).disabled = false;
  2538. // this.findObject(
  2539. // this.optionList.column,
  2540. // "telephoneBill"
  2541. // ).disabled = false;
  2542. // this.findObject(
  2543. // this.optionList.column,
  2544. // "learningPower"
  2545. // ).disabled = false;
  2546. // this.findObject(
  2547. // this.optionList.column,
  2548. // "childbirthAllowance"
  2549. // ).disabled = false;
  2550. // this.findObject(this.optionList.column, "androidIt").disabled = false;
  2551. // this.findObject(
  2552. // this.optionList.column,
  2553. // "insuranceUnit"
  2554. // ).disabled = false;
  2555. // this.findObject(
  2556. // this.optionList.column,
  2557. // "insurancePersonage"
  2558. // ).disabled = false;
  2559. // this.findObject(
  2560. // this.optionList.column,
  2561. // "reservedFundsUnit"
  2562. // ).disabled = false;
  2563. // this.findObject(
  2564. // this.optionList.column,
  2565. // "reservedFundsPersonage"
  2566. // ).disabled = false;
  2567. // this.findObject(
  2568. // this.optionList.column,
  2569. // "personageTaxes"
  2570. // ).disabled = false;
  2571. // this.findObject(
  2572. // this.optionList.column,
  2573. // "salaryRemark"
  2574. // ).disabled = false;
  2575. // this.findObject(
  2576. // this.optionList.column,
  2577. // "pauseNoPayRemark"
  2578. // ).disabled = false;
  2579. // this.findObject(this.optionList.column, "remarks").disabled = false;
  2580. // this.findObject(this.optionList.column, "remarksOne").disabled = false;
  2581. // this.findObject(this.optionList.column, "discipline").disabled = false;
  2582. // this.findObject(this.optionList.column, "itemType").disabled = false;
  2583. // this.findObject(
  2584. // this.optionList.column,
  2585. // "positiveTime"
  2586. // ).disabled = false;
  2587. // this.findObject(
  2588. // this.optionList.column,
  2589. // "virtualDailyAssessmentCriteria"
  2590. // ).disabled = false;
  2591. // this.findObject(
  2592. // this.optionList.column,
  2593. // "dailyAssessmentSalary"
  2594. // ).disabled = false;
  2595. // this.findObject(this.optionList.column, "position").disabled = false;
  2596. // this.findObject(this.optionList.column, "cname").disabled = false;
  2597. // this.findObject(this.optionList.column, "idNumber").disabled = false;
  2598. // this.findObject(this.optionList.column, "code").disabled = false;
  2599. // this.findObject(
  2600. // this.optionList.column,
  2601. // "enjoyOfficeTreatment"
  2602. // ).disabled = false;
  2603. // }
  2604. if (localStorage.getItem("roleName") == "XXGZGLY") {
  2605. this.optionList.column.forEach(el => {
  2606. el.disabled = true;
  2607. });
  2608. this.findObject(this.optionList.column, "discipline").disabled = false;
  2609. this.findObject(this.optionList.column, "itemType").disabled = false;
  2610. this.findObject(
  2611. this.optionList.column,
  2612. "positiveTime"
  2613. ).disabled = false;
  2614. this.findObject(this.optionList.column, "position").disabled = false;
  2615. this.findObject(this.optionList.column, "cname").disabled = false;
  2616. this.findObject(this.optionList.column, "idNumber").disabled = false;
  2617. this.findObject(this.optionList.column, "code").disabled = false;
  2618. this.findObject(
  2619. this.optionList.column,
  2620. "enjoyOfficeTreatment"
  2621. ).disabled = false;
  2622. this.findObject(
  2623. this.optionList.column,
  2624. "performanceAward"
  2625. ).disabled = false;
  2626. this.findObject(
  2627. this.optionList.column,
  2628. "schoolAgeSalary"
  2629. ).disabled = false;
  2630. this.findObject(
  2631. this.optionList.column,
  2632. "capitalIncrease"
  2633. ).disabled = false;
  2634. this.findObject(
  2635. this.optionList.column,
  2636. "educationSalary"
  2637. ).disabled = false;
  2638. this.findObject(
  2639. this.optionList.column,
  2640. "rankSalaryName"
  2641. ).disabled = false;
  2642. this.findObject(this.optionList.column, "rankSalary").disabled = false;
  2643. this.findObject(this.optionList.column, "salaryBase").disabled = false;
  2644. this.findObject(this.optionList.column, "monthHour").disabled = false;
  2645. this.findObject(this.optionList.column, "monthPrice").disabled = false;
  2646. this.findObject(this.optionList.column, "custom").disabled = false;
  2647. this.findObject(this.optionList.column, "customOne").disabled = false;
  2648. this.findObject(this.optionList.column, "doubleHour").disabled = false;
  2649. this.findObject(this.optionList.column, "doublePrice").disabled = false;
  2650. this.findObject(this.optionList.column, "customThree").disabled = false;
  2651. this.findObject(this.optionList.column, "customFour").disabled = false;
  2652. this.findObject(this.optionList.column, "customFive").disabled = false;
  2653. this.findObject(this.optionList.column, "customSix").disabled = false;
  2654. this.findObject(this.optionList.column, "customSeven").disabled = false;
  2655. this.findObject(
  2656. this.optionList.column,
  2657. "dailyAssessmentCriteria"
  2658. ).disabled = false;
  2659. this.findObject(
  2660. this.optionList.column,
  2661. "pauseNoPayTwo"
  2662. ).disabled = false;
  2663. this.findObject(
  2664. this.optionList.column,
  2665. "performanceGrade"
  2666. ).disabled = false;
  2667. this.findObject(this.optionList.column, "customNine").disabled = false;
  2668. this.findObject(this.optionList.column, "customize").disabled = false;
  2669. this.findObject(
  2670. this.optionList.column,
  2671. "customizeOne"
  2672. ).disabled = false;
  2673. this.findObject(
  2674. this.optionList.column,
  2675. "customizeTwo"
  2676. ).disabled = false;
  2677. this.findObject(
  2678. this.optionList.column,
  2679. "customizeThree"
  2680. ).disabled = false;
  2681. this.findObject(this.optionList.column, "customAward").disabled = false;
  2682. this.findObject(
  2683. this.optionList.column,
  2684. "customAwardOne"
  2685. ).disabled = false;
  2686. this.findObject(
  2687. this.optionList.column,
  2688. "customAwardTwo"
  2689. ).disabled = false;
  2690. this.findObject(
  2691. this.optionList.column,
  2692. "customAwardThree"
  2693. ).disabled = false;
  2694. this.findObject(
  2695. this.optionList.column,
  2696. "customAwardFour"
  2697. ).disabled = false;
  2698. this.findObject(
  2699. this.optionList.column,
  2700. "customAwardFive"
  2701. ).disabled = false;
  2702. this.findObject(
  2703. this.optionList.column,
  2704. "customAwardSix"
  2705. ).disabled = false;
  2706. this.findObject(
  2707. this.optionList.column,
  2708. "customAwardSeven"
  2709. ).disabled = false;
  2710. this.findObject(
  2711. this.optionList.column,
  2712. "customAwardEight"
  2713. ).disabled = false;
  2714. this.findObject(
  2715. this.optionList.column,
  2716. "customAwardNine"
  2717. ).disabled = false;
  2718. this.findObject(
  2719. this.optionList.column,
  2720. "leadingCadreSubsidy"
  2721. ).disabled = false;
  2722. this.findObject(
  2723. this.optionList.column,
  2724. "customizeFive"
  2725. ).disabled = false;
  2726. this.findObject(
  2727. this.optionList.column,
  2728. "prepareLessons"
  2729. ).disabled = false;
  2730. this.findObject(
  2731. this.optionList.column,
  2732. "customizeSix"
  2733. ).disabled = false;
  2734. this.findObject(
  2735. this.optionList.column,
  2736. "teachingResearch"
  2737. ).disabled = false;
  2738. this.findObject(
  2739. this.optionList.column,
  2740. "customizeSeven"
  2741. ).disabled = false;
  2742. this.findObject(
  2743. this.optionList.column,
  2744. "classTeacherFee"
  2745. ).disabled = false;
  2746. this.findObject(
  2747. this.optionList.column,
  2748. "customizeEight"
  2749. ).disabled = false;
  2750. this.findObject(
  2751. this.optionList.column,
  2752. "customizeNine"
  2753. ).disabled = false;
  2754. this.findObject(this.optionList.column, "ribbon").disabled = false;
  2755. this.findObject(
  2756. this.optionList.column,
  2757. "yearUpPerformance"
  2758. ).disabled = false;
  2759. this.findObject(
  2760. this.optionList.column,
  2761. "yearDownPerformance"
  2762. ).disabled = false;
  2763. this.findObject(
  2764. this.optionList.column,
  2765. "cadreAllowanceReservation"
  2766. ).disabled = false;
  2767. this.findObject(
  2768. this.optionList.column,
  2769. "vacationOvertimePay"
  2770. ).disabled = false;
  2771. this.findObject(
  2772. this.optionList.column,
  2773. "newPostTrain"
  2774. ).disabled = false;
  2775. this.findObject(
  2776. this.optionList.column,
  2777. "winningPrize"
  2778. ).disabled = false;
  2779. this.findObject(
  2780. this.optionList.column,
  2781. "classMinister"
  2782. ).disabled = false;
  2783. this.findObject(
  2784. this.optionList.column,
  2785. "monthViceClassFee"
  2786. ).disabled = false;
  2787. this.findObject(this.optionList.column, "safetyFees").disabled = false;
  2788. this.findObject(
  2789. this.optionList.column,
  2790. "reserveReplacement"
  2791. ).disabled = false;
  2792. this.findObject(this.optionList.column, "attendance").disabled = false;
  2793. this.findObject(
  2794. this.optionList.column,
  2795. "dormitoryManagementFee"
  2796. ).disabled = false;
  2797. this.findObject(
  2798. this.optionList.column,
  2799. "virtualDailyAssessmentCriteria"
  2800. ).disabled = false;
  2801. this.findObject(
  2802. this.optionList.column,
  2803. "dailyAssessmentSalary"
  2804. ).disabled = false;
  2805. this.findObject(this.optionList.column, "ribbonOne").disabled = false;
  2806. this.findObject(this.optionList.column, "ribbonTwo").disabled = false;
  2807. this.findObject(this.optionList.column, "ribbonThree").disabled = false;
  2808. this.findObject(this.optionList.column, "ribbonFour").disabled = false;
  2809. this.findObject(this.optionList.column, "ribbonFive").disabled = false;
  2810. this.findObject(this.optionList.column, "ribbonSix").disabled = false;
  2811. this.findObject(this.optionList.column, "ribbonSeven").disabled = false;
  2812. this.findObject(this.optionList.column, "ribbonEight").disabled = false;
  2813. this.findObject(this.optionList.column, "ribbonNine").disabled = false;
  2814. this.findObject(this.optionList.column, "pauseNoPay").disabled = false;
  2815. }
  2816. }
  2817. },
  2818. computed: {
  2819. ...mapGetters(["permission"])
  2820. }
  2821. };
  2822. </script>
  2823. <style>
  2824. .headerCellClass {
  2825. color: #fff !important;
  2826. background: #a4cf57 !important;
  2827. }
  2828. .headerCellClass2 {
  2829. color: #fff !important;
  2830. background: #a0cfff !important;
  2831. }
  2832. </style>
  2833. <style lang="scss" scoped>
  2834. .trading-form ::v-deep .el-form-item {
  2835. margin-bottom: 4px !important;
  2836. }
  2837. ::v-deep .el-form-item__error {
  2838. display: none !important;
  2839. }
  2840. .schoolupload ::v-deep .el-upload-list {
  2841. display: none;
  2842. }
  2843. .abnormal ::v-deep .el-dialog__body {
  2844. padding: 10px 20px;
  2845. }
  2846. </style>