no message
parent
cee141f803
commit
c30427dcdc
|
|
@ -85,8 +85,8 @@
|
||||||
.dot {
|
.dot {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 48px;
|
width: 45px;
|
||||||
height: 48px;
|
height: 45px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
<div class="app-loading-wrap">
|
<div class="app-loading-wrap">
|
||||||
<div style="position: relative;">
|
<div style="position: relative;">
|
||||||
<img style="width: 350px; position: relative; z-index: 2;" src="<%= basePublicPath %>/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
|
<img style="width: 350px; position: relative; z-index: 2;" src="<%= basePublicPath %>/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
|
||||||
<div class="app-loading-dots" style="position: absolute; bottom: 45px; left: 350px; z-index: 2;">
|
<div class="app-loading-dots" style="position: absolute; bottom: 48px; left: 350px; z-index: 2;">
|
||||||
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
|
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,6 @@
|
||||||
|
|
||||||
//update-begin-author:taoyan date:2022-6-1 for: VUEN-1144 online 配置成菜单后,打开菜单,显示名称未展示为菜单名称
|
//update-begin-author:taoyan date:2022-6-1 for: VUEN-1144 online 配置成菜单后,打开菜单,显示名称未展示为菜单名称
|
||||||
function storePathTitle(path) {
|
function storePathTitle(path) {
|
||||||
console.log('storePathTitle', path);
|
|
||||||
let title = '';
|
let title = '';
|
||||||
if (instance!.attrs) {
|
if (instance!.attrs) {
|
||||||
let item: any = instance!.attrs.item;
|
let item: any = instance!.attrs.item;
|
||||||
|
|
|
||||||
|
|
@ -126,5 +126,4 @@ export function registerGlobComp(app: App) {
|
||||||
.use(Cascader)
|
.use(Cascader)
|
||||||
.use(Rate)
|
.use(Rate)
|
||||||
.use(Progress);
|
.use(Progress);
|
||||||
console.log("---初始化---, 全局注册Antd、仪表盘、流程设计器、online、流程等组件--------------")
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,6 @@ async function bootstrap(props?: MainAppProps) {
|
||||||
// 挂载应用
|
// 挂载应用
|
||||||
app.mount(getMountContainer(props), true);
|
app.mount(getMountContainer(props), true);
|
||||||
|
|
||||||
console.log(" vue3 app 加载完成!")
|
|
||||||
|
|
||||||
return app
|
return app
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,6 @@ export const usePermissionStore = defineStore({
|
||||||
// 后台菜单构建
|
// 后台菜单构建
|
||||||
case PermissionModeEnum.BACK:
|
case PermissionModeEnum.BACK:
|
||||||
const { createMessage, createWarningModal } = useMessage();
|
const { createMessage, createWarningModal } = useMessage();
|
||||||
console.log(" --- 构建后台路由菜单 --- ")
|
|
||||||
// 菜单加载提示
|
// 菜单加载提示
|
||||||
// createMessage.loading({
|
// createMessage.loading({
|
||||||
// content: t('sys.app.menuLoading'),
|
// content: t('sys.app.menuLoading'),
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,8 @@
|
||||||
<a-col :lg="6">
|
<a-col :lg="6">
|
||||||
<a-form-item name="status">
|
<a-form-item name="status">
|
||||||
<template #label><span title="库存状态">库存状态</span></template>
|
<template #label><span title="库存状态">库存状态</span></template>
|
||||||
<JDictSelectTag v-model:value="queryParam.status" placeholder="请选择" dictCode="inventory_status" allowClear />
|
<JDictSelectTag v-model:value="queryParam.status" placeholder="请选择" dictCode="inventory
|
||||||
|
_status" allowClear />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
||||||
|
|
@ -2,41 +2,37 @@ import { BasicColumn, FormSchema } from '/@/components/Table';
|
||||||
|
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '日志内容',
|
title: '操作类型',
|
||||||
dataIndex: 'logContent',
|
dataIndex: 'operateType_dictText',
|
||||||
width: 100,
|
width: 25,
|
||||||
align: 'left',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作人ID',
|
|
||||||
dataIndex: 'userid',
|
|
||||||
width: 80,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作人',
|
|
||||||
dataIndex: 'username',
|
|
||||||
width: 80,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'IP',
|
title: 'IP',
|
||||||
dataIndex: 'ip',
|
dataIndex: 'ip',
|
||||||
width: 80,
|
width: 35,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '耗时(毫秒)',
|
title: '耗时(毫秒)',
|
||||||
dataIndex: 'costTime',
|
dataIndex: 'costTime',
|
||||||
width: 80,
|
width: 30,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作人',
|
||||||
|
dataIndex: 'username',
|
||||||
|
width: 25,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
title: '日志内容',
|
||||||
|
dataIndex: 'logContent',
|
||||||
|
width: 200,
|
||||||
|
align: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
width: 80,
|
width: 40,
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '客户端类型',
|
|
||||||
dataIndex: 'clientType_dictText',
|
|
||||||
width: 60,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -45,20 +41,25 @@ export const columns: BasicColumn[] = [
|
||||||
*/
|
*/
|
||||||
export const operationLogColumn: BasicColumn[] = [
|
export const operationLogColumn: BasicColumn[] = [
|
||||||
...columns,
|
...columns,
|
||||||
{
|
/* {
|
||||||
title: '操作类型',
|
title: '操作类型',
|
||||||
dataIndex: 'operateType_dictText',
|
dataIndex: 'operateType_dictText',
|
||||||
width: 40,
|
width: 40,
|
||||||
},
|
},*/
|
||||||
];
|
];
|
||||||
|
|
||||||
export const exceptionColumns: BasicColumn[] = [
|
export const exceptionColumns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '异常标题',
|
title: 'IP',
|
||||||
dataIndex: 'logContent',
|
dataIndex: 'ip',
|
||||||
width: 100,
|
width: 35,
|
||||||
align: 'left',
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '操作人',
|
||||||
|
dataIndex: 'username',
|
||||||
|
width: 25,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '请求地址',
|
title: '请求地址',
|
||||||
dataIndex: 'requestUrl',
|
dataIndex: 'requestUrl',
|
||||||
|
|
@ -70,34 +71,18 @@ export const exceptionColumns: BasicColumn[] = [
|
||||||
width: 60,
|
width: 60,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作人',
|
title: '日志内容',
|
||||||
dataIndex: 'username',
|
dataIndex: 'logContent',
|
||||||
width: 60,
|
width: 100,
|
||||||
customRender: ({ record }) => {
|
align: 'left',
|
||||||
let pname = record.username;
|
|
||||||
let pid = record.userid;
|
|
||||||
if(!pname && !pid){
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return pname + " (账号: "+ pid + " )";
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'IP',
|
|
||||||
dataIndex: 'ip',
|
|
||||||
width: 60,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
width: 60,
|
width: 60,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '客户端类型',
|
|
||||||
dataIndex: 'clientType_dictText',
|
|
||||||
width: 60,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
|
|
@ -105,7 +90,7 @@ export const searchFormSchema: FormSchema[] = [
|
||||||
field: 'keyWord',
|
field: 'keyWord',
|
||||||
label: '搜索日志',
|
label: '搜索日志',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
colProps: { span: 8 },
|
colProps: { span: 6 },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'fieldTime',
|
field: 'fieldTime',
|
||||||
|
|
@ -126,7 +111,7 @@ export const operationSearchFormSchema: FormSchema[] = [
|
||||||
field: 'operateType',
|
field: 'operateType',
|
||||||
label: '操作类型',
|
label: '操作类型',
|
||||||
component: 'JDictSelectTag',
|
component: 'JDictSelectTag',
|
||||||
colProps: { span: 4 },
|
colProps: { span: 6 },
|
||||||
componentProps: {
|
componentProps: {
|
||||||
dictCode: 'operate_type',
|
dictCode: 'operate_type',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,10 @@ export const columns: BasicColumn[] = [
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
//入库状态:1.已创建;2.部分收货;3.收货完成;4.已取消。
|
//入库状态:1.已创建;2.部分收货;3.收货完成;4.已取消。
|
||||||
const statusColorMap = {
|
const statusColorMap = {
|
||||||
'已创建': 'orange',
|
已创建: 'orange',
|
||||||
'部分收货': 'blue',
|
部分收货: 'blue',
|
||||||
'收货完成': 'green',
|
收货完成: 'green',
|
||||||
'已取消': 'red',
|
已取消: 'red',
|
||||||
};
|
};
|
||||||
const color = statusColorMap[text] || 'red';
|
const color = statusColorMap[text] || 'red';
|
||||||
return render.renderTag(text, color);
|
return render.renderTag(text, color);
|
||||||
|
|
@ -68,6 +68,11 @@ export const columns: BasicColumn[] = [
|
||||||
|
|
||||||
//子表表格配置
|
//子表表格配置
|
||||||
export const asnDetailColumns: JVxeColumn[] = [
|
export const asnDetailColumns: JVxeColumn[] = [
|
||||||
|
{
|
||||||
|
title: '入库明细ID',
|
||||||
|
key: 'id',
|
||||||
|
type: JVxeTypes.hidden,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '入库单ID',
|
title: '入库单ID',
|
||||||
key: 'asnId',
|
key: 'asnId',
|
||||||
|
|
@ -121,7 +126,7 @@ export const asnDetailColumns: JVxeColumn[] = [
|
||||||
width: 150,
|
width: 150,
|
||||||
async: true, // 异步搜索,默认为 true
|
async: true, // 异步搜索,默认为 true
|
||||||
//查询状态为可用、启用、未删除的库位
|
//查询状态为可用、启用、未删除的库位
|
||||||
dictCode: 'base_point where iz_active=1 and del_flag=0,point_code,id',
|
dictCode: 'base_point where area_id = 1986328561044119554 and iz_active=1 and del_flag=0,point_code,id',
|
||||||
tipsContent: '请搜索库位',
|
tipsContent: '请搜索库位',
|
||||||
validateRules: [
|
validateRules: [
|
||||||
{
|
{
|
||||||
|
|
@ -166,10 +171,10 @@ export const asnDetailColumns: JVxeColumn[] = [
|
||||||
};
|
};
|
||||||
// 状态颜色映射
|
// 状态颜色映射
|
||||||
const statusColorMap = {
|
const statusColorMap = {
|
||||||
'已创建': 'orange',
|
已创建: 'orange',
|
||||||
'部分收货': 'blue',
|
部分收货: 'blue',
|
||||||
'收货完成': 'green',
|
收货完成: 'green',
|
||||||
'已取消': 'red',
|
已取消: 'red',
|
||||||
};
|
};
|
||||||
const text = statusMap[cellValue] || '未知状态';
|
const text = statusMap[cellValue] || '未知状态';
|
||||||
const color = statusColorMap[text] || 'red';
|
const color = statusColorMap[text] || 'red';
|
||||||
|
|
|
||||||
|
|
@ -92,9 +92,9 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" name="receive-asn" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, reactive, computed, unref } from 'vue';
|
import { ref, reactive } from 'vue';
|
||||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
import { BasicTable, TableAction } from '/@/components/Table';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { useModal } from '/@/components/Modal';
|
import { useModal } from '/@/components/Modal';
|
||||||
import AsnModal from './components/AsnModal.vue';
|
import AsnModal from './components/AsnModal.vue';
|
||||||
|
|
@ -104,8 +104,7 @@
|
||||||
import { getDateByPicker } from '/@/utils';
|
import { getDateByPicker } from '/@/utils';
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
import { JInputTypeEnum } from '@/enums/cpteEnum';
|
import { JInputTypeEnum } from '@/enums/cpteEnum';
|
||||||
import JInput from '../../../components/Form/src/jeecg/components/JInput.vue';
|
import { JInput, JDictSelectTag } from '@/components/Form';
|
||||||
import { JDictSelectTag } from '@/components/Form';
|
|
||||||
import JRangeDate from '@/components/Form/src/jeecg/components/JRangeDate.vue';
|
import JRangeDate from '@/components/Form/src/jeecg/components/JRangeDate.vue';
|
||||||
|
|
||||||
const fieldPickers = reactive({});
|
const fieldPickers = reactive({});
|
||||||
|
|
@ -251,6 +250,7 @@
|
||||||
placement: 'topLeft',
|
placement: 'topLeft',
|
||||||
},
|
},
|
||||||
auth: 'receive:data_asn:delete',
|
auth: 'receive:data_asn:delete',
|
||||||
|
disabled: record.status != 1,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -151,15 +151,21 @@ export const pickDetailColumns: JVxeColumn[] = [
|
||||||
//入库状态:1.已创建;2.部分收货;3.收货完成;4.已取消。
|
//入库状态:1.已创建;2.部分收货;3.收货完成;4.已取消。
|
||||||
const statusMap = {
|
const statusMap = {
|
||||||
1: '已创建',
|
1: '已创建',
|
||||||
2: '部分收货',
|
2: '部分分配',
|
||||||
3: '收货完成',
|
3: '已分配',
|
||||||
4: '已取消',
|
4: '拣货中',
|
||||||
|
5: '拣货完成',
|
||||||
|
6: '已关闭',
|
||||||
|
7: '已取消',
|
||||||
};
|
};
|
||||||
// 状态颜色映射
|
// 状态颜色映射
|
||||||
const statusColorMap = {
|
const statusColorMap = {
|
||||||
已创建: 'orange',
|
已创建: 'orange',
|
||||||
部分收货: 'blue',
|
部分分配: 'cyan',
|
||||||
收货完成: 'green',
|
已分配: 'cyan',
|
||||||
|
拣货中: 'blue',
|
||||||
|
拣货完成: 'green',
|
||||||
|
已关闭: 'green',
|
||||||
已取消: 'red',
|
已取消: 'red',
|
||||||
};
|
};
|
||||||
const text = statusMap[cellValue] || '未知状态';
|
const text = statusMap[cellValue] || '未知状态';
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,52 @@
|
||||||
<!--查询区域-->
|
<!--查询区域-->
|
||||||
<div class="jeecg-basic-table-form-container">
|
<div class="jeecg-basic-table-form-container">
|
||||||
<a-form ref="formRef" @keyup.enter.native="reload" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form ref="formRef" @keyup.enter.native="reload" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24"> </a-row>
|
<a-row :gutter="24">
|
||||||
|
<a-col :lg="6">
|
||||||
|
<a-form-item name="orderNo">
|
||||||
|
<template #label><span title="系统单号">系统单号</span></template>
|
||||||
|
<JInput v-model:value="queryParam.orderNo" :placeholder="'请输入系统单号'" :type="JInputTypeEnum.JINPUT_RIGHT_LIKE" />
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :lg="6">
|
||||||
|
<a-form-item name="no">
|
||||||
|
<template #label><span title="任务号">任务号</span></template>
|
||||||
|
<JInput v-model:value="queryParam.no" :placeholder="'请输入任务号'" :type="JInputTypeEnum.JINPUT_RIGHT_LIKE" />
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :lg="6">
|
||||||
|
<a-form-item name="orderType">
|
||||||
|
<template #label><span title="单据类型">单据类型</span></template>
|
||||||
|
<JDictSelectTag v-model:value="queryParam.orderType" placeholder="请选择" dictCode="pick_order_type" allowClear />
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||||
|
<a-col :lg="6">
|
||||||
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
|
<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
||||||
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
||||||
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
||||||
|
</a>
|
||||||
|
</a-col>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :lg="6">
|
||||||
|
<a-form-item name="status">
|
||||||
|
<template #label><span title="状态">状态</span></template>
|
||||||
|
<JDictSelectTag v-model:value="queryParam.status" placeholder="请选择" dictCode="pick_status" allowClear />
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :lg="6">
|
||||||
|
<a-form-item name="orderDate">
|
||||||
|
<template #label><span title="订单日期">订单日期</span></template>
|
||||||
|
<JRangeDate v-model:value="queryParam.orderDate" />
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!--引用表格-->
|
<!--引用表格-->
|
||||||
|
|
@ -35,7 +80,7 @@
|
||||||
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
|
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
|
||||||
</template>
|
</template>
|
||||||
<!--字段回显插槽-->
|
<!--字段回显插槽-->
|
||||||
<template v-slot:bodyCell="{ column, record, index, text }"> </template>
|
<template v-slot:bodyCell="{ column, record, index, text }"></template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<PickModal @register="registerModal" @success="handleSuccess"></PickModal>
|
<PickModal @register="registerModal" @success="handleSuccess"></PickModal>
|
||||||
|
|
@ -53,6 +98,9 @@
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { getDateByPicker } from '/@/utils';
|
import { getDateByPicker } from '/@/utils';
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
import { JInputTypeEnum } from '@/enums/cpteEnum';
|
||||||
|
import { JInput, JDictSelectTag } from '@/components/Form';
|
||||||
|
import JRangeDate from '@/components/Form/src/jeecg/components/JRangeDate.vue';
|
||||||
|
|
||||||
const fieldPickers = reactive({});
|
const fieldPickers = reactive({});
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
|
|
@ -75,12 +123,26 @@
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
},
|
},
|
||||||
beforeFetch: async (params) => {
|
beforeFetch: async (params) => {
|
||||||
|
// 创建新的查询参数对象,避免修改原始对象
|
||||||
|
const newQueryParam = { ...queryParam };
|
||||||
|
|
||||||
|
// 处理日期范围
|
||||||
|
if (newQueryParam.orderDate) {
|
||||||
|
try {
|
||||||
|
const [begin, end] = newQueryParam.orderDate.split(',');
|
||||||
|
if (begin !== undefined) newQueryParam.orderDate_begin = begin;
|
||||||
|
if (end !== undefined) newQueryParam.orderDate_end = end;
|
||||||
|
delete newQueryParam.orderDate;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('日期范围处理错误:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
for (let key in fieldPickers) {
|
for (let key in fieldPickers) {
|
||||||
if (queryParam[key] && fieldPickers[key]) {
|
if (newQueryParam[key] && fieldPickers[key]) {
|
||||||
queryParam[key] = getDateByPicker(queryParam[key], fieldPickers[key]);
|
newQueryParam[key] = getDateByPicker(newQueryParam[key], fieldPickers[key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Object.assign(params, queryParam);
|
return Object.assign(params, newQueryParam);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
exportConfig: {
|
exportConfig: {
|
||||||
|
|
@ -110,10 +172,14 @@
|
||||||
* 编辑事件
|
* 编辑事件
|
||||||
*/
|
*/
|
||||||
function handleEdit(record: Recordable) {
|
function handleEdit(record: Recordable) {
|
||||||
|
let showFooter = true;
|
||||||
|
if (record.status > 1) {
|
||||||
|
showFooter = false;
|
||||||
|
}
|
||||||
openModal(true, {
|
openModal(true, {
|
||||||
record,
|
record,
|
||||||
isUpdate: true,
|
isUpdate: true,
|
||||||
showFooter: true,
|
showFooter: showFooter,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -179,6 +245,7 @@
|
||||||
placement: 'topLeft',
|
placement: 'topLeft',
|
||||||
},
|
},
|
||||||
auth: 'shipping:data_pick:delete',
|
auth: 'shipping:data_pick:delete',
|
||||||
|
disabled: record.status != 1,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
@ -196,6 +263,13 @@
|
||||||
sm: 20,
|
sm: 20,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置
|
* 重置
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ const ChatRoutes: RouteRecordRaw[] = [
|
||||||
/** 注册路由 */
|
/** 注册路由 */
|
||||||
export async function register(app: App) {
|
export async function register(app: App) {
|
||||||
await registerMyAppRouter(app);
|
await registerMyAppRouter(app);
|
||||||
console.log('[聊天路由] 注册完成!');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function registerMyAppRouter(_: App) {
|
async function registerMyAppRouter(_: App) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue