|
@@ -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()
|