lilu 2 years ago
commit b0a3715762

@ -50,3 +50,13 @@ export function BookingPrintTemplateGetPrintTemplateList(parameter) {
params: { PageNo: 1, PageSize: 999 }
})
}
/**
* 删除打印模板权限
*/
export function BookingPrintTemplateDeletePrinttemplateRight(parameter) {
return axios({
url: '/BookingPrintTemplate/DeletePrinttemplateRight',
method: 'get',
params: parameter
})
}

@ -28,7 +28,7 @@
<button @click="openModel('cutOff')" :style="{ marginLeft: '4px' }">
<span class="iconfont icon-daibanshixiang"></span>截单
</button>
<button><span class="iconfont icon-xiugai" :style="{ marginLeft: '8px' }"></span>更改及退舱</button>
<button :style="{ marginLeft: '14px' }"><span class="iconfont icon-xiugai"></span>更改及退舱</button>
<button @click="openModel('vgm')"><span class="iconfont icon-dingdan"></span>VGM</button>
<button @click="openModel('paper')">
<span class="iconfont icon-zhizhishu" style="font-size:18px;"></span>下货纸
@ -1601,7 +1601,7 @@ export default {
}
}
.more-view-1 {
width: 265px;
width: 270px;
.iconfont {
color: #26b578;
}

@ -1,11 +1,7 @@
<template>
<div>
<a-card :bordered="false" :bodyStyle="tstyle">
<div
class="table-page-search-wrapper"
v-if="hasPerm('BookingTemplate:page')"
:class="advanced ? 'Open' : 'Close'"
>
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
<a-form layout="inline">
<a-row :gutter="48">
<a-col :md="18">
@ -58,6 +54,9 @@
<vxe-column title="操作" fixed="right" width="200" align="center">
<template #default="{ row }">
<vxe-button type="text" @click="$refs.editForm.edit(row)"></vxe-button>
<a-popconfirm title="是否确认删除?" ok-text="" cancel-text="" @confirm="confirm(row)">
<vxe-button type="text">删除</vxe-button>
</a-popconfirm>
</template>
</vxe-column>
</vxe-table>
@ -67,7 +66,11 @@
</div>
</template>
<script>
import { BookingTemplateGetPrinttemplateRightList, SysUserPage } from '@/api/modular/main/PrinttemplateRight'
import {
BookingTemplateGetPrinttemplateRightList,
BookingPrintTemplateDeletePrinttemplateRight,
SysUserPage
} from '@/api/modular/main/PrinttemplateRight'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
export default {
@ -101,9 +104,9 @@ export default {
dataIndex: 'typeName'
},
{
title: '户名称',
title: '户名称',
align: 'center',
dataIndex: 'tenantName'
dataIndex: 'userName'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
@ -121,6 +124,15 @@ export default {
this.init()
},
methods: {
confirm(e) {
this.FnDel(e)
},
FnDel(data) {
BookingPrintTemplateDeletePrinttemplateRight({ Ids: data.id }).then(res => {
this.$message.success('删除成功')
this.FnGetData()
})
},
toggleAdvanced() {
this.advanced = !this.advanced
},

Loading…
Cancel
Save