|
@@ -228,7 +228,7 @@
|
|
</div>
|
|
</div>
|
|
</hc-new-dialog>
|
|
</hc-new-dialog>
|
|
<!-- 关联委托单 -->
|
|
<!-- 关联委托单 -->
|
|
- <LinkAssociation v-model="isLinksAssociation" :cid="contractId" @change="commissionChange" @close="isLinksAssociation = false" />
|
|
|
|
|
|
+ <LinkAssociation v-model="isLinksAssociation" :cid="contractId" :ids="ids" @change="commissionChange" @close="isLinksAssociation = false" />
|
|
|
|
|
|
<!-- 关联设备数据 -->
|
|
<!-- 关联设备数据 -->
|
|
<hc-new-dialog v-model="isLinkAcquisition" is-table is-footer-center title="关联设备数据" widths="80%" @close="linksAcquisitionClose">
|
|
<hc-new-dialog v-model="isLinkAcquisition" is-table is-footer-center title="关联设备数据" widths="80%" @close="linksAcquisitionClose">
|
|
@@ -268,6 +268,11 @@ const props = defineProps({
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
},
|
|
},
|
|
|
|
+ ids:{
|
|
|
|
+ type: [String, Number],
|
|
|
|
+ default: '', //委托单id
|
|
|
|
+
|
|
|
|
+ },
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
@@ -280,14 +285,14 @@ const nodeId = ref(props.nodeId)
|
|
const dataId = ref(props.dataId)
|
|
const dataId = ref(props.dataId)
|
|
const projectId = ref(props.projectId)
|
|
const projectId = ref(props.projectId)
|
|
const contractId = ref(props.contractId)
|
|
const contractId = ref(props.contractId)
|
|
-
|
|
|
|
|
|
+const ids = ref(props.ids)
|
|
const handleSave = () => {}
|
|
const handleSave = () => {}
|
|
const handleRefresh = () => {}
|
|
const handleRefresh = () => {}
|
|
const isShow = defineModel('modelValue', {
|
|
const isShow = defineModel('modelValue', {
|
|
default: false,
|
|
default: false,
|
|
})
|
|
})
|
|
const standardId = ref('')
|
|
const standardId = ref('')
|
|
-const ypList = ref([]) // 确保 ypList 已定义
|
|
|
|
|
|
+const ypList = ref(null) // 确保 ypList 已定义
|
|
const ypLoad = ref(false)
|
|
const ypLoad = ref(false)
|
|
const getYpList = async (id)=>{
|
|
const getYpList = async (id)=>{
|
|
ypLoad.value = true
|
|
ypLoad.value = true
|
|
@@ -297,7 +302,9 @@ const getYpList = async (id)=>{
|
|
//处理数据
|
|
//处理数据
|
|
ypLoad.value = false
|
|
ypLoad.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
- ypList.value = getArrValue(data)
|
|
|
|
|
|
+ ypList.value = getObjValue(data)
|
|
|
|
+ console.log(ypList.value, 'ypList')
|
|
|
|
+
|
|
|
|
|
|
} else {
|
|
} else {
|
|
ypList.value = []
|
|
ypList.value = []
|
|
@@ -318,13 +325,16 @@ watch(() => [
|
|
props.nodeId,
|
|
props.nodeId,
|
|
props.projectId,
|
|
props.projectId,
|
|
props.contractId,
|
|
props.contractId,
|
|
|
|
+ props.ids,
|
|
|
|
|
|
|
|
|
|
-], ([did, nid, pid, cid]) => {
|
|
|
|
|
|
+], ([did, nid, pid, cid, id]) => {
|
|
dataId.value = did
|
|
dataId.value = did
|
|
nodeId.value = nid
|
|
nodeId.value = nid
|
|
projectId.value = pid
|
|
projectId.value = pid
|
|
contractId.value = cid
|
|
contractId.value = cid
|
|
|
|
+ ids.value = id
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
})
|
|
})
|
|
@@ -494,8 +504,10 @@ const linkCommission = ()=>{
|
|
const isLinksAssociation = ref(false)
|
|
const isLinksAssociation = ref(false)
|
|
|
|
|
|
//委托单确定选择
|
|
//委托单确定选择
|
|
-const commissionChange = (id) => {
|
|
|
|
- console.log(id)
|
|
|
|
|
|
+const commissionChange = (id, data) => {
|
|
|
|
+
|
|
|
|
+ basicInfoData.value.entrustNo = data.specificationNumber
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -514,12 +526,9 @@ const linkAcquisitionClick = (item, index) => {
|
|
const linksAcquisitionLoading = ref(false)
|
|
const linksAcquisitionLoading = ref(false)
|
|
const linksAcquisitionClick = async () => {
|
|
const linksAcquisitionClick = async () => {
|
|
linksAcquisitionLoading.value = true
|
|
linksAcquisitionLoading.value = true
|
|
- const item = linkAcquisitionRow.value
|
|
|
|
- const index = linkAcquisitionIndex.value
|
|
|
|
- const dataId = linkAcquisitionLoadDataId.value
|
|
|
|
- listDatas.value[index].loadDataId = dataId
|
|
|
|
- formData.value[index].loadDataId = dataId
|
|
|
|
- await tableFormSaveClick(item, index)
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
linksAcquisitionClose()
|
|
linksAcquisitionClose()
|
|
}
|
|
}
|
|
|
|
|