|
|
@ -5,7 +5,9 @@
|
|
|
|
<a-row class="HeaderBox" type="flex" :gutter="16">
|
|
|
|
<a-row class="HeaderBox" type="flex" :gutter="16">
|
|
|
|
<a-col>
|
|
|
|
<a-col>
|
|
|
|
<div class="nav-box">
|
|
|
|
<div class="nav-box">
|
|
|
|
<div class="nav" @click="handleSubmit"><i class="iconfont icon-icon_baocun"></i>保存</div>
|
|
|
|
<div class="nav" @click="handleSubmit">
|
|
|
|
|
|
|
|
<i class="iconfont icon-icon_baocun"></i>{{ type == 'Details' ? '保存' : '新建' }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- <div class="nav" @click="handleSubmit">保存并关闭</div> -->
|
|
|
|
<!-- <div class="nav" @click="handleSubmit">保存并关闭</div> -->
|
|
|
|
<div class="CutOff"></div>
|
|
|
|
<div class="CutOff"></div>
|
|
|
|
<!-- <div class="nav" @click="handleSubmit">保存并新建</div>
|
|
|
|
<!-- <div class="nav" @click="handleSubmit">保存并新建</div>
|
|
|
@ -538,7 +540,11 @@
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
<vxe-column field="isHuanDan" title="是否还单" :edit-render="{}" fixed="right" width="100">
|
|
|
|
<vxe-column field="isHuanDan" title="是否还单" :edit-render="{}" fixed="right" width="100">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<vxe-input v-model="row.isHuanDan" type="text" transfer></vxe-input>
|
|
|
|
<!-- <vxe-input v-model="row.isHuanDan" type="text" transfer></vxe-input> -->
|
|
|
|
|
|
|
|
<vxe-select v-model="row.isHuanDan" transfer>
|
|
|
|
|
|
|
|
<vxe-option :value="0" label="是"></vxe-option>
|
|
|
|
|
|
|
|
<vxe-option :value="1" label="否"></vxe-option>
|
|
|
|
|
|
|
|
</vxe-select>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
<vxe-column field="huanDanMan" title="还单人" :edit-render="{}" fixed="right" width="100">
|
|
|
|
<vxe-column field="huanDanMan" title="还单人" :edit-render="{}" fixed="right" width="100">
|
|
|
@ -1394,20 +1400,50 @@ export default {
|
|
|
|
this.confirmLoading = false
|
|
|
|
this.confirmLoading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (this.type == 'Copy') {
|
|
|
|
|
|
|
|
if (values.detail && values.detail.length) {
|
|
|
|
|
|
|
|
let Arr = []
|
|
|
|
|
|
|
|
values.detail.forEach(item => {
|
|
|
|
|
|
|
|
delete item.id
|
|
|
|
|
|
|
|
delete item.createdUserId
|
|
|
|
|
|
|
|
delete item.createdTime
|
|
|
|
|
|
|
|
delete item.createdUserName
|
|
|
|
|
|
|
|
delete item.pId
|
|
|
|
|
|
|
|
delete item.tenantId
|
|
|
|
|
|
|
|
delete item.WebKey
|
|
|
|
|
|
|
|
Arr.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(Arr)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (values.business && values.business.length) {
|
|
|
|
|
|
|
|
let Arr = []
|
|
|
|
|
|
|
|
values.business.forEach(item => {
|
|
|
|
|
|
|
|
delete item.id
|
|
|
|
|
|
|
|
delete item.createdUserId
|
|
|
|
|
|
|
|
delete item.createdTime
|
|
|
|
|
|
|
|
delete item.createdUserName
|
|
|
|
|
|
|
|
delete item.pId
|
|
|
|
|
|
|
|
delete item.tenantId
|
|
|
|
|
|
|
|
delete item.WebKey
|
|
|
|
|
|
|
|
Arr.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(Arr)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
console.log('新增')
|
|
|
|
console.log('新增')
|
|
|
|
BookingOrderSFSave(values)
|
|
|
|
BookingOrderSFSave(values)
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
console.log(res)
|
|
|
|
console.log(res)
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success(res.message)
|
|
|
|
this.$message.success(res.message)
|
|
|
|
// this.type = 'Details'
|
|
|
|
this.type = 'Details'
|
|
|
|
// this.id = res.data.id
|
|
|
|
this.id = res.data.result.id
|
|
|
|
// this.WebId = ''
|
|
|
|
this.WebId = ''
|
|
|
|
// setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
// this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
// ...res.data
|
|
|
|
...res.data
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// }, 100)
|
|
|
|
}, 100)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|