first commit
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,74 @@
|
||||
|
||||
let welfareCommonUrl = "/platform/welfare/common";
|
||||
|
||||
let getWelfareProjects = async () => {
|
||||
const {code, data} = await $.get(welfareCommonUrl + "/welfareProjects")
|
||||
if (!code) {
|
||||
return data
|
||||
}
|
||||
return []
|
||||
}
|
||||
|
||||
let exportWelfareList = (projectId, personType) => {
|
||||
let url = welfareCommonUrl + "/exportWelfareList?projectId=" + projectId
|
||||
if (personType.length > 0) {
|
||||
url += "&personType=" + JSON.stringify(personType)
|
||||
}
|
||||
window.open(url)
|
||||
}
|
||||
let doExportWelfare = (projectId) => {
|
||||
window.open(welfareCommonUrl + "/doExportWelfare?projectId=" + projectId)
|
||||
}
|
||||
|
||||
let doExportWelfareReceive = (projectId, welfareUnit, welfareTwoUnit = [], personTypes = [], userStates = []) => {
|
||||
window.open(welfareCommonUrl + "/exportReceive?projectId=" + projectId
|
||||
+ "&welfareUnit=" + welfareUnit
|
||||
+ "&welfareTwoUnit=" + welfareTwoUnit
|
||||
+ "&personTypes=" + JSON.stringify(personTypes)
|
||||
+ "&userStates=" + JSON.stringify(userStates))
|
||||
}
|
||||
|
||||
let exportWelfareListSummary = (projectId) => {
|
||||
window.open(welfareCommonUrl + "/exportWelfareListSummary?projectId=" + projectId)
|
||||
}
|
||||
|
||||
|
||||
const minixs = {
|
||||
methods: {
|
||||
async yearChange(val) {
|
||||
if (val) {
|
||||
const option = this.projectOptions.find(v => v.label === parseInt(val))
|
||||
if (option) {
|
||||
this.projectSelectOptions = this.projectOptions.find(v => v.label === parseInt(val)).children
|
||||
} else {
|
||||
this.pageForm.projectId = null
|
||||
this.projectSelectOptions = []
|
||||
}
|
||||
} else {
|
||||
this.projectSelectOptions = []
|
||||
this.projectOptions.forEach(v => {
|
||||
this.projectSelectOptions = this.projectSelectOptions.concat(v.children)
|
||||
})
|
||||
}
|
||||
if (this.projectSelectOptions && this.projectSelectOptions.length > 0) {
|
||||
this.pageForm.projectId = this.projectSelectOptions[0].value
|
||||
await this.getWelfareOptions()
|
||||
}
|
||||
this.doSearch()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const sexOptions = ['男', '女']
|
||||
|
||||
let commonColumns = [
|
||||
{prop: 'loginname', label: '工号', width: "100"},
|
||||
{prop: 'username', label: '姓名', width: "80"},
|
||||
{prop: 'sex', label: '性别', sortable: true, width: '100px', checked: 0},
|
||||
{prop: 'personType', label: '人员类型', sortable: true, width: "100"},
|
||||
{prop: 'userState', label: '在职状态', sortable: true, width: "100"},
|
||||
{prop: 'unionname', label: '所属工会', sortable: true},
|
||||
{prop: 'unitname', label: '所属单位', sortable: true}
|
||||
// {prop: 'isReceive', label: '是否领取', sortable: true}
|
||||
]
|
||||
Reference in New Issue
Block a user