detailsPage.vue 76 KB

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