| | |
| | | <script setup> |
| | | import { ref, computed, onMounted } from 'vue'; |
| | | import { onShow } from '@dcloudio/uni-app'; |
| | | import {paymentLedgerList} from "@/api/procurementManagement/paymentLedger"; |
| | | import {paymentLedgerList, paymentRecordList} from "@/api/procurementManagement/paymentLedger"; |
| | | |
| | | // 客户信息 |
| | | const supplierId = ref(''); |
| | |
| | | return; |
| | | } |
| | | showLoadingToast('加载中...') |
| | | const param = { |
| | | supplierId: supplierId.value, |
| | | current: -1, |
| | | size: -1 |
| | | }; |
| | | paymentLedgerList(param).then((res) => { |
| | | tableData.value = res.data.records; |
| | | paymentRecordList(supplierId.value).then((res) => { |
| | | tableData.value = res.data; |
| | | closeToast() |
| | | }).catch(() => { |
| | | closeToast() |
| | |
| | | <span class="title-large">科技</span> |
| | | <span class="title-small">便捷生活</span> |
| | | </div> |
| | | <span class="bottom-text">芯导云(管理信息系统)</span> |
| | | <!-- <span class="bottom-text">芯导云(信息管理系统)</span>--> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | url = url.slice(0, -1) |
| | | config.url = url |
| | | } |
| | | // 记录请求参数 |
| | | console.log('请求发送参数:', { |
| | | url: (config.baseUrl || baseUrl) + config.url, |
| | | method: config.method || 'GET', |
| | | headers: config.header, |
| | | data: config.data |
| | | }) |
| | | return new Promise((resolve, reject) => { |
| | | uni.request({ |
| | | method: config.method || 'GET', |
| | |
| | | const code = data.code || 200 |
| | | // @ts-ignore |
| | | const msg: string = errorCode[code] || data.msg || errorCode['default'] |
| | | // 记录接收到的参数 |
| | | console.log('接收到的参数:', { |
| | | url: (config.baseUrl || baseUrl) + config.url, |
| | | code: code, |
| | | data: data |
| | | }) |
| | | if (code === 401) { |
| | | showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => { |
| | | if (res.confirm) { |