소스 검색

中间计量

ZaiZai 1 년 전
부모
커밋
6fb9f7c71c

+ 1 - 1
src/config/index.json

@@ -1,6 +1,6 @@
 {
     "version": "20230607160059",
-    "target": "http://192.168.0.152:8090",
+    "target": "http://192.168.0.109:8090",
     "smsPhone": "",
     "vite": {
         "port": 5180,

+ 19 - 7
src/views/debit-pay/admin/components/middlepay/addBillBaseModal.vue

@@ -30,6 +30,10 @@ const props = defineProps({
         type: [String, Number],
         default: '',
     },
+    dataId: {
+        type: [String, Number],
+        default: '',
+    },
 })
 
 //事件
@@ -59,6 +63,12 @@ watch(() => [
     contractPeriodId.value = periodId
 }, { immediate: true })
 
+//监听数据
+const dataIds = ref({})
+watch(() => props.dataId, (id) => {
+    dataIds.value = id
+}, { deep: true })
+
 //监听
 watch(isShow, (val) => {
     if (val) {
@@ -82,10 +92,11 @@ const getTableData = async () => {
     tableData.value = []
     tableLoading.value = true
     const { data } = await mainApi.addFormList({
-        contractPeriodId: contractPeriodId.value,
-        contractId: cid.value,
-        ids: dataId.value,
-        nodeId: nodeId.value,
+        contractPeriodId: contractPeriodId.value ?? '',
+        contractId: cid.value ?? '',
+        ids: dataId.value ?? '',
+        nodeId: nodeId.value ?? '',
+        id: dataIds.value ?? '',
     })
     tableData.value = getArrValue(data)
     tableLoading.value = false
@@ -106,9 +117,10 @@ const modalSave = async () => {
     }
     const rowIds = arrToId(rows)
     const { data } = await mainApi.addResolveForm({
-        contractPeriodId: contractPeriodId.value,
-        contractId: cid.value,
-        nodeId: nodeId.value,
+        contractPeriodId: contractPeriodId.value ?? '',
+        contractId: cid.value ?? '',
+        nodeId: nodeId.value ?? '',
+        id: dataIds.value ?? '',
         ids: rowIds,
     })
     emit('finish', getArrValue(data))

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

@@ -125,7 +125,7 @@
     </hc-new-dialog>
 
     <!-- 添加分解清单 -->
-    <HcBillBaseModal v-model="addBillBaseModalShow" :ids="billBaseIds" :idn="nodeId" :period-id="baseForm.contractPeriodId" :contract-id="cid" @finish="finishChange" />
+    <HcBillBaseModal v-model="addBillBaseModalShow" :data-id="dataId" :ids="billBaseIds" :idn="nodeId" :period-id="baseForm.contractPeriodId" :contract-id="cid" @finish="finishChange" />
 
     <!-- 文件上传组件 -->
     <hc-upload-file