gaoluyang
2 天以前 35b0b44824aaeb6be31595f1d0a17380c90c1b89
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>
@@ -121,13 +112,9 @@
import { showToast } from 'vant'
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 +130,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 +164,6 @@
   uni.navigateTo({ url: '/pages/sales/receiptPayment/add' })
}
// 确认回款方式选择
const onPaymentTypeConfirm = (value) => {
   if (currentEditRow.value) {
      currentEditRow.value.receiptPaymentType = value.value
   }
   showPaymentType.value = false
}
onShow(() => {
   getList()
})