|
|
@ -73,13 +73,11 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 初始化方法
|
|
|
|
// 初始化方法
|
|
|
|
edit(record, loadData) {
|
|
|
|
edit(record, loadData) {
|
|
|
|
console.log(record)
|
|
|
|
|
|
|
|
this.data = loadData
|
|
|
|
this.data = loadData
|
|
|
|
this.visible = true
|
|
|
|
this.visible = true
|
|
|
|
BookingOrderGetFieldName().then(res => {
|
|
|
|
BookingOrderGetFieldName().then(res => {
|
|
|
|
let FieldNameList = []
|
|
|
|
let FieldNameList = []
|
|
|
|
Object.keys(res.data).forEach(item => {
|
|
|
|
Object.keys(res.data).forEach(item => {
|
|
|
|
console.log()
|
|
|
|
|
|
|
|
Object.keys(res.data[item]).forEach(item2 => {
|
|
|
|
Object.keys(res.data[item]).forEach(item2 => {
|
|
|
|
FieldNameList.push({
|
|
|
|
FieldNameList.push({
|
|
|
|
code: item2,
|
|
|
|
code: item2,
|
|
|
@ -89,7 +87,6 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.FieldNameList = FieldNameList
|
|
|
|
this.FieldNameList = FieldNameList
|
|
|
|
this.FieldNameList2 = FieldNameList
|
|
|
|
this.FieldNameList2 = FieldNameList
|
|
|
|
console.log(this.FieldNameList)
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
@ -97,11 +94,9 @@ export default {
|
|
|
|
code: record.code,
|
|
|
|
code: record.code,
|
|
|
|
remarks: record.remarks
|
|
|
|
remarks: record.remarks
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(this.form.getFieldsValue())
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSearch(value) {
|
|
|
|
handleSearch(value) {
|
|
|
|
console.log(value)
|
|
|
|
|
|
|
|
let Rdata = []
|
|
|
|
let Rdata = []
|
|
|
|
if (value) {
|
|
|
|
if (value) {
|
|
|
|
this.FieldNameList2.forEach(item => {
|
|
|
|
this.FieldNameList2.forEach(item => {
|
|
|
|