Procházet zdrojové kódy

人力资源代码提交

wangqiang před 1 rokem
rodič
revize
c42aab5e9b

+ 146 - 0
api/human/enrollment/EnrollmentRegistrationService.js

@@ -0,0 +1,146 @@
+import request from "../../../common/request"
+import { REGISTER_PATH as prefix } from "@/api/AppPath";
+
+export default {
+	list: function (params) {
+		return request({
+			url: prefix + '/enrollmentRegistration/list',
+			method: 'get',
+			params: params
+		})
+	},
+	save (inputForm) {
+		return request({
+			url: prefix +  `/enrollmentRegistration/save`,
+			method: 'post',
+			data: inputForm
+		})
+	},
+	saveWageCard (inputForm) {
+		return request({
+			url: prefix +  `/enrollmentRegistration/saveWageCard`,
+			method: 'post',
+			data: inputForm
+		})
+	},
+	saveSocialCard (inputForm) {
+		return request({
+			url: prefix +  `/enrollmentRegistration/saveSocialCard`,
+			method: 'post',
+			data: inputForm
+		})
+	},
+	saveKeyCard (inputForm) {
+		return request({
+			url: prefix +  `/enrollmentRegistration/saveKeyCard`,
+			method: 'post',
+			data: inputForm
+		})
+	},
+	saveRiceCard (inputForm) {
+		return request({
+			url: prefix +  `/enrollmentRegistration/saveRiceCard`,
+			method: 'post',
+			data: inputForm
+		})
+	},
+	findById (id) {
+		return request({
+			url: prefix + '/enrollmentRegistration/findById',
+			method: 'get',
+			params: {id: id}
+		})
+	},
+	findWageCardById (id) {
+		return request({
+			url: prefix + '/enrollmentRegistration/findWageCardById',
+			method: 'get',
+			params: {id: id}
+		})
+	},
+	findSocialCardById (id) {
+		return request({
+			url: prefix + '/enrollmentRegistration/findSocialCardById',
+			method: 'get',
+			params: {id: id}
+		})
+	},
+	findKeyCardById (id) {
+		return request({
+			url: prefix + '/enrollmentRegistration/findKeyCardById',
+			method: 'get',
+			params: {id: id}
+		})
+	},
+	findRiceCardById (id) {
+		return request({
+			url: prefix + '/enrollmentRegistration/findRiceCardById',
+			method: 'get',
+			params: {id: id}
+		})
+	},
+	updateStatusById (param) {
+		return request({
+			url: prefix + '/enrollmentRegistration/updateStatusById',
+			method: 'post',
+			data: param
+		})
+	},
+	updateWageCardStatusById (param) {
+		return request({
+			url: prefix + '/enrollmentRegistration/updateWageCardStatusById',
+			method: 'post',
+			data: param
+		})
+	},
+	updateSocialCardStatusById (param) {
+		return request({
+			url: prefix + '/enrollmentRegistration/updateSocialCardStatusById',
+			method: 'post',
+			data: param
+		})
+	},
+	updateKeyCardStatusById (param) {
+		return request({
+			url: prefix + '/enrollmentRegistration/updateKeyCardStatusById',
+			method: 'post',
+			data: param
+		})
+	},
+	updateRiceCardStatusById (param) {
+		return request({
+			url: prefix + '/enrollmentRegistration/updateRiceCardStatusById',
+			method: 'post',
+			data: param
+		})
+	},
+	remove (id) {
+		return request({
+			url: prefix + '/enrollmentRegistration/remove',
+			method: 'get',
+			params: {id: id}
+		})
+	},
+	findIdCardOnly (idCard) {
+		return request({
+			url: prefix + '/enrollmentRegistration/findIdCardOnly',
+			method: 'get',
+			params: {idCard: idCard}
+		})
+	},
+	findMobilePhoneOnly (mobilePhone) {
+		return request({
+			url: prefix + '/enrollmentRegistration/findMobilePhoneOnly',
+			method: 'get',
+			params: {mobilePhone: mobilePhone}
+		})
+	},
+	downloadFile () {
+		return request({
+			url: prefix + '/enrollmentRegistration/downloadFile',
+			method: 'get',
+			params: {},
+			responseType: 'blob'
+		})
+	}
+}

+ 47 - 0
api/human/register/RegisterService.js

@@ -0,0 +1,47 @@
+import request from "../../../common/request"
+import { REGISTER_PATH as prefix } from "@/api/AppPath";
+
+export default {
+  list: function (params) {
+  		return request({
+  			url: prefix + '/register/list',
+  			method: 'get',
+  			params: params
+  		})
+  	},
+  	list2: function (params) {
+  		return request({
+  			url: prefix + '/register/list2',
+  			method: 'get',
+  			params: params
+  		})
+  	},
+  	save (inputForm) {
+  		return request({
+  			url: prefix +  `/register/save`,
+  			method: 'post',
+  			data: inputForm
+  		})
+  	},
+  	findById (id) {
+  		return request({
+  			url: prefix + '/register/findById',
+  			method: 'get',
+  			params: {id: id}
+  		})
+  	},
+  	updateStatusById (param) {
+  		return request({
+  			url: prefix + '/register/updateStatusById',
+  			method: 'post',
+  			data: param
+  		})
+  	},
+  	remove (id) {
+  		return request({
+  			url: prefix + '/register/remove',
+  			method: 'get',
+  			params: {id: id}
+  		})
+  	}
+}