|
|
|
@ -5,7 +5,9 @@
|
|
|
|
|
<a-row class="HeaderBox" type="flex" :gutter="16">
|
|
|
|
|
<a-col>
|
|
|
|
|
<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="CutOff"></div>
|
|
|
|
|
<!-- <div class="nav" @click="handleSubmit">保存并新建</div>
|
|
|
|
@ -538,7 +540,11 @@
|
|
|
|
|
</vxe-column>
|
|
|
|
|
<vxe-column field="isHuanDan" title="是否还单" :edit-render="{}" fixed="right" width="100">
|
|
|
|
|
<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>
|
|
|
|
|
</vxe-column>
|
|
|
|
|
<vxe-column field="huanDanMan" title="还单人" :edit-render="{}" fixed="right" width="100">
|
|
|
|
@ -1394,20 +1400,50 @@ export default {
|
|
|
|
|
this.confirmLoading = false
|
|
|
|
|
})
|
|
|
|
|
} 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('新增')
|
|
|
|
|
BookingOrderSFSave(values)
|
|
|
|
|
.then(res => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success(res.message)
|
|
|
|
|
// this.type = 'Details'
|
|
|
|
|
// this.id = res.data.id
|
|
|
|
|
// this.WebId = ''
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// this.form.setFieldsValue({
|
|
|
|
|
// ...res.data
|
|
|
|
|
// })
|
|
|
|
|
// }, 100)
|
|
|
|
|
this.type = 'Details'
|
|
|
|
|
this.id = res.data.result.id
|
|
|
|
|
this.WebId = ''
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
...res.data
|
|
|
|
|
})
|
|
|
|
|
}, 100)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|