Payroll.vue 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691
  1. <template>
  2. <div v-loading.fullscreen.lock="fullscreenLoading">
  3. <div class="payroll-all">
  4. <div class="payroll-head">
  5. <div style="display: flex;" class="payroll-head-li">
  6. <el-date-picker
  7. style="width: 120px;"
  8. value-format="yyyy-MM"
  9. v-model="value2"
  10. :clearable="false"
  11. type="month"
  12. placeholder="选择月"
  13. @change="PickTime()">
  14. </el-date-picker>
  15. <el-select style="width: 220px;margin-left: 10px;" @change="companychange()" v-model="companyName" filterable placeholder="请选择公司">
  16. <el-option
  17. v-for="item in companylist"
  18. :key="item.id"
  19. :label="item.companyName"
  20. :value="item.id">
  21. </el-option>
  22. </el-select>
  23. <!-- <el-select v-model="depName" filterable placeholder="请选择部门">
  24. <el-option
  25. v-for="item in deplist"
  26. :key="item.value"
  27. :label="item.label"
  28. :value="item.value">
  29. </el-option>
  30. </el-select> -->
  31. <el-input @input="cnNamechange()" style="width: 220px;margin-left: 10px;" v-model="cnName" placeholder="请输入员工姓名"></el-input>
  32. <!-- <el-select v-model="cnName" filterable placeholder="请选择员工">
  33. <el-option
  34. v-for="item in comuserlist"
  35. :key="item.id"
  36. :label="item.cnName"
  37. :value="item.id">
  38. </el-option>
  39. </el-select> -->
  40. </div>
  41. <div class="payroll-head-li">
  42. <el-button type="primary" @click="addsalary()">新增员工薪资结构</el-button>
  43. <el-button type="primary" @click="openSalaryCalculator()">计算当月工资</el-button>
  44. <el-button @click="Download()" type="primary">导出工资单</el-button>
  45. <el-button type="primary" @click="DownloadTaxes()">下载个税模板</el-button>
  46. <el-button type="primary" @click="UploadTaxes=true">上传个税</el-button>
  47. <!--<el-button type="primary">四川公司工资单</el-button>
  48. <el-button type="primary">纽茵公司工资单</el-button> -->
  49. </div>
  50. </div>
  51. <div class="payroll-table">
  52. <template>
  53. <el-table
  54. height="760"
  55. :data="tableDatatwo"
  56. border
  57. style="width: 100%">
  58. <el-table-column
  59. prop="row_Number"
  60. label="序号"
  61. width="55">
  62. </el-table-column>
  63. <el-table-column
  64. prop="yearMonth"
  65. label="年月"
  66. width="80">
  67. </el-table-column>
  68. <el-table-column
  69. prop="name"
  70. label="员工"
  71. width="80">
  72. </el-table-column>
  73. <el-table-column
  74. prop="companyName"
  75. label="公司">
  76. </el-table-column>
  77. <el-table-column
  78. label="假勤/打卡"
  79. width="85">
  80. <template slot-scope="scope">
  81. <el-popover
  82. v-if="scope.row.ex_ItemsRemark!=''"
  83. placement="right"
  84. width="150"
  85. trigger="hover">
  86. <div v-for="(items,index) in scope.row.ex_ItemsRemark!=''?JSON.parse(scope.row.ex_ItemsRemark):''" :key="index">
  87. <div v-if="items.Type=='假勤'">
  88. <div class="title-popover">{{items.Type}}({{(items.Ex_ItemInfo).length}})</div>
  89. <!-- <div class="title-content" v-for="(itemss,index) in items.Ex_ItemInfo" :key="index">
  90. 请假类型:{{itemss.SubType}}
  91. </div> -->
  92. </div>
  93. <div v-if="items.Type=='打卡'">
  94. <div class="title-popover">{{items.Type}}异常({{(items.Ex_ItemInfo).length}})</div>
  95. </div>
  96. <div v-if="items=='[]'">
  97. <div class="title-popover">本月无假勤</div>
  98. </div>
  99. </div>
  100. <div style="cursor: pointer;" slot="reference">移上查看</div>
  101. </el-popover>
  102. <el-popover
  103. v-if="scope.row.ex_ItemsRemark==''"
  104. placement="right"
  105. width="150"
  106. trigger="hover">
  107. <span>无考勤异常</span>
  108. <div style="cursor: pointer;" slot="reference">移上查看</div>
  109. </el-popover>
  110. </template>
  111. </el-table-column>
  112. <el-table-column
  113. prop="startDate"
  114. label="起止日期"
  115. width="190">
  116. <template slot-scope="scope">
  117. <div>{{scope.row.startDate+'~'+scope.row.endDate}}</div>
  118. </template>
  119. </el-table-column>
  120. <el-table-column
  121. prop="workDays"
  122. label="应出勤天数"
  123. width="100">
  124. </el-table-column>
  125. <!-- <el-table-column
  126. prop="regularDays"
  127. label="正常出勤天数"
  128. width="110">
  129. </el-table-column> -->
  130. <el-table-column
  131. prop="should"
  132. label="应发合计"
  133. width="90"
  134. :formatter="rounding">
  135. </el-table-column>
  136. <el-table-column
  137. prop="totalDeductions"
  138. label="扣款合计"
  139. width="90"
  140. :formatter="rounding">
  141. </el-table-column>
  142. <el-table-column
  143. prop="beforeTax"
  144. label="税前合计 "
  145. width="90"
  146. :formatter="rounding">
  147. </el-table-column>
  148. <el-table-column
  149. prop="withholdingTax"
  150. label="代缴个税"
  151. width="90"
  152. :formatter="rounding">
  153. </el-table-column>
  154. <el-table-column
  155. prop="totalRealHair"
  156. label="税后合计"
  157. width="90"
  158. :formatter="rounding">
  159. </el-table-column>
  160. <el-table-column
  161. prop="lastUpdateUserName"
  162. label="最后操作人"
  163. width="100">
  164. </el-table-column>
  165. <el-table-column
  166. prop="lastUpdateDt"
  167. label="最后时间"
  168. width="180">
  169. </el-table-column>
  170. <el-table-column
  171. prop="name"
  172. label="操 作"
  173. width="100">
  174. <!-- eslint-disable-next-line -->
  175. <template slot-scope="scope">
  176. <el-button type="text" @click="SalaryDetails(scope.$index, scope.row)">修改</el-button>
  177. <el-button style="color: red;" type="text" @click="deleteaddsalary(scope.$index,scope.row,tableDatatwo)">删除</el-button>
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. </template>
  182. </div>
  183. <!-- 上传个税 -->
  184. <el-dialog title="上传个税" width="400px" :visible.sync="UploadTaxes" :close-on-click-modal="false">
  185. <div>
  186. <el-form :model="TaxesData" ref="TaxesData" :rules="Taxesrules">
  187. <el-form-item label="年月" prop="yearMonth" label-width="50">
  188. <el-date-picker value-format="yyyy-MM" style="width:86%" v-model="TaxesData.yearMonth" size="medium" type="month" placeholder="选择月"></el-date-picker>
  189. </el-form-item>
  190. </el-form>
  191. <el-upload drag
  192. :limit=limitNum
  193. :auto-upload="false"
  194. accept=".xlsx"
  195. :action="UploadUrl()"
  196. :before-upload="beforeUploadFile"
  197. :on-change="fileChange"
  198. :on-exceed="exceedFile"
  199. :on-success="handleSuccess"
  200. :on-error="handleError"
  201. :on-remove="removelist"
  202. :file-list="fileList">
  203. <i class="el-icon-upload"></i>
  204. <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
  205. <div class="el-upload__tip" slot="tip">只能上传xlsx文件,且不超过10M</div>
  206. </el-upload>
  207. <br/>
  208. <el-button size="small" type="primary" @click="uploadFile('TaxesData')">立即上传</el-button>
  209. <el-button size="small">取消</el-button>
  210. </div>
  211. </el-dialog>
  212. <!-- 计算工资 -->
  213. <el-dialog :close-on-click-modal="false" width="380px" title="选择计算当月工资日期" :visible.sync="gridTableVisible">
  214. <el-form :model="gridData" ref="gridData" :rules="gridrules">
  215. <el-form-item label="年月" prop="yearMonth" :label-width="formLabelWidth">
  216. <el-date-picker value-format="yyyy-MM" v-model="gridData.yearMonth" size="medium" type="month" placeholder="选择月"></el-date-picker>
  217. </el-form-item>
  218. <el-form-item label="工资日期起" prop="startDate" :label-width="formLabelWidth">
  219. <el-date-picker value-format="yyyy-MM-dd" v-model="gridData.startDate" size="medium" type="date" placeholder="选择日期"></el-date-picker>
  220. </el-form-item>
  221. <el-form-item label="工资日期止" prop="endDate" :label-width="formLabelWidth">
  222. <el-date-picker value-format="yyyy-MM-dd" v-model="gridData.endDate" size="medium" type="date" placeholder="选择日期"></el-date-picker>
  223. </el-form-item>
  224. </el-form>
  225. <div slot="footer" class="dialog-footer">
  226. <el-button type="primary" @click="SalaryCalculator('gridData')">计 算</el-button>
  227. <el-button @click="gridTableVisible = false">取 消</el-button>
  228. </div>
  229. </el-dialog>
  230. <!-- 修改新增 -->
  231. <el-dialog :close-on-click-modal="false" width="960px" class="pan" top="2.5vh" title="薪资详细信息" :visible.sync="dialogFormVisible">
  232. <el-form :model="salaryinif" ref="salaryinif" :rules="rules">
  233. <div class="payroll-inif">
  234. <el-form-item label="员工" prop="userId" :label-width="formLabelWidth">
  235. <el-select size="medium" style="height:36px" :disabled="disabled" v-model="salaryinif.userId" filterable placeholder="请选择">
  236. <el-option
  237. v-for="item in userlist"
  238. :key="item.id"
  239. :label="item.cnName"
  240. :value="item.id">
  241. </el-option>
  242. </el-select>
  243. </el-form-item>
  244. <!-- <el-form-item label="是否转正" :label-width="formLabelWidth">
  245. <el-switch v-model="salaryinif.regularization" active-color="" inactive-color="">
  246. </el-switch>
  247. </el-form-item> -->
  248. <el-form-item label="年月" prop="yearMonth" :label-width="formLabelWidth">
  249. <el-date-picker value-format="yyyy-MM" @change="Rangetime()" v-model="salaryinif.yearMonth" size="medium" type="month" placeholder="选择月"></el-date-picker>
  250. </el-form-item>
  251. <el-form-item label="工资日期起" prop="startDate" :label-width="formLabelWidth">
  252. <el-date-picker value-format="yyyy-MM-dd" v-model="salaryinif.startDate" size="medium" type="date" placeholder="选择日期"></el-date-picker>
  253. </el-form-item>
  254. <el-form-item label="工资日期止" prop="endDate" :label-width="formLabelWidth">
  255. <el-date-picker value-format="yyyy-MM-dd" v-model="salaryinif.endDate" size="medium" type="date" placeholder="选择日期"></el-date-picker>
  256. </el-form-item>
  257. <el-form-item label="基本工资" prop="basic" :label-width="formLabelWidth">
  258. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.basic"></el-input-number>
  259. </el-form-item>
  260. <el-form-item label="绩效工资" prop="floats" :label-width="formLabelWidth">
  261. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.floats"></el-input-number>
  262. </el-form-item>
  263. <el-form-item label="岗位津贴" prop="postAllowance" :label-width="formLabelWidth">
  264. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.postAllowance"></el-input-number>
  265. </el-form-item>
  266. <!-- <el-form-item label="服装洗理补贴" prop="garmentWashSubsidies" :label-width="formLabelWidth">
  267. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.garmentWashSubsidies"></el-input-number>
  268. </el-form-item> -->
  269. <!-- <el-form-item label="通讯补贴" prop="communicationSubsidies" :label-width="formLabelWidth">
  270. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.communicationSubsidies"></el-input-number>
  271. </el-form-item> -->
  272. <el-form-item label="月度补贴" prop="otherSubsidies" :label-width="formLabelWidth">
  273. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.otherSubsidies"></el-input-number>
  274. </el-form-item>
  275. <el-form-item label="保密费" prop="informationSecurityFee" :label-width="formLabelWidth">
  276. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.informationSecurityFee"></el-input-number>
  277. </el-form-item>
  278. <!-- <el-form-item label="操作奖金" prop="operationBonus" :label-width="formLabelWidth">
  279. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.operationBonus"></el-input-number>
  280. </el-form-item> -->
  281. <!-- <el-form-item label="部门团建费" prop="groupCost" :label-width="formLabelWidth">
  282. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.groupCost"></el-input-number>
  283. </el-form-item> -->
  284. <!-- <el-form-item label="过节费" prop="specialAllowance" :label-width="formLabelWidth">
  285. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.specialAllowance"></el-input-number>
  286. </el-form-item> -->
  287. <!-- <el-form-item label="其他补贴" prop="otherSubsidies" :label-width="formLabelWidth">
  288. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.otherSubsidies"></el-input-number>
  289. </el-form-item> -->
  290. <el-form-item label="餐补" prop="mealsupplement" :label-width="formLabelWidth">
  291. <el-popover
  292. placement="top"
  293. width="412"
  294. trigger="hover">
  295. <el-table height="500px" :border="border" :data="transfer" :default-sort="{prop:'StartTimeDt',order:'ascending'}">
  296. <el-table-column width="80" property="SubType" label="请假类型"></el-table-column>
  297. <el-table-column :sortable="true" width="108" property="StartTimeDt" :formatter="rounddadykaishi" label="开始时间"></el-table-column>
  298. <el-table-column width="100" property="EndTimeDt" :formatter="rounddadyjieshu" label="结束时间"></el-table-column>
  299. <el-table-column width="50" property="Duration" label="时长"></el-table-column>
  300. <el-table-column width="80" property="Unit" label="时长单位"></el-table-column>
  301. <!-- <el-table-column width="80" property="Deduction" label="扣款金额" :formatter="rounding"></el-table-column> -->
  302. </el-table>
  303. <el-input-number slot="reference" :precision="2" size="medium" :controls="false" v-model="salaryinif.mealsupplement">
  304. <span slot="reference"></span>
  305. </el-input-number>
  306. </el-popover>
  307. </el-form-item>
  308. <el-form-item label="其他应付" prop="otherHandle" :label-width="formLabelWidth">
  309. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.otherHandle"></el-input-number>
  310. </el-form-item>
  311. </div>
  312. <div class="payroll-inif">
  313. <el-form-item label="代扣保险" prop="withholdingInsurance" :label-width="formLabelWidth">
  314. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.withholdingInsurance"></el-input-number>
  315. </el-form-item>
  316. <el-form-item label="代扣公积金" prop="reservedFunds" :label-width="formLabelWidth">
  317. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.reservedFunds"></el-input-number>
  318. </el-form-item>
  319. <el-form-item label="代缴个税" prop="withholdingTax" :label-width="formLabelWidth">
  320. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.withholdingTax"></el-input-number>
  321. </el-form-item>
  322. </div>
  323. <div class="remark-box">
  324. <el-form-item label="其他扣款" prop="otherDeductions" :label-width="formLabelWidth">
  325. <el-input-number :precision="2" size="medium" :controls="false" v-model="salaryinif.otherDeductions"></el-input-number>
  326. <span class="ps-box">* 其他扣款 = 罚款 + 其他扣款;具体各项金额请在备注里描述。</span>
  327. </el-form-item>
  328. </div>
  329. <!-- <div style="margin: 0 80px;text-align: right;margin-bottom: 5px;">
  330. <el-button type="primary">获取企微假勤</el-button>
  331. </div> -->
  332. <div class="leave-inif">
  333. <el-form-item label="应出勤天数" :label-width="formLabelWidth">
  334. <span>{{salaryinif.workDays}}</span>
  335. </el-form-item>
  336. <el-form-item label="正常出勤天数" :label-width="formLabelWidth">
  337. <span>{{salaryinif.regularDays}}</span>
  338. </el-form-item>
  339. </div>
  340. <div class="leave-inif">
  341. <el-form-item class="biaoji" label="事假" :label-width="formLabelWidth">
  342. <el-popover
  343. placement="top"
  344. width="412"
  345. trigger="hover">
  346. <el-table height="200px" :border="border" :data="leave">
  347. <el-table-column width="100" property="StartTimeDt" :formatter="rounddadykaishi" label="开始时间"></el-table-column>
  348. <el-table-column width="100" property="EndTimeDt" :formatter="rounddadyjieshu" label="结束时间"></el-table-column>
  349. <el-table-column width="50" property="Duration" label="时长"></el-table-column>
  350. <el-table-column width="80" property="Unit" label="时长单位"></el-table-column>
  351. <el-table-column width="80" property="Deduction" :formatter="rounding" label="扣款金额"></el-table-column>
  352. </el-table>
  353. <el-input-number slot="reference" :precision="2" size="medium" :controls="false" v-model="salaryinif.somethingFalse">
  354. <span slot="reference"></span>
  355. </el-input-number>
  356. <!-- <span slot="reference">{{salaryinif.somethingFalse.toFixed(2)}}</span> -->
  357. </el-popover>
  358. </el-form-item>
  359. <el-form-item class="biaoji" label="病假" :label-width="formLabelWidth">
  360. <el-popover
  361. placement="top"
  362. width="412"
  363. trigger="hover">
  364. <div>
  365. <div>病假最低发放标准(月):1680=2100*0.8</div>
  366. <div>病假最低发放标准(天):1680/{{salaryinif.workDays}}(工作日)≈{{ (1680/salaryinif.workDays).toFixed(2) }}</div>
  367. <div>病假最低发放标准(小时):1680/{{salaryinif.workDays}}(工作日)/7.5(小时)≈{{ (1680/salaryinif.workDays/7.5).toFixed(2) }}</div>
  368. <span style="color:red;">
  369. 员工在病假医疗期限内的病假工资按照成都市最低工资标准的 80%发放
  370. </span>
  371. </div>
  372. <el-table height="200px" :border="border" :data="sickleave">
  373. <el-table-column width="100" property="StartTimeDt" :formatter="rounddadykaishi" label="开始时间"></el-table-column>
  374. <el-table-column width="100" property="EndTimeDt" :formatter="rounddadyjieshu" label="结束时间"></el-table-column>
  375. <el-table-column width="50" property="Duration" label="时长"></el-table-column>
  376. <el-table-column width="80" property="Unit" label="时长单位"></el-table-column>
  377. <el-table-column width="80" property="Deduction" :formatter="rounding" label="扣款金额"></el-table-column>
  378. </el-table>
  379. <el-input-number slot="reference" :precision="2" size="medium" :controls="false" v-model="salaryinif.sickLeave">
  380. <span slot="reference"></span>
  381. </el-input-number>
  382. <!-- <span slot="reference">{{salaryinif.sickLeave.toFixed(2)}}</span> -->
  383. </el-popover>
  384. </el-form-item>
  385. <el-form-item class="biaoji" label="迟到" :label-width="formLabelWidth">
  386. <el-popover
  387. placement="top"
  388. width="582"
  389. trigger="hover">
  390. <el-table height="200px" :border="border" :data="late">
  391. <el-table-column width="170" property="StartTimeDt" :formatter="rounddadykaishi" label="迟到时间"></el-table-column>
  392. <!-- <el-table-column width="100" property="EndTimeDt" label="结束时间"></el-table-column> -->
  393. <el-table-column width="50" property="Duration" label="时长"></el-table-column>
  394. <el-table-column width="80" property="Unit" label="时长单位"></el-table-column>
  395. <el-table-column width="80" property="Deduction" :formatter="rounding" label="扣款金额"></el-table-column>
  396. <el-table-column width="200" property="Reason" label="原因"></el-table-column>
  397. </el-table>
  398. <el-input-number slot="reference" :precision="2" size="medium" :controls="false" v-model="salaryinif.lateTo">
  399. <span slot="reference"></span>
  400. </el-input-number>
  401. <!-- <span slot="reference">{{salaryinif.lateTo.toFixed(2)}}</span> -->
  402. </el-popover>
  403. </el-form-item>
  404. <el-form-item class="biaoji" label="早退" :label-width="formLabelWidth">
  405. <el-popover
  406. placement="top"
  407. width="612"
  408. trigger="hover">
  409. <el-table height="200px" :border="border" :data="early">
  410. <el-table-column width="150" property="StartTimeDt" :formatter="rounddadykaishi" label="早退时间"></el-table-column>
  411. <!-- <el-table-column width="100" property="EndTimeDt" label="结束时间"></el-table-column> -->
  412. <el-table-column width="100" property="Duration" label="时长"></el-table-column>
  413. <el-table-column width="80" property="Unit" label="时长单位"></el-table-column>
  414. <el-table-column width="80" property="Deduction" :formatter="rounding" label="扣款金额"></el-table-column>
  415. <el-table-column width="200" property="Reason" label="原因"></el-table-column>
  416. </el-table>
  417. <el-input-number slot="reference" :precision="2" size="medium" :controls="false" v-model="salaryinif.leaveEarly">
  418. <span slot="reference"></span>
  419. </el-input-number>
  420. <!-- <span slot="reference">{{salaryinif.leaveEarly.toFixed(2)}}</span> -->
  421. </el-popover>
  422. </el-form-item>
  423. <el-form-item class="biaoji" label="旷工" :label-width="formLabelWidth">
  424. <el-popover
  425. placement="top"
  426. width="512"
  427. trigger="hover">
  428. <el-table height="200px" :border="border" :data="absenteeism">
  429. <el-table-column width="100" property="StartTimeDt" :formatter="rounddadykaishi" label="旷工日期"></el-table-column>
  430. <!-- <el-table-column width="100" property="EndTimeDt" label="结束时间"></el-table-column> -->
  431. <el-table-column width="50" property="Duration" label="时长"></el-table-column>
  432. <el-table-column width="80" property="Unit" label="时长单位"></el-table-column>
  433. <el-table-column width="80" property="Deduction" :formatter="rounding" label="扣款金额"></el-table-column>
  434. <el-table-column width="200" property="Reason" label="原因"></el-table-column>
  435. </el-table>
  436. <el-input-number slot="reference" :precision="2" size="medium" :controls="false" v-model="salaryinif.absenteeism">
  437. <span slot="reference"></span>
  438. </el-input-number>
  439. <!-- <span class="sx" slot="reference">{{salaryinif.absenteeism.toFixed(2)}}</span> -->
  440. </el-popover>
  441. </el-form-item>
  442. <el-form-item class="biaoji" label="补卡" :label-width="formLabelWidth">
  443. <el-popover
  444. placement="top"
  445. width="512"
  446. trigger="hover">
  447. <el-table height="200px" :border="border" :data="notout">
  448. <el-table-column width="200" property="StartTimeDt" :formatter="rounddadykaishi" label="补卡时间"></el-table-column>
  449. <!-- <el-table-column width="100" property="EndTimeDt" label="结束时间"></el-table-column> -->
  450. <!-- <el-table-column width="50" property="Duration" label="时长"></el-table-column> -->
  451. <!-- <el-table-column width="80" property="Unit" label="时长单位"></el-table-column> -->
  452. <el-table-column width="80" property="Deduction" :formatter="rounding" label="扣款金额"></el-table-column>
  453. <el-table-column width="230" property="Reason" label="原因"></el-table-column>
  454. </el-table>
  455. <el-input-number slot="reference" :precision="2" size="medium" :controls="false" v-model="salaryinif.notPunch">
  456. <span slot="reference"></span>
  457. </el-input-number>
  458. <!-- <span slot="reference">{{salaryinif.notPunch.toFixed(2)}}</span> -->
  459. </el-popover>
  460. </el-form-item>
  461. </div>
  462. <div class="salary-payments">
  463. <el-form-item label="应发合计" :label-width="formLabelWidth">
  464. <span>{{salaryinif.should.toFixed(2)}}</span>
  465. </el-form-item>
  466. <el-form-item label="扣款合计" :label-width="formLabelWidth">
  467. <span>{{salaryinif.totalDeductions.toFixed(2)}}</span>
  468. </el-form-item>
  469. <el-form-item label="税前合计" :label-width="formLabelWidth">
  470. <span>{{salaryinif.beforeTax.toFixed(2)}}</span>
  471. </el-form-item>
  472. <el-form-item label="税后合计" :label-width="formLabelWidth">
  473. <span>{{salaryinif.totalRealHair.toFixed(2)}}</span>
  474. </el-form-item>
  475. </div>
  476. <div class="remark-box">
  477. <el-form-item label="备注" :label-width="formLabelWidth">
  478. <el-input :rows="6" type="textarea" v-model="salaryinif.remark"></el-input>
  479. </el-form-item>
  480. </div>
  481. </el-form>
  482. <div slot="footer" class="dialog-footer">
  483. <span class="ps-box">* 请先点击获取企微假勤,否则将无法保存或修改。</span>
  484. <el-button type="primary" @click="submitForm('salaryinif')">获取当月企微假勤</el-button>
  485. <el-button v-if="disabled" type="primary" @click="salaryAD('修改','salaryinif')">确认修改</el-button>
  486. <el-button v-if="preserve" type="primary" @click="salaryAD('新增','salaryinif')">保 存</el-button>
  487. <el-button @click="dialogFormVisible = false">取 消</el-button>
  488. </div>
  489. </el-dialog>
  490. </div>
  491. </div>
  492. </template>
  493. <script>
  494. import { co, el } from '@fullcalendar/core/internal-common';
  495. export default {
  496. data() {
  497. return {
  498. limitNum: 1, // 上传excell时,同时允许上传的最大数
  499. fileList: [], // excel文件列表
  500. companyName:-1,//公司
  501. depName:'',//部门
  502. cnName:'',//员工
  503. gridTableVisible:false,
  504. fullscreenLoading:false,
  505. border:true,
  506. companylist:[],
  507. deplist:[],
  508. userlist:[],//全部员工
  509. comuserlist:[],//公司筛选员工
  510. loginuserid:'',
  511. value2:'',
  512. tableData: [],
  513. tableDatatwo: [],
  514. dialogTableVisible: false,
  515. dialogFormVisible: false,
  516. UploadTaxes:false,
  517. disabled:true,
  518. preserve:'',
  519. addaex_ItemsRemark:{},
  520. leave:[],//事假
  521. sickleave:[],//病假
  522. late:[],//迟到
  523. early:[],//早退
  524. transfer:[],//调休假
  525. absenteeism:[],//旷工
  526. notout:[],//补卡
  527. clicknot:false,//是否获取企业微信
  528. jsonstring:'',//企业微信json字符串
  529. //计算工资
  530. gridData:{
  531. yearMonth:"",//年月
  532. startDate:"",//工资日期 起
  533. endDate:"",//工资日期 止
  534. },
  535. gridrules:{
  536. yearMonth: [
  537. { type: 'string', required: true, trigger: 'blur',message:'选择年月' }
  538. ],
  539. startDate: [
  540. { type: 'string', required: true, trigger: 'blur',message:'选择工资日期起' }
  541. ],
  542. endDate: [
  543. { type: 'string', required: true, trigger: 'blur',message:'选择工资日期止' }
  544. ],
  545. },
  546. //上传个税
  547. TaxesData:{
  548. yearMonth:"",//年月
  549. },
  550. Taxesrules:{
  551. yearMonth: [
  552. { type: 'date', required: true, trigger: 'blur',message:'选择年月' }
  553. ],
  554. },
  555. //薪资详细
  556. salaryinif:{
  557. // regularization: true,//是否转正
  558. userId:"",//员工Id
  559. name:"",//姓名
  560. yearMonth:"",//年月
  561. startDate:"",//工资日期 起
  562. endDate:"",//工资日期 止
  563. basic:0,//基本工资
  564. floats:0,//绩效工资
  565. postAllowance:0,//岗位津贴
  566. //garmentWashSubsidies:0,//服装洗理补贴
  567. //communicationSubsidies:0,// 通讯补贴
  568. otherSubsidies:0,// 月度补贴
  569. informationSecurityFee:0,// 保密费
  570. //operationBonus:0,// 操作奖金
  571. //specialAllowance:0,// 特殊津贴
  572. //otherSubsidies:0,// 其他补贴
  573. withholdingInsurance:0,// 代扣保险
  574. mealsupplement:0,// 餐补
  575. reservedFunds:0,// 代扣公积金
  576. otherHandle:0,//其他应付
  577. //groupCost:0,// 部门集体团建费
  578. sickLeave:0,// 病假
  579. somethingFalse:0,// 事假
  580. lateTo:0,// 迟到
  581. leaveEarly:0,// 早退
  582. absenteeism:0,//旷工
  583. notPunch:0,//补卡
  584. otherDeductions:0,//其他扣款
  585. should:0,//应发合计
  586. workDays:0,//应出勤天数
  587. regularDays:0,//正常出勤天数
  588. totalDeductions:0,//扣款合计
  589. totalRealHair:0,//实发合计
  590. withholdingTax:0,//代扣个税
  591. afterTax:0,//税后工资
  592. isLock:0,//锁定标识
  593. lastUpdateUserId:"",//最后操作人
  594. lastUpdateUserName:"",//最后操作人Name
  595. lastUpdateDt:"",//最后操作时间
  596. remark:"",//备注
  597. beforeTax:0//税前合计
  598. },
  599. rules: {
  600. userId: [
  601. { required: true, trigger: 'blur' }
  602. ],
  603. yearMonth: [
  604. { type: 'date', required: true, trigger: 'blur' }
  605. ],
  606. startDate: [
  607. { type: 'date', required: true, trigger: 'blur' }
  608. ],
  609. endDate: [
  610. { type: 'date', required: true, trigger: 'blur' }
  611. ],
  612. basic: [
  613. { required: true, trigger: 'blur' },
  614. ],
  615. floats: [
  616. { required: true, trigger: 'blur' },
  617. ],
  618. postAllowance: [
  619. { required: true, trigger: 'blur' },
  620. ],
  621. // garmentWashSubsidies: [
  622. // { required: true, trigger: 'blur' },
  623. // ],
  624. // communicationSubsidies: [
  625. // { required: true, trigger: 'blur' },
  626. // ],
  627. otherSubsidies: [
  628. { required: true, trigger: 'blur' },
  629. ],
  630. otherHandle:[
  631. {required:true,trigger:'blur'}
  632. ],
  633. informationSecurityFee: [
  634. { required: true, trigger: 'blur' },
  635. ],
  636. // operationBonus: [
  637. // { required: true, trigger: 'blur' },
  638. // ],
  639. // otherSubsidies: [
  640. // { required: true, trigger: 'blur' },
  641. // ],
  642. // groupCost: [
  643. // { required: true, trigger: 'blur' },
  644. // ],
  645. // specialAllowance: [
  646. // { required: true, trigger: 'blur' },
  647. // ],
  648. mealsupplement: [
  649. { required: true, trigger: 'blur' },
  650. ],
  651. withholdingInsurance: [
  652. { required: true, trigger: 'blur' },
  653. ],
  654. reservedFunds: [
  655. { required: true, trigger: 'blur' },
  656. ],
  657. withholdingTax: [
  658. { required: true, trigger: 'blur' },
  659. ],
  660. otherDeductions: [
  661. { required: true, trigger: 'blur' },
  662. ],
  663. },
  664. form: {
  665. name: '',
  666. region: '',
  667. },
  668. formLabelWidth: '110px'
  669. }
  670. },
  671. methods:{
  672. submitForm(formName) {
  673. console.log(this.$refs[formName])
  674. this.$refs[formName].validate((valid) => {
  675. if (valid) {
  676. // alert('submit!');
  677. // this.clicknot=true;
  678. this.$confirm('是否获取企业微信假勤!', '提示', {
  679. confirmButtonText: '确定',
  680. cancelButtonText: '取消',
  681. type: 'warning'
  682. }).then(() => {
  683. this.SalaryCalculatorSingle();
  684. }).catch(()=>{})
  685. } else {
  686. this.$message.error('请将红框内容补全!');
  687. return false;
  688. }
  689. });
  690. },
  691. Rangetime(){
  692. console.log('2023-10' instanceof Date)
  693. console.log(this.salaryinif.startDate instanceof Date)
  694. },
  695. getnewDate(){
  696. let nowDate = new Date()
  697. let date = {
  698. year: nowDate.getFullYear(),
  699. month: nowDate.getMonth() + 1,
  700. date: nowDate.getDate()
  701. }
  702. console.log(date.year + '-' + date.month)
  703. this.value2=date.year + '-' + date.month;
  704. this.GetWageSheetList();
  705. },
  706. //获取员工
  707. GetWageSheetBasicsDataSource(){
  708. var url = "/api/PersonnelModule/GetWageSheetBasicsDataSource"
  709. var that = this
  710. this.$axios({
  711. method: 'post',
  712. url: url,
  713. headers: {
  714. Authorization: 'Bearer ' + this.token
  715. }
  716. }).then(function (res) {
  717. if(res.data.code==200){
  718. console.log(res)
  719. console.log(res.data.data)
  720. that.userlist=res.data.data.userNames;
  721. that.companylist=res.data.data.compnayData;
  722. that.companylist.push(
  723. {companyName:'全部',id:-1}
  724. )
  725. }else{
  726. that.$message({
  727. message: '加载失败!原因:'+res.data.msg,
  728. type: 'warning'
  729. });
  730. }
  731. })
  732. },
  733. //薪资列表
  734. GetWageSheetList(){
  735. this.fullscreenLoading = true;
  736. var url = "/api/PersonnelModule/GetWageSheetList"
  737. var that = this
  738. console.log(that.value2)
  739. this.$axios({
  740. method: 'post',
  741. url: url,
  742. headers: {
  743. Authorization: 'Bearer ' + this.token
  744. },
  745. data:{
  746. portType: 1,
  747. yearMonth: that.value2,
  748. }
  749. }).then(function (res) {
  750. that.tableData=[];
  751. if(res.data.code==200){
  752. console.log(res)
  753. that.tableData=res.data.data;
  754. that.tableDatatwo=that.tableData;
  755. console.log(that.tableData)
  756. that.fullscreenLoading = false;
  757. }else{
  758. that.fullscreenLoading = false;
  759. that.$message({
  760. message: '加载失败!原因:'+res.data.msg,
  761. type: 'warning'
  762. });
  763. }
  764. })
  765. },
  766. //日期处理(日)
  767. TimeProcessingri(val){
  768. if(val instanceof Date){
  769. let newsyear=val.getFullYear();
  770. let newsMonth=val.getMonth() + 1;
  771. let newsday=val.getDate();
  772. if((val.getMonth() + 1)<10){
  773. newsMonth='0'+newsMonth
  774. }else{
  775. newsMonth=val.getMonth() + 1
  776. }
  777. if(val.getDate()<10){
  778. newsday=newsday='0'+newsday
  779. }else{
  780. newsday=val.getDate()
  781. }
  782. return newsyear+ '-' +newsMonth+ '-' + newsday;
  783. }else{
  784. return val
  785. }
  786. },
  787. //日期处理(月)
  788. TimeProcessingyue(val){
  789. if(val instanceof Date){
  790. let newsyear=val.getFullYear();
  791. let newsMonth=val.getMonth() + 1;
  792. if((val.getMonth() + 1)<10){
  793. newsMonth='0'+newsMonth
  794. }else{
  795. newsMonth=val.getMonth() + 1
  796. }
  797. return newsyear+ '-' +newsMonth;
  798. }else{
  799. return val
  800. }
  801. },
  802. //时间切换
  803. PickTime(){
  804. this.tableDatatwo=[];
  805. this.companyName=-1;
  806. this.cnName='';
  807. let timess=new Date(this.value2)
  808. let newyear=timess.getFullYear();
  809. let newMonth=timess.getMonth() + 1;
  810. if((timess.getMonth() + 1)<10){
  811. newMonth='0'+newMonth
  812. }else{
  813. newMonth=timess.getMonth() + 1
  814. }
  815. this.value2=newyear+ '-' +newMonth;
  816. this.GetWageSheetList();
  817. },
  818. //薪资详细
  819. SalaryDetails(index, row){
  820. let myDate = new Date(this.value2);
  821. let month = myDate.getMonth() + 1;
  822. month = month < 10 ? "0" + month : month; //格式化月份,补0
  823. let statDateStart = new Date(myDate.getFullYear().toString() +'-'+ month +'-'+ "01"); //月初
  824. let dayEnd = new Date(myDate.getFullYear(), month, 0).getDate(); //获取当月一共有多少天
  825. let statDateEnd = new Date(myDate.getFullYear().toString() +'-'+ month +'-'+ dayEnd); //月末
  826. this.salaryinif={
  827. // regularization:true,
  828. userId:"",//员工Id
  829. name:"",//姓名
  830. yearMonth:new Date(this.value2),//年月
  831. startDate:statDateStart,//工资日期 起
  832. endDate:statDateEnd,//工资日期 止
  833. basic:0,//基本工资
  834. floats:0,//绩效工资
  835. postAllowance:0,//岗位津贴
  836. // garmentWashSubsidies:0,//服装洗理补贴
  837. // communicationSubsidies:0,// 通讯补贴
  838. otherSubsidies:0,// 月度补贴
  839. otherHandle:0,//其他应付
  840. informationSecurityFee:0,// 保密费
  841. // operationBonus:0,// 操作奖金
  842. // specialAllowance:0,// 特殊津贴
  843. // otherSubsidies:0,// 其他补贴
  844. withholdingInsurance:0,// 代扣保险
  845. mealsupplement:0,// 餐补
  846. reservedFunds:0,// 代扣公积金
  847. // groupCost:0,// 部门集体团建费
  848. sickLeave:0,// 病假
  849. somethingFalse:0,// 事假
  850. lateTo:0,// 迟到
  851. leaveEarly:0,// 早退
  852. absenteeism:0,//旷工
  853. notPunch:0,//补卡
  854. otherDeductions:0,//其他扣款
  855. should:0,//应发合计
  856. workDays:0,//应出勤天数
  857. regularDays:0,//正常出勤天数
  858. totalDeductions:0,//扣款合计
  859. totalRealHair:0,//实发合计
  860. withholdingTax:0,//代扣个税
  861. afterTax:0,//税后工资
  862. isLock:0,//锁定标识
  863. lastUpdateUserId:"",//最后操作人
  864. lastUpdateUserName:"",//最后操作人Name
  865. lastUpdateDt:"",//最后操作时间
  866. remark:"",//备注
  867. beforeTax:0,//税前合计
  868. };
  869. if (this.$refs.salaryinif){
  870. this.$nextTick(() => {
  871. this.$refs['salaryinif'].clearValidate();
  872. })
  873. }
  874. // this.clicknot=false;
  875. this.leave=[];//事假
  876. this.sickleave=[];//病假
  877. this.late=[];//迟到
  878. this.early=[];//早退
  879. this.transfer=[];//调休假
  880. this.absenteeism=[];//旷工
  881. this.notout=[];//补卡
  882. this.dialogFormVisible = true;
  883. this.disabled=true;
  884. this.preserve=false;
  885. console.log(row.id)
  886. this.fullscreenLoading=true;
  887. var url = "/api/PersonnelModule/GetWageSheetById"
  888. var that = this
  889. this.$axios({
  890. method: 'post',
  891. url: url,
  892. headers: {
  893. Authorization: 'Bearer ' + this.token
  894. },
  895. data:{
  896. portType: 1,
  897. id: row.id,
  898. }
  899. }).then(function (res) {
  900. if(res.data.code==200){
  901. console.log(res)
  902. that.salaryinif=res.data.data;
  903. that.salaryinif.yearMonth=new Date(res.data.data.yearMonth);
  904. that.salaryinif.startDate=new Date(res.data.data.startDate);
  905. that.salaryinif.endDate=new Date(res.data.data.endDate);
  906. that.jsonstring=res.data.data.ex_ItemsRemark;
  907. that.salaryinif.beforeTax=res.data.data.beforeTax;
  908. if(res.data.data.ex_ItemsRemark!=''){
  909. let ItemsRemark=JSON.parse(res.data.data.ex_ItemsRemark);
  910. console.log(ItemsRemark)
  911. let jiaqininif;
  912. let dakainif;
  913. for(let i=0;i<ItemsRemark.length;i++){
  914. if(ItemsRemark[i].Type=='假勤'){
  915. jiaqininif=ItemsRemark[i]
  916. }
  917. if(ItemsRemark[i].Type=='打卡'){
  918. dakainif=ItemsRemark[i]
  919. }
  920. }
  921. console.log(jiaqininif)
  922. console.log(dakainif)
  923. if(jiaqininif!=undefined){
  924. that.transfer=jiaqininif.Ex_ItemInfo
  925. for(let j=0;j<jiaqininif.Ex_ItemInfo.length;j++){
  926. if(jiaqininif.Ex_ItemInfo[j].SubType=="事假"){
  927. that.leave.push(jiaqininif.Ex_ItemInfo[j])
  928. }
  929. if(jiaqininif.Ex_ItemInfo[j].SubType=="病假"){
  930. that.sickleave.push(jiaqininif.Ex_ItemInfo[j])
  931. }
  932. // if(jiaqininif.Ex_ItemInfo[j].SubType=="调休假"||jiaqininif.Ex_ItemInfo[j].SubType=="年假"||jiaqininif.Ex_ItemInfo[j].SubType=="婚假"||jiaqininif.Ex_ItemInfo[j].SubType=="产假"||jiaqininif.Ex_ItemInfo[j].SubType=="陪产假"||jiaqininif.Ex_ItemInfo[j].SubType=="丧假"||jiaqininif.Ex_ItemInfo[j].SubType=="出差"){
  933. // that.transfer.push(jiaqininif.Ex_ItemInfo[j])
  934. // }
  935. }
  936. }
  937. console.log(that.transfer)
  938. if(dakainif!=undefined){
  939. for(let x=0;x<dakainif.Ex_ItemInfo.length;x++){
  940. if(dakainif.Ex_ItemInfo[x].SubType=="迟到"){
  941. that.late.push(dakainif.Ex_ItemInfo[x])
  942. }
  943. if(dakainif.Ex_ItemInfo[x].SubType=="早退"){
  944. that.early.push(dakainif.Ex_ItemInfo[x])
  945. }
  946. if(dakainif.Ex_ItemInfo[x].SubType=="旷工"){
  947. that.absenteeism.push(dakainif.Ex_ItemInfo[x])
  948. that.transfer.push(dakainif.Ex_ItemInfo[x])
  949. }
  950. if(dakainif.Ex_ItemInfo[x].SubType=="打卡补卡"){
  951. that.notout.push(dakainif.Ex_ItemInfo[x])
  952. }
  953. }
  954. }
  955. that.fullscreenLoading=false;
  956. }
  957. }else{
  958. that.$message({
  959. message: '加载失败!原因:'+res.data.msg,
  960. type: 'warning'
  961. });
  962. that.fullscreenLoading=false;
  963. }
  964. })
  965. },
  966. //薪资(新增,修改)API
  967. PostWageSheetAddOrEdit(inif){
  968. console.log(inif)
  969. var url = "/api/PersonnelModule/PostWageSheetAddOrEdit"
  970. var that = this
  971. this.$axios({
  972. method: 'post',
  973. url: url,
  974. headers: {
  975. Authorization: 'Bearer ' + this.token
  976. },
  977. data:{
  978. status:inif.statuss,
  979. createUserId:that.loginuserid,
  980. userId:that.salaryinif.userId,
  981. id:inif.ids,
  982. remark:that.salaryinif.remark,
  983. yearMonth:that.TimeProcessingyue(that.salaryinif.yearMonth),
  984. startDate:that.TimeProcessingri(that.salaryinif.startDate),
  985. endDate:that.TimeProcessingri(that.salaryinif.endDate),
  986. basic:that.salaryinif.basic,
  987. floats:that.salaryinif.floats,
  988. postAllowance:that.salaryinif.postAllowance,
  989. // garmentWashSubsidies:that.salaryinif.garmentWashSubsidies,
  990. // communicationSubsidies:that.salaryinif.communicationSubsidies,
  991. otherSubsidies:that.salaryinif.otherSubsidies,
  992. otherHandle:that.salaryinif.otherHandle,
  993. informationSecurityFee:that.salaryinif.informationSecurityFee,
  994. // operationBonus:that.salaryinif.operationBonus,
  995. // specialAllowance:that.salaryinif.specialAllowance,
  996. // otherSubsidies:that.salaryinif.otherSubsidies,
  997. withholdingInsurance:that.salaryinif.withholdingInsurance,
  998. mealsupplement:that.salaryinif.mealsupplement,
  999. reservedFunds:that.salaryinif.reservedFunds,
  1000. // groupCost:that.salaryinif.groupCost,
  1001. sickLeave:that.salaryinif.sickLeave,
  1002. somethingFalse:that.salaryinif.somethingFalse,
  1003. lateTo:that.salaryinif.lateTo,
  1004. leaveEarly:that.salaryinif.leaveEarly,
  1005. absenteeism:that.salaryinif.absenteeism,
  1006. notPunch:that.salaryinif.notPunch,
  1007. otherDeductions:that.salaryinif.otherDeductions,
  1008. should:that.salaryinif.should,
  1009. totalDeductions:that.salaryinif.totalDeductions,
  1010. totalRealHair:that.salaryinif.totalRealHair,
  1011. withholdingTax:that.salaryinif.withholdingTax,
  1012. afterTax:that.salaryinif.afterTax,
  1013. workDays:that.salaryinif.workDays,
  1014. regularDays:that.salaryinif.regularDays,
  1015. ex_ItemsRemark:that.jsonstring
  1016. }
  1017. }).then(function (res) {
  1018. if(res.data.code==200){
  1019. console.log(res)
  1020. that.GetWageSheetList();
  1021. that.$message({
  1022. message: res.data.msg,
  1023. type: 'success'
  1024. });
  1025. }else{
  1026. that.$message({
  1027. message: '操作失败!原因:'+res.data.msg,
  1028. type: 'warning'
  1029. });
  1030. }
  1031. })
  1032. },
  1033. //薪资(新增,修改)
  1034. salaryAD(text,formName){
  1035. this.$refs[formName].validate((valid) => {
  1036. if (valid) {
  1037. // alert('submit!');
  1038. this.dialogFormVisible = false;
  1039. let inifadd={
  1040. statuss:'',
  1041. userIds:'',
  1042. ids:''
  1043. }
  1044. if(text=='新增'){
  1045. inifadd.statuss=1;
  1046. inifadd.userIds=0;
  1047. inifadd.ids=0;
  1048. this.PostWageSheetAddOrEdit(inifadd)
  1049. }else if(text=='修改'){
  1050. inifadd.statuss=2;
  1051. inifadd.userIds=this.salaryinif.userId;
  1052. inifadd.ids=this.salaryinif.id;
  1053. this.PostWageSheetAddOrEdit(inifadd)
  1054. }
  1055. } else {
  1056. this.$message.error('请将红框内容补全!');
  1057. return false;
  1058. }
  1059. });
  1060. },
  1061. //新增薪资
  1062. addsalary(){
  1063. // console.log(this.$refs.salaryinif)
  1064. if (this.$refs.salaryinif){
  1065. this.$nextTick(() => {
  1066. this.$refs['salaryinif'].clearValidate();
  1067. })
  1068. }
  1069. this.leave=[];//事假
  1070. this.sickleave=[];//病假
  1071. this.late=[];//迟到
  1072. this.early=[];//早退
  1073. this.transfer=[];//调休假
  1074. this.absenteeism=[];//旷工
  1075. this.notout=[];//补卡
  1076. let myDate = new Date(this.value2);
  1077. let month = myDate.getMonth() + 1;
  1078. month = month < 10 ? "0" + month : month; //格式化月份,补0
  1079. let statDateStart = new Date(myDate.getFullYear().toString() +'-'+ month +'-'+ "01"); //月初
  1080. let dayEnd = new Date(myDate.getFullYear(), month, 0).getDate(); //获取当月一共有多少天
  1081. let statDateEnd = new Date(myDate.getFullYear().toString() +'-'+ month +'-'+ dayEnd); //月末
  1082. // this.clicknot=false;
  1083. this.dialogFormVisible = true;
  1084. this.disabled=false;
  1085. this.preserve=true;
  1086. this.salaryinif={
  1087. // regularization:true,
  1088. userId:"",//员工Id
  1089. name:"",//姓名
  1090. yearMonth:new Date(this.value2),//年月
  1091. startDate:statDateStart,//工资日期 起
  1092. endDate:statDateEnd,//工资日期 止
  1093. basic:0,//基本工资
  1094. floats:0,//绩效工资
  1095. postAllowance:0,//岗位津贴
  1096. // garmentWashSubsidies:0,//服装洗理补贴
  1097. // communicationSubsidies:0,// 通讯补贴
  1098. otherSubsidies:0,// 月度补贴
  1099. otherHandle:0,//其他应付
  1100. informationSecurityFee:0,// 保密费
  1101. // operationBonus:0,// 操作奖金
  1102. // specialAllowance:0,// 特殊津贴
  1103. // otherSubsidies:0,// 其他补贴
  1104. withholdingInsurance:0,// 代扣保险
  1105. mealsupplement:0,// 餐补
  1106. reservedFunds:0,// 代扣公积金
  1107. // groupCost:0,// 部门集体团建费
  1108. sickLeave:0,// 病假
  1109. somethingFalse:0,// 事假
  1110. lateTo:0,// 迟到
  1111. leaveEarly:0,// 早退
  1112. absenteeism:0,//旷工
  1113. notPunch:0,//补卡
  1114. otherDeductions:0,//其他扣款
  1115. should:0,//应发合计
  1116. workDays:0,//应出勤天数
  1117. regularDays:0,//正常出勤天数
  1118. totalDeductions:0,//扣款合计
  1119. totalRealHair:0,//实发合计
  1120. withholdingTax:0,//代扣个税
  1121. afterTax:0,//税后工资
  1122. isLock:0,//锁定标识
  1123. lastUpdateUserId:"",//最后操作人
  1124. lastUpdateUserName:"",//最后操作人Name
  1125. lastUpdateDt:"",//最后操作时间
  1126. remark:"",//备注
  1127. beforeTax:0,//税前合计
  1128. };
  1129. },
  1130. //删除薪资列表
  1131. deleteaddsalary(index,row,rows){
  1132. this.$confirm('此操作将删除该数据, 是否继续?', '提示', {
  1133. confirmButtonText: '确定',
  1134. cancelButtonText: '取消',
  1135. type: 'warning'
  1136. }).then(() => {
  1137. var url = "/api/PersonnelModule/PostWageSheetDel"
  1138. var that = this
  1139. this.$axios({
  1140. method: 'post',
  1141. url: url,
  1142. headers: {
  1143. Authorization: 'Bearer ' + this.token
  1144. },
  1145. data:{
  1146. userId:that.loginuserid,
  1147. id:row.id
  1148. }
  1149. }).then(function (res) {
  1150. if(res.data.code==200){
  1151. console.log(res)
  1152. that.$message({
  1153. message: res.data.msg,
  1154. type: 'success'
  1155. });
  1156. rows.splice(index, 1);
  1157. }else{
  1158. that.$message({
  1159. message: res.data.msg,
  1160. type: 'warning'
  1161. });
  1162. }
  1163. })
  1164. })
  1165. console.log(row)
  1166. },
  1167. //计算工资
  1168. SalaryCalculator(formName){
  1169. this.$refs[formName].validate((valid) => {
  1170. if (valid) {
  1171. this.fullscreenLoading=true;
  1172. var url = "/api/PersonnelModule/SalaryCalculator"
  1173. var that = this
  1174. this.$axios({
  1175. method: 'post',
  1176. url: url,
  1177. headers: {
  1178. Authorization: 'Bearer ' + this.token
  1179. },
  1180. data:{
  1181. userId:that.loginuserid,
  1182. yearMonth:that.TimeProcessingyue(that.gridData.yearMonth),
  1183. startDt:that.TimeProcessingri(that.gridData.startDate),
  1184. endDt:that.TimeProcessingri(that.gridData.endDate),
  1185. }
  1186. }).then(function (res) {
  1187. console.log(res)
  1188. if(res.data.code==200){
  1189. console.log(res)
  1190. that.value2=that.TimeProcessingyue(that.gridData.yearMonth);
  1191. that.gridTableVisible=false;
  1192. that.fullscreenLoading=false;
  1193. that.GetWageSheetList();
  1194. that.$message({
  1195. message: res.data.msg,
  1196. type: 'success'
  1197. });
  1198. }else{
  1199. that.value2=that.TimeProcessingyue(that.gridData.yearMonth);
  1200. that.gridTableVisible=false;
  1201. that.fullscreenLoading=false;
  1202. that.GetWageSheetList();
  1203. that.$message({
  1204. message: res.data.msg,
  1205. type: 'warning'
  1206. });
  1207. }
  1208. })
  1209. } else {
  1210. this.$message.error('请将红框内容补全!');
  1211. return false;
  1212. }
  1213. });
  1214. },
  1215. //打开计算工资
  1216. openSalaryCalculator(){
  1217. this.gridTableVisible=true;
  1218. this.gridData={
  1219. yearMonth:"",//年月
  1220. startDate:"",//工资日期 起
  1221. endDate:"",//工资日期 止
  1222. }
  1223. },
  1224. //获取企业微信假勤
  1225. SalaryCalculatorSingle(){
  1226. this.leave=[];//事假
  1227. this.sickleave=[];//病假
  1228. this.transfer=[];//调休假
  1229. this.late=[];//迟到
  1230. this.early=[];//早退
  1231. this.absenteeism=[];//旷工
  1232. this.notout=[];//补卡
  1233. console.log('jin')
  1234. var url = "/api/PersonnelModule/SalaryCalculatorSingle"
  1235. var that = this
  1236. this.fullscreenLoading = true;
  1237. this.$axios({
  1238. method: 'post',
  1239. url: url,
  1240. headers: {
  1241. Authorization: 'Bearer ' + this.token
  1242. },
  1243. data:{
  1244. userId:that.salaryinif.userId,
  1245. yearMonth:that.TimeProcessingyue(that.salaryinif.yearMonth),
  1246. startDate:that.TimeProcessingri(that.salaryinif.startDate),
  1247. endDate:that.TimeProcessingri(that.salaryinif.endDate),
  1248. basic:that.salaryinif.basic,
  1249. floats:that.salaryinif.floats,
  1250. postAllowance:that.salaryinif.postAllowance,
  1251. // garmentWashSubsidies:that.salaryinif.garmentWashSubsidies,
  1252. // communicationSubsidies:that.salaryinif.communicationSubsidies,
  1253. otherSubsidies:that.salaryinif.otherSubsidies,
  1254. informationSecurityFee:that.salaryinif.informationSecurityFee,
  1255. // operationBonus:that.salaryinif.operationBonus,
  1256. // specialAllowance:that.salaryinif.specialAllowance,
  1257. // otherSubsidies:that.salaryinif.otherSubsidies,
  1258. otherHandle:that.salaryinif.otherHandle,
  1259. withholdingInsurance:that.salaryinif.withholdingInsurance,
  1260. mealsupplement:that.salaryinif.mealsupplement,
  1261. withholdingTax:that.salaryinif.withholdingTax,
  1262. // groupCost:that.salaryinif.groupCost,
  1263. reservedFunds:that.salaryinif.reservedFunds,
  1264. withholdingInsurance:that.salaryinif.withholdingInsurance,
  1265. otherDeductions:that.salaryinif.otherDeductions,
  1266. }
  1267. }).then(function (res) {
  1268. console.log(res)
  1269. if(res.data.code==200){
  1270. that.fullscreenLoading = false;
  1271. console.log(res);
  1272. that.jsonstring=res.data.data.ex_ItemsRemark;
  1273. console.log(that.addaex_ItemsRemark)
  1274. that.salaryinif.somethingFalse=res.data.data.somethingFalse;
  1275. that.salaryinif.sickLeave=res.data.data.sickLeave;
  1276. that.salaryinif.lateTo=res.data.data.lateTo;
  1277. that.salaryinif.leaveEarly=res.data.data.leaveEarly;
  1278. that.salaryinif.absenteeism=res.data.data.absenteeism;
  1279. that.salaryinif.notPunch=res.data.data.notPunch;
  1280. that.salaryinif.should=res.data.data.should;
  1281. that.salaryinif.workDays=res.data.data.workDays;
  1282. that.salaryinif.regularDays=res.data.data.regularDays;
  1283. that.salaryinif.totalDeductions=res.data.data.totalDeductions;
  1284. that.salaryinif.afterTax=res.data.data.afterTax;
  1285. that.salaryinif.mealsupplement=res.data.data.mealsupplement;
  1286. that.salaryinif.beforeTax=res.data.data.beforeTax;
  1287. that.salaryinif.totalRealHair=res.data.data.totalRealHair;
  1288. if(res.data.data.ex_ItemsRemark!=''){
  1289. that.addaex_ItemsRemark=JSON.parse(res.data.data.ex_ItemsRemark);
  1290. let jiaqin;
  1291. let daka;
  1292. for(let i=0;i<that.addaex_ItemsRemark.length;i++){
  1293. if(that.addaex_ItemsRemark[i].Type=='假勤'){
  1294. jiaqin=that.addaex_ItemsRemark[i]
  1295. }
  1296. if(that.addaex_ItemsRemark[i].Type=='打卡'){
  1297. daka=that.addaex_ItemsRemark[i]
  1298. }
  1299. }
  1300. console.log(jiaqin)
  1301. console.log(daka)
  1302. if(jiaqin!=undefined){
  1303. that.transfer=jiaqin.Ex_ItemInfo;
  1304. for(let j=0;j<jiaqin.Ex_ItemInfo.length;j++){
  1305. if(jiaqin.Ex_ItemInfo[j].SubType=="事假"){
  1306. that.leave.push(jiaqin.Ex_ItemInfo[j])
  1307. }
  1308. if(jiaqin.Ex_ItemInfo[j].SubType=="病假"){
  1309. that.sickleave.push(jiaqin.Ex_ItemInfo[j])
  1310. }
  1311. // if(jiaqin.Ex_ItemInfo[j].SubType=="调休假"||jiaqin.Ex_ItemInfo[j].SubType=="年假"||jiaqin.Ex_ItemInfo[j].SubType=="婚假"||jiaqin.Ex_ItemInfo[j].SubType=="产假"||jiaqin.Ex_ItemInfo[j].SubType=="陪产假"||jiaqin.Ex_ItemInfo[j].SubType=="丧假"||jiaqin.Ex_ItemInfo[j].SubType=="出差"){
  1312. // that.transfer.push(jiaqin.Ex_ItemInfo[j])
  1313. // }
  1314. }
  1315. }
  1316. console.log(that.transfer)
  1317. if(daka!=undefined){
  1318. for(let x=0;x<daka.Ex_ItemInfo.length;x++){
  1319. if(daka.Ex_ItemInfo[x].SubType=="迟到"){
  1320. that.late.push(daka.Ex_ItemInfo[x])
  1321. }
  1322. if(daka.Ex_ItemInfo[x].SubType=="早退"){
  1323. that.early.push(daka.Ex_ItemInfo[x])
  1324. }
  1325. if(daka.Ex_ItemInfo[x].SubType=="旷工"){
  1326. that.absenteeism.push(daka.Ex_ItemInfo[x])
  1327. that.transfer.push(daka.Ex_ItemInfo[x])
  1328. }
  1329. if(daka.Ex_ItemInfo[x].SubType=="打卡补卡"){
  1330. that.notout.push(daka.Ex_ItemInfo[x])
  1331. }
  1332. }
  1333. }
  1334. that.GetWageSheetList();
  1335. that.$message({
  1336. message: res.data.msg,
  1337. type: 'success'
  1338. });
  1339. }
  1340. }else{
  1341. that.fullscreenLoading = false;
  1342. that.$message({
  1343. message: res.data.msg,
  1344. type: 'warning'
  1345. });
  1346. }
  1347. })
  1348. },
  1349. //保留两位小数
  1350. rounding(row,column) {
  1351. return parseFloat(row[column.property]).toFixed(2)
  1352. },
  1353. //处理时间
  1354. rounddadykaishi(val){
  1355. if(val.StartTimeDt.indexOf('T')!=-1){
  1356. return val.StartTimeDt.replace('T',' ')
  1357. }
  1358. },
  1359. rounddadyjieshu(val){
  1360. if(val.EndTimeDt.indexOf('T')!=-1){
  1361. return val.EndTimeDt.replace('T',' ')
  1362. }
  1363. },
  1364. //选择公司
  1365. companychange(){
  1366. this.cnName='';
  1367. this.tableDatatwo=[];
  1368. let tableDataone=[];
  1369. if(this.companyName!=-1){
  1370. for(let i=0;i<this.tableData.length;i++){
  1371. if(this.tableData[i].companyId==this.companyName){
  1372. tableDataone.push(this.tableData[i]);
  1373. }
  1374. }
  1375. this.tableDatatwo=tableDataone;
  1376. }else{
  1377. this.tableDatatwo=this.tableData;
  1378. }
  1379. },
  1380. //选择员工
  1381. cnNamechange(){
  1382. let tableDatatheer=[];
  1383. let tableDatafour=this.tableDatatwo;
  1384. if(this.cnName!=''){
  1385. for(let j=0;j<this.tableDatatwo.length;j++){
  1386. if(this.tableDatatwo[j].name.indexOf(this.cnName)!=-1){
  1387. tableDatatheer.push(this.tableDatatwo[j])
  1388. }
  1389. }
  1390. this.tableDatatwo=tableDatatheer;
  1391. }else{
  1392. this.companychange()
  1393. // this.tableDatatwo=this.tableDatatwo
  1394. }
  1395. },
  1396. //下载
  1397. Download(){
  1398. this.$confirm('请确认左上角的日期,是否要导出'+this.value2+'的工资单!', '提示', {
  1399. confirmButtonText: '确定',
  1400. cancelButtonText: '取消',
  1401. type: 'warning'
  1402. }).then(() => {
  1403. console.log(this.value2)
  1404. var url = "/api/PersonnelModule/ExportWageCard?yearMonth="+this.value2
  1405. var that = this
  1406. this.$axios({
  1407. method: 'post',
  1408. url: url,
  1409. headers: {
  1410. Authorization: 'Bearer ' + this.token
  1411. }
  1412. }).then(function (res) {
  1413. if(res.data.code==200){
  1414. console.log(res)
  1415. window.open(res.data.data.fileUrl);
  1416. that.$message({
  1417. message:res.data.msg,
  1418. type: 'success'
  1419. });
  1420. }else{
  1421. that.$message({
  1422. message: '导出失败!原因:'+res.data.msg,
  1423. type: 'warning'
  1424. });
  1425. }
  1426. }).catch(()=>{})
  1427. })
  1428. },
  1429. // 文件超出个数限制时的钩子
  1430. exceedFile(files, fileList) {
  1431. this.$message.warning(`只能选择 ${this.limitNum} 个文件,当前共选择了 ${files.length + fileList.length} 个`);
  1432. },
  1433. // 文件状态改变时的钩子
  1434. fileChange(file, fileList) {
  1435. console.log(file.raw);
  1436. this.fileList.push(file.raw) ;
  1437. console.log(this.fileList);
  1438. },
  1439. // 上传文件之前的钩子, 参数为上传的文件,若返回 false 或者返回 Promise 且被 reject,则停止上传
  1440. beforeUploadFile(file) {
  1441. console.log('before upload');
  1442. console.log(file);
  1443. let extension = file.name.substring(file.name.lastIndexOf('.')+1);
  1444. let size = file.size / 1024 / 1024;
  1445. if(extension !== 'xlsx') {
  1446. this.$message.warning('只能上传后缀是.xlsx的文件');
  1447. }
  1448. if(size > 10) {
  1449. this.$message.warning('文件大小不得超过10M');
  1450. }
  1451. },
  1452. // 文件上传成功时的钩子
  1453. handleSuccess(res, file, fileList) {
  1454. this.$message.success('文件上传成功');
  1455. },
  1456. // 文件上传失败时的钩子
  1457. handleError(err, file, fileList) {
  1458. this.$message.error('文件上传失败');
  1459. },
  1460. UploadUrl:function(){
  1461. // 因为action参数是必填项,我们使用二次确认进行文件上传时,直接填上传文件的url会因为没有参数导致api报404,所以这里将action设置为一个返回为空的方法就行,避免抛错
  1462. return ""
  1463. },
  1464. uploadFile(formName) {
  1465. this.$refs[formName].validate((valid) => {
  1466. if (valid) {
  1467. if (this.fileList.length === 0){
  1468. this.$message.warning('请上传文件');
  1469. } else {
  1470. var form = new FormData();
  1471. form.append('file', this.fileList[0]);
  1472. // form.append('yearMonth', this.TaxesData.yearMonth);
  1473. console.log("wenjian"+this.fileList)
  1474. console.log(form)
  1475. var that = this
  1476. this.$axios({
  1477. method:"post",
  1478. url: "/api/PersonnelModule/UploadTax",
  1479. headers: {
  1480. 'Content-type': 'multipart/form-data',
  1481. Authorization: 'Bearer ' + this.token,
  1482. YearMonth: that.TimeProcessingyue(that.TaxesData.yearMonth)
  1483. },
  1484. data:form
  1485. }).then(function (res) {
  1486. console.log(res)
  1487. if(res.data.code==200){
  1488. console.log(res)
  1489. that.UploadTaxes=false;
  1490. that.value2=that.TimeProcessingyue(that.TaxesData.yearMonth)
  1491. that.GetWageSheetList();
  1492. that.$message({
  1493. message:res.data.msg,
  1494. type: 'success'
  1495. });
  1496. }else{
  1497. that.$message({
  1498. message: '上传失败!原因:'+res.data.msg,
  1499. type: 'warning'
  1500. });
  1501. }
  1502. }).catch(()=>{})
  1503. }
  1504. } else {
  1505. this.$message.error('请将红框内容补全!');
  1506. return false;
  1507. }
  1508. });
  1509. },
  1510. removelist(file, fileList){
  1511. console.log(file)
  1512. console.log(fileList)
  1513. console.log(this.fileList)
  1514. this.fileList=[]
  1515. },
  1516. //下载模板
  1517. DownloadTaxes(){
  1518. var url = "/api/PersonnelModule/WageSheetTaxTemplate"
  1519. var that = this
  1520. this.$axios({
  1521. method: 'post',
  1522. url: url,
  1523. headers: {
  1524. Authorization: 'Bearer ' + this.token
  1525. }
  1526. }).then(function (res) {
  1527. if(res.data.code==200){
  1528. console.log(res)
  1529. window.open(res.data.data.fileUrl);
  1530. that.$message({
  1531. message:res.data.msg,
  1532. type: 'success'
  1533. });
  1534. }else{
  1535. that.$message({
  1536. message: '下载失败!原因:'+res.data.msg,
  1537. type: 'warning'
  1538. });
  1539. }
  1540. }).catch(()=>{})
  1541. }
  1542. },
  1543. mounted(){
  1544. this.GetWageSheetBasicsDataSource()
  1545. this.loginuserid=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
  1546. this.getnewDate();
  1547. }
  1548. }
  1549. </script>
  1550. <style>
  1551. .payroll-all{
  1552. background-color: #fff;
  1553. padding: 10px;
  1554. box-shadow: 0 0 5px #0005;
  1555. border-radius: 10px;
  1556. height: 100%;
  1557. min-height: 830px;
  1558. }
  1559. .payroll-head-li label{
  1560. color: #606266;
  1561. font-size: 15px;
  1562. font-weight: 600;
  1563. }
  1564. .payroll-head-li{
  1565. margin-top: 5px;
  1566. }
  1567. .payroll-head{
  1568. display: flex;
  1569. justify-content: space-between;
  1570. flex-wrap: wrap;
  1571. margin-bottom: 20px;
  1572. }
  1573. .payroll-inif{
  1574. display: flex;
  1575. flex-wrap: wrap;
  1576. justify-content: space-between;
  1577. margin: 0 80px;
  1578. }
  1579. .payroll-inif .el-form-item{
  1580. width: 350px;
  1581. }
  1582. .payroll-inif .el-input-number--medium{
  1583. width: 218px;
  1584. }
  1585. .payroll-inif .el-form-item{
  1586. margin-bottom: 2px;
  1587. }
  1588. .payroll-inif .el-input--medium .el-input__inner{
  1589. text-align: left;
  1590. }
  1591. .leave-inif{
  1592. margin: 0 80px;
  1593. display: flex;
  1594. flex-wrap: wrap;
  1595. }
  1596. .leave-inif .el-form-item{
  1597. margin-bottom: 0px;
  1598. width: 24%;
  1599. }
  1600. .salary-payments{
  1601. display: flex;
  1602. flex-wrap: wrap;
  1603. margin: 0 80px;
  1604. }
  1605. .salary-payments .el-form-item{
  1606. margin-bottom: 0px;
  1607. font-size: 17px;
  1608. font-weight: 600;
  1609. width: 24%;
  1610. }
  1611. .payroll-all .el-dialog__body{
  1612. padding: 16px 20px;
  1613. }
  1614. .remark-box{
  1615. margin: 0 80px;
  1616. }
  1617. .payroll-inif .el-input--medium {
  1618. width: 218px;
  1619. }
  1620. .remark-box.el-form-item{
  1621. margin-bottom: 0px;
  1622. }
  1623. .remark-box .el-input--medium .el-input__inner{
  1624. text-align: left;
  1625. }
  1626. .remark-box .el-input-number--medium{
  1627. width: 218px;
  1628. text-align:left;
  1629. }
  1630. .ps-box{
  1631. font-size:12px ;
  1632. color: red;
  1633. }
  1634. .pan .el-form-item__error{
  1635. display: none;
  1636. }
  1637. .remark-box .el-textarea__inner{
  1638. width: 96.5%;
  1639. }
  1640. .payroll-all::-webkit-scrollbar-track-piece {
  1641. background-color: #f1f1f1;
  1642. }
  1643. .payroll-all::-webkit-scrollbar {
  1644. width: 10px;
  1645. height: 10px;
  1646. }
  1647. .payroll-all::-webkit-scrollbar-thumb {
  1648. background-color: #c1c1c1;
  1649. background-clip: padding-box;
  1650. min-height: 28px;
  1651. border-radius: 8px;
  1652. }
  1653. .payroll-all::-webkit-scrollbar-thumb:hover {
  1654. background-color: #a8a8a8;
  1655. }
  1656. .biaoji .el-input-number--medium{
  1657. width: 90px;
  1658. }
  1659. .biaoji .el-input--medium .el-input__inner{
  1660. text-align: left;
  1661. }
  1662. .payroll-all .el-dialog{
  1663. margin: 0 auto 23px;
  1664. }
  1665. </style>