ZaiZai 7 months ago
parent
commit
da06a85799

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240805111111"
+  "value": "20240807103505"
 }

+ 8 - 0
src/api/modules/debit-pay/admin/middlepay.js

@@ -121,4 +121,12 @@ export default {
             params: form,
         }, false)
     },
+    //新增时获取计量单元关联的质检节点已审批的资料
+    async addGetWbsFiles(nodeId) {
+        return HcApi({
+            url: '/api/blade-meter/middleMeterApply/addGetWbsFiles',
+            method: 'get',
+            params: { nodeId },
+        }, false)
+    },
 }

+ 2 - 2
src/config/index.json

@@ -1,8 +1,8 @@
 {
     "version": "20230607160059",
     "target1": "http://127.0.0.1:8090",
-    "target2": "http://192.168.0.125:8090",
-    "target": "http://39.108.216.210:8090",
+    "target": "http://192.168.0.125:8090",
+    "target2": "http://39.108.216.210:8090",
     "target4": "http://192.168.0.109:8090",
     "target5": "http://192.168.0.102:8090",
     "socket": "wss://measure.hczcxx.cn/websocket",

+ 7 - 1
src/views/debit-pay/admin/components/middlepay/addModal.vue

@@ -179,7 +179,6 @@
 
 <script setup>
 import { nextTick, ref, watch } from 'vue'
-
 import { isNumberReg, keepdecimal } from '~uti/tools'
 import HcBillBaseModal from './addBillBaseModal.vue'
 import qualityRleation from './qualityRleation.vue'
@@ -394,6 +393,7 @@ const treeNodeTap = ({ data, keys }) => {
     ischangeByGetNode.value = false
     getNodeDivide(data.id)
     getCurrentNodeAllFormData(data.id)
+    getGetWbsFiles(data.id)
 }
 
 //获取工程划分
@@ -410,6 +410,12 @@ const getNodeDivide = async (nodeId) => {
     })
 }
 
+//获取附件
+const getGetWbsFiles = async (id) => {
+    const { data } = await mainApi.addGetWbsFiles(id)
+    baseForm.value.fileList = getArrValue(data)
+}
+
 //获取变更令
 const ischangeByGetNode = ref(false)
 const getNodeToken = async () => {