gaoluyang
6 天以前 7a0ffb0048adeda9ebfbca1d0b525eb224c173e3
src/pages/procurementManagement/paymentEntry/index.vue
@@ -15,14 +15,14 @@
               />
            </view>
            <view class="filter-button" @click="getList">
               <u-icon name="search" size="24" color="#999"></u-icon>
               <up-icon name="search" size="24" color="#999"></up-icon>
            </view>
         </view>
         
         <!-- 筛选开关 -->
         <view class="switch-row">
            <text class="switch-label">不显示待付款为0</text>
            <u-switch v-model="searchForm.status" @change="getList" size="18"/>
            <van-switch v-model="searchForm.status" @change="getList" size="18"/>
         </view>
      </view>
@@ -35,12 +35,12 @@
               <view class="item-header">
                  <view class="item-left">
                     <view class="document-icon">
                        <u-icon name="file-text" size="16" color="#ffffff"></u-icon>
                        <up-icon name="file-text" size="16" color="#ffffff"></up-icon>
                     </view>
                     <text class="item-id">{{ item.purchaseContractNumber }}</text>
                  </view>
               </view>
               <u-divider></u-divider>
               <up-divider></up-divider>
               <view class="item-details">
                  <view class="detail-row">
                     <text class="detail-label">销售合同号</text>
@@ -70,7 +70,7 @@
               
               <!-- 操作按钮 -->
               <view class="action-buttons">
                  <u-button
                  <van-button
                     type="primary"
                     size="small"
                     class="action-btn"
@@ -78,7 +78,7 @@
                     @click="openForm('add', item)"
                  >
                     新增付款
                  </u-button>
                  </van-button>
               </view>
            </view>
         </view>
@@ -94,18 +94,9 @@
<script setup>
import { ref } from 'vue'
import useUserStore from '@/store/modules/user'
// 替换 Vant 的 toast
// import { showToast } from 'vant'
import { showToast } from 'vant'
import {onShow} from "@dcloudio/uni-app";
import {invoiceListPage} from "@/api/procurementManagement/procurementInvoiceLedger";
// 替换 toast 方法
const showToast = (message) => {
  uni.showToast({
    title: message,
    icon: 'none'
  })
}
// 响应式数据
const tableData = ref([])