gaoluyang
15 小时以前 7de165ce3fc2318681ed66494fb6da9fd700417b
供应商往来页面接口修改
已修改3个文件
26 ■■■■■ 文件已修改
src/pages/procurementManagement/paymentLedger/detail.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/splash.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.ts 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/procurementManagement/paymentLedger/detail.vue
@@ -61,7 +61,7 @@
<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('');
@@ -112,13 +112,8 @@
        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()
src/pages/splash.vue
@@ -4,7 +4,7 @@
          <span class="title-large">科技</span>
          <span class="title-small">便捷生活</span>
        </div>
        <span class="bottom-text">芯导云(管理信息系统)</span>
<!--        <span class="bottom-text">芯导云(信息管理系统)</span>-->
  </div>
</template>
src/utils/request.ts
@@ -21,6 +21,13 @@
    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',
@@ -41,6 +48,12 @@
      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) {