|
@@ -64,7 +64,8 @@ import PersonnelFilesModal from './personnelFilesModal'
|
|
|
import CarSqModal from './carSqModal'
|
|
|
import MaterialSlModal from './materialSlModal'
|
|
|
import FixedZyModal from './fixedZyModal'
|
|
|
-import { postAction, postFormDataAction } from '@/api/manage'
|
|
|
+import { postAction, postFormDataAction} from '@/api/manage'
|
|
|
+// import {annualLeave} from '@api/oa/cd-personnel-files'
|
|
|
import moment from 'moment'
|
|
|
export default {
|
|
|
name: 'DemoForm',
|
|
@@ -494,11 +495,28 @@ export default {
|
|
|
//表中每一行分别计算
|
|
|
value.map(b=>{
|
|
|
b[item.bn[0].label] = b[number1]*b[number2]
|
|
|
+ if(this.$store.getters.nickname=='崔崇杰'){
|
|
|
+ b['procurement_type']='1'
|
|
|
+ }else{
|
|
|
+ b['procurement_type']='2'
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
specialTerms(value,key){
|
|
|
var that = this
|
|
|
+ //剩余年假
|
|
|
+ // if(key == 'employe_name'){
|
|
|
+ // annualLeave({username:value}).then(res => {
|
|
|
+ // if (res.success) {
|
|
|
+ // // this.declareElementsData = res.result.records
|
|
|
+ // // this.dataSource =res.result.records
|
|
|
+ // }else{
|
|
|
+ // this.$message.error(res.message);
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
//请假类型与单位
|
|
|
//事假
|
|
|
if(key == 'leave_category' && value == '1'){
|