| | |
| | | > |
| | | <template #default="scope"> |
| | | <dict-tag |
| | | :options="checkout_payment" |
| | | :options="receipt_payment_type" |
| | | :value="scope.row.paymentMethod" |
| | | /> |
| | | </template> |
| | |
| | | :disabled="operationType === 'view'" |
| | | > |
| | | <el-option |
| | | v-for="item in checkout_payment" |
| | | v-for="item in receipt_payment_type" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | const route = useRoute(); |
| | | const userStore = useUserStore(); |
| | | const { proxy } = getCurrentInstance(); |
| | | const { tax_rate, checkout_payment } = proxy.useDict("tax_rate", "checkout_payment"); |
| | | const { tax_rate, receipt_payment_type } = proxy.useDict("tax_rate", "receipt_payment_type"); |
| | | const tableData = ref([]); |
| | | const productData = ref([]); |
| | | const selectedRows = ref([]); |
| | |
| | | // 格式化日期 |
| | | const formatDate = (dateString) => { |
| | | if (!dateString) return getCurrentDate(); |
| | | return dayjs(dateString).format("YYYY/MM/DD HH:mm:ss"); |
| | | return dayjs(dateString).format("YYYY/MM/DD"); |
| | | }; |
| | | // 格式化日期时间 |
| | | const formatDateTime = (date) => { |
| | | const year = date.getFullYear(); |
| | | const month = String(date.getMonth() + 1).padStart(2, "0"); |
| | | const day = String(date.getDate()).padStart(2, "0"); |
| | | const hours = String(date.getHours()).padStart(2, "0"); |
| | | const minutes = String(date.getMinutes()).padStart(2, "0"); |
| | | const seconds = String(date.getSeconds()).padStart(2, "0"); |
| | | return `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`; |
| | | return `${year}/${month}/${day}`; |
| | | }; |
| | | // 计算产品总数量 |
| | | const getTotalQuantity = (products) => { |