detailsPage.vue 81 KB

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