From f7e71c8a95fab08e4fb60e128370a282778dc201 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com>
Date: Fri, 9 Jan 2026 13:49:36 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ContractPurPng/components/createForm.vue | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/src/views/contract/ContractPurPng/components/createForm.vue b/src/views/contract/ContractPurPng/components/createForm.vue
index 4b210d2..6ebabc1 100644
--- a/src/views/contract/ContractPurPng/components/createForm.vue
+++ b/src/views/contract/ContractPurPng/components/createForm.vue
@@ -144,7 +144,7 @@
@@ -237,7 +237,6 @@
const curIdx = ref(null)
const { notification } = useMessage();
const { t } = useI18n();
- const hasDel = ref(false)
const formState = reactive({
approCode: 'WTJ',
typeCode: 'PP',
@@ -444,9 +443,6 @@
})
}
const deleteUpLoad = () => {
- if (dataListPoint.value[dataListPoint.value.length -1].id) {
- hasDel.value = true
- }
if (dataListPoint.value.length == 1) return
dataListPoint.value.pop()
}
@@ -500,6 +496,7 @@
dataListPoint.value[curIdx.value].pointDelyName = nameList.join(',')
dataListPoint.value[curIdx.value].lngContractPurPngPointSalesList = val || []
dataListPoint.value[curIdx.value].lngContractPurPngPointSalesList.forEach(v => {
+ v.id = ''
v.pointDelyCode = v.code
})
}
@@ -535,23 +532,18 @@
arr[i].qtyM3Month = Number(arr[i].qtyM3Month)*10000
arr[i].qtyM3Day = Number(arr[i].qtyM3Day)*10000
}
+ let arr1 = []
for(let i=0; i {
- v.hasDel = hasDel.value
v.pointUpCode = dataListPoint.value[i].pointUpCode
v.transSign = dataListPoint.value[i].transSign
})
}
- let arr1 = []
- dataListAppro.value.forEach(v=>{
- v.approId = ''
- arr1.concat(v.lngContractPurPngPointSalesList || [])
- })
let newArr = arr1.map(v=>v.pointDelyCode)
let codeList = dataListPoint.value.map(v =>v.pointUpCode)
const isRepeat=codeList.some((item,index,arr)=>arr.indexOf(item)!=index);