ZaiZai 7 meses atrás
pai
commit
2c9201d9a0

+ 5 - 2
src/config/index.json

@@ -1,7 +1,10 @@
 {
     "version": "20230607160059",
-    "target": "http://127.0.0.1:8090",
-    "target1": "http://39.108.216.210:8090",
+    "target1": "http://127.0.0.1:8090",
+    "target2": "http://192.168.0.125:8090",
+    "target": "http://39.108.216.210:8090",
+    "target4": "http://192.168.0.109:8090",
+    "target5": "http://192.168.0.102:8090",
     "smsPhone": "",
     "vite": {
         "port": 5180,

+ 10 - 3
src/views/debit-pay/start-work/components/order/dataModal.vue

@@ -10,7 +10,7 @@
                     label-width="auto"
                 >
                     <el-form-item label="计量期:" prop="meterPeriodId">
-                        <el-select v-model="baseForm.meterPeriodId" placeholder="选择计量期" filterable clearable disabled block>
+                        <el-select v-model="baseForm.meterPeriodId" placeholder="选择计量期" disabled filterable clearable block>
                             <el-option v-for="item in key1Data" :key="item.id" :label="item.periodName" :value="item.id" />
                         </el-select>
                     </el-form-item>
@@ -88,7 +88,6 @@ const props = defineProps({
 const emit = defineEmits(['finish', 'close'])
 const useAppState = useAppStore()
 const contractId = ref(useAppState.getContractId)
-const contractInfo = ref(useAppState.getContractInfo)
 const projectId = ref(useAppState.getProjectId)
 const infoData = ref(props.infoData)
 const ids = ref(props.ids)
@@ -97,6 +96,15 @@ const hProps = ref({
     url: 'filePdfUrl',
     name: 'fileName',
 })
+
+//监听
+const contractType = ref('')
+const contractInfo = ref(useAppState.getContractInfo)
+watch(() => useAppState.getContractInfo, (info) => {
+    contractInfo.value = info
+    contractType.value = info?.contractType
+}, { immediate: true, deep: true })
+
 const baseForm = ref({})
 const modalTitle = ref('开工预付款计量单新增')
 //获取开工预付款总额
@@ -144,7 +152,6 @@ watch(isShow, (val) => {
     }
 })
 
-const contractType = ref()
 const setDataApi = () => {
     getKey1Data()
     getStartAmountData()