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