dev
This commit is contained in:
parent
d0229e8fb2
commit
9b999fe6c6
|
|
@ -226,7 +226,7 @@ interface childCheck {
|
||||||
}
|
}
|
||||||
|
|
||||||
const addLine = (row: any) => {
|
const addLine = (row: any) => {
|
||||||
post('inventory/goods/getListByIds', {idList: row.selectList}).then((list: any) => {
|
post(API.Inventory.Goods.ListByIds, {idList: row.selectList}).then((list: any) => {
|
||||||
let children = [];
|
let children = [];
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = 0; i < list.length; i++) {
|
||||||
let inventoryGoods = list[i];
|
let inventoryGoods = list[i];
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ interface childCheck {
|
||||||
}
|
}
|
||||||
|
|
||||||
const addLine = (row: any) => {
|
const addLine = (row: any) => {
|
||||||
post('inventory/goods/getListByIds', {idList: row.selectList}).then((list: any) => {
|
post(API.Inventory.Goods.ListByIds, {idList: row.selectList}).then((list: any) => {
|
||||||
let children = [];
|
let children = [];
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = 0; i < list.length; i++) {
|
||||||
let inventoryGoods = list[i];
|
let inventoryGoods = list[i];
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ import {ref, defineEmits, defineProps, onMounted} from 'vue'
|
||||||
import {post} from "@/utils/request.ts";
|
import {post} from "@/utils/request.ts";
|
||||||
import {ElFormItem, ElMessage} from "element-plus";
|
import {ElFormItem, ElMessage} from "element-plus";
|
||||||
import Mask from "@/components/common/Mask.vue";
|
import Mask from "@/components/common/Mask.vue";
|
||||||
|
import {API} from "@/assets/config/API.ts";
|
||||||
|
|
||||||
const isGrant = defineModel()
|
const isGrant = defineModel()
|
||||||
const emit = defineEmits(['close'])
|
const emit = defineEmits(['close'])
|
||||||
|
|
@ -85,7 +86,7 @@ const grant = async () => {
|
||||||
ruleFormRef.value?.validate((valid: any) => {
|
ruleFormRef.value?.validate((valid: any) => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
data.value.vipId = props.info.id
|
data.value.vipId = props.info.id
|
||||||
post('vip/integral/add', data.value).then((res: any) => {
|
post(API.Patient.Integral.Add, data.value).then((res: any) => {
|
||||||
ElMessage.success('已发放')
|
ElMessage.success('已发放')
|
||||||
close()
|
close()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue