gaoluyang
6 天以前 adeb8b768926ed50a3fb0857f366d6a0308d2cc0
src/pages/sales/receiptPayment/index.vue
@@ -100,15 +100,6 @@
      <view class="no-data" v-else>
         <text>暂无回款数据</text>
      </view>
      <!-- 回款方式选择器 -->
      <van-popup v-model:show="showPaymentType" position="bottom">
         <van-picker
            :columns="receipt_payment_type"
            @confirm="onPaymentTypeConfirm"
            @cancel="showPaymentType = false"
         />
      </van-popup>
   </view>
</template>
@@ -118,16 +109,17 @@
   bindInvoiceNoRegPage,
} from '@/api/salesManagement/receiptPayment'
import useUserStore from '@/store/modules/user'
import { showToast } from 'vant'
const showToast = (message) => {
   uni.showToast({
      title: message,
      icon: 'none'
   })
}
import {onShow} from "@dcloudio/uni-app";
const userStore = useUserStore()
// 响应式数据
const tableData = ref([])
const tableLoading = ref(false)
const showPaymentType = ref(false)
const currentEditRow = ref(null)
// 查询参数设置为-1获取全部数据
const page = ref({
@@ -143,14 +135,6 @@
   customerContractNo: '',
   projectName: ''
})
// 回款方式选项
const receipt_payment_type = ref([
   { text: '现金', value: '1' },
   { text: '银行转账', value: '2' },
   { text: '支票', value: '3' },
   { text: '其他', value: '4' }
])
// 格式化数字
const formatNumber = (value) => {
@@ -185,13 +169,6 @@
   uni.navigateTo({ url: '/pages/sales/receiptPayment/add' })
}
// 确认回款方式选择
const onPaymentTypeConfirm = (value) => {
   if (currentEditRow.value) {
      currentEditRow.value.receiptPaymentType = value.value
   }
   showPaymentType.value = false
}
onShow(() => {
   getList()
})