1.新增商品编辑
This commit is contained in:
@@ -58,6 +58,9 @@ import { clearNoNum } from '@/utils'
|
||||
|
||||
import scanModal from '@/components/payCard/scanModal.vue'
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useGlobal } from '@/store/global.js'
|
||||
|
||||
const global = useGlobal()
|
||||
|
||||
const store = useUser()
|
||||
|
||||
@@ -73,10 +76,6 @@ const props = defineProps({
|
||||
orderId: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
member: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -112,7 +111,7 @@ function payTypeChange(index, item) {
|
||||
if (item.payType == 'scanCode') {
|
||||
scanModalRef.value.show()
|
||||
}
|
||||
if (payList.value[payActive.value].payType == 'deposit' && !props.member.id) {
|
||||
if (payList.value[payActive.value].payType == 'deposit' && !global.orderMemberInfo.id) {
|
||||
scanModalRef.value.show()
|
||||
}
|
||||
}
|
||||
@@ -133,10 +132,10 @@ async function confirmOrder() {
|
||||
// } else {
|
||||
|
||||
// }
|
||||
if (props.member.id) {
|
||||
if (global.orderMemberInfo.id) {
|
||||
await accountPay({
|
||||
orderId: props.orderId,
|
||||
memberId: props.member.id,
|
||||
memberId: global.orderMemberInfo.id,
|
||||
memberAccount: ''
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user