| | |
| | | data: params |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 获取验证码 |
| | | */ |
| | | export function getCaptcha() { |
| | | return request({ |
| | | url: '/api/base/captcha', |
| | | method: 'post' |
| | | }) |
| | | } |
| | | |
| | | export interface loginParams { |
| | | username: string |
| | | password: string |
| | | captcha: string |
| | | captchaId: string |
| | | } |
| | | /** |
| | | * 登录 |
| | | */ |
| | | export function login(params: loginParams) { |
| | | return request({ |
| | | url: '/api/base/login', |
| | | method: 'post', |
| | | data: params |
| | | }) |
| | | } |
| | | |
| | | export interface qualityParams { |
| | | reportAmount: number |
| | | workOrderProcedureID: number |
| | | workerID: string |
| | | workerName: string |
| | | } |
| | | /** |
| | | * 看板质检 |
| | | */ |
| | | export function bulletinQualityInspection(params: qualityParams) { |
| | | return request({ |
| | | url: '/api-s/v1/reportWork/bulletinQualityInspection', |
| | | method: 'post', |
| | | data: params |
| | | }) |
| | | } |
| | | |
| | | export interface getQualityParams { |
| | | workOrderId: string |
| | | procedureId: string |
| | | } |
| | | /** |
| | | * 看板获取质检信息 |
| | | */ |
| | | export function getQualityInspection(params: getQualityParams) { |
| | | return request({ |
| | | url: '/api-s/v1/reportWork/bulletinGetQualityInspection', |
| | | method: 'post', |
| | | data: params |
| | | }) |
| | | } |
| | | |
| | | export interface bulletinReportParams { |
| | | reportAmount: number |
| | | workOrderProcedureID: number |
| | | workerID: string |
| | | workerName: string |
| | | ids: any[] |
| | | } |
| | | /** |
| | | * 看板报工 |
| | | */ |
| | | export function bulletinReport(params: bulletinReportParams) { |
| | | return request({ |
| | | url: '/api-s/v1/reportWork/bulletinReport', |
| | | method: 'post', |
| | | data: params |
| | | }) |
| | | } |