detailsPage.vue 96 KB

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