12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153 |
- <template>
- <div class="borderless" v-loading="allloading">
- <div class="customer-head">
- <div class="customer-back">
- <el-button
- type="danger"
- style="border: none;background: none;color: red"
- icon="el-icon-arrow-left"
- @click="backToList"
- >返回列表
- </el-button>
- </div>
- <div class="add-customer-btn">
- <el-button
- type="primary"
- size="small"
- v-if="detailData.status == 1"
- class="el-button--small-yh "
- :disabled="form.status > 0"
- @click.stop="openEdit"
- >编辑
- </el-button>
- <el-dropdown style="margin-right: 8px;margin-left: 8px;">
- <el-button type="primary" size="small">
- 审核处理<i class="el-icon-arrow-down el-icon--right"></i>
- </el-button>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item
- :disabled="form.status > 0"
- @click.native="pleaseCheck"
- >请核数据</el-dropdown-item
- >
- <el-dropdown-item disabled>审核进度</el-dropdown-item>
- <el-dropdown-item disabled>撤销请核</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- <el-button
- type="success"
- :disabled="!form.id"
- size="small"
- @click="copyDoc"
- >
- 复制新单
- </el-button>
- <el-button
- class="el-button--small-yh"
- type="primary"
- :disabled="loadingBtn || detailData.status == 1"
- size="small"
- @click="editCustomer"
- >保存数据
- </el-button>
- </div>
- </div>
- <div class="customer-main">
- <containerTitle title="基础资料"></containerTitle>
- <basic-container>
- <avue-form
- class="trading-form"
- ref="form"
- v-model="form"
- :option="option"
- />
- </basic-container>
- <containerTitle title="基础明细"></containerTitle>
- <basic-container>
- <avue-crud
- ref="crud"
- v-model="crudForm"
- :option="optionList"
- :data="dataList"
- :page.sync="page"
- :search.sync="search"
- :table-loading="loading"
- @current-change="currentChange"
- @size-change="sizeChange"
- @search-change="searchChange"
- @saveColumn="saveColumn"
- @refresh-change="refreshChange"
- @row-save="rowSave"
- @row-update="rowUpdate"
- :cell-style="cellStyle"
- :header-cell-class-name="headerCellClassName"
- >
- <template slot="menuLeft">
- <el-button
- type="primary"
- @click.stop="$refs.crud.rowAdd()"
- size="small"
- :disabled="detailData.status == 1"
- >新增</el-button
- >
- <el-button
- type="primary"
- size="small"
- @click="importExcel()"
- :disabled="detailData.status == 1"
- >导入
- </el-button>
- <el-button type="primary" size="small" @click.stop="openExport()"
- >导出
- </el-button>
- <el-button
- type="primary"
- size="small"
- @click.stop="calculate()"
- :disabled="detailData.status == 1"
- >重新计算
- </el-button>
- <el-button
- type="primary"
- size="small"
- @click.stop="calculate2()"
- :disabled="detailData.status == 1"
- >导入工资标准
- </el-button>
- <el-button
- type="info"
- icon="el-icon-printer"
- size="small"
- :disabled="!form.id"
- @click.stop="openReport()"
- >报 表</el-button
- >
- </template>
- <template slot="basicsSalaryLabel">
- <el-tag>基础工资:</el-tag>
- </template>
- <template slot="workloadSalaryLabel">
- <el-tag>工作量工资:</el-tag>
- </template>
- <template slot="awardSalaryLabel">
- <el-tag>奖励工资:</el-tag>
- </template>
- <template slot="dutyAllowancesLabel">
- <el-tag>职务津贴:</el-tag>
- </template>
- <template slot="classTeacherSubsidyLabel">
- <el-tag>班主任津贴:</el-tag>
- </template>
- <template slot="subsidyLabel">
- <el-tag>补贴项:</el-tag>
- </template>
- <template slot="deductionsLabel">
- <el-tag>扣除项:</el-tag>
- </template>
- <template slot="salaryLabel">
- <el-tag>应发工资:</el-tag>
- </template>
- <template slot="fsalaryLabel">
- <el-tag>实发工资:</el-tag>
- </template>
- <template
- slot="schoolAgeSalaryForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.schoolAgeSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="capitalIncreaseForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.capitalIncrease"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="educationSalaryForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.educationSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="rankSalaryForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.rankSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="salaryBaseForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.salaryBase"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="salaryBaseForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.salaryBase"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="performanceAwardForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.performanceAward"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="monthHourForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.monthHour"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="momthWorkloadSalaryForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.momthWorkloadSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.custom"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customOneForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customOne"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customTwoForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customTwo"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customThreeForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customThree"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customFourForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customFour"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customFiveForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customFive"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customSixForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customSix"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customSevenForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customSeven"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customEightForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customEight"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customNineForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customNine"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <!-- <template
- slot="vacationOvertimePayForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.vacationOvertimePay"
- @change="salaryAdd(crudForm)"
- />
- </template> -->
- <!-- <template slot="winningPrizeForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.winningPrize"
- @change="salaryAdd(crudForm)"
- />
- </template> -->
- <!-- <template
- slot="leadingCadreSubsidyForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.leadingCadreSubsidy"
- @change="salaryAdd(crudForm)"
- />
- </template> -->
- <!-- <template
- slot="yearDownPerformanceForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.yearDownPerformance"
- @change="salaryAdd(crudForm)"
- />
- </template> -->
- <template slot="prepareLessonsForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.prepareLessons"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="leadingCadreSubsidyForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.leadingCadreSubsidy"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="teachingResearchForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.teachingResearch"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="classesForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.classes"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="classTeacherFeeForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.classTeacherFee"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="reserveReplacementForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.reserveReplacement"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="safetyFeesForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.safetyFees"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="classMinisterForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.classMinister"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="monthViceClassFeeForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.monthViceClassFee"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="winningPrizeForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.winningPrize"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="newPostTrainForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.newPostTrain"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="vacationOvertimePayForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.vacationOvertimePay"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="cadreAllowanceReservationForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.cadreAllowanceReservation"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="yearDownPerformanceForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.yearDownPerformance"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="yearUpPerformanceForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.yearUpPerformance"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="overtimeAtWeekendForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.overtimeAtWeekend"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="maternityLeaveSalaryForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.maternityLeaveSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="wxForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.wx"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="dormitoryManagementFeeForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.dormitoryManagementFee"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="learningPowerForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.learningPower"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="telephoneBillForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.telephoneBill"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="inspectorFinesForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.inspectorFines"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="attendanceForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.attendance"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="childbirthAllowanceForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.childbirthAllowance"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="androidItForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.androidIt"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="basicsSalaryForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.basicsSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="customWorkloadSalaryForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customWorkloadSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="workloadSalaryForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.workloadSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="dailyAssessmentSalaryForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.dailyAssessmentSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customAwardForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAward"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customAwardOneForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardOne"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customAwardTwoForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardTwo"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="customAwardThreeForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardThree"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="customAwardFourForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardFour"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="customAwardFiveForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardFive"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="customAwardSixForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardSix"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="customAwardSevenForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardSeven"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="customAwardEightForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardEight"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="customAwardNineForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.customAwardNine"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="awardSalaryForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.awardSalary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="dutyAllowancesForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.dutyAllowances"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="classTeacherSubsidyForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.classTeacherSubsidy"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="subsidyForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.subsidy"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="deductionsForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.deductions"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="insurancePersonageForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.insurancePersonage"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="reservedFundsPersonageForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.reservedFundsPersonage"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="salaryForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.salary"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot="personageTaxesForm" slot-scope="{ column, disabled }">
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.personageTaxes"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="insurancePersonageForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.insurancePersonage"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template
- slot="reservedFundsPersonageForm"
- slot-scope="{ column, disabled }"
- >
- <el-input
- :disabled="disabled"
- :placeholder="'请输入 ' + column.label"
- v-model="crudForm.reservedFundsPersonage"
- @change="salaryAdd(crudForm)"
- />
- </template>
- <template slot-scope="{ row, index }" slot="menu">
- <el-button
- type="text"
- size="small"
- @click.stop="$refs.crud.rowEdit(row, index)"
- :disabled="detailData.status == 1"
- >
- {{ row.$cellEdit ? "保存" : "编辑" }}
- </el-button>
- <el-button
- type="text"
- size="small"
- @click.stop="rowDel(row)"
- :disabled="detailData.status == 1"
- >
- 删除
- </el-button>
- </template>
- </avue-crud>
- <el-dialog
- title="导入数据"
- append-to-body
- :visible.sync="excelBox"
- width="555px"
- v-dialog-drag
- >
- <avue-form
- :option="excelOption"
- v-model="excelForm"
- table-loading="excelLoading"
- :upload-after="uploadAfter"
- class="schoolupload"
- >
- <template slot="excelTemplate">
- <el-button type="primary" @click="derivation">
- 点击下载<i class="el-icon-download el-icon--right"></i>
- </el-button>
- </template>
- <template slot="date">
- <span>
- {{ time }}
- </span>
- </template>
- </avue-form>
- <p style="text-align: center;color: #DC0505">
- 温馨提示 第一次导入时请先下载模板
- </p>
- </el-dialog>
- </basic-container>
- <containerTitle title="导入附件记录"></containerTitle>
- <basic-container>
- <avue-crud
- :data="annexData"
- :option="annexOption"
- :page.sync="annexPage"
- :table-loading="annexLoading"
- @current-change="currentannexChange"
- @size-change="sizeannexChange"
- @saveColumn="saveannexColumn"
- @refresh-change="refreshannexChange"
- :cell-style="cellStyle"
- >
- <template slot-scope="{ row, index }" slot="menu">
- <el-button
- type="text"
- size="small"
- @click.stop="rowDownload(row, index)"
- >
- 下载
- </el-button>
- </template>
- </avue-crud>
- </basic-container>
- <report-dialog
- :switchDialog="switchDialog"
- :reportId="form.id"
- reportName="小学部"
- @onClose="onClose()"
- ></report-dialog>
- <el-dialog
- title="温馨提示"
- :visible.sync="dialogVisible"
- width="70%"
- :before-close="handleClose"
- append-to-body
- class="abnormal"
- >
- <span>
- <avue-crud :data="auditList" :option="auditOption">
- <template slot="menuLeft">
- <el-button type="info" size="small" @click.stop="exportAbnormal()"
- >导出
- </el-button>
- </template>
- </avue-crud></span
- >
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">关闭</el-button>
- </span>
- </el-dialog>
- </div>
- </div>
- </template>
- <script>
- import { getToken } from "@/util/auth";
- import { dateFormat } from "@/util/date";
- import {
- detail,
- copyDetail,
- submit,
- delItem,
- itemAnnex,
- itemDetail,
- pleaseCheck,
- calculate,
- calculate2
- } from "@/api/salaryManagement/primarySchool";
- import { numCal } from "@/util/calculate";
- import { optionList, auditOption } from "./js/optionList";
- import reportDialog from "@/components/report-dialog/main";
- export default {
- name: "detailsPage",
- data() {
- return {
- time: "",
- dialogVisible: false,
- switchDialog: false,
- annexLoading: false,
- crudForm: {},
- excelBox: false,
- loading: false,
- allloading: false,
- xcelLoading: false,
- loadingBtn: false,
- excelForm: {
- type: "1"
- },
- excelOption: {
- submitBtn: false,
- emptyBtn: false,
- column: [
- {
- label: "导入类型",
- prop: "type",
- type: "select",
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=import_type",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- row: true,
- span: 12
- },
- {
- label: "模板下载",
- prop: "excelTemplate",
- formslot: true,
- span: 10
- },
- {
- label: "当前时间",
- prop: "date",
- span: 13
- },
- {
- label: "模板上传",
- prop: "excelFile",
- type: "upload",
- drag: true,
- loadText: "模板上传中,请稍等",
- span: 24,
- propsHttp: {
- res: "data"
- },
- tip: "请上传 .xls,.xlsx 标准格式文件",
- action: "/api/blade-school/salaryitem/import",
- disabled: false
- }
- ]
- },
- form: {},
- dataList: [],
- page: {
- pageSize: 20,
- currentPage: 1,
- total: 0,
- pageSizes: [
- 10,
- 20,
- 30,
- 40,
- 50,
- 100,
- 150,
- 200,
- 250,
- 300,
- 350,
- 400,
- 450,
- 500
- ]
- },
- drawer: false,
- tableHeight: 0,
- option: {
- menuBtn: false,
- labelWidth: 40,
- column: [
- {
- label: "年",
- prop: "annual",
- type: "year",
- valueFormat: "yyyy",
- rules: [
- {
- required: true,
- message: "",
- trigger: "blur"
- }
- ],
- span: 6,
- change: ({ value }) => {
- if (value) {
- this.optionList.column.forEach(e => {
- if (e.prop == "yearUpPerformance") {
- e.label = value + "年上学期绩效";
- }
- if (e.prop == "yearDownPerformance") {
- e.label = value + "年下学期绩效";
- }
- });
- }
- }
- },
- {
- label: "月",
- prop: "moon",
- type: "select",
- filterable: true,
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=month",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- span: 6,
- rules: [
- {
- required: true,
- message: "",
- trigger: "blur"
- }
- ],
- change: ({ value }) => {
- if (value) {
- this.optionList.column.forEach(e => {
- if (e.prop == "monthHour") {
- e.label = value + "月份工作量";
- }
- if (e.prop == "momthWorkloadSalary") {
- e.label = value + "月工作量工资";
- }
- if (e.prop == "monthViceClassFee") {
- e.label = value + "月副班费(预留补发)";
- }
- });
- }
- }
- },
- {
- label: "人数",
- prop: "personNumber",
- span: 6,
- disabled: true
- },
- {
- label: "状态",
- prop: "status",
- type: "select",
- span: 6,
- props: {
- label: "name",
- value: "code"
- },
- dicData: [
- {
- name: "录入",
- code: 0
- },
- {
- name: "申请审批",
- code: 1
- },
- {
- name: "审批中",
- code: 2
- },
- {
- name: "审批通过",
- code: 3
- }
- ],
- disabled: true
- },
- {
- label: "备注",
- prop: "remarks",
- type: "textarea",
- span: 24,
- minRows: 2
- }
- ]
- },
- optionList: optionList,
- exportUrl: "/api/blade-school/salaryitem/export/template",
- annexData: [],
- annexOption: {
- align: "center",
- menuAlign: "center",
- addBtn: false,
- border: true,
- index: true,
- viewBtn: false,
- editBtn: false,
- delBtn: false,
- stripe: true,
- menuWidth: 100,
- column: [
- {
- label: "文件类型",
- prop: "fileType",
- overHidden: true
- },
- {
- label: "文件名",
- prop: "cname",
- overHidden: true
- },
- {
- label: "创建时间",
- prop: "createTime",
- overHidden: true
- },
- {
- label: "创建人",
- prop: "createName",
- overHidden: true
- },
- {
- label: "备注",
- prop: "remarks",
- overHidden: true
- }
- ]
- },
- annexPage: {
- pageSize: 10,
- currentPage: 1,
- total: 0,
- pageSizes: [
- 10,
- 20,
- 30,
- 40,
- 50,
- 100,
- 150,
- 200,
- 250,
- 300,
- 350,
- 400,
- 450,
- 500
- ]
- },
- auditList: [],
- auditOption: auditOption
- };
- },
- props: {
- detailData: {
- type: Object
- }
- },
- components: {
- reportDialog
- },
- created() {
- if (this.detailData.id) {
- this.getDetail(this.detailData.id);
- }
- if (this.detailData.status == 1) {
- this.option.disabled = true;
- }
- this.optionList.height = 450;
- this.annexOption.height = 450;
- this.auditOption.height = 600;
- },
- methods: {
- getTime() {
- setInterval(() => {
- this.time = dateFormat(new Date());
- }, 1000);
- },
- cellStyle() {
- return "padding:0;height:40px;";
- },
- headerCellClassName({ row, column, rowIndex, columnIndex }) {
- if (
- column.property == "salaryBase" ||
- column.property == "workloadSalary" ||
- column.property == "dailyAssessmentSalary" ||
- column.property == "awardSalary" ||
- column.property == "dutyAllowances" ||
- column.property == "classTeacherSubsidy" ||
- column.property == "subsidy" ||
- column.property == "deductions" ||
- column.property == "insuranceUnit" ||
- column.property == "insurancePersonage" ||
- column.property == "reservedFundsUnit" ||
- column.property == "reservedFundsPersonage" ||
- column.property == "salary" ||
- column.property == "personageTaxes" ||
- column.property == "fsalary"
- ) {
- return "headerCellClass";
- }
- if (
- column.property == "salaryWithdrawalStandard" ||
- column.property == "rankWithdrawalStandard" ||
- column.property == "dailyAssessmentSalary" ||
- column.property == "rankStandard" ||
- column.property == "salaryBaseName" ||
- column.property == "workloadSalaryCritertion" ||
- column.property == "virtualWorkloadSalary" ||
- column.property == "doubleCease" ||
- column.property == "dailyAssessmentCriteria" ||
- column.property == "virtualDailyAssessmentCriteria" ||
- column.property == "termPerformanceSalaryName" ||
- column.property == "salaryWithdrawalStandard" ||
- column.property == "rankWithdrawalStandard" ||
- column.property == "rankStandard" ||
- column.property == "salaryBaseName" ||
- column.property == "workloadSalaryCritertion" ||
- column.property == "virtualWorkloadSalary" ||
- column.property == "doubleCease" ||
- column.property == "dailyAssessmentCriteria" ||
- column.property == "virtualDailyAssessmentCriteria" ||
- column.property == "otherCriterion" ||
- column.property == "teacherSubsidy" ||
- column.property == "teacherAssessSubsidy" ||
- column.property == "performanceAwardName" ||
- column.property == "capitalIncreaseName" ||
- column.property == "leadingCadreSubsidyName" ||
- column.property == "assessLeadingCadreSubsidyName" ||
- column.property == "prepareLessonsName" ||
- column.property == "assessPrepareLessonsName" ||
- column.property == "teachingResearchName" ||
- column.property == "assessTeachingResearchName" ||
- column.property == "virtualDoubleCease"
- ) {
- return "headerCellClass2";
- }
- },
- copyDoc() {
- this.$emit("copyOrder", this.form.id);
- },
- getDetail(id) {
- if (this.detailData.status == "copy") {
- this.allloading = true;
- copyDetail(id)
- .then(res => {
- this.form = res.data.data;
- this.getItemDetail();
- })
- .finally(() => {
- this.allloading = false;
- });
- } else {
- detail(id).then(res => {
- this.form = res.data.data;
- this.getItemDetail();
- this.getitemAnnex();
- });
- }
- },
- getItemDetail() {
- const data = {
- pid: this.form.id,
- ...this.search
- };
- this.loading = true;
- itemDetail(this.page.currentPage, this.page.pageSize, data)
- .then(res => {
- this.dataList = res.data.data.records;
- this.page.total = res.data.data.total;
- })
- .finally(() => {
- this.loading = false;
- });
- },
- getitemAnnex() {
- const data = {
- pid: this.form.id
- };
- this.annexLoading = true;
- itemAnnex(this.annexPage.currentPage, this.annexPage.pageSize, data)
- .then(res => {
- this.annexData = res.data.data.records;
- this.annexPage.total = res.data.data.total;
- })
- .finally(() => {
- this.annexLoading = false;
- });
- },
- rowSave(row, done, loading) {
- if (!row.cname) {
- loading();
- return this.$message.error("请完善姓名");
- }
- if (!row.idNumber) {
- loading();
- return this.$message.error("请完善身份证号");
- }
- const arr = [];
- arr.push(row);
- submit({ ...this.form, salaryItemList: arr })
- .then(res => {
- this.$message.success("保存成功");
- this.form = res.data.data;
- this.getItemDetail();
- done();
- })
- .finally(() => {
- loading();
- });
- },
- rowUpdate(row, index, done, loading) {
- if (!row.cname) {
- loading();
- return this.$message.error("请完善姓名");
- }
- if (!row.idNumber) {
- loading();
- return this.$message.error("请完善身份证号");
- }
- const arr = [];
- arr.push(row);
- submit({ ...this.form, salaryType: "小学部", salaryItemList: arr })
- .then(res => {
- this.$message.success("修改成功");
- this.form = res.data.data;
- this.getItemDetail();
- done();
- })
- .finally(() => {
- loading();
- });
- },
- rowCell(row, index) {
- if (row.$cellEdit == true) {
- if (!row.cname) {
- return this.$message.error("请完善姓名");
- }
- if (!row.idNumber) {
- return this.$message.error("请完善身份证号");
- }
- // if (!row.rankStandard) {
- // return this.$message.error("请完善职级标准");
- // }
- const arr = [];
- arr.push(row);
- this.loading = true;
- submit({ ...this.form, salaryItemList: arr })
- .then(res => {
- this.$message.success("保存成功");
- this.form = res.data.data;
- })
- .finally(() => {
- this.loading = false;
- });
- this.$set(row, "$cellEdit", false);
- } else {
- this.$set(row, "$cellEdit", true);
- }
- },
- rowDel(row) {
- this.$confirm("确定删除数据?", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }).then(() => {
- if (row.id) {
- delItem(row.id).then(res => {
- this.$message({
- type: "success",
- message: "删除成功!"
- });
- this.getItemDetail();
- });
- } else {
- this.$message({
- type: "success",
- message: "删除成功!"
- });
- this.dataList.splice(row.$index, 1);
- }
- });
- },
- rowDownload(row) {
- window.open(`${row.url}?${this.website.tokenHeader}=${getToken()}`);
- },
- searchChange(params, done) {
- if (!this.form.id) {
- done();
- return this.$message.error("请保存数据");
- }
- this.getItemDetail();
- done();
- },
- currentChange(val) {
- this.page.currentPage = val;
- this.getItemDetail();
- },
- sizeChange(val) {
- this.page.currentPage = 1;
- this.page.pageSize = val;
- this.getItemDetail();
- },
- refreshChange() {
- this.getItemDetail();
- },
- currentannexChange(val) {
- this.annexPage.currentPage = val;
- this.getitemAnnex();
- },
- sizeannexChange(val) {
- this.annexPage.currentPage = 1;
- this.annexPage.pageSize = val;
- this.getitemAnnex();
- },
- refreshannexChange() {
- this.getitemAnnex();
- },
- uploadAfter(res, done, loading, column) {
- this.excelBox = false;
- // this.$message.success("导入成功!");
- this.getItemDetail();
- this.getitemAnnex();
- done();
- },
- //修改提交触发
- editCustomer() {
- this.$refs["form"].validate((valid, done) => {
- done();
- if (valid) {
- for (let i = 0; i < this.dataList.length; i++) {
- if (!this.dataList[i].cname) {
- return this.$message.error(
- "请完善第" + Number(1 + i) + "行的姓名"
- );
- }
- if (!this.dataList[i].idNumber) {
- return this.$message.error(
- "请完善第" + Number(1 + i) + "行的身份证号"
- );
- }
- if (!this.dataList[i].rankStandard) {
- return this.$message.error(
- "请完善第" + Number(1 + i) + "行的职级标准"
- );
- }
- }
- this.loadingBtn = true;
- submit({
- ...this.form,
- salaryType: "小学部",
- salaryItemList: this.dataList
- })
- .then(res => {
- this.$message.success("保存成功");
- this.form = res.data.data;
- this.getItemDetail();
- })
- .finally(() => {
- this.loadingBtn = false;
- });
- } else {
- return false;
- }
- });
- },
- derivation() {
- if (!this.excelForm.type) {
- return this.$message.error("请选择导入类型");
- }
- if (!this.exportUrl) {
- return this.$message.error("暂无模板文件");
- }
- window.open(
- `${this.exportUrl}?${this.website.tokenHeader}=${getToken()}`
- );
- },
- openExport() {
- if (!this.form.id) {
- return this.$message.error("请先保存数据");
- }
- window.open(
- `/api/blade-school/salaryitem/export/teacher?${
- this.website.tokenHeader
- }=${getToken()}&pid=${this.form.id}`
- );
- },
- calculate() {
- if (!this.form.id) {
- return this.$message.error("请先保存数据");
- }
- this.loading = true;
- calculate({ pid: this.form.id })
- .then(res => {
- if (res.data.code == "200") {
- this.getItemDetail();
- }
- })
- .finally(() => {
- this.loading = false;
- });
- },
- calculate2() {
- // return this.$message.error("正在开发中");
- if (!this.form.id) {
- return this.$message.error("请先保存数据");
- }
- this.loading = true;
- calculate2({ inSection: "小学部", pid: this.form.id })
- .then(res => {
- if (res.data.code == "200") {
- this.getItemDetail();
- }
- })
- .finally(() => {
- this.loading = false;
- });
- },
- importExcel() {
- if (!this.form.id) {
- return this.$message.error("请先保存数据");
- }
- this.excelOption.column.forEach(e => {
- if (e.prop == "excelFile") {
- e.data = {
- id: this.form.id
- };
- }
- });
- this.excelBox = true;
- this.getTime();
- },
- //导出全部
- exportAll() {
- let opt = {
- title: "工资条",
- column: this.optionList.column,
- data: this.dataList
- };
- this.$Export.excel({
- title: opt.title,
- columns: opt.column,
- data: opt.data
- });
- },
- salaryAdd(row) {
- // 1. 基础工资 = +M153(校龄工资)+N153(增资)+O153(学历工资)+Q153(职级工资)+L153(履约奖)+R153(工资基数)
- row.basicsSalary =
- numCal(row.schoolAgeSalary) +
- numCal(row.capitalIncrease) +
- numCal(row.educationSalary) +
- numCal(row.rankSalary) +
- numCal(row.salaryBase) +
- numCal(row.performanceAward);
- // 2. 工作量工资 = V51(工作量工资)+..自定义
- row.workloadSalary =
- numCal(row.monthHour) +
- numCal(row.momthWorkloadSalary) +
- numCal(row.customWorkloadSalary) +
- numCal(row.custom) +
- numCal(row.customOne) +
- numCal(row.customTwo) +
- numCal(row.customThree) +
- numCal(row.customFour) +
- numCal(row.customFive) +
- numCal(row.customSix) +
- numCal(row.customSeven) +
- numCal(row.customEight) +
- numCal(row.customNine);
- // 3. 奖励工资 = 自定义+...+自定义
- row.awardSalary =
- numCal(row.customAward) +
- numCal(row.customAwardOne) +
- numCal(row.customAwardTwo) +
- numCal(row.customAwardThree) +
- numCal(row.customAwardFour) +
- numCal(row.customAwardFive) +
- numCal(row.customAwardSix) +
- numCal(row.customAwardSeven) +
- numCal(row.customAwardEight) +
- numCal(row.customAwardNine);
- // 4. 职务津贴 = AM46(备课组长)+AL46(领导干部补贴)+AN46(教研组长)
- row.dutyAllowances =
- numCal(row.prepareLessons) +
- numCal(row.leadingCadreSubsidy) +
- numCal(row.teachingResearch);
- // 5. 班主任津贴 = AQ47(班额)+AP47(班主任费)
- row.classTeacherSubsidy =
- numCal(row.classes) + numCal(row.classTeacherFee);
- // 6. 补贴项 = =BE49(预留补发)+BD49(餐车、周五测温、周五安全岗(预留补发))+BC49(9月副班费(预留补发))+BB49(级部长(预留发放))+BA49(期中期末考试学科优胜奖(预留发放))+AZ49(新岗岗前培训)+AY49(假期加班费)+AX49(干部补贴预留)+AW49(2020年下学期绩效)+AV49(2020年上学期绩效)+AU49(周末加班(提取))+AT49(产假工资)+AS49(微信)
- row.subsidy =
- numCal(row.reserveReplacement) +
- numCal(row.safetyFees) +
- numCal(row.monthViceClassFee) +
- numCal(row.classMinister) +
- numCal(row.monthViceClassFee) +
- numCal(row.winningPrize) +
- numCal(row.newPostTrain) +
- numCal(row.vacationOvertimePay) +
- numCal(row.cadreAllowanceReservation) +
- numCal(row.yearDownPerformance) +
- numCal(row.yearUpPerformance) +
- numCal(row.overtimeAtWeekend) +
- numCal(row.maternityLeaveSalary) +
- numCal(row.wx);
- // 7. 扣除项 = =BL47(宿舍管理费)+BK47(学习强国)+BJ47(电话费)+BI47(督查罚款)+BH47(出勤)+BM47(生育津贴)+BN47(五险一金个人)
- row.deductions =
- numCal(row.dormitoryManagementFee) +
- numCal(row.learningPower) +
- numCal(row.telephoneBill) +
- numCal(row.inspectorFines) +
- numCal(row.attendance) +
- numCal(row.childbirthAllowance) +
- numCal(row.androidIt);
- // 8. 应发工资 = S153(基础工资)+Z153(工作量工资)+AB153(日常考核工资)+AK153(奖励工资)+AO153(职务津贴)+AR153(班主任津贴)+BG153(补贴项)-BO153(扣除项)+BQ153(保险个人)+BS153(公积金个人)
- row.salary =
- numCal(row.basicsSalary) +
- numCal(row.workloadSalary) +
- numCal(row.dailyAssessmentSalary) +
- numCal(row.awardSalary) +
- numCal(row.dutyAllowances) +
- numCal(row.classTeacherSubsidy) +
- numCal(row.subsidy) -
- numCal(row.deductions) +
- numCal(row.insurancePersonage) +
- numCal(row.reservedFundsPersonage);
- // 9. 实发工资 = BT153(应发工资) - BU153(个税)-BQ153(保险个人)-BS153(公积金个人)
- row.fsalary =
- numCal(row.salary) -
- numCal(row.personageTaxes) -
- numCal(row.insurancePersonage) -
- numCal(row.reservedFundsPersonage);
- },
- //导出工资条
- exportSalary() {
- let data = [];
- for (let item in this.optionList.column) {
- switch (this.optionList.column[item].prop) {
- case "salaryBase":
- data.push(this.optionList.column[item]);
- break;
- case "workloadSalary":
- data.push(this.optionList.column[item]);
- break;
- case "dailyAssessmentSalary":
- data.push(this.optionList.column[item]);
- break;
- case "awardSalary":
- data.push(this.optionList.column[item]);
- break;
- case "dutyAllowances":
- data.push(this.optionList.column[item]);
- break;
- case "classTeacherSubsidy":
- data.push(this.optionList.column[item]);
- break;
- case "subsidy":
- data.push(this.optionList.column[item]);
- break;
- case "deductions":
- data.push(this.optionList.column[item]);
- break;
- case "insuranceUnit":
- data.push(this.optionList.column[item]);
- break;
- case "insurancePersonage":
- data.push(this.optionList.column[item]);
- break;
- case "reservedFundsUnit":
- data.push(this.optionList.column[item]);
- break;
- case "reservedFundsPersonage":
- data.push(this.optionList.column[item]);
- break;
- case "salary":
- data.push(this.optionList.column[item]);
- break;
- case "personageTaxes":
- data.push(this.optionList.column[item]);
- break;
- case "fsalary":
- data.push(this.optionList.column[item]);
- break;
- }
- }
- let opt = {
- title: "工资条",
- column: data,
- data: this.dataList
- };
- this.$Export.excel({
- title: opt.title,
- columns: opt.column,
- data: opt.data
- });
- },
- openEdit() {
- const data = {
- moduleName: "xxb",
- tableName: "primary_school",
- billId: this.form.id,
- no: localStorage.getItem("browserID"),
- billNo: this.form.annual + "-" + this.form.moon
- };
- this.inDetailsKey(this.$route.name, {
- moduleName: "xxb",
- tableName: "primary_school",
- billId: this.form.id,
- billNo: this.form.annual + "-" + this.form.moon
- });
- this.checkLock(data).then(res => {
- if (res.data.code == 200) {
- this.onLock(data).then(res => {
- if (res.data.code == 200) {
- this.detailData.status = 2;
- this.option = this.$options.data().option;
- }
- });
- }
- });
- },
- openReport() {
- this.switchDialog = !this.switchDialog;
- },
- onClose(val) {
- this.switchDialog = val;
- },
- // 请核
- pleaseCheck() {
- this.$confirm("您确定提交此次申请吗?", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }).then(() => {
- const data = {
- id: this.form.id,
- checkType: "xsgz",
- url: "/salaryManagement/primarySchool/index",
- pageStatus: "this.$store.getters.domSaleStatus",
- pageLabel: "小学部",
- checkFlag: 2
- };
- pleaseCheck(data).then(res => {
- if (res.data.msg == "请核失败") {
- this.dialogVisible = true;
- this.auditList = res.data.data;
- } else {
- this.$message.success("请核成功");
- this.detailData.status = 1;
- this.option.disabled = true;
- this.getDetail(this.form.id);
- }
- });
- });
- },
- handleClose() {
- this.auditList = [];
- this.dialogVisible = false;
- },
- exportAbnormal() {
- window.open(
- `/api//blade-school/salaryitem/export/exception?${
- this.website.tokenHeader
- }=${getToken()}&pid=${this.form.id}`
- );
- },
- //返回列表
- backToList() {
- if (this.form.id) {
- this.unLock({
- moduleName: "xxb",
- tableName: "primary_school",
- billId: this.form.id,
- billNo: this.form.annual + "-" + this.form.moon
- });
- }
- this.$emit("goBack");
- this.leaveDetailsKey(this.$route.name);
- }
- },
- watch: {
- "excelForm.type": function(val) {
- if (val) {
- switch (val) {
- case "1":
- this.exportUrl = "/api/blade-school/salaryitem/export/template";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "2":
- this.exportUrl = "/api/blade-school/salaryitem/export/employ";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/employ";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "3":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/workloadExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/workloadExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "4":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/postAllowance";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/postAllowance";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "5":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/teacherSubsidy";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/teacherSubsidy";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "6":
- this.exportUrl = "/api/blade-school/salaryitem/export/position";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/position";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "7":
- this.exportUrl = "/api/blade-school/salaryitem/export/zhaPingExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/zhaPingExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "9":
- this.exportUrl = "/api/blade-school/salaryitem/export/overtime";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/overtime";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "10":
- this.exportUrl = "/api/blade-school/salaryitem/export/weChat";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/weChat";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "11":
- this.exportUrl = "/api/blade-school/salaryitem/export/power";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/power";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "12":
- this.exportUrl = "/api/blade-school/salaryitem/export/phoneFine";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/phoneFine";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "13":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/sanitationFee";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/sanitationFee";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "14":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/insuranceExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/insuranceExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "15":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/reservedFunds";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/reservedFunds";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "16":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/personalInsurance";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/personalInsurance";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "17":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/attendanceExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/attendanceExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "18":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/eomNumberExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/eomNumberExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "19":
- this.exportUrl = "/api/blade-school/salaryitem/export/payTaxes";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/payTaxes";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "20":
- this.exportUrl = "/api/blade-school/salaryitem/export/awardExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/awardExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "21":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/performanceExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/performanceExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "22":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/vacationExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/vacationExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "23":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/postTrainExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/postTrainExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "24":
- this.exportUrl = "/api/blade-school/salaryitem/export/leadExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/leadExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "25":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/teamLeaderExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/teamLeaderExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "26":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/prepareLessonsExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/prepareLessonsExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "28":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/teachingExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/teachingExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- case "29":
- this.exportUrl =
- "/api/blade-school/salaryitem/export/doubleWorkloadExcel";
- this.findObject(this.excelOption.column, "excelFile").action =
- "/api/blade-school/salaryitem/import/doubleWorkloadExcel";
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = false;
- break;
- default:
- this.findObject(
- this.excelOption.column,
- "excelFile"
- ).disabled = true;
- this.exportUrl = "";
- }
- } else {
- this.findObject(this.excelOption.column, "excelFile").disabled = true;
- }
- }
- }
- };
- </script>
- <style>
- .headerCellClass {
- color: #fff !important;
- background: #a4cf57 !important;
- }
- .headerCellClass2 {
- color: #fff !important;
- background: #a0cfff !important;
- }
- </style>
- <style lang="scss" scoped>
- .trading-form ::v-deep .el-form-item {
- margin-bottom: 4px !important;
- }
- ::v-deep .el-form-item__error {
- display: none !important;
- }
- .schoolupload ::v-deep .el-upload-list {
- display: none;
- }
- .abnormal ::v-deep .el-dialog__body {
- padding: 10px 20px;
- }
- </style>
|