|
|
|
@ -144,14 +144,13 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { BasicForm, useForm } from '/@/components/Form/index'
|
|
|
|
|
import { basicInfoFormSchema, basicInfoFormAllSchema } from './baseInfo.tsx'
|
|
|
|
|
import { ref, watch, onMounted, reactive, getCurrentInstance } from 'vue'
|
|
|
|
|
import { ref, watch, onMounted, reactive, nextTick } from 'vue'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
import emitter from '/@/utils/Bus'
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user'
|
|
|
|
|
import { mode } from 'crypto-js'
|
|
|
|
|
const userStore = useUserStore()
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
// 判断页面来源
|
|
|
|
@ -303,14 +302,16 @@ import { mode } from 'crypto-js'
|
|
|
|
|
formData.shippingSpaceType = v.shippingSpaceType
|
|
|
|
|
formData.bookingType = v.bookingType
|
|
|
|
|
formData.issuingWay = v.issuingWay
|
|
|
|
|
if (props.details.contractNo && !props.details.contractId) {
|
|
|
|
|
updateSchema([
|
|
|
|
|
{ field: 'contractId', show: false },
|
|
|
|
|
{ field: 'contractNo', show: true }
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
const updateContractNo = () => {
|
|
|
|
|
if (props.details.contractNo && !props.details.contractId) {
|
|
|
|
|
updateSchema([
|
|
|
|
|
{ field: 'contractId', show: false },
|
|
|
|
|
{ field: 'contractNo', show: true }
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
// if (source.value != 'edit') {
|
|
|
|
|
// basicInfoFormSchema.forEach(item => {
|
|
|
|
@ -339,6 +340,7 @@ import { mode } from 'crypto-js'
|
|
|
|
|
updateSchema,
|
|
|
|
|
validate,
|
|
|
|
|
formData,
|
|
|
|
|
updateContractNo
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less">
|
|
|
|
|