Best JavaScript code snippet using synthetixio-synpress
index.js
Source:index.js
1import '@/services/mock'2import api from '@/api/apiUtil'3import postDownload from '@/components/DownloadLink/postDownload'4import util from '@/utils/util.js'5import config from '@/config'6const {SETTLE_BOSS_WEB} = config.moduleUrl7const date = util.getDate()8const base = config.baseURL9export const SETTLE_AUDIT_TOAUDIT = `${SETTLE_BOSS_WEB}/boss/settle/audit/submit.do`10export const SETTLE_SUBMIT_FINANCE = `${SETTLE_BOSS_WEB}/boss/settle/finance/audit.do`11export const SETTLEOUT_UNABLE_LIST = `${SETTLE_BOSS_WEB}/boss/settle/order/settle/unable/query.do`12export const SETTLEOUT_UNABLE_COUNT = `${SETTLE_BOSS_WEB}/boss/settle/order/unable/list/count.do`13export const SETTLE_SUBMIT_SETTLEOUT = `${SETTLE_BOSS_WEB}/boss/settle/fund/submit.do`14export const SETTLE_AUDIT_OPERATION_DATA = `${SETTLE_BOSS_WEB}/boss/settle/audit/operation/list.do`15export const FINANCEDETAIL_OPERA_TION = `${SETTLE_BOSS_WEB}/boss/settle/finance/operation/list.do`16export const GETSETTLEOUT_DETAIL_OPERATION = `${SETTLE_BOSS_WEB}/boss/settle/fund/operation/list.do`17export const SETTLE_AUDIT_DETAIL_DATA = `${SETTLE_BOSS_WEB}/boss/settle/audit/detail.do`18export const GETFINANCE_DETAIL_DATA = `${SETTLE_BOSS_WEB}/boss/settle/finance/detail.do`19export const SETTLE_AUDIT_BATCH_AUDIT = `${SETTLE_BOSS_WEB}/boss/settle/audit/redo.do`20export const SETTLE_AUDIT_TABEL_LIST = `${SETTLE_BOSS_WEB}/boss/settle/audit/list.do`21export const GETFINANCE_TABLE_LIST = `${SETTLE_BOSS_WEB}/boss/settle/finance/list.do`22export const SETTLEOUT_TABLE_LIST = `${SETTLE_BOSS_WEB}/boss/settle/fund/list.do`23export const CLEARING_TABEL_LIST = `${SETTLE_BOSS_WEB}/boss/settle/clearing/status/change.do`24export const SUBMIT_HANDLE_CLEAR = `${SETTLE_BOSS_WEB}/boss/settle/clearing/handle.do`25export const SUBMIT_HANDLE_CLEAR_CASH = `${SETTLE_BOSS_WEB}/boss/bank/clearing/handle.do`26export const GET_CLEAR_DETAIL_DATA = `${SETTLE_BOSS_WEB}/boss/settle/clearing/detail.do`27export const GET_CLEAR_FUNDS_DATA = `${SETTLE_BOSS_WEB}/boss/settle/clearing/funds/list.do`28export const GET_CLEAR_FUNDS_DATACASH = `${SETTLE_BOSS_WEB}/boss/bank/clearing/funds/list.do`29export const GET_CLEAR_CLEAR_DATA = `${SETTLE_BOSS_WEB}/boss/settle/clearing/list.do`30export const GET_FUNDS_COUNT_DATA = `${SETTLE_BOSS_WEB}/boss/settle/clearing/funds/count.do`31export const GET_CASH_FUNDS_COUNT_DATA = `${SETTLE_BOSS_WEB}/boss/bank/clearing/funds/count.do`32export const SETTLE_ORDER_LIST = `${SETTLE_BOSS_WEB}/boss/settle/order/list.do`33export const SETTLEORDER_PENDING_LIST = `${SETTLE_BOSS_WEB}/boss/settle/order/pending/list.do`34export const SETTLE_ORDER_LIST_COUNT = `${SETTLE_BOSS_WEB}/boss/settle/order/list/count.do`35export const ERROR_COUNT_DATA = `${SETTLE_BOSS_WEB}/boss/settle/clearing/error/statistic.do`36export const ERROR_LIST_DATA = `${SETTLE_BOSS_WEB}/boss/settle/clearing/error/list.do`37export const SETTLE_CLEAR_COUNT_LIST = `${SETTLE_BOSS_WEB}/boss/settle/clearing/count.do`38export const SETTLE_SETTLEOTCER_DETAIL = `${SETTLE_BOSS_WEB}/boss/settle/order/detail.do`39export const CREATE_SETTLE_ORDERURL = `${SETTLE_BOSS_WEB}/boss/settle/order/pending/bill/query.do`40export const ADD_ORDER_MODAL_SEARCH = `${SETTLE_BOSS_WEB}/boss/settle/order/append/query.do`41export const SUBMIT_CREATEORDER_DATA = `${SETTLE_BOSS_WEB}/boss/settle/order/settle/bill/generate.do`42export const BILL_SETTLEAUDIT_PAGE_DATA = `${SETTLE_BOSS_WEB}/boss/settle/order/check/bill/query.do`43export const SETTLE_ORDER_COUNT = `${SETTLE_BOSS_WEB}/boss/settle/order/pending/statistic.do`44export const SETTLE_ERROR_TABLE_LIST = `${SETTLE_BOSS_WEB}/boss/settle/error/list.do`45export const ERROR_COUNT_LIST = `${SETTLE_BOSS_WEB}/boss/settle/error/statistic.do`46export const SETTLEERROR_DETAIL_DATA = `${SETTLE_BOSS_WEB}/boss/settle/error/detail.do`47export const SETTLE_VOUCHER_UPLOAD = `${SETTLE_BOSS_WEB}/boss/settle/voucher/upload.do`48export const SETTLE_BULKVOUCHER_UPLOAD = `${SETTLE_BOSS_WEB}/boss/settle/voucher/batchUpload.do`49export const SETTLEOUT_AUDIT_SUBMIT = `${SETTLE_BOSS_WEB}/boss/settle/fund/pay.do`50export const SETTLEOUT_DETAIL_DATA = `${SETTLE_BOSS_WEB}/boss/settle/fund/detail.do`51export const EXPORT_CLEAR_FINANCE_fund = `${SETTLE_BOSS_WEB}/boss/settle/fund/pay.do`52export const HANDLE_CLEAROBSOLETEK_DATA = `${SETTLE_BOSS_WEB}/boss/settle/clearing/cancel.do`53export const EXPORT_CLEAR_FUNDS = `${base}${SETTLE_BOSS_WEB}/boss/settle/clearing/funds/export.do`54export const EXPORT_CLEAR_CASH_FUNDS = `${base}${SETTLE_BOSS_WEB}/boss/bank/clearing/funds/export.do`55export const EXPORT_CLEAR_ORDER = `${base}${SETTLE_BOSS_WEB}/boss/settle/clearing/order/export.do`56export const EXPORT_CLEAR_CASH_ORDER = `${base}${SETTLE_BOSS_WEB}/boss/bank/clearing/order/export.do`57export const EXPORT_CLEAR_ERROR_ORDER = `${base}${SETTLE_BOSS_WEB}/boss/settle/clearing/error/order/export.do`58export const EXPORT_CLEAR_ERROR_FUNDS = `${base}${SETTLE_BOSS_WEB}/boss/settle/clearing/error/export.do`59export const EXPORT_CLEAR_AUDIT = `${base}${SETTLE_BOSS_WEB}/boss/settle/audit/export.do`60export const CLEARSETTLE_AUDIT_EXPORT_URL = `${base}${SETTLE_BOSS_WEB}/boss/settle/audit/detail/export.do`61export const CLEARSETTLE_FINANCE_EXPORT_URL = `${base}${SETTLE_BOSS_WEB}/boss/settle/finance/detail/export.do`62export const EXPORT_CLEAR_FINAANCE = `${base}${SETTLE_BOSS_WEB}/boss/settle/finance/export.do`63export const EXPORT_CLEAR_SETTLEOUT = `${base}${SETTLE_BOSS_WEB}/boss/settle/fund/export.do`64export const EXPORT_CLEAR_AUDIT_BATCH = `${base}${SETTLE_BOSS_WEB}/boss/settle/audit/exportBySettleBillNos.do`65export const EXPORT_CLEAR_FINANCE_BATCH = `${base}${SETTLE_BOSS_WEB}/boss/settle/finance/exportBySettleBillNos.do`66export const EXPORT_CLEAR_FUND_BATCH = `${base}${SETTLE_BOSS_WEB}/boss/settle/fund/exportBySettleBillNos.do`67export const EXPORT_CLEAR_SETTLE_ORDER = `${base}${SETTLE_BOSS_WEB}/boss/settle/order/export.do`68export const EXPORT__SETTLE_ORDER_PENNDING = `${base}${SETTLE_BOSS_WEB}/boss/settle/order/pending/export.do`69export const CLEARSETTLE_CHANNELADVANCE_EXPORT_URL = `${base}${SETTLE_BOSS_WEB}/boss/settle/order/advance/export.do`70export const CLEARSETTLE_CHANNELADVANCE_EXPORTCHECK_URL = `${base}${SETTLE_BOSS_WEB}/boss/settle/order/advance/checked/export.do`71export const EXPORT_CLEAR_SETTLE_ORDER_CHECK = `${base}${SETTLE_BOSS_WEB}/boss/settle/order/checked/export.do`72export const EXPORT_CLEAR_SETTLE_PENDING = `${base}${SETTLE_BOSS_WEB}/boss/settle/order/pending/checked/export.do`73export const SETTLEERROR_EXPORT_CHECK = `${base}${SETTLE_BOSS_WEB}/boss/settle/error/exportByPayNos.do`74export const SETTLEERROR_EXPORT = `${base}${SETTLE_BOSS_WEB}/boss/settle/error/export.do`75/**76 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
77 * */78export function submitAuditUrl(params = {}) {79 return api(params, SETTLE_AUDIT_TOAUDIT)80}81/**82 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
83 * */84export function submitFinanceUrl(params = {}) {85 return api(params, SETTLE_SUBMIT_FINANCE)86}87/**88 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
89 * */90export function settleOutUnableListUrl(params = {}) {91 return api(params, SETTLEOUT_UNABLE_LIST)92}93/**94 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
95 * */96export function settleOutUnableCountUrl(params = {}) {97 return api(params, SETTLEOUT_UNABLE_COUNT)98}99/**100 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
101 * */102export function submitSettleOutUrl(params = {}) {103 return api(params, SETTLE_SUBMIT_SETTLEOUT)104}105/**106 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
107 * */108export function getAuditDetailOperationUrl(params = {}) {109 return api(params, SETTLE_AUDIT_OPERATION_DATA)110}111/**112 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
113 * */114export function getFinanceDetailOperationUrl(params = {}) {115 return api(params, FINANCEDETAIL_OPERA_TION)116}117/**118 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
119 * */120export function getSettleOutDetailOperationUrl(params = {}) {121 return api(params, GETSETTLEOUT_DETAIL_OPERATION)122}123/**124 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
125 * */126export function getSettleOutDetailDataUrl(params = {}) {127 return api(params, SETTLEOUT_DETAIL_DATA)128}129/**130 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
131 * */132export function getAuditDetailDataUrl(params = {}) {133 return api(params, SETTLE_AUDIT_DETAIL_DATA)134}135/**136 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
137 * */138export function settleOutAuditSubmitUrl(params = {}) {139 return api(params, SETTLEOUT_AUDIT_SUBMIT)140}141/**142 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
143 * */144export function auditSelectPayFundsUrl(params = {}) {145 return api(params, EXPORT_CLEAR_FINANCE_fund)146}147/**148 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
149 * */150export function settleVoucherUploadUrl(params = {}) {151 return api(params, SETTLE_VOUCHER_UPLOAD)152}153/**154 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
155 * */156export function settleVoucherBulkUploadUrl(params = {}) {157 return api(params, SETTLE_BULKVOUCHER_UPLOAD)158}159/**160 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-详æ
161 * */162export function getFinanceDetailDataUrl(params = {}) {163 return api(params, GETFINANCE_DETAIL_DATA)164}165/**166 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-å表æ¥è¯¢-æ¹éå®¡æ ¸167 * */168export function settleAuditBatchAuditUrl(params = {}) {169 return api(params, SETTLE_AUDIT_BATCH_AUDIT)170}171/**172 * return è´¢å¡ç»ç®æ¸
ç»ç®å®¡æ ¸-å表æ¥è¯¢-æ¹éå®¡æ ¸173 * */174export function settleFinanceBatchAuditUrl(params = {}) {175 return api(params, SETTLEFINANCE_BATCH_AUDIT)176}177/**178 * return åæ·ç»ç®æ¸
ç»ç®å®¡æ ¸-å表æ¥è¯¢179 * */180export function getAuditTableListUrl(params = {}) {181 return api(params, SETTLE_AUDIT_TABEL_LIST)182}183/**184 * return è´¢å¡ç»ç®æ¸
ç»ç®å®¡æ ¸-å表æ¥è¯¢185 * */186export function getFinanceTableListUrl(params = {}) {187 return api(params, GETFINANCE_TABLE_LIST)188}189/**190 * return è´¢å¡ç»ç®æ¸
ç»ç®å®¡æ ¸-å表æ¥è¯¢191 * */192export function getSettleOutTableListUrl(params = {}) {193 return api(params, SETTLEOUT_TABLE_LIST)194}195/**196 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-æ¹ä¸ºæ¸
åæå197 * */198export function changeClearSubmitUrl(params) {199 return api(params, CLEARING_TABEL_LIST)200}201/**202 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-æ交æ¸
å管ç203 * */204export function submitHandleClearUrl(params) {205 return api(params, SUBMIT_HANDLE_CLEAR)206}207export function submitHandleClearCashUrl(params) {208 return api(params, SUBMIT_HANDLE_CLEAR_CASH)209}210/**211 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-详æ
212 * */213export function getClearDetailDataUrl(params) {214 return api(params, GET_CLEAR_DETAIL_DATA)215}216/**217 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-èµéæµæ°´218 * */219export function getClearFundsListUrl(params) {220 return api(params, GET_CLEAR_FUNDS_DATA)221}222export function getClearCashFundsListUrl(params) {223 return api(params, GET_CLEAR_FUNDS_DATACASH)224}225/**226 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æ¥è¯¢227 * */228export function getClearTableListUrl(params) {229 return api(params, GET_CLEAR_CLEAR_DATA)230}231/**232 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-èµéæµæ°´å¤å¸ç§æ»è®¡æ¥è¯¢æ¥å£233 * */234export function getFundsCountUrl(params) {235 return api(params, GET_FUNDS_COUNT_DATA)236}237export function getCashFundsCountDataUrl(params) {238 return api(params, GET_CASH_FUNDS_COUNT_DATA)239}240/**241 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-å·®éåæ»è®¡242 * */243export function getErrorCountDataUrl(params) {244 return api(params, ERROR_COUNT_DATA)245}246/**247 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-å·®éålist248 * */249export function getClearErrorListUrl(params) {250 return api(params, ERROR_LIST_DATA)251}252/**253 * return åæ·ç»ç®è®¢å-å表æ¥è¯¢254 * */255export function settleOrderListUrl(params) {256 return api(params, SETTLE_ORDER_LIST)257}258/**259 * return åæ·ç»ç®è®¢å-å表æ¥è¯¢260 * */261export function settleOrderPendingListUrl(params) {262 return api(params, SETTLEORDER_PENDING_LIST)263}264/**265 * return åæ·ç»ç®è®¢å-å表æ¥è¯¢-æ»è®¡266 * */267export function getOrderListCountUrl(params) {268 return api(params, SETTLE_ORDER_LIST_COUNT)269}270/**271 * return åæ·ç»ç®è®¢å-å表æ¥è¯¢-æ»è®¡272 * */273export function getClearCountListUrl(params) {274 return api(params, SETTLE_CLEAR_COUNT_LIST)275}276/**277 * return åæ·ç»ç®è®¢å-æç»278 * */279export function getSettleOrderDetailUrl(params) {280 return api(params, SETTLE_SETTLEOTCER_DETAIL)281}282/**283 * return åæ·ç»ç®è®¢å-çæç»ç®è®¢å284 * */285export function createSettleOrderUrl(params) {286 return api(params, CREATE_SETTLE_ORDERURL)287}288/**289 * return åæ·ç»ç®è®¢å-çæç»ç®è®¢å290 * */291export function addOrderModalSearchUrl(params) {292 return api(params, ADD_ORDER_MODAL_SEARCH)293}294/**295 * return åæ·ç»ç®è®¢å-çæç»ç®è®¢å296 * */297export function submitCreateOrderDataUrl(params) {298 return api(params, SUBMIT_CREATEORDER_DATA)299}300/**301 * return åæ·ç»ç®è®¢å-çæç»ç®è®¢å302 * */303export function handleBillSettleAuditUrl(params) {304 return api(params, BILL_SETTLEAUDIT_PAGE_DATA)305}306/**307 * return åæ·ç»ç®è®¢å-çæç»ç®è®¢å308 * */309export function settleOrderCountUrl(params) {310 return api(params, SETTLE_ORDER_COUNT)311}312/**313 * return åæ·ç»ç®è®¢å-çæç»ç®è®¢å314 * */315export function getErrorTableListUrl(params) {316 return api(params, SETTLE_ERROR_TABLE_LIST)317}318/**319 * return 对账差éå-æ»è®¡320 * */321export function getErrorCountListUrl(params) {322 return api(params, ERROR_COUNT_LIST)323}324/**325 * return 对账差éå-详æ
326 * */327export function settleErrorDetailDataUrl(params) {328 return api(params, SETTLEERROR_DETAIL_DATA)329}330/**331 * return 对账差éå-详æ
332 * */333export function handleClearObsoletekUrl(params) {334 return api(params, HANDLE_CLEAROBSOLETEK_DATA)335}336/**337 * return åæ·ç»ç®å®¡æ ¸-导åº338 * */339export function clearAuditExportUrl(params) {340 return postDownload(EXPORT_CLEAR_AUDIT, params)341}342/**343 * return åæ·ç»ç®å®¡æ ¸-导åº344 * */345export function clearSettleAuditExportUrl(params) {346 return postDownload(CLEARSETTLE_AUDIT_EXPORT_URL, params)347}348/**349 * return åæ·ç»ç®å®¡æ ¸-导åº350 * */351export function clearSettleFinanceExportUrl(params) {352 return postDownload(CLEARSETTLE_FINANCE_EXPORT_URL, params)353}354/**355 * return åæ·ç»ç®å®¡æ ¸-æ¹é导åº356 * */357export function clearAuditExportBatchUrl(params) {358 return postDownload(EXPORT_CLEAR_AUDIT_BATCH, params)359}360/**361 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-èµéæµæ°´-导åºèµéæµæ°´362 * */363export function exportFundsUrl(params) {364 return postDownload(EXPORT_CLEAR_FUNDS, params, 'export.csv')365}366export function exportCashFundsUrl(params) {367 return postDownload(EXPORT_CLEAR_CASH_FUNDS, params, 'export.csv')368}369/**370 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-èµéæµæ°´-导åºå
³è订å371 * */372export function exportOrderUrl(params) {373 return postDownload(EXPORT_CLEAR_ORDER, params, 'export.csv')374}375export function exportCashOrderUrl(params) {376 return postDownload(EXPORT_CLEAR_CASH_ORDER, params, 'export.csv')377}378/**379 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-导åºå·®éå
³è订å380 * */381export function exportErrorOrderUrl(params) {382 return postDownload(EXPORT_CLEAR_ERROR_ORDER, params, 'export.csv')383}384/**385 * return æ¸
ç»ç®ç®¡ç-æ¸
ç»ç®å表æä½-导åºå·®éå386 * */387export function exportFundsErrorUrl(params) {388 return postDownload(EXPORT_CLEAR_ERROR_FUNDS, params, 'export.csv')389}390export function clearSettleChannelAdvanceExportUrl(params) {391 return postDownload(CLEARSETTLE_CHANNELADVANCE_EXPORT_URL, params, 'export.csv')392}393export function clearSettleChannelAdvanceExportCheckUrl(params) {394 return postDownload(CLEARSETTLE_CHANNELADVANCE_EXPORTCHECK_URL, {orderNos: params}, 'export.csv')395}396/**397 * return åæ·ç»ç®è®¢å-导åº398 * */399export function clearSettleOrderExportUrl(params, IS_SETTLE_ORDER_PENNDING) {400 // IS_SETTLE_ORDER_PENNDING å¯ç»ç®è®¢å401 const url = IS_SETTLE_ORDER_PENNDING ? EXPORT__SETTLE_ORDER_PENNDING : EXPORT_CLEAR_SETTLE_ORDER402 console.log(params)403 return postDownload(url, params, 'export.csv')404}405/**406 * return åæ·ç»ç®è®¢å-导åºå¾é407 * */408export function settleOrderExportCheckUrl(params, IS_SETTLE_ORDER_PENNDING) {409 const url = IS_SETTLE_ORDER_PENNDING ? EXPORT_CLEAR_SETTLE_PENDING : EXPORT_CLEAR_SETTLE_ORDER_CHECK410 return postDownload(url, {orderNos: params}, 'export.csv')411}412/**413 * return 对账差éå-导åºå¾é414 * */415export function settleErrorExportCheckUrl(params) {416 return postDownload(SETTLEERROR_EXPORT_CHECK, params, 'export.csv')417}418/**419 * return 对账差éå-导åºå¾é420 * */421export function settleErrorExportUrl(params) {422 return postDownload(SETTLEERROR_EXPORT, params, 'export.csv')...
settle.module.ts
Source:settle.module.ts
1import { NgModule } from '@angular/core';2import { CommonModule } from '@angular/common';3import {SettleWageListComponent} from './settle-wage/wage-list/wage-list.component';4import {SettleWageDetailComponent} from './settle-wage/wage-detail/wage-detail.component';5import {PublicModule} from '../../public/public.module';6import {DetailModule} from '../../public/detail.module';7import {SettleRoutingModule} from './settle-routing.module';8import { SettleAuditComponent } from './settle-audit/settle-audit.component';9import { SettleWageComponent } from './settle-wage/settle-wage.component';10import { AuditListComponent } from './settle-audit/audit-list/audit-list.component';11import { AuditDetailComponent } from './settle-audit/audit-detail/audit-detail.component';12import { SettleDetailHeadComponent } from './settle-detail/settle-detail-head/settle-detail-head.component';13import { SettleDetailCostComponent } from './settle-detail/settle-detail-cost/settle-detail-cost.component';14import { SettleDetailRecordComponent } from './settle-detail/settle-detail-record/settle-detail-record.component';15//å®¡æ ¸è®°å½16import { SettleDetailVerifyComponent } from './settle-detail/settle-detail-verify/settle-detail-verify.component';17import {TitleModule} from "../../public/title.module";18import { SettleMaterialComponent } from './settle-material/settle-material.component';19import { SettleMaterialOrderComponent } from './settle-material/settle-material-order/settle-material-order.component';20import { SettleMaterialWageComponent } from './settle-material/settle-material-wage/settle-material-wage.component';21import { SettleMaterialDetailComponent } from './settle-material/settle-material-detail/settle-material-detail.component';22import { SettleDetailOrderComponent } from './settle-detail/settle-detail-order/settle-detail-order.component';23import { SettleDetailScheduleComponent } from './settle-detail/settle-detail-schedule/settle-detail-schedule.component';24import { SettleDetailDataComponent } from './settle-detail/settle-detail-data/settle-detail-data.component';25import { SettleSetComponent } from './settle-set/settle-set.component';26import {ImgviewModule} from './../../public/imgview.module';27import {ItemPackModule} from "../../plugins/item-pack/item-pack.module";28import {ItemBasicModule} from "../../plugins/item-basic/item-basic.module";29import {CostAccountModule} from "../../public/costAccount.module";30import {SearchSimpleBarModule} from "../../component/search-simple-bar/search-simple-bar.module";31import {SettleDetailModule} from "./settle-detail/settle-detail.module";32@NgModule({33 imports: [34 CommonModule,35 PublicModule,36 TitleModule,37 DetailModule,38 CostAccountModule,39 SettleDetailModule,40 SettleRoutingModule,41 ImgviewModule,42 ItemPackModule,43 ItemBasicModule,44 SearchSimpleBarModule45 ],46 declarations: [47 SettleWageDetailComponent,48 SettleWageListComponent,49 SettleAuditComponent,50 SettleWageComponent,51 AuditListComponent,52 AuditDetailComponent,53 SettleDetailHeadComponent,54 SettleDetailCostComponent,55 // SettleDetailRecordComponent,56 SettleDetailVerifyComponent,57 SettleMaterialComponent,58 SettleMaterialOrderComponent,59 SettleMaterialWageComponent,60 SettleMaterialDetailComponent,61 // SettleDetailOrderComponent,62 // SettleDetailScheduleComponent,63 // SettleDetailDataComponent,64 SettleSetComponent,65 ]66})...
settleModal.js
Source:settleModal.js
1"use strict";2// Similar to the IOU creation modal - see createIOUModal.js for comments.3angular.module('demoAppModule').controller('SettleModalCtrl', function($http, $uibModalInstance, $uibModal, apiBaseURL, id) {4 const settleModal = this;5 settleModal.id = id;6 settleModal.form = {};7 settleModal.formError = false;8 settleModal.settle = () => {9 if (invalidFormInput()) {10 settleModal.formError = true;11 } else {12 settleModal.formError = false;13 const id = settleModal.id;14 const amount = settleModal.form.amount;15 const currency = settleModal.form.currency;16 $uibModalInstance.close();17 const issueIOUEndpoint =18 apiBaseURL +19 `settle-iou?id=${id}&amount=${amount}¤cy=${currency}`;20 $http.get(issueIOUEndpoint).then(21 (result) => settleModal.displayMessage(result),22 (result) => settleModal.displayMessage(result)23 );24 }25 };26 settleModal.displayMessage = (message) => {27 const settleMsgModal = $uibModal.open({28 templateUrl: 'settleMsgModal.html',29 controller: 'settleMsgModalCtrl',30 controllerAs: 'settleMsgModal',31 resolve: {32 message: () => message33 }34 });35 settleMsgModal.result.then(() => {}, () => {});36 };37 settleModal.cancel = () => $uibModalInstance.dismiss();38 function invalidFormInput() {39 return isNaN(settleModal.form.amount) || (settleModal.form.currency.length != 3);40 }41});42angular.module('demoAppModule').controller('settleMsgModalCtrl', function($uibModalInstance, message) {43 const settleMsgModal = this;44 settleMsgModal.message = message.data;...
Using AI Code Generation
1const { Synpress } = require('synthetixio-synpress');2const { SynthetixJs } = require('synthetixio-js');3const { ethers } = require('ethers');4const synpress = new Synpress();5const synjs = new SynthetixJs();6const { toBN } = ethers.utils;7const { SynthetixJs } = require('synthetixio-js');8const synjs = new SynthetixJs();9const { toBN } = ethers.utils;10const { SynthetixJs } = require('synthetixio-js');11const synjs = new SynthetixJs();12const { toBN } = ethers.utils;13const { SynthetixJs } = require('synthetixio-js');14const synjs = new SynthetixJs();15const { toBN } = ethers.utils;16const { SynthetixJs } = require('synthetixio-js');17const synjs = new SynthetixJs();18const { toBN } = ethers.utils;19const { SynthetixJs } = require('synthetixio-js');20const synjs = new SynthetixJs();21const { toBN } = ethers.utils;22const { SynthetixJs } = require('synthetixio-js');23const synjs = new SynthetixJs();24const { toBN } = ethers.utils;25const { SynthetixJs } = require('synthetixio-js');26const synjs = new SynthetixJs();27const { toBN } = ethers.utils;28const { SynthetixJs } = require('synthetixio-js');29const synjs = new SynthetixJs();30const { toBN } = ethers.utils;31const { SynthetixJs } = require('synthetixio-js');32const synjs = new SynthetixJs();33const { toBN } = ethers.utils;34const { SynthetixJs } = require('synthetixio-js');35const synjs = new SynthetixJs();36const { toBN } = ethers.utils;37const { SynthetixJs } = require('synthetixio-js');38const synjs = new SynthetixJs();39const { toBN } = ethers.utils;40const { SynthetixJs
Using AI Code Generation
1const { Synpress } = require('synthetixio-synpress');2const { SynthetixJs } = require('synthetix-js');3const { ethers } = require('ethers');4const { assert } = require('chai');5global.testData = {6};7describe('SynthetixJs test suite', () => {8 it('should get the SynthetixJs instance', async () => {9 global.testData.synthetixJs = new SynthetixJs({10 });11 });12 it('should get the Synpress instance', async () => {13 global.testData.synpress = new Synpress();14 });15 it('should get the provider', async () => {16 global.testData.provider = global.testData.synpress.provider;17 global.testData.signer = global.testData.provider.getSigner();18 global.testData.wallet = await global.testData.signer.getAddress();19 global.testData.account = ethers.Wallet.fromMnemonic(global.testData.wallet).getAddressString();20 });21 it('should get the SynthetixJs instance', async () => {22 global.testData.synthetixJs = new SynthetixJs({23 });24 });25 it('should get the Synpress instance', async () => {26 global.testData.synpress = new Synpress();27 });28 it('should get the
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!