pull/1/head
张同海 2 years ago
parent a3210a6877
commit 17589ab6f5

@ -38,7 +38,18 @@ export function DjyEdiSettingEdit(parameter) {
data: parameter
})
}
/**
* 保存EDI参数设置
*
* @author Myshipping
*/
export function DjyEdiSettingSave(parameter) {
return axios({
url: '/DjyEdiSetting/save',
method: 'post',
data: parameter
})
}
/**
* 删除EDI参数设置
*
@ -51,3 +62,15 @@ export function DjyEdiSettingDelete(parameter) {
data: parameter
})
}
/**
* 设置启用启用后同船司同发送类型的其他EDI通道会被取消启用
*
* @author Myshipping
*/
export function DjyEdiSettingSetEnable(parameter) {
return axios({
url: '/DjyEdiSetting/SetEnable',
method: 'post',
params: parameter
})
}

@ -188,7 +188,7 @@
</template>
<script>
import { DjyEdiSettingAdd } from '@/api/modular/main/EDIParameterSettingService'
import { DjyEdiSettingSave } from '@/api/modular/main/EDIParameterSettingService'
import { SysTenantPage } from '@/api/modular/main/bookingprinttemplate'
import { commondbCarrierlist } from '@/api/modular/main/CommondbPortloadlist'
export default {
@ -313,7 +313,7 @@ export default {
values.ediname = item.name
}
})
DjyEdiSettingAdd(values)
DjyEdiSettingSave(values)
.then(res => {
if (res.success) {
this.$message.success('新增成功')

@ -188,7 +188,7 @@
</template>
<script>
import { DjyEdiSettingEdit } from '@/api/modular/main/EDIParameterSettingService'
import { DjyEdiSettingSave } from '@/api/modular/main/EDIParameterSettingService'
import { SysTenantPage } from '@/api/modular/main/bookingprinttemplate'
import { commondbCarrierlist } from '@/api/modular/main/CommondbPortloadlist'
export default {
@ -296,7 +296,7 @@ export default {
})
// console.log(this.form, values.id)
let data = { ...values, id: this.data.id }
DjyEdiSettingEdit(data)
DjyEdiSettingSave(data)
.then(res => {
if (res.success) {
this.$message.success('编辑成功')

@ -90,8 +90,12 @@
<span v-else>{{ row[item.dataIndex] }}</span>
</template>
</vxe-column>
<vxe-column title="操作" fixed="right" width="200" align="center">
<vxe-column title="操作" fixed="right" width="240" align="center">
<template #default="{ row }">
<vxe-button type="text" class="CsButText" disabled v-if="row.enableFlag"></vxe-button>
<vxe-button type="text" class="CsButText CsButTextSu" @click="FnDjyEdiSettingSetEnable(row)" v-else>
启用
</vxe-button>
<vxe-button type="text" @click="$refs.addForm.copy(row)"><a-icon type="copy"/></vxe-button>
<vxe-button type="text" @click="$refs.editForm.edit(row)"><a-icon type="form"/></vxe-button>
<a-popconfirm
@ -124,7 +128,11 @@
</div>
</template>
<script>
import { DjyEdiSettingPage, DjyEdiSettingDelete } from '@/api/modular/main/EDIParameterSettingService'
import {
DjyEdiSettingPage,
DjyEdiSettingDelete,
DjyEdiSettingSetEnable
} from '@/api/modular/main/EDIParameterSettingService'
import { SysTenantPage } from '@/api/modular/main/bookingprinttemplate'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -313,6 +321,18 @@ export default {
})
},
methods: {
FnDjyEdiSettingSetEnable(data) {
console.log(data)
DjyEdiSettingSetEnable({ id: data.id }).then(res => {
if (res.success) {
this.$message.success('启用成功')
this.FnGetData()
} else {
this.$message.error(`启用失败,${res.message}`)
}
})
},
TenantHandleSearch(data) {
SysTenantPage({ name: data }).then(res => {
this.SysTenantData = res.data.rows
@ -430,4 +450,10 @@ button {
.ant-input:placeholder-shown {
height: 32px;
}
.CsButText {
font-weight: bold;
}
.CsButTextSu {
color: #82c93d !important;
}
</style>

Loading…
Cancel
Save