bug修复

This commit is contained in:
hongchao 2025-07-23 18:37:44 +08:00
parent effce51e87
commit ad6c165ab3
2 changed files with 8 additions and 8 deletions

View File

@ -397,7 +397,7 @@ const partTreeChange = (val, index) => {
}
//
const partItems = ref([{ partNum: '', partType: 0, partId: '', storageNum: ''}])
const partItems = ref([{ partNum: '', partType: 1, partId: '', storageNum: ''}])
const getPartItemData = async () => {
console.log("bbbbbbbbbbbbbbbbb",queryParams.value.ids)
@ -427,7 +427,7 @@ const getPartItemData = async () => {
}
}
const addPart = () => {
partItems.value.push({ partNum: '', partType: 0, partId: '', storageNum: '' })
partItems.value.push({ partNum: '', partType: 1, partId: '', storageNum: '' })
}
const delPart = (index) => {
if (partItems.value.length > 1) {
@ -453,7 +453,7 @@ const getSupplierListData = async () => {
}
getSupplierListData()
const partItemsMiddle = ref([
{ partName: '', supplierId: '', partNum: 0, partPrice: 0, partType: 0 },
{ partName: '', supplierId: '', partNum: 0, partPrice: 0, partType: 1 },
])
const addMidPart = () => {
partItemsMiddle.value.push({
@ -461,7 +461,7 @@ const addMidPart = () => {
supplierId: '',
partNum: 0,
partPrice: 0,
partType: 0,
partType: 1,
})
}
const delMidPart = (index) => {

View File

@ -373,7 +373,7 @@ getSupplierListData()
const formLeft = ref({
repairNum: 0,
})
const partItems = ref([{ partNum: '', partType: 0, partId: '', storageNum: ''}])
const partItems = ref([{ partNum: '', partType: 1, partId: '', storageNum: ''}])
const getPartItemData = async () => {
console.log("bbbbbbbbbbbbbbbbb",rowData.value.ids)
@ -407,7 +407,7 @@ const getPartItemData = async () => {
}
const addPart = () => {
partItems.value.push({ partNum: '', partType: 0, partId: '', storageNum: '' })
partItems.value.push({ partNum: '', partType: 1, partId: '', storageNum: '' })
}
const delPart = (index) => {
if (partItems.value.length > 1) {
@ -422,9 +422,9 @@ const formMiddle = ref({
supplierId: undefined,
repairNum: 0,
})
const partItemsMiddle = ref([{ partName: '', partNum: '', partPrice: '0', partType: 0 }])
const partItemsMiddle = ref([{ partName: '', partNum: '', partPrice: '0', partType: 1 }])
const addMidPart = () => {
partItemsMiddle.value.push({ partName: '', partNum: '', partPrice: '0', partType: 0 })
partItemsMiddle.value.push({ partName: '', partNum: '', partPrice: '0', partType: 1 })
}
const delMidPart = (index) => {
if (partItemsMiddle.value.length > 1) {