|
|
|
@ -211,6 +211,7 @@ import { mode } from 'crypto-js'
|
|
|
|
|
let contractNoFlag = true
|
|
|
|
|
// 切换约号控件
|
|
|
|
|
const toggleCNo = (model) => {
|
|
|
|
|
console.log(model)
|
|
|
|
|
if (model.contractNo) {
|
|
|
|
|
if (model.contractId) {
|
|
|
|
|
// 选择框切换成输入框
|
|
|
|
@ -218,12 +219,19 @@ import { mode } from 'crypto-js'
|
|
|
|
|
{ field: 'contractId', show: false },
|
|
|
|
|
{ field: 'contractNo', show: true }
|
|
|
|
|
])
|
|
|
|
|
setFieldsValue({
|
|
|
|
|
contractId: null,
|
|
|
|
|
contractNo: null
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
// 输入框切换成选择框
|
|
|
|
|
updateSchema([
|
|
|
|
|
{ field: 'contractId', show: true },
|
|
|
|
|
{ field: 'contractNo', show: false }
|
|
|
|
|
])
|
|
|
|
|
setFieldsValue({
|
|
|
|
|
contractNo: null
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// 默认是选择框
|
|
|
|
|