detailsPage.vue 81 KB

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