| | |
| | | "name": "验收详情", |
| | | "pathName": "subpackages/task/taskCheckDetail/taskCheckDetail", |
| | | "query": "id=b0e79981-56d5-4730-83e7-08de1d1fb9dd&date=2025-11-07&checkReceiveStatus=20", |
| | | "scene": null, |
| | | "launchMode": "default" |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "发薪详情", |
| | |
| | | }, |
| | | }); |
| | | |
| | | async function calcTaskTotalServiceFee() { |
| | | try { |
| | | let params: API.CalcTaskTotalServiceFeeCommand = { |
| | | billingMethod: form.billingMethod, |
| | | serviceFee: form.serviceFee, |
| | | verifyWorkHours: form.verifyWorkHours, |
| | | totalPieceQuantity: form.totalPieceQuantity, |
| | | needPeopleNumber: form.needPeopleNumber, |
| | | beginTime: dayjs(form.beginTime).format('YYYY-MM-DD 00:00:00'), |
| | | endTime: dayjs(form.endTime).format('YYYY-MM-DD 23:59:59'), |
| | | }; |
| | | let res = await taskServices.calcTaskTotalServiceFee(params); |
| | | return res; |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const formRef = ref<any>(null); |
| | | function handleConfirm() { |
| | | if (!formRef.value) return; |
| | |
| | | |
| | | async function confirm() { |
| | | try { |
| | | // await Message.confirm({ |
| | | // message: `您当前账户余额不足,暂时无法发布任务,请登录客户端后台充值后操作`, |
| | | // showCancelBtn: false, |
| | | // }); |
| | | await calcTaskTotalServiceFee(); |
| | | |
| | | let params: API.SaveTaskInfoCommand = { |
| | | supplierEnterpriseId: form.supplierEnterpriseId, |
| | | name: form.name, |
| | |
| | | if (isCopy) { |
| | | params.id = ''; |
| | | } |
| | | let res = await taskServices.saveTaskInfo(params); |
| | | let res = await taskServices.saveTaskInfo(params, { skipErrorHandler: true }); |
| | | if (res) { |
| | | Message.success(isEdit && !isCopy ? '编辑成功' : '发布成功', { |
| | | onClosed() { |
| | |
| | | }, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | if (error?.info?.errorCode == 'BalanceNotEnough') { |
| | | await Message.confirm({ |
| | | message: `您当前账户余额不足,暂时无法发布任务,请登录客户端后台充值后操作`, |
| | | showCancelBtn: false, |
| | | }); |
| | | } else { |
| | | Message.error(error); |
| | | } |
| | | } |
| | | } |
| | | |
| | | function timeChange() { |
| | |
| | | "showES6CompileOption": false, |
| | | "checkInvalidKey": true, |
| | | "ignoreDevUnusedFiles": true, |
| | | "useIsolateContext": true, |
| | | "skylineRenderEnable": false |
| | | "useIsolateContext": true |
| | | }, |
| | | "condition": { |
| | | "miniprogram": { |
| | |
| | | "name": "发薪详情", |
| | | "pathName": "subpackages/payrollManage/payrollManageDetail/payrollManageDetail", |
| | | "query": "id=225c2ed0-aefc-43aa-ff08-08de11385920&operatorToken=97671547-8f84-49c7-8cb0-7bf5bc216cc9", |
| | | "scene": null, |
| | | "launchMode": "default" |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "用户协议", |
| | |
| | | }); |
| | | |
| | | const goPage = useAccessLogin((routeName: string) => { |
| | | console.log('routeName: ', routeName); |
| | | Taro.navigateTo({ |
| | | url: routeName, |
| | | }); |
| | |
| | | </PayrollManageDetailCard> |
| | | </template> |
| | | </InfiniteLoading> |
| | | <PageFooter v-if="form.auditStatus === EnumTaskSettlementAuditStatus.Wait"> |
| | | <PageFooter v-if="form.settlementStatus === EnumTaskSettlementStatus.Wait"> |
| | | <!-- <PageFooterBtn type="primary" @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Pass)" |
| | | >审核通过</PageFooterBtn |
| | | > |
| | |
| | | @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Fail)" |
| | | >驳回</PageFooterBtn |
| | | > --> |
| | | <PageFooterBtn type="primary" @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Pass)" |
| | | <!-- <PageFooterBtn type="primary" @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Pass)" |
| | | >确认</PageFooterBtn |
| | | > |
| | | > --> |
| | | <PageFooterBtn type="primary" @click="settlementTask()">结算</PageFooterBtn> |
| | | <PageFooterBtn type="primary" plain @click="goBack">取消</PageFooterBtn> |
| | | </PageFooter> |
| | | </LoadingLayout> |
| | |
| | | } |
| | | ); |
| | | |
| | | async function settlementTask() { |
| | | try { |
| | | let params: API.SureTaskSettlementCommand = { |
| | | taskInfoId: id, |
| | | operatorToken: operatorToken, |
| | | }; |
| | | let res = await taskServices.sureTaskSettlement(params); |
| | | if (res) { |
| | | Message.success('操作成功', { |
| | | onClosed() { |
| | | goBack(); |
| | | }, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function auditTaskSettlement(auditStatus: EnumTaskSettlementAuditStatus) { |
| | | try { |
| | | let params: API.AuditTaskSettlementCommand = { |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 修复任务预计总服务费v1.3.0.1 POST /api/flexjob/task/repairTaskEstimatedServiceFee_1_3_0_1 */ |
| | | export async function repairTaskEstimatedServiceFee1301( |
| | | body: API.RepairTaskEstimatedServiceFee1301Command, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/flexjob/task/repairTaskEstimatedServiceFee_1_3_0_1', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 撤回结算 POST /api/flexjob/task/revokeTaskSettlementOrder */ |
| | | export async function revokeTaskSettlementOrder( |
| | | body: API.RevokeTaskSettlementOrderCommand, |
| | |
| | | lastSubmitTime?: string; |
| | | checkReceiveStatus?: EnumTaskCheckReceiveStatus; |
| | | submitCheckReceiveStatus?: EnumTaskUserSubmitCheckReceiveStatus; |
| | | /** 验收方式 */ |
| | | checkReceiveMethods?: EnumTaskCheckReceiveMethod[]; |
| | | } |
| | | |
| | | interface GetCheckReceiveTaskQueryResultObjectData { |
| | |
| | | checkReceiveStatus?: EnumTaskCheckReceiveStatus; |
| | | /** 结算单号 */ |
| | | settlementCode?: string; |
| | | /** 供应商名称 */ |
| | | supplierEnterpriseName?: string; |
| | | settlementOrderStatus?: EnumTaskSettlementOrderStatus; |
| | | /** 结算单名称 */ |
| | | settlementOrderName?: string; |
| | |
| | | |
| | | type RepairContractTemplateValuePointBy1202Command = Record<string, any>; |
| | | |
| | | type RepairTaskEstimatedServiceFee1301Command = Record<string, any>; |
| | | |
| | | interface ResendResourceCommand { |
| | | /** 资源日志Id */ |
| | | id?: string; |