|
|
@ -10,17 +10,12 @@
|
|
|
|
<span class="iconfont icon-shujuyingshe"></span>
|
|
|
|
<span class="iconfont icon-shujuyingshe"></span>
|
|
|
|
合票
|
|
|
|
合票
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<a-upload
|
|
|
|
<a-upload :customRequest="customRequest" :multiple="false"
|
|
|
|
:customRequest="customRequest"
|
|
|
|
|
|
|
|
:multiple="false"
|
|
|
|
|
|
|
|
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
|
|
|
|
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
|
|
|
|
:showUploadList="false"
|
|
|
|
:showUploadList="false" name="file">
|
|
|
|
name="file"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button size="mini" type="link">
|
|
|
|
<a-button size="mini" type="link">
|
|
|
|
<span class="iconfont icon-a-17Fdaoru"></span>
|
|
|
|
<span class="iconfont icon-a-17Fdaoru"></span>
|
|
|
|
导入</a-button
|
|
|
|
导入</a-button>
|
|
|
|
>
|
|
|
|
|
|
|
|
</a-upload>
|
|
|
|
</a-upload>
|
|
|
|
<a-button type="link" @click="handleSuport" :loading="loadingExport" size="mini">
|
|
|
|
<a-button type="link" @click="handleSuport" :loading="loadingExport" size="mini">
|
|
|
|
<span class="iconfont icon-jiantouxia"></span>
|
|
|
|
<span class="iconfont icon-jiantouxia"></span>
|
|
|
@ -36,12 +31,7 @@
|
|
|
|
<span class="iconfont icon-jiahao2fill"></span>
|
|
|
|
<span class="iconfont icon-jiahao2fill"></span>
|
|
|
|
新增
|
|
|
|
新增
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<a-popconfirm
|
|
|
|
<a-popconfirm title="确定删除吗?" ok-text="确定" cancel-text="取消" @confirm="handleDeleteAll">
|
|
|
|
title="确定删除吗?"
|
|
|
|
|
|
|
|
ok-text="确定"
|
|
|
|
|
|
|
|
cancel-text="取消"
|
|
|
|
|
|
|
|
@confirm="handleDeleteAll"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button type="link" size="mini">
|
|
|
|
<a-button type="link" size="mini">
|
|
|
|
<span class="iconfont icon-shanchu2"></span>
|
|
|
|
<span class="iconfont icon-shanchu2"></span>
|
|
|
|
删除
|
|
|
|
删除
|
|
|
@ -67,102 +57,67 @@
|
|
|
|
<span>{{ record.shipRateTotalCurrency }} {{ record.shipRateTotalAmount }}</span>
|
|
|
|
<span>{{ record.shipRateTotalCurrency }} {{ record.shipRateTotalAmount }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="column.dataIndex == 'iS_CANCELLATION'">
|
|
|
|
<template v-if="column.dataIndex == 'iS_CANCELLATION'">
|
|
|
|
<BulbOutlined
|
|
|
|
<BulbOutlined v-if="record.iS_CANCELLATION" style="color: red; font-size: 16px"
|
|
|
|
v-if="record.iS_CANCELLATION"
|
|
|
|
:title="record.cancellatioN_DATE" />
|
|
|
|
style="color: red; font-size: 16px"
|
|
|
|
|
|
|
|
:title="record.cancellatioN_DATE"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="column.dataIndex == 'isRecvBC'">
|
|
|
|
<template v-if="column.dataIndex == 'isRecvBC'">
|
|
|
|
<BulbFilled
|
|
|
|
<BulbFilled style="color: green; font-size: 16px" :title="record.lstRecvBCDate" v-if="record.isRecvBC" />
|
|
|
|
style="color: green; font-size: 16px"
|
|
|
|
|
|
|
|
:title="record.lstRecvBCDate"
|
|
|
|
|
|
|
|
v-if="record.isRecvBC"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="column.dataIndex == 'labelList'">
|
|
|
|
<template v-if="column.dataIndex == 'labelList'">
|
|
|
|
<div @click="handleLabelBind(record)" style="min-width: 200px; min-height: 15px">
|
|
|
|
<div @click="handleLabelBind(record)" style="min-width: 200px; min-height: 15px">
|
|
|
|
<a-tag
|
|
|
|
<a-tag style="color: black !important; font-weight: bold; cursor: pointer" :color="item.color"
|
|
|
|
style="color: black !important; font-weight: bold; cursor: pointer"
|
|
|
|
@click="handleLabelBind(record)" v-for="(item, index) in record.labelList" :key="index">{{ item.name
|
|
|
|
:color="item.color"
|
|
|
|
}}</a-tag>
|
|
|
|
@click="handleLabelBind(record)"
|
|
|
|
|
|
|
|
v-for="(item, index) in record.labelList"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
>{{ item.name }}</a-tag
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="column.dataIndex == 'isRecvBKCancel'">
|
|
|
|
<template v-if="column.dataIndex == 'isRecvBKCancel'">
|
|
|
|
<BulbFilled
|
|
|
|
<BulbFilled style="color: red; font-size: 16px" :title="record.lstRecvBCDate" v-if="record.isRecvBKCancel" />
|
|
|
|
style="color: red; font-size: 16px"
|
|
|
|
|
|
|
|
:title="record.lstRecvBCDate"
|
|
|
|
|
|
|
|
v-if="record.isRecvBKCancel"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="column.dataIndex == 'isShipperOwned'">
|
|
|
|
<template v-if="column.dataIndex == 'isShipperOwned'">
|
|
|
|
<CheckCircleFilled v-if="record.isShipperOwned" style="color: green; font-size: 16px" />
|
|
|
|
<CheckCircleFilled v-if="record.isShipperOwned" style="color: green; font-size: 16px" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
|
<TableAction
|
|
|
|
<TableAction :actions="[
|
|
|
|
:actions="[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
icon: 'clarity:note-edit-line',
|
|
|
|
icon: 'clarity:note-edit-line',
|
|
|
|
tooltip: '编辑',
|
|
|
|
tooltip: '编辑',
|
|
|
|
onClick: () => {
|
|
|
|
onClick: () => {
|
|
|
|
handleEdit(record)
|
|
|
|
handleEdit(record)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
},
|
|
|
|
icon: 'ant-design:delete-outlined',
|
|
|
|
{
|
|
|
|
tooltip: '删除',
|
|
|
|
icon: 'ant-design:delete-outlined',
|
|
|
|
popConfirm: {
|
|
|
|
tooltip: '删除',
|
|
|
|
title: '是否要删除?',
|
|
|
|
popConfirm: {
|
|
|
|
okText: '是',
|
|
|
|
title: '是否要删除?',
|
|
|
|
cancelText: '否',
|
|
|
|
okText: '是',
|
|
|
|
confirm: handleDelete.bind(null, record),
|
|
|
|
cancelText: '否',
|
|
|
|
},
|
|
|
|
confirm: handleDelete.bind(null, record),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
},
|
|
|
|
icon: 'ant-design:profile-outlined',
|
|
|
|
{
|
|
|
|
tooltip: '生成订舱',
|
|
|
|
icon: 'ant-design:profile-outlined',
|
|
|
|
onClick: () => {
|
|
|
|
tooltip: '生成订舱',
|
|
|
|
handleOpenSlot(record)
|
|
|
|
onClick: () => {
|
|
|
|
},
|
|
|
|
handleOpenSlot(record)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]"
|
|
|
|
},
|
|
|
|
/>
|
|
|
|
]" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</BasicTable>
|
|
|
|
</BasicTable>
|
|
|
|
<a-modal
|
|
|
|
<a-modal width="800px" @ok="handleSubmitLabel" :visible="visible" title="分配标签" @cancel="visible = false">
|
|
|
|
width="800px"
|
|
|
|
|
|
|
|
@ok="handleSubmitLabel"
|
|
|
|
|
|
|
|
:visible="visible"
|
|
|
|
|
|
|
|
title="分配标签"
|
|
|
|
|
|
|
|
@cancel="visible = false"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-spin :spinning="labelLoad">
|
|
|
|
<a-spin :spinning="labelLoad">
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<div
|
|
|
|
<div class="items" v-for="(serive, sindex) in labelList" :key="sindex" @click="handleClickLable(sindex)"
|
|
|
|
class="items"
|
|
|
|
:class="{ active: serive.isActive }">
|
|
|
|
v-for="(serive, sindex) in labelList"
|
|
|
|
|
|
|
|
:key="sindex"
|
|
|
|
|
|
|
|
@click="handleClickLable(sindex)"
|
|
|
|
|
|
|
|
:class="{ active: serive.isActive }"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ serive.name }}
|
|
|
|
{{ serive.name }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
<generationModal ref="generation" @register="registerModal"> </generationModal>
|
|
|
|
<generationModal ref="generation" @register="registerModal"> </generationModal>
|
|
|
|
<a-modal
|
|
|
|
<a-modal title="多提单号查询" :width="400" :visible="moreFlag" @ok="moreNumSubmit" @cancel="moreFlag = false">
|
|
|
|
title="多提单号查询"
|
|
|
|
|
|
|
|
:width="400"
|
|
|
|
|
|
|
|
:visible="moreFlag"
|
|
|
|
|
|
|
|
@ok="moreNumSubmit"
|
|
|
|
|
|
|
|
@cancel="moreFlag = false"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<a-textarea v-model:value="moreNumVal" style="height: 200px" />
|
|
|
|
<a-textarea v-model:value="moreNumVal" style="height: 200px" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -170,315 +125,315 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup name="舱位台账">
|
|
|
|
<script lang="ts" setup name="舱位台账">
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
BookingSlotPage,
|
|
|
|
BookingSlotPage,
|
|
|
|
BookingLabelList,
|
|
|
|
BookingLabelList,
|
|
|
|
BookingLabelBind,
|
|
|
|
BookingLabelBind,
|
|
|
|
GetMergeList,
|
|
|
|
GetMergeList,
|
|
|
|
ImportSlotFromFile,
|
|
|
|
ImportSlotFromFile,
|
|
|
|
PrintOrder,
|
|
|
|
PrintOrder,
|
|
|
|
BookingSlotDelete,
|
|
|
|
BookingSlotDelete,
|
|
|
|
} from './api'
|
|
|
|
} from './api'
|
|
|
|
import { reactive, ref, h, onMounted } from 'vue'
|
|
|
|
import { reactive, ref, h, onMounted } from 'vue'
|
|
|
|
import { columns, searchFormSchema, FeeStatus } from './columns'
|
|
|
|
import { columns, searchFormSchema, FeeStatus } from './columns'
|
|
|
|
import { BulbFilled, CheckCircleFilled, BulbOutlined } from '@ant-design/icons-vue'
|
|
|
|
import { BulbFilled, CheckCircleFilled, BulbOutlined } from '@ant-design/icons-vue'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import generationModal from '../generation/index.vue'
|
|
|
|
import generationModal from '../generation/index.vue'
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
import { useMessage } from '../../../hooks/web/useMessage'
|
|
|
|
import { useMessage } from '../../../hooks/web/useMessage'
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
const go = useGo()
|
|
|
|
const go = useGo()
|
|
|
|
const queryStr = ref({})
|
|
|
|
const queryStr = ref({})
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
const [
|
|
|
|
const [
|
|
|
|
registerTable,
|
|
|
|
registerTable,
|
|
|
|
{ reload, setLoading, getForm, getSelectRows, setProps, setSelectedRowKeys },
|
|
|
|
{ reload, setLoading, getForm, getSelectRows, setProps, setSelectedRowKeys },
|
|
|
|
] = useTable({
|
|
|
|
] = useTable({
|
|
|
|
title: '',
|
|
|
|
title: '',
|
|
|
|
api: async (p) => {
|
|
|
|
api: async (p) => {
|
|
|
|
const res: API.DataResult = await BookingSlotPage(p)
|
|
|
|
const res: API.DataResult = await BookingSlotPage(p)
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
const arr = res.data
|
|
|
|
const arr = res.data
|
|
|
|
for (let i = arr.length - 1; i >= 0; i--) {
|
|
|
|
for (let i = arr.length - 1; i >= 0; i--) {
|
|
|
|
if (arr[i].bookingSlotSaleInfoList && arr[i].bookingSlotSaleInfoList.length > 1) {
|
|
|
|
if (arr[i].bookingSlotSaleInfoList && arr[i].bookingSlotSaleInfoList.length > 1) {
|
|
|
|
arr[i].bookingSlotSaleInfoList.forEach((ite, index) => {
|
|
|
|
arr[i].bookingSlotSaleInfoList.forEach((ite, index) => {
|
|
|
|
const data = JSON.parse(JSON.stringify(arr[i]))
|
|
|
|
const data = JSON.parse(JSON.stringify(arr[i]))
|
|
|
|
delete data.bookingSlotSaleInfoList
|
|
|
|
delete data.bookingSlotSaleInfoList
|
|
|
|
data.isRemark = true
|
|
|
|
data.isRemark = true
|
|
|
|
data.dzmarkLoading = false
|
|
|
|
data.dzmarkLoading = false
|
|
|
|
if (index === 0) {
|
|
|
|
if (index === 0) {
|
|
|
|
data.isSPan = arr[i].bookingSlotSaleInfoList.length
|
|
|
|
data.isSPan = arr[i].bookingSlotSaleInfoList.length
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
data.isSPan = 0
|
|
|
|
data.isSPan = 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
arr.push({
|
|
|
|
arr.push({
|
|
|
|
...ite,
|
|
|
|
...ite,
|
|
|
|
...data,
|
|
|
|
...data,
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
arr.splice(i, 1)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
arr.splice(i, 1)
|
|
|
|
if (arr[i].bookingSlotSaleInfoList && arr[i].bookingSlotSaleInfoList.length == 1) {
|
|
|
|
|
|
|
|
arr[i].op = arr[i].bookingSlotSaleInfoList[0].op
|
|
|
|
|
|
|
|
arr[i].customerName = arr[i].bookingSlotSaleInfoList[0].customerName
|
|
|
|
|
|
|
|
arr[i].custService = arr[i].bookingSlotSaleInfoList[0].custService
|
|
|
|
|
|
|
|
arr[i].saleTime = arr[i].bookingSlotSaleInfoList[0].saleTime
|
|
|
|
|
|
|
|
arr[i].sellingPrice = arr[i].bookingSlotSaleInfoList[0].sellingPrice
|
|
|
|
|
|
|
|
arr[i].goodsName = arr[i].bookingSlotSaleInfoList[0].goodsName
|
|
|
|
|
|
|
|
arr[i].shipper = arr[i].bookingSlotSaleInfoList[0].shipper
|
|
|
|
|
|
|
|
arr[i].sale = arr[i].bookingSlotSaleInfoList[0].sale
|
|
|
|
|
|
|
|
arr[i].business = arr[i].bookingSlotSaleInfoList[0].business
|
|
|
|
|
|
|
|
arr[i].doc = arr[i].bookingSlotSaleInfoList[0].doc
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
arr[i].isRemark = true
|
|
|
|
|
|
|
|
arr[i].dzmarkLoading = false
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setProps({
|
|
|
|
if (arr[i].bookingSlotSaleInfoList && arr[i].bookingSlotSaleInfoList.length == 1) {
|
|
|
|
showIndexColumn: false,
|
|
|
|
arr[i].op = arr[i].bookingSlotSaleInfoList[0].op
|
|
|
|
}),
|
|
|
|
arr[i].customerName = arr[i].bookingSlotSaleInfoList[0].customerName
|
|
|
|
resolve({ data: arr, total: res.count })
|
|
|
|
arr[i].custService = arr[i].bookingSlotSaleInfoList[0].custService
|
|
|
|
optionsStore.getOptionsByCode('GetClientPortSelectList')
|
|
|
|
arr[i].saleTime = arr[i].bookingSlotSaleInfoList[0].saleTime
|
|
|
|
})
|
|
|
|
arr[i].sellingPrice = arr[i].bookingSlotSaleInfoList[0].sellingPrice
|
|
|
|
},
|
|
|
|
arr[i].goodsName = arr[i].bookingSlotSaleInfoList[0].goodsName
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
arr[i].shipper = arr[i].bookingSlotSaleInfoList[0].shipper
|
|
|
|
queryStr.value = formatParams(p)
|
|
|
|
arr[i].sale = arr[i].bookingSlotSaleInfoList[0].sale
|
|
|
|
return formatParams(p)
|
|
|
|
arr[i].business = arr[i].bookingSlotSaleInfoList[0].business
|
|
|
|
},
|
|
|
|
arr[i].doc = arr[i].bookingSlotSaleInfoList[0].doc
|
|
|
|
columns,
|
|
|
|
}
|
|
|
|
formConfig: {
|
|
|
|
arr[i].isRemark = true
|
|
|
|
labelWidth: 120,
|
|
|
|
arr[i].dzmarkLoading = false
|
|
|
|
schemas: searchFormSchema,
|
|
|
|
|
|
|
|
useAdvancedSearch: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
isTreeTable: false,
|
|
|
|
|
|
|
|
pagination: true,
|
|
|
|
|
|
|
|
striped: true,
|
|
|
|
|
|
|
|
useSearchForm: true,
|
|
|
|
|
|
|
|
showTableSetting: true,
|
|
|
|
|
|
|
|
bordered: true,
|
|
|
|
|
|
|
|
showIndexColumn: true,
|
|
|
|
|
|
|
|
rowKey: 'id',
|
|
|
|
|
|
|
|
indexColumnProps: {
|
|
|
|
|
|
|
|
width: 60,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
canResize: true,
|
|
|
|
|
|
|
|
resizeHeightOffset: 35,
|
|
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const generation = ref('')
|
|
|
|
|
|
|
|
function handleOpenSlot(row) {
|
|
|
|
|
|
|
|
openModal(true, { type: 'cabin', row: row })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleRowclick(record, index, event) {
|
|
|
|
|
|
|
|
console.log(record, index, event)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handledbclick(record) {
|
|
|
|
|
|
|
|
go(`/CabinManagementDetail?type=edit&id=${record.id}`)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleDelete(row) {
|
|
|
|
|
|
|
|
setLoading(true)
|
|
|
|
|
|
|
|
BookingSlotDelete([row.id]).then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
createMessage.error(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setLoading(false)
|
|
|
|
setProps({
|
|
|
|
|
|
|
|
showIndexColumn: false,
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
resolve({ data: arr, total: res.count })
|
|
|
|
|
|
|
|
optionsStore.getOptionsByCode('GetClientPortSelectList')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
const labelIdArray = ref([])
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
const labelList = ref([]) as any
|
|
|
|
queryStr.value = formatParams(p)
|
|
|
|
const labelLoad = ref(false)
|
|
|
|
return formatParams(p)
|
|
|
|
const visible = ref(false)
|
|
|
|
},
|
|
|
|
function handleLabel() {
|
|
|
|
columns,
|
|
|
|
const select = getSelectRows()
|
|
|
|
formConfig: {
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
labelWidth: 120,
|
|
|
|
return item.id
|
|
|
|
schemas: searchFormSchema,
|
|
|
|
})
|
|
|
|
useAdvancedSearch: true,
|
|
|
|
if (pkIdArr.length === 0) {
|
|
|
|
},
|
|
|
|
createMessage.error('请选择要分配的数据')
|
|
|
|
isTreeTable: false,
|
|
|
|
return false
|
|
|
|
pagination: true,
|
|
|
|
|
|
|
|
striped: true,
|
|
|
|
|
|
|
|
useSearchForm: true,
|
|
|
|
|
|
|
|
showTableSetting: true,
|
|
|
|
|
|
|
|
bordered: true,
|
|
|
|
|
|
|
|
showIndexColumn: true,
|
|
|
|
|
|
|
|
rowKey: 'id',
|
|
|
|
|
|
|
|
indexColumnProps: {
|
|
|
|
|
|
|
|
width: 60,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
canResize: true,
|
|
|
|
|
|
|
|
resizeHeightOffset: 35,
|
|
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const generation = ref('')
|
|
|
|
|
|
|
|
function handleOpenSlot(row) {
|
|
|
|
|
|
|
|
openModal(true, { type: 'cabin', row: row })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleRowclick(record, index, event) {
|
|
|
|
|
|
|
|
console.log(record, index, event)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handledbclick(record) {
|
|
|
|
|
|
|
|
go(`/CabinManagementDetail?type=edit&id=${record.id}`)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleDelete(row) {
|
|
|
|
|
|
|
|
setLoading(true)
|
|
|
|
|
|
|
|
BookingSlotDelete([row.id]).then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
createMessage.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
visible.value = true
|
|
|
|
setLoading(false)
|
|
|
|
labelIdArray.value = []
|
|
|
|
})
|
|
|
|
labelLoad.value = true
|
|
|
|
}
|
|
|
|
BookingLabelList({ scope: 1 }).then((res) => {
|
|
|
|
const labelIdArray = ref([])
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
const labelList = ref([]) as any
|
|
|
|
item.isActive = false
|
|
|
|
const labelLoad = ref(false)
|
|
|
|
})
|
|
|
|
const visible = ref(false)
|
|
|
|
labelList.value = res.data
|
|
|
|
function handleLabel() {
|
|
|
|
labelLoad.value = false
|
|
|
|
const select = getSelectRows()
|
|
|
|
})
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (pkIdArr.length === 0) {
|
|
|
|
|
|
|
|
createMessage.error('请选择要分配的数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function handleDeleteAll() {
|
|
|
|
visible.value = true
|
|
|
|
const select = getSelectRows()
|
|
|
|
labelIdArray.value = []
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
labelLoad.value = true
|
|
|
|
return item.id
|
|
|
|
BookingLabelList({ scope: 1 }).then((res) => {
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
item.isActive = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (pkIdArr.length === 0) {
|
|
|
|
labelList.value = res.data
|
|
|
|
createMessage.error('请选择要删除的数据')
|
|
|
|
labelLoad.value = false
|
|
|
|
return false
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleDeleteAll() {
|
|
|
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (pkIdArr.length === 0) {
|
|
|
|
|
|
|
|
createMessage.error('请选择要删除的数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
setLoading(true)
|
|
|
|
|
|
|
|
BookingSlotDelete(pkIdArr).then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
createMessage.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setLoading(true)
|
|
|
|
setLoading(false)
|
|
|
|
BookingSlotDelete(pkIdArr).then((res) => {
|
|
|
|
})
|
|
|
|
if (res.succeeded) {
|
|
|
|
}
|
|
|
|
reload()
|
|
|
|
const moreNumVal = ref('')
|
|
|
|
} else {
|
|
|
|
function moreNumSubmit() {
|
|
|
|
createMessage.error(res.message)
|
|
|
|
let data = ''
|
|
|
|
|
|
|
|
moreNumVal.value
|
|
|
|
|
|
|
|
.replace(/\n|\r/g, ',')
|
|
|
|
|
|
|
|
.split(',')
|
|
|
|
|
|
|
|
.forEach((item) => {
|
|
|
|
|
|
|
|
if (item.replace(/\s*/g, '')) {
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
|
|
|
|
data = `${data},${item}`
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
data = item
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setLoading(false)
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
getForm().setFieldsValue({
|
|
|
|
const moreNumVal = ref('')
|
|
|
|
slotBookingNo: data,
|
|
|
|
function moreNumSubmit() {
|
|
|
|
})
|
|
|
|
let data = ''
|
|
|
|
moreFlag.value = false
|
|
|
|
moreNumVal.value
|
|
|
|
}
|
|
|
|
.replace(/\n|\r/g, ',')
|
|
|
|
const moreFlag = ref(false)
|
|
|
|
.split(',')
|
|
|
|
function handleOpenS() {
|
|
|
|
.forEach((item) => {
|
|
|
|
moreFlag.value = true
|
|
|
|
if (item.replace(/\s*/g, '')) {
|
|
|
|
}
|
|
|
|
if (data) {
|
|
|
|
function handleLabelBind(row) {
|
|
|
|
data = `${data},${item}`
|
|
|
|
visible.value = true
|
|
|
|
} else {
|
|
|
|
labelIdArray.value = []
|
|
|
|
data = item
|
|
|
|
labelLoad.value = true
|
|
|
|
|
|
|
|
// setSelectedRowKeys([row.id])
|
|
|
|
|
|
|
|
BookingLabelList({ scope: 1 }).then((res) => {
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
item.isActive = false
|
|
|
|
|
|
|
|
if (row.labelList) {
|
|
|
|
|
|
|
|
row.labelList.forEach((ite) => {
|
|
|
|
|
|
|
|
if (ite.id === item.id) {
|
|
|
|
|
|
|
|
item.isActive = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
getForm().setFieldsValue({
|
|
|
|
|
|
|
|
slotBookingNo: data,
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
moreFlag.value = false
|
|
|
|
labelList.value = res.data
|
|
|
|
}
|
|
|
|
labelLoad.value = false
|
|
|
|
const moreFlag = ref(false)
|
|
|
|
})
|
|
|
|
function handleOpenS() {
|
|
|
|
}
|
|
|
|
moreFlag.value = true
|
|
|
|
function customRequest(data) {
|
|
|
|
}
|
|
|
|
const formData = new FormData()
|
|
|
|
function handleLabelBind(row) {
|
|
|
|
formData.append('file', data.file)
|
|
|
|
visible.value = true
|
|
|
|
setLoading(true)
|
|
|
|
labelIdArray.value = []
|
|
|
|
ImportSlotFromFile(formData)
|
|
|
|
labelLoad.value = true
|
|
|
|
.then((res) => {
|
|
|
|
// setSelectedRowKeys([row.id])
|
|
|
|
reload()
|
|
|
|
BookingLabelList({ scope: 1 }).then((res) => {
|
|
|
|
setLoading(false)
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
item.isActive = false
|
|
|
|
|
|
|
|
if (row.labelList) {
|
|
|
|
|
|
|
|
row.labelList.forEach((ite) => {
|
|
|
|
|
|
|
|
if (ite.id === item.id) {
|
|
|
|
|
|
|
|
item.isActive = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
labelList.value = res.data
|
|
|
|
|
|
|
|
labelLoad.value = false
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
.catch((err) => {
|
|
|
|
function customRequest(data) {
|
|
|
|
setLoading(false)
|
|
|
|
const formData = new FormData()
|
|
|
|
})
|
|
|
|
formData.append('file', data.file)
|
|
|
|
}
|
|
|
|
setLoading(true)
|
|
|
|
|
|
|
|
ImportSlotFromFile(formData)
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
setLoading(false)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
|
|
|
setLoading(false)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleAdd() {
|
|
|
|
function handleAdd() {
|
|
|
|
go(`/CabinManagementDetail?type=Add`)
|
|
|
|
go(`/CabinManagementDetail?type=Add`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function handleEdit(row) {
|
|
|
|
function handleEdit(row) {
|
|
|
|
go(`/CabinManagementDetail?type=edit&id=${row.id}`)
|
|
|
|
go(`/CabinManagementDetail?type=edit&id=${row.id}`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleSubmitLabel() {
|
|
|
|
function handleSubmitLabel() {
|
|
|
|
const select = getSelectRows()
|
|
|
|
const select = getSelectRows()
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
return item.id
|
|
|
|
return item.id
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const arr = [] as any
|
|
|
|
const arr = [] as any
|
|
|
|
labelList.value.forEach((item) => {
|
|
|
|
labelList.value.forEach((item) => {
|
|
|
|
if (item.isActive) {
|
|
|
|
if (item.isActive) {
|
|
|
|
arr.push(item.id)
|
|
|
|
arr.push(item.id)
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
|
|
labelIdArray: arr,
|
|
|
|
|
|
|
|
businessIdArray: pkIdArr,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
labelLoad.value = true
|
|
|
|
})
|
|
|
|
BookingLabelBind(data).then((res) => {
|
|
|
|
const data = {
|
|
|
|
if (res.succeeded) {
|
|
|
|
labelIdArray: arr,
|
|
|
|
createMessage.success('分配成功')
|
|
|
|
businessIdArray: pkIdArr,
|
|
|
|
visible.value = false
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
createMessage.error(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
labelLoad.value = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const sumload = ref(false)
|
|
|
|
labelLoad.value = true
|
|
|
|
function handleSum() {
|
|
|
|
BookingLabelBind(data).then((res) => {
|
|
|
|
const select = getSelectRows()
|
|
|
|
if (res.succeeded) {
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
createMessage.success('分配成功')
|
|
|
|
return item.id
|
|
|
|
visible.value = false
|
|
|
|
})
|
|
|
|
reload()
|
|
|
|
if (select.length <= 1) {
|
|
|
|
} else {
|
|
|
|
createMessage.warning('至少选择两条数据')
|
|
|
|
createMessage.error(res.message)
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const data = {
|
|
|
|
labelLoad.value = false
|
|
|
|
mergeList: pkIdArr,
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const sumload = ref(false)
|
|
|
|
|
|
|
|
function handleSum() {
|
|
|
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (select.length <= 1) {
|
|
|
|
|
|
|
|
createMessage.warning('至少选择两条数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
|
|
mergeList: pkIdArr,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sumload.value = true
|
|
|
|
|
|
|
|
GetMergeList(data).then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
this.$refs.generation.initSum(res.data)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
createMessage.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sumload.value = true
|
|
|
|
sumload.value = false
|
|
|
|
GetMergeList(data).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleClickLable(index) {
|
|
|
|
|
|
|
|
labelList.value[index].isActive = !labelList.value[index].isActive
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const loadingExport = ref(false)
|
|
|
|
|
|
|
|
function handleSuport() {
|
|
|
|
|
|
|
|
loadingExport.value = true
|
|
|
|
|
|
|
|
if (getSelectRows().length > 0) {
|
|
|
|
|
|
|
|
const arr = []
|
|
|
|
|
|
|
|
getSelectRows().forEach((item) => {
|
|
|
|
|
|
|
|
arr.push(item.id)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
queryStr.value.otherQueryCondition = arr.join(',')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PrintOrder(queryStr.value)
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
this.$refs.generation.initSum(res.data)
|
|
|
|
const fname = res.data // 下载文件的名字
|
|
|
|
|
|
|
|
const link = document.createElement('a')
|
|
|
|
|
|
|
|
link.href = `http://118.190.144.189:3008/LinkAttach/${res.data}`
|
|
|
|
|
|
|
|
link.setAttribute('download', fname)
|
|
|
|
|
|
|
|
document.body.appendChild(link)
|
|
|
|
|
|
|
|
link.click()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
createMessage.error(res.message)
|
|
|
|
createMessage.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sumload.value = false
|
|
|
|
loadingExport.value = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
.catch(() => {
|
|
|
|
function handleClickLable(index) {
|
|
|
|
loadingExport.value = false
|
|
|
|
labelList.value[index].isActive = !labelList.value[index].isActive
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const loadingExport = ref(false)
|
|
|
|
|
|
|
|
function handleSuport() {
|
|
|
|
|
|
|
|
loadingExport.value = true
|
|
|
|
|
|
|
|
if (getSelectRows().length > 0) {
|
|
|
|
|
|
|
|
const arr = []
|
|
|
|
|
|
|
|
getSelectRows().forEach((item) => {
|
|
|
|
|
|
|
|
arr.push(item.id)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
queryStr.value.otherQueryCondition = arr.join(',')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PrintOrder(queryStr.value)
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
const fname = res.data // 下载文件的名字
|
|
|
|
|
|
|
|
const link = document.createElement('a')
|
|
|
|
|
|
|
|
link.href = `http://118.190.144.189:3008/LinkAttach/${res.data}`
|
|
|
|
|
|
|
|
link.setAttribute('download', fname)
|
|
|
|
|
|
|
|
document.body.appendChild(link)
|
|
|
|
|
|
|
|
link.click()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
createMessage.error(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
loadingExport.value = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
loadingExport.value = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
@ -490,122 +445,59 @@
|
|
|
|
padding-bottom: 0px !important;
|
|
|
|
padding-bottom: 0px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.table-operator {
|
|
|
|
.items {
|
|
|
|
margin-bottom: 18px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
height: 28px;
|
|
|
|
|
|
|
|
line-height: 26px;
|
|
|
|
.Close {
|
|
|
|
border: 1px dashed #ccc;
|
|
|
|
height: 45px;
|
|
|
|
border-radius: 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
margin-right: 10px;
|
|
|
|
.vxe-table--render-default .vxe-body--row.row--stripe {
|
|
|
|
font-size: 13px;
|
|
|
|
background: #f5f9fe;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-card-body {
|
|
|
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.inline {
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.inline-right {
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 6px;
|
|
|
|
|
|
|
|
right: 25px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.change {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
margin-top: 25px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
div {
|
|
|
|
.edit {
|
|
|
|
width: 120px;
|
|
|
|
width: 17px;
|
|
|
|
height: 50px;
|
|
|
|
height: 17px;
|
|
|
|
background-color: rgb(247, 249, 250);
|
|
|
|
border-radius: 0 3px 0 0;
|
|
|
|
border: 1px solid rgb(247, 249, 250);
|
|
|
|
background: #c9c9c9;
|
|
|
|
color: rgb(105, 102, 102);
|
|
|
|
display: none;
|
|
|
|
line-height: 50px;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
right: -1px;
|
|
|
|
|
|
|
|
top: -1px;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
line-height: 17px;
|
|
|
|
transition: box-shadow 0.3s, background-color 0.3s;
|
|
|
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
div:hover {
|
|
|
|
|
|
|
|
border: 1px solid #d1cfcf;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
|
|
|
max-height: 300px;
|
|
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
|
|
|
width: 0 !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.items {
|
|
|
|
&:hover {
|
|
|
|
display: inline-block;
|
|
|
|
border: 1px dashed @primary-color;
|
|
|
|
height: 28px;
|
|
|
|
|
|
|
|
line-height: 26px;
|
|
|
|
|
|
|
|
border: 1px dashed #ccc;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
.edit {
|
|
|
|
&::before {
|
|
|
|
width: 17px;
|
|
|
|
width: 100%;
|
|
|
|
height: 17px;
|
|
|
|
height: 100%;
|
|
|
|
border-radius: 0 3px 0 0;
|
|
|
|
content: '';
|
|
|
|
background: #c9c9c9;
|
|
|
|
background: @primary-color;
|
|
|
|
display: none;
|
|
|
|
opacity: 0.08;
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
right: -1px;
|
|
|
|
top: 0;
|
|
|
|
top: -1px;
|
|
|
|
left: 0;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 4px;
|
|
|
|
line-height: 17px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
border: 1px dashed @primary-color;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
background: @primary-color;
|
|
|
|
|
|
|
|
opacity: 0.08;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.edit {
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
.edit {
|
|
|
|
background: @primary-color;
|
|
|
|
display: block;
|
|
|
|
border: 1px dashed @primary-color;
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.vben-basic-table-action button) {
|
|
|
|
:deep(.vben-basic-table-action button) {
|
|
|
|
padding: 0 3px !important;
|
|
|
|
padding: 0 3px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.vben-basic-table-action button) {
|
|
|
|
|
|
|
|
padding: 0 3px !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|