约号bug修复

frame
lijingjia 2 weeks ago
parent 8cfa756594
commit 1ba9b75c97

@ -360,6 +360,7 @@
//
OtherInfo.value.updateSchema(content)
RefbasicInfo.value.updateSchema(content)
RefbasicInfo.value.updateContractNo()
RefmailingInfo.value.updateSchemaL(content)
RefmailingInfo.value.updateSchemaR(content)
//

@ -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">

Loading…
Cancel
Save