Commit 9765a358 by sunguoxiang

Merge branch 'hongshun' into hongshun-sun

parents 6e3fa42c a3067df6
...@@ -4,25 +4,25 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; ...@@ -4,25 +4,25 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
* @description: MesCheliangBg分页参数 模型 * @description: MesCheliangBg分页参数 模型
*/ */
export interface MesCheliangBgPageParams extends BasicPageParams { export interface MesCheliangBgPageParams extends BasicPageParams {
banzu: string;
cphm: string; cphm: string;
clys: string; clys: string;
gzjssj: string;
gzr: string; gzr: string;
gzkssj: string;
cllx: string; cllx: string;
wlzt: string; clls: string;
gzxm: string; gzxm: string;
clppxh: string; gzjssj: string;
gzkssj: string; wlzt: string;
clppxh: string;
} }
/** /**
...@@ -56,8 +56,6 @@ export interface MesCheliangBgPageModel { ...@@ -56,8 +56,6 @@ export interface MesCheliangBgPageModel {
gzsc: string; gzsc: string;
wlzt: string; wlzt: string;
banzu: string;
} }
/** /**
......
...@@ -6,11 +6,33 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; ...@@ -6,11 +6,33 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export interface MesWarehouseSaleoutPageParams extends BasicPageParams { export interface MesWarehouseSaleoutPageParams extends BasicPageParams {
djbh: string; djbh: string;
djrq: string;
ck: string; ck: string;
crklx: string;
jbr: string;
bm: string;
ddkh: string;
djzt: string;
ywzz: string; ywzz: string;
cydw: string;
shrq: string;
shdz: string;
shrxm: string;
pch: string; pch: string;
bz: string;
} }
/** /**
...@@ -41,13 +63,13 @@ export interface MesWarehouseSaleoutPageModel { ...@@ -41,13 +63,13 @@ export interface MesWarehouseSaleoutPageModel {
shdz: string; shdz: string;
shr: string;
ywzz: string; ywzz: string;
djzt: string; djzt: string;
bz: string; bz: string;
shrxm: string;
} }
/** /**
...@@ -84,7 +106,7 @@ export interface MesWarehouseSaleoutModel { ...@@ -84,7 +106,7 @@ export interface MesWarehouseSaleoutModel {
shdz: string; shdz: string;
shr: string; shrxm: string;
bz: string; bz: string;
......
...@@ -7,8 +7,6 @@ export interface MesBaseBomPageParams extends BasicPageParams { ...@@ -7,8 +7,6 @@ export interface MesBaseBomPageParams extends BasicPageParams {
bommc: string; bommc: string;
cpid: string; cpid: string;
sfyy: string;
} }
/** /**
...@@ -19,15 +17,17 @@ export interface MesBaseBomPageModel { ...@@ -19,15 +17,17 @@ export interface MesBaseBomPageModel {
bommc: string; bommc: string;
bomsl: string;
bombb: string;
cpmc: string; cpmc: string;
cpbh: string;
cpgg: string; cpgg: string;
cpxh: string; cpxh: string;
bomsl: string;
bombb: string;
} }
/** /**
...@@ -86,6 +86,8 @@ export interface MesBaseBomModel { ...@@ -86,6 +86,8 @@ export interface MesBaseBomModel {
modifyUserId: string; modifyUserId: string;
sjbom: string;
mesBaseBomItemList?: MesBaseBomItemModel; mesBaseBomItemList?: MesBaseBomItemModel;
} }
...@@ -99,6 +101,8 @@ export interface MesBaseBomItemModel { ...@@ -99,6 +101,8 @@ export interface MesBaseBomItemModel {
bomid: string; bomid: string;
wlid: string;
wlbh: string; wlbh: string;
wlmc: string; wlmc: string;
......
...@@ -6,9 +6,9 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; ...@@ -6,9 +6,9 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export interface MesProductionPlanPageParams extends BasicPageParams { export interface MesProductionPlanPageParams extends BasicPageParams {
jhbh: string; jhbh: string;
ddbh: string; kh: string;
ssgs: string; ywzz: string;
zt: string; zt: string;
} }
...@@ -19,13 +19,15 @@ export interface MesProductionPlanPageParams extends BasicPageParams { ...@@ -19,13 +19,15 @@ export interface MesProductionPlanPageParams extends BasicPageParams {
export interface MesProductionPlanPageModel { export interface MesProductionPlanPageModel {
id: string; id: string;
ddbh: string;
jhbh: string; jhbh: string;
ddbh: string;
kh: string; kh: string;
ssgs: string; jhjhrq: string;
ywzz: string;
zt: string; zt: string;
} }
...@@ -107,6 +109,8 @@ export interface MesProductionPlanProductModel { ...@@ -107,6 +109,8 @@ export interface MesProductionPlanProductModel {
cpbh: string; cpbh: string;
cpmc: string;
nbdm: string; nbdm: string;
hjzt: string; hjzt: string;
......
...@@ -135,3 +135,4 @@ ...@@ -135,3 +135,4 @@
</script> </script>
\ No newline at end of file
...@@ -4,21 +4,6 @@ import { uploadApi } from '/@/api/sys/upload'; ...@@ -4,21 +4,6 @@ import { uploadApi } from '/@/api/sys/upload';
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
{ {
field: 'banzu',
label: '班组',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'dic',
params: { itemId: '2021042614763266049' },
labelField: 'name',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'cphm', field: 'cphm',
label: '车牌号码', label: '车牌号码',
defaultValue: undefined, defaultValue: undefined,
...@@ -91,25 +76,25 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -91,25 +76,25 @@ export const searchFormSchema: FormSchema[] = [
component: 'Input', component: 'Input',
}, },
{ {
field: 'gzjssj', field: 'gzr',
label: '工作结束时间', label: '工作',
defaultValue: undefined, defaultValue: undefined,
component: 'RangePicker', component: 'User',
componentProps: { componentProps: {
format: 'YYYY-MM-DD HH:mm:ss', suffix: 'ant-design:setting-outlined',
style: { width: '100%' }, placeholder: '请选择',
getPopupContainer: () => document.body,
}, },
}, },
{ {
field: 'gzr', field: 'gzkssj',
label: '工作', label: '工作开始时间',
defaultValue: undefined, defaultValue: undefined,
component: 'User', component: 'RangePicker',
componentProps: { componentProps: {
suffix: 'ant-design:setting-outlined', format: 'YYYY-MM-DD HH:mm:ss',
placeholder: '请选择', style: { width: '100%' },
getPopupContainer: () => document.body,
}, },
}, },
...@@ -129,18 +114,12 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -129,18 +114,12 @@ export const searchFormSchema: FormSchema[] = [
}, },
}, },
{ {
field: 'wlzt', field: 'clls',
label: '物料状态', label: '拆解辆数',
defaultValue: undefined, defaultValue: undefined,
component: 'XjrSelect', component: 'InputNumber',
componentProps: { componentProps: {
datasourceType: 'dic', style: { width: '100%' },
params: { itemId: '2019657322189856770' },
labelField: 'name',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
}, },
}, },
{ {
...@@ -177,14 +156,8 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -177,14 +156,8 @@ export const searchFormSchema: FormSchema[] = [
}, },
}, },
{ {
field: 'clppxh', field: 'gzjssj',
label: '车辆品牌型号', label: '工作结束时间',
defaultValue: undefined,
component: 'Input',
},
{
field: 'gzkssj',
label: '工作开始时间',
defaultValue: undefined, defaultValue: undefined,
component: 'RangePicker', component: 'RangePicker',
componentProps: { componentProps: {
...@@ -193,6 +166,28 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -193,6 +166,28 @@ export const searchFormSchema: FormSchema[] = [
getPopupContainer: () => document.body, getPopupContainer: () => document.body,
}, },
}, },
{
field: 'wlzt',
label: '物料状态',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'dic',
params: { itemId: '2019657322189856770' },
labelField: 'name',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'clppxh',
label: '车辆品牌型号',
defaultValue: undefined,
component: 'Input',
},
]; ];
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
...@@ -364,19 +359,6 @@ export const columns: BasicColumn[] = [ ...@@ -364,19 +359,6 @@ export const columns: BasicColumn[] = [
styleConfig: undefined, styleConfig: undefined,
listStyle: undefined, listStyle: undefined,
}, },
{
resizable: true,
dataIndex: 'banzu',
title: '班组',
componentType: 'radio',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
]; ];
//表头合并配置 //表头合并配置
export const headerMergingData = []; export const headerMergingData = [];
...@@ -494,42 +476,6 @@ export const formProps: FormProps = { ...@@ -494,42 +476,6 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: 'fdb254d1c2dc4370a1905ffd85148370',
field: 'banzu',
label: '班组',
type: 'radio',
component: 'ApiRadioGroup',
colProps: { span: 24 },
componentProps: {
span: 7,
showLabel: true,
disabled: false,
optionType: 'default',
staticOptions: [
{ key: 1, label: 'option 1', value: 'option 1' },
{ key: 2, label: 'option 2', value: 'option 2' },
{ key: 3, label: 'option 3', value: 'option 3' },
],
datasourceType: 'dic',
labelField: 'name',
valueField: 'value',
apiConfig: {
path: 'CodeGeneration/selection',
method: 'GET',
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
params: { itemId: '2021042614763266049' },
itemId: '2021042614763266049',
style: {},
},
},
{
key: 'f89a9cedaa7a4f98958d46860ac84ad6', key: 'f89a9cedaa7a4f98958d46860ac84ad6',
field: 'cphm', field: 'cphm',
label: '车牌号码', label: '车牌号码',
...@@ -643,9 +589,35 @@ export const formProps: FormProps = { ...@@ -643,9 +589,35 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: 'a349e957579e47cb90727cdfa8c9d21f', key: '21906e99fb08459ea4318c04707797ca',
field: 'gzjssj', field: 'gzr',
label: '工作结束时间', label: '工作人',
type: 'user',
component: 'User',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
span: 7,
width: '100%',
defaultValue: '',
placeholder: '请选择工作人',
userType: 0,
prefix: '',
suffix: 'ant-design:setting-outlined',
showLabel: true,
disabled: false,
required: false,
multiple: true,
isShow: true,
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '4da55e5ac2c04a2dacd2cd58470b6820',
field: 'gzkssj',
label: '工作开始时间',
type: 'date', type: 'date',
component: 'DatePicker', component: 'DatePicker',
colProps: { span: 24 }, colProps: { span: 24 },
...@@ -654,7 +626,7 @@ export const formProps: FormProps = { ...@@ -654,7 +626,7 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
width: '100%', width: '100%',
placeholder: '请选择工作结束时间', placeholder: '请选择工作开始时间',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true, showLabel: true,
allowClear: true, allowClear: true,
...@@ -708,32 +680,6 @@ export const formProps: FormProps = { ...@@ -708,32 +680,6 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '21906e99fb08459ea4318c04707797ca',
field: 'gzr',
label: '工作人',
type: 'user',
component: 'User',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
span: 7,
width: '100%',
defaultValue: '',
placeholder: '请选择工作人',
userType: 0,
prefix: '',
suffix: 'ant-design:setting-outlined',
showLabel: true,
disabled: false,
required: false,
multiple: true,
isShow: true,
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: 'e17f3687f30f4a2995ea2b07348150b5', key: 'e17f3687f30f4a2995ea2b07348150b5',
field: 'cllx', field: 'cllx',
label: '车辆类型', label: '车辆类型',
...@@ -802,57 +748,74 @@ export const formProps: FormProps = { ...@@ -802,57 +748,74 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '5bd116e5f35344cb8780f747370cee8d', key: '0d265387754f487886c4b77058fd49a0',
field: 'bdsl', field: 'gzxm',
label: '磅单数量', label: '工作项目',
type: 'number', type: 'associate-popup',
component: 'InputNumber', component: 'MultiplePopup',
colProps: { span: 24 }, colProps: { span: 24 },
defaultValue: '',
componentProps: { componentProps: {
popupType: 'associate',
width: '100%', width: '100%',
span: 7, span: 7,
defaultValue: '', placeholder: '请选择工作项目',
min: 0,
max: 100,
step: 1,
disabled: false,
showLabel: true, showLabel: true,
controls: true, disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '工作项目',
apiConfig: {
path: '/cheliang/gzx',
method: 'GET',
apiId: 'd31f8fea01274bdf9f1f72464daa59e8',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [{ name: 'keyword', required: false, bindType: '' }],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql = \'SELECT id AS `value`, gzx AS label FROM mes_base_gongzuoxiang ?{keyword, WHERE gzx LIKE CONCAT("%", #{keyword}, "%")};\';\r\nreturn db.select(sql);',
outputParams: [{ name: 'label', tableTitle: '工作项', show: true, width: 150 }],
},
dicOptions: [],
required: false, required: false,
subTotal: false,
isShow: true,
rules: [], rules: [],
events: {}, events: {},
placeholder: '请输入磅单数量', isShow: true,
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' }, style: { width: '100%' },
}, },
}, },
{ {
key: 'ae4a15e58ffe4710b337560f7d3b0703', key: 'a349e957579e47cb90727cdfa8c9d21f',
field: 'gzsc', field: 'gzjssj',
label: '工作时长(h)', label: '工作结束时间',
type: 'number', type: 'date',
component: 'InputNumber', component: 'DatePicker',
colProps: { span: 24 }, colProps: { span: 24 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
width: '100%',
span: 7, span: 7,
defaultValue: '', defaultValue: '',
min: 0, width: '100%',
step: 1, placeholder: '请选择工作结束时间',
disabled: false, format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true, showLabel: true,
controls: true, allowClear: true,
disabled: false,
required: false, required: false,
subTotal: false,
isShow: true, isShow: true,
rules: [], rules: [],
events: {}, events: {},
placeholder: '请输入工作时长(h)', isGetCurrent: false,
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
searchType: 'time',
style: { width: '100%' }, style: { width: '100%' },
}, },
}, },
...@@ -902,51 +865,6 @@ export const formProps: FormProps = { ...@@ -902,51 +865,6 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '0d265387754f487886c4b77058fd49a0',
field: 'gzxm',
label: '工作项目',
type: 'associate-popup',
component: 'MultiplePopup',
colProps: { span: 24 },
componentProps: {
popupType: 'associate',
width: '100%',
span: 7,
placeholder: '请选择工作项目',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '工作项目',
apiConfig: {
path: '/cheliang/gzx',
method: 'GET',
apiId: 'd31f8fea01274bdf9f1f72464daa59e8',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [{ name: 'keyword', required: false, bindType: '' }],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql = \'SELECT id AS `value`, gzx AS label FROM mes_base_gongzuoxiang ?{keyword, WHERE gzx LIKE CONCAT("%", #{keyword}, "%")};\';\r\nreturn db.select(sql);',
outputParams: [{ name: 'label', tableTitle: '工作项', show: true, width: 150 }],
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '059de967d74b44bba170351aff279c63', key: '059de967d74b44bba170351aff279c63',
field: 'clzl', field: 'clzl',
label: '车辆重量(kg)', label: '车辆重量(kg)',
...@@ -1007,29 +925,57 @@ export const formProps: FormProps = { ...@@ -1007,29 +925,57 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '4da55e5ac2c04a2dacd2cd58470b6820', key: '5bd116e5f35344cb8780f747370cee8d',
field: 'gzkssj', field: 'bdsl',
label: '工作开始时间', label: '磅单数量',
type: 'date', type: 'number',
component: 'DatePicker', component: 'InputNumber',
colProps: { span: 24 }, colProps: { span: 24 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
width: '100%',
span: 7, span: 7,
defaultValue: '', defaultValue: '',
width: '100%', min: 0,
placeholder: '请选择工作开始时间', max: 100,
format: 'YYYY-MM-DD HH:mm:ss', step: 1,
disabled: false,
showLabel: true, showLabel: true,
allowClear: true, controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
placeholder: '请输入磅单数量',
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: 'ae4a15e58ffe4710b337560f7d3b0703',
field: 'gzsc',
label: '工作时长(h)',
type: 'number',
component: 'InputNumber',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
min: 0,
step: 1,
disabled: false, disabled: false,
showLabel: true,
controls: true,
required: false, required: false,
subTotal: false,
isShow: true, isShow: true,
rules: [], rules: [],
events: {}, events: {},
isGetCurrent: false, placeholder: '请输入工作时长(h)',
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
searchType: 'time',
style: { width: '100%' }, style: { width: '100%' },
}, },
}, },
......
...@@ -23,22 +23,6 @@ export const permissionList = [ ...@@ -23,22 +23,6 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '班组',
fieldId: 'banzu',
isSubTable: false,
showChildren: true,
type: 'radio',
key: 'fdb254d1c2dc4370a1905ffd85148370',
children: [],
options: {},
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '车牌号码', fieldName: '车牌号码',
fieldId: 'cphm', fieldId: 'cphm',
isSubTable: false, isSubTable: false,
...@@ -72,12 +56,12 @@ export const permissionList = [ ...@@ -72,12 +56,12 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '工作结束时间', fieldName: '工作',
fieldId: 'gzjssj', fieldId: 'gzr',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'date', type: 'user',
key: 'a349e957579e47cb90727cdfa8c9d21f', key: '21906e99fb08459ea4318c04707797ca',
children: [], children: [],
options: {}, options: {},
defaultValue: '', defaultValue: '',
...@@ -89,12 +73,12 @@ export const permissionList = [ ...@@ -89,12 +73,12 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '车辆id', fieldName: '工作开始时间',
fieldId: 'cheliangId', fieldId: 'gzkssj',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'input', type: 'date',
key: 'e1221f5840d7486588dd2c1e086af59d', key: '4da55e5ac2c04a2dacd2cd58470b6820',
children: [], children: [],
options: {}, options: {},
defaultValue: '', defaultValue: '',
...@@ -106,12 +90,12 @@ export const permissionList = [ ...@@ -106,12 +90,12 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '工作人', fieldName: '车辆id',
fieldId: 'gzr', fieldId: 'cheliangId',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'user', type: 'input',
key: '21906e99fb08459ea4318c04707797ca', key: 'e1221f5840d7486588dd2c1e086af59d',
children: [], children: [],
options: {}, options: {},
defaultValue: '', defaultValue: '',
...@@ -156,15 +140,14 @@ export const permissionList = [ ...@@ -156,15 +140,14 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '磅单数量', fieldName: '工作项目',
fieldId: 'bdsl', fieldId: 'gzxm',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'number', type: 'associate-popup',
key: '5bd116e5f35344cb8780f747370cee8d', key: '0d265387754f487886c4b77058fd49a0',
children: [], children: [],
options: {}, options: {},
defaultValue: '',
}, },
{ {
required: false, required: false,
...@@ -173,12 +156,12 @@ export const permissionList = [ ...@@ -173,12 +156,12 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '工作时长(h)', fieldName: '工作结束时间',
fieldId: 'gzsc', fieldId: 'gzjssj',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'number', type: 'date',
key: 'ae4a15e58ffe4710b337560f7d3b0703', key: 'a349e957579e47cb90727cdfa8c9d21f',
children: [], children: [],
options: {}, options: {},
defaultValue: '', defaultValue: '',
...@@ -206,14 +189,15 @@ export const permissionList = [ ...@@ -206,14 +189,15 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '工作项目', fieldName: '车辆重量(kg)',
fieldId: 'gzxm', fieldId: 'clzl',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'associate-popup', type: 'number',
key: '0d265387754f487886c4b77058fd49a0', key: '059de967d74b44bba170351aff279c63',
children: [], children: [],
options: {}, options: {},
defaultValue: '',
}, },
{ {
required: false, required: false,
...@@ -222,12 +206,12 @@ export const permissionList = [ ...@@ -222,12 +206,12 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '车辆重量(kg)', fieldName: '车辆品牌型号',
fieldId: 'clzl', fieldId: 'clppxh',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'number', type: 'input',
key: '059de967d74b44bba170351aff279c63', key: '45b440505abc47e2a61e9a0a459c67b2',
children: [], children: [],
options: {}, options: {},
defaultValue: '', defaultValue: '',
...@@ -239,12 +223,12 @@ export const permissionList = [ ...@@ -239,12 +223,12 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '车辆品牌型号', fieldName: '磅单数量',
fieldId: 'clppxh', fieldId: 'bdsl',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'input', type: 'number',
key: '45b440505abc47e2a61e9a0a459c67b2', key: '5bd116e5f35344cb8780f747370cee8d',
children: [], children: [],
options: {}, options: {},
defaultValue: '', defaultValue: '',
...@@ -256,12 +240,12 @@ export const permissionList = [ ...@@ -256,12 +240,12 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '工作开始时间', fieldName: '工作时长(h)',
fieldId: 'gzkssj', fieldId: 'gzsc',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'date', type: 'number',
key: '4da55e5ac2c04a2dacd2cd58470b6820', key: 'ae4a15e58ffe4710b337560f7d3b0703',
children: [], children: [],
options: {}, options: {},
defaultValue: '', defaultValue: '',
......
...@@ -182,8 +182,8 @@ ...@@ -182,8 +182,8 @@
formConfig: { formConfig: {
labelWidth: 100, labelWidth: 100,
schemas: searchFormSchema, schemas: searchFormSchema,
fieldMapToTime: [['gzjssj', ['gzjssjStart', 'gzjssjEnd'], 'YYYY-MM-DD HH:mm:ss ', true], fieldMapToTime: [['gzkssj', ['gzkssjStart', 'gzkssjEnd'], 'YYYY-MM-DD HH:mm:ss ', true],
['gzkssj', ['gzkssjStart', 'gzkssjEnd'], 'YYYY-MM-DD HH:mm:ss ', true],], ['gzjssj', ['gzjssjStart', 'gzjssjEnd'], 'YYYY-MM-DD HH:mm:ss ', true],],
showResetButton: false, showResetButton: false,
}, },
bordered:false, bordered:false,
......
...@@ -10,12 +10,72 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -10,12 +10,72 @@ export const searchFormSchema: FormSchema[] = [
component: 'Input', component: 'Input',
}, },
{ {
field: 'djrq',
label: '单据日期',
defaultValue: undefined,
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm:ss',
style: { width: '100%' },
getPopupContainer: () => document.body,
},
},
{
field: 'ck', field: 'ck',
label: '仓库', label: '仓库',
defaultValue: undefined, defaultValue: undefined,
component: 'Input', component: 'Input',
}, },
{ {
field: 'crklx',
label: '出入库类型',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'dic',
params: { itemId: '2010533622867509249' },
labelField: 'name',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'jbr',
label: '经办人',
defaultValue: undefined,
component: 'Input',
},
{
field: 'bm',
label: '部门',
defaultValue: undefined,
component: 'Input',
},
{
field: 'ddkh',
label: '订单客户',
defaultValue: undefined,
component: 'Input',
},
{
field: 'djzt',
label: '单据状态',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'dic',
params: { itemId: '2010588655764074497' },
labelField: 'name',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'ywzz', field: 'ywzz',
label: '业务组织', label: '业务组织',
defaultValue: undefined, defaultValue: undefined,
...@@ -31,11 +91,47 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -31,11 +91,47 @@ export const searchFormSchema: FormSchema[] = [
}, },
}, },
{ {
field: 'cydw',
label: '承运单位',
defaultValue: undefined,
component: 'Input',
},
{
field: 'shrq',
label: '收货日期',
defaultValue: undefined,
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm:ss',
style: { width: '100%' },
getPopupContainer: () => document.body,
},
},
{
field: 'shdz',
label: '收货地址',
defaultValue: undefined,
component: 'Input',
},
{
field: 'shrxm',
label: '收货人',
defaultValue: undefined,
component: 'Input',
},
{
field: 'pch', field: 'pch',
label: '批次号', label: '批次号',
defaultValue: undefined, defaultValue: undefined,
component: 'Input', component: 'Input',
}, },
{
field: 'bz',
label: '备注',
defaultValue: undefined,
component: 'Input',
},
]; ];
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
...@@ -184,19 +280,6 @@ export const columns: BasicColumn[] = [ ...@@ -184,19 +280,6 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'shr',
title: '收货人',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'ywzz', dataIndex: 'ywzz',
title: '业务组织', title: '业务组织',
componentType: 'select', componentType: 'select',
...@@ -233,6 +316,19 @@ export const columns: BasicColumn[] = [ ...@@ -233,6 +316,19 @@ export const columns: BasicColumn[] = [
styleConfig: undefined, styleConfig: undefined,
listStyle: undefined, listStyle: undefined,
}, },
{
resizable: true,
dataIndex: 'shrxm',
title: '收货人',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
]; ];
//表头合并配置 //表头合并配置
export const headerMergingData = []; export const headerMergingData = [];
...@@ -639,7 +735,6 @@ export const formProps: FormProps = { ...@@ -639,7 +735,6 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' }, { key: 3, label: 'Option 3', value: 'Option 3' },
], ],
defaultSelect: null,
datasourceType: 'dic', datasourceType: 'dic',
params: { itemId: '2015724355955159041' }, params: { itemId: '2015724355955159041' },
labelField: 'name', labelField: 'name',
...@@ -774,7 +869,7 @@ export const formProps: FormProps = { ...@@ -774,7 +869,7 @@ export const formProps: FormProps = {
list: [ list: [
{ {
key: '4fb2b6b7dd9341d1b5dcf0968266269b', key: '4fb2b6b7dd9341d1b5dcf0968266269b',
field: 'shr', field: 'shrxm',
label: '收货人', label: '收货人',
type: 'input', type: 'input',
component: 'Input', component: 'Input',
...@@ -823,7 +918,6 @@ export const formProps: FormProps = { ...@@ -823,7 +918,6 @@ export const formProps: FormProps = {
span: 8, span: 8,
defaultValue: '', defaultValue: '',
placeholder: '请输入批次号', placeholder: '请输入批次号',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
......
...@@ -207,7 +207,7 @@ export const permissionList = [ ...@@ -207,7 +207,7 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '收货人', fieldName: '收货人',
fieldId: 'shr', fieldId: 'shrxm',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'input', type: 'input',
......
...@@ -184,7 +184,8 @@ ...@@ -184,7 +184,8 @@
formConfig: { formConfig: {
labelWidth: 100, labelWidth: 100,
schemas: searchFormSchema, schemas: searchFormSchema,
fieldMapToTime: [], fieldMapToTime: [['djrq', ['djrqStart', 'djrqEnd'], 'YYYY-MM-DD HH:mm:ss ', true],
['shrq', ['shrqStart', 'shrqEnd'], 'YYYY-MM-DD HH:mm:ss ', true],],
showResetButton: false, showResetButton: false,
}, },
bordered:false, bordered:false,
......
...@@ -595,7 +595,7 @@ export const formProps: FormProps = { ...@@ -595,7 +595,7 @@ export const formProps: FormProps = {
{ name: 'category_id', tableTitle: '工序类别' }, { name: 'category_id', tableTitle: '工序类别' },
{ name: 'id', tableTitle: 'ID' }, { name: 'id', tableTitle: 'ID' },
{ tableTitle: '采集方案ID', name: 'collection_scheme_id' }, { tableTitle: '采集方案ID', name: 'collection_scheme_id' },
{ name: 'rated_working_hours', tableTitle: '额工时定' }, { name: 'rated_working_hours', tableTitle: '额定工时' },
], ],
}, },
itemId: '', itemId: '',
......
...@@ -10,7 +10,7 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -10,7 +10,7 @@ export const searchFormSchema: FormSchema[] = [
}, },
{ {
field: 'cpid', field: 'cpid',
label: '选择产品', label: '产品',
defaultValue: undefined, defaultValue: undefined,
component: 'XjrSelect', component: 'XjrSelect',
componentProps: { componentProps: {
...@@ -68,25 +68,6 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -68,25 +68,6 @@ export const searchFormSchema: FormSchema[] = [
getPopupContainer: () => document.body, getPopupContainer: () => document.body,
}, },
}, },
{
field: 'sfyy',
label: '是否有效',
defaultValue: 1,
component: 'Select',
componentProps: {
getPopupContainer: () => document.body,
options: [
{
label: '开',
value: 1,
},
{
label: '关',
value: 0,
},
],
},
},
]; ];
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
...@@ -105,21 +86,21 @@ export const columns: BasicColumn[] = [ ...@@ -105,21 +86,21 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'bomsl', dataIndex: 'cpmc',
title: '物料数量', title: '产品名称',
componentType: 'number', componentType: 'input',
fixed: false, fixed: false,
sorter: true, sorter: true,
styleConfig: undefined, styleConfig: undefined,
listStyle: undefined, listStyle: '',
}, },
{ {
resizable: true, resizable: true,
dataIndex: 'bombb', dataIndex: 'cpbh',
title: '物料版本', title: '产品编号',
componentType: 'input', componentType: 'input',
fixed: false, fixed: false,
...@@ -131,8 +112,8 @@ export const columns: BasicColumn[] = [ ...@@ -131,8 +112,8 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'cpmc', dataIndex: 'cpgg',
title: '产品名称', title: '产品规格',
componentType: 'input', componentType: 'input',
fixed: false, fixed: false,
...@@ -144,8 +125,8 @@ export const columns: BasicColumn[] = [ ...@@ -144,8 +125,8 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'cpgg', dataIndex: 'cpxh',
title: '产品规格', title: '产品型号',
componentType: 'input', componentType: 'input',
fixed: false, fixed: false,
...@@ -157,8 +138,21 @@ export const columns: BasicColumn[] = [ ...@@ -157,8 +138,21 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'cpxh', dataIndex: 'bomsl',
title: '产品型号', title: '物料数量',
componentType: 'number',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'bombb',
title: '物料版本',
componentType: 'input', componentType: 'input',
fixed: false, fixed: false,
...@@ -360,7 +354,7 @@ export const formProps: FormProps = { ...@@ -360,7 +354,7 @@ export const formProps: FormProps = {
{ {
key: 'c42ef62f38e1445b89e5c3362ffd3af2', key: 'c42ef62f38e1445b89e5c3362ffd3af2',
field: 'cpid', field: 'cpid',
label: '选择产品', label: '产品',
type: 'associate-popup', type: 'associate-popup',
component: 'MultiplePopup', component: 'MultiplePopup',
colProps: { span: 24 }, colProps: { span: 24 },
...@@ -368,7 +362,7 @@ export const formProps: FormProps = { ...@@ -368,7 +362,7 @@ export const formProps: FormProps = {
popupType: 'associate', popupType: 'associate',
width: '100%', width: '100%',
span: 7, span: 7,
placeholder: '请选择产品选择', placeholder: '请产品选择',
showLabel: true, showLabel: true,
disabled: false, disabled: false,
datasourceType: 'api', datasourceType: 'api',
...@@ -448,7 +442,7 @@ export const formProps: FormProps = { ...@@ -448,7 +442,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入产品编号', placeholder: '',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -486,7 +480,7 @@ export const formProps: FormProps = { ...@@ -486,7 +480,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入产品名称', placeholder: '',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -524,7 +518,7 @@ export const formProps: FormProps = { ...@@ -524,7 +518,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入产品规格', placeholder: '',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -562,7 +556,7 @@ export const formProps: FormProps = { ...@@ -562,7 +556,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入产品型号', placeholder: '',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -663,8 +657,27 @@ export const formProps: FormProps = { ...@@ -663,8 +657,27 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '2d0c8112a86543e0ac71468e261f0a55',
field: '',
label: '',
type: 'tab',
colProps: { span: 24 },
component: 'Tab',
children: [
{
span: 24,
name: '物料',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [
{
key: 'c87fc2d18e24429a819521f35f19137b', key: 'c87fc2d18e24429a819521f35f19137b',
label: '物料项', label: '',
field: 'mesBaseBomItemList', field: 'mesBaseBomItemList',
type: 'form', type: 'form',
component: 'SubForm', component: 'SubForm',
...@@ -674,63 +687,6 @@ export const formProps: FormProps = { ...@@ -674,63 +687,6 @@ export const formProps: FormProps = {
mainKey: 'mesBaseBomItemList', mainKey: 'mesBaseBomItemList',
columns: [ columns: [
{ {
key: '709b38c05d11468db0db4e6e9168e4f9',
title: '选择物料',
dataIndex: 'wlmc',
componentType: 'MultiplePopup',
componentProps: {
popupType: 'associate',
width: '100%',
placeholder: '请选择物料选择',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '物料列表',
apiConfig: {
path: '/scgl/scjh/getAllProduct',
method: 'GET',
apiId: 'f4fbb57f2f18425e97918a031c8aa7d8',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql = 'select *,id as value,cpmc as label from mes_base_product_info where delete_mark=0';\r\nreturn db.select(sql)",
outputParams: [
{
name: 'cpbh',
tableTitle: '物料编号',
bindField: 'wlbh',
show: true,
width: 150,
component: '3988d1cba45a464abbeabce6ed09970e',
bindTable: 'mes_base_bom_item',
},
{
name: 'cpmc',
tableTitle: '物料名称',
bindField: 'wlmc',
show: true,
width: 150,
component: '112f6292bd884006ad872f06aeef4e6f',
bindTable: 'mes_base_bom_item',
},
],
},
dicOptions: [],
required: true,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: 'name',
},
},
{
key: '3988d1cba45a464abbeabce6ed09970e', key: '3988d1cba45a464abbeabce6ed09970e',
title: '物料编号', title: '物料编号',
dataIndex: 'wlbh', dataIndex: 'wlbh',
...@@ -739,7 +695,7 @@ export const formProps: FormProps = { ...@@ -739,7 +695,7 @@ export const formProps: FormProps = {
componentProps: { componentProps: {
width: '100%', width: '100%',
defaultValue: '', defaultValue: '',
placeholder: '请输入物料编号', placeholder: '',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -757,37 +713,37 @@ export const formProps: FormProps = { ...@@ -757,37 +713,37 @@ export const formProps: FormProps = {
bordered: true, bordered: true,
isShowAi: false, isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '', prestrainField: 'cpbh',
}, },
}, },
{ {
key: '112f6292bd884006ad872f06aeef4e6f', key: '112f6292bd884006ad872f06aeef4e6f',
title: '物料名称', title: '物料名称',
dataIndex: 'wuLiaoMingChen9398', dataIndex: 'wlmc',
componentType: 'Input', componentType: 'Input',
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
width: '100%', width: '100%',
defaultValue: '', defaultValue: '',
placeholder: '请输入物料名称', placeholder: '',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
addonAfter: '', addonAfter: '',
disabled: true, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: false,
rules: [], rules: [],
events: {}, events: {},
listStyle: '', listStyle: '',
isSave: true, isSave: false,
isShow: false, isShow: true,
scan: false, scan: false,
bordered: true, bordered: true,
isShowAi: false, isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '', prestrainField: 'cpmc',
}, },
}, },
{ {
...@@ -829,7 +785,7 @@ export const formProps: FormProps = { ...@@ -829,7 +785,7 @@ export const formProps: FormProps = {
controls: true, controls: true,
required: false, required: false,
subTotal: false, subTotal: false,
isShow: false, isShow: true,
rules: [], rules: [],
events: {}, events: {},
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
...@@ -904,7 +860,7 @@ export const formProps: FormProps = { ...@@ -904,7 +860,7 @@ export const formProps: FormProps = {
showLabel: true, showLabel: true,
disabled: false, disabled: false,
events: {}, events: {},
isShow: false, isShow: true,
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '', prestrainField: '',
}, },
...@@ -940,33 +896,80 @@ export const formProps: FormProps = { ...@@ -940,33 +896,80 @@ export const formProps: FormProps = {
prestrainField: '', prestrainField: '',
}, },
}, },
{
key: '998cedda278d4544ab851536bae4aacc',
title: '物料ID',
dataIndex: 'wlid',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
defaultValue: '',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: 'id',
},
},
{ title: '操作', key: 'action', fixed: 'right', width: '50px' }, { title: '操作', key: 'action', fixed: 'right', width: '50px' },
], ],
span: 2, span: 2,
preloadType: 'dic', preloadType: 'api',
apiConfig: { apiConfig: {
path: '/scgl/wlqd/getAllBomItemList', path: '/scgl/scjh/getAllProduct',
method: 'GET', method: 'GET',
apiId: '1a6a0c6bab2a4aceaf761b0c2c8d17a0', apiId: 'f4fbb57f2f18425e97918a031c8aa7d8',
apiParams: [ apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] }, {
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'keyword',
value: '',
required: false,
dataType: 'String',
bindType: '',
},
],
},
{ key: '2', title: 'Header', tableInfo: [] }, { key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' }, { key: '3', title: 'Body' },
], ],
script: script:
"var sql = 'select *,id as value,wlmc as label from mes_base_bom_item where delete_mark=0';\r\nreturn db.select(sql)", "if(keyword!=null && keyword!=''){\r\n var sql = \"select *,id as value,cpmc as label from mes_base_product_info where delete_mark=0 and cpmc like '%${keyword}%' \";\r\n return db.select(sql)\r\n}\r\nvar sql = 'select *,id as value,cpmc as label from mes_base_product_info where delete_mark=0';\r\nreturn db.select(sql)",
outputParams: [
{ name: 'cpbh', tableTitle: '编号' },
{ name: 'cpmc', tableTitle: '名称' },
{ name: 'id', tableTitle: 'ID' },
],
}, },
itemId: '', itemId: '',
dicOptions: [], dicOptions: [],
useSelectButton: false, useSelectButton: true,
buttonName: '选择物料', buttonName: '选择',
showLabel: true, showLabel: true,
showComponentBorder: true, showComponentBorder: true,
showBorder: false, showBorder: false,
bordercolor: '#f0f0f0', bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true], bordershowtype: [true, true, true, true],
borderwidth: 1, borderwidth: 1,
showIndex: false, showIndex: true,
isShow: true, isShow: true,
multipleHeads: [], multipleHeads: [],
buttonList: [], buttonList: [],
...@@ -1040,13 +1043,76 @@ export const formProps: FormProps = { ...@@ -1040,13 +1043,76 @@ export const formProps: FormProps = {
checked: false, checked: false,
}, },
], ],
isShowAdd: true, isShowAdd: false,
isShowDelete: true, isShowDelete: true,
hasCheckedCol: false, hasCheckedCol: false,
events: {}, events: {},
showPagenation: true, showPagenation: true,
rowResize: false, rowResize: false,
widths: [
{
key: '3988d1cba45a464abbeabce6ed09970e',
name: '物料编号',
bindField: 'wlbh',
resizable: false,
isEdit: true,
},
{
key: '112f6292bd884006ad872f06aeef4e6f',
name: '物料名称',
bindField: 'wlmc',
resizable: false,
isEdit: true,
},
{
key: '80fe637a2eaa47a49e96f6e86f0efdda',
name: '物料数量',
bindField: 'wlsl',
resizable: false,
isEdit: false,
},
{
key: '1afa69530c154b6f904f1661e82ff9a3',
name: '库存数量',
bindField: 'wlkcl',
resizable: false,
isEdit: false,
},
{
key: 'd15b4777d2794944995aa2a085442a6e',
name: '客户标准(%)',
bindField: 'khbz',
resizable: false,
isEdit: false,
},
{
key: '1ef860d823ff46c690334dc5eff5a6e4',
name: '内控标准(%)',
bindField: 'nkbz',
resizable: false,
isEdit: false,
}, },
{
key: '40a1e893e8ee496a96d7ed6dbe17e271',
name: '是否投料',
bindField: 'sftl',
resizable: false,
isEdit: false,
},
{
key: '9230b500d1024028af68ed4ac49bdbd3',
name: '备注',
bindField: 'bz',
resizable: false,
isEdit: false,
},
],
},
},
],
},
],
componentProps: { tabPosition: 'top', size: 'default', type: 'line', isShow: true },
}, },
], ],
showActionButtonGroup: false, showActionButtonGroup: false,
......
...@@ -57,7 +57,7 @@ export const permissionList = [ ...@@ -57,7 +57,7 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '选择产品', fieldName: '产品',
fieldId: 'cpid', fieldId: 'cpid',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
...@@ -176,7 +176,7 @@ export const permissionList = [ ...@@ -176,7 +176,7 @@ export const permissionList = [
isSubTable: true, isSubTable: true,
showChildren: false, showChildren: false,
tableName: 'mesBaseBomItemList', tableName: 'mesBaseBomItemList',
fieldName: '物料项', fieldName: '',
fieldId: 'mesBaseBomItemList', fieldId: 'mesBaseBomItemList',
type: 'form', type: 'form',
key: 'c87fc2d18e24429a819521f35f19137b', key: 'c87fc2d18e24429a819521f35f19137b',
...@@ -190,21 +190,6 @@ export const permissionList = [ ...@@ -190,21 +190,6 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesBaseBomItemList', tableName: 'mesBaseBomItemList',
fieldName: '选择物料',
fieldId: 'wlmc',
type: 'MultiplePopup',
key: '709b38c05d11468db0db4e6e9168e4f9',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesBaseBomItemList',
fieldName: '物料编号', fieldName: '物料编号',
fieldId: 'wlbh', fieldId: 'wlbh',
type: 'Input', type: 'Input',
...@@ -221,7 +206,7 @@ export const permissionList = [ ...@@ -221,7 +206,7 @@ export const permissionList = [
showChildren: false, showChildren: false,
tableName: 'mesBaseBomItemList', tableName: 'mesBaseBomItemList',
fieldName: '物料名称', fieldName: '物料名称',
fieldId: 'wuLiaoMingChen9398', fieldId: 'wlmc',
type: 'Input', type: 'Input',
key: '112f6292bd884006ad872f06aeef4e6f', key: '112f6292bd884006ad872f06aeef4e6f',
children: [], children: [],
...@@ -316,6 +301,21 @@ export const permissionList = [ ...@@ -316,6 +301,21 @@ export const permissionList = [
key: '9230b500d1024028af68ed4ac49bdbd3', key: '9230b500d1024028af68ed4ac49bdbd3',
children: [], children: [],
}, },
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesBaseBomItemList',
fieldName: '物料ID',
fieldId: 'wlid',
type: 'Input',
key: '998cedda278d4544ab851536bae4aacc',
children: [],
},
], ],
}, },
]; ];
...@@ -222,3 +222,4 @@ ...@@ -222,3 +222,4 @@
}); });
</script> </script>
\ No newline at end of file
...@@ -3,19 +3,39 @@ import { BasicColumn } from '/@/components/Table'; ...@@ -3,19 +3,39 @@ import { BasicColumn } from '/@/components/Table';
import { uploadApi } from '/@/api/sys/upload'; import { uploadApi } from '/@/api/sys/upload';
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
// {
// field: 'jhbh',
// label: '计划编号',
// defaultValue: undefined,
// component: 'Input',
// },
{ {
field: 'ddbh', field: 'jhbh',
label: '订单编号', label: '计划编号',
defaultValue: undefined, defaultValue: undefined,
component: 'Input', component: 'Input',
}, },
{ {
field: 'kh',
label: '客户',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'api',
apiConfig: {
path: '/jcxx/getKhList',
method: 'GET',
apiId: '7bc8db3faba24b19a997856f6ef0b27e',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from roke_partner where delete_mark = 0 and customer = \'1\'";\r\nreturn db.select(sql);',
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'ywzz', field: 'ywzz',
label: '业务组织', label: '业务组织',
defaultValue: undefined, defaultValue: undefined,
...@@ -50,6 +70,19 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -50,6 +70,19 @@ export const searchFormSchema: FormSchema[] = [
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'jhbh',
title: '计划编号',
componentType: 'auto-code',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'ddbh', dataIndex: 'ddbh',
title: '订单编号', title: '订单编号',
componentType: 'input', componentType: 'input',
...@@ -63,9 +96,9 @@ export const columns: BasicColumn[] = [ ...@@ -63,9 +96,9 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'jhbh', dataIndex: 'kh',
title: '计划编号', title: '客户',
componentType: 'auto-code', componentType: 'select',
fixed: false, fixed: false,
sorter: true, sorter: true,
...@@ -76,9 +109,9 @@ export const columns: BasicColumn[] = [ ...@@ -76,9 +109,9 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'kh', dataIndex: 'jhjhrq',
title: '客户', title: '计划交付日期',
componentType: 'select', componentType: 'date',
fixed: false, fixed: false,
sorter: true, sorter: true,
...@@ -236,7 +269,7 @@ export const formProps: FormProps = { ...@@ -236,7 +269,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入客户项目号', placeholder: '请输入客户项目号项目号',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -283,7 +316,7 @@ export const formProps: FormProps = { ...@@ -283,7 +316,7 @@ export const formProps: FormProps = {
apiId: '93d735dcb7364a0f8102188ec4d77ac7', apiId: '93d735dcb7364a0f8102188ec4d77ac7',
}, },
dicOptions: [], dicOptions: [],
required: true, required: false,
rules: [], rules: [],
events: {}, events: {},
isShow: true, isShow: true,
...@@ -396,9 +429,9 @@ export const formProps: FormProps = { ...@@ -396,9 +429,9 @@ export const formProps: FormProps = {
componentProps: { componentProps: {
width: '100%', width: '100%',
span: 7, span: 7,
placeholder: '请选择下拉选择客户', placeholder: '',
showLabel: true, showLabel: true,
showSearch: false, showSearch: true,
isMultiple: false, isMultiple: false,
clearable: false, clearable: false,
disabled: false, disabled: false,
...@@ -442,7 +475,7 @@ export const formProps: FormProps = { ...@@ -442,7 +475,7 @@ export const formProps: FormProps = {
componentProps: { componentProps: {
width: '100%', width: '100%',
span: 7, span: 7,
placeholder: '请选择下拉选择业务组织', placeholder: '',
showLabel: true, showLabel: true,
showSearch: false, showSearch: false,
isMultiple: false, isMultiple: false,
...@@ -496,6 +529,25 @@ export const formProps: FormProps = { ...@@ -496,6 +529,25 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '4b60581139c047959bf0ed8f0d5dd55f',
field: '',
label: '',
type: 'tab',
colProps: { span: 24 },
component: 'Tab',
children: [
{
span: 24,
name: '物料',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [
{
key: '24ea4c6631d047a1a8e7c3fe86ab080c', key: '24ea4c6631d047a1a8e7c3fe86ab080c',
label: '', label: '',
field: 'mesProductionPlanProductList', field: 'mesProductionPlanProductList',
...@@ -516,8 +568,7 @@ export const formProps: FormProps = { ...@@ -516,8 +568,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
span: '', span: '',
defaultValue: '', defaultValue: '',
placeholder: '请输入产品ID产品ID', placeholder: '',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -540,7 +591,7 @@ export const formProps: FormProps = { ...@@ -540,7 +591,7 @@ export const formProps: FormProps = {
}, },
{ {
key: 'cd0038f42bc64c189b3821f0e2061321', key: 'cd0038f42bc64c189b3821f0e2061321',
title: '物料编号', title: '编号',
dataIndex: 'cpbh', dataIndex: 'cpbh',
componentType: 'Input', componentType: 'Input',
defaultValue: '', defaultValue: '',
...@@ -548,7 +599,7 @@ export const formProps: FormProps = { ...@@ -548,7 +599,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
span: '', span: '',
defaultValue: '', defaultValue: '',
placeholder: '请输入物料编号', placeholder: '',
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -570,6 +621,37 @@ export const formProps: FormProps = { ...@@ -570,6 +621,37 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: 'c8f88cafd17f4655bfbe4643ffe58c9c',
title: '名称',
dataIndex: 'cpmc',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: 'cpmc',
},
},
{
key: '6ce71ecb0b6e4d14ae65be4029b179fd', key: '6ce71ecb0b6e4d14ae65be4029b179fd',
title: '内部代码', title: '内部代码',
dataIndex: 'nbdm', dataIndex: 'nbdm',
...@@ -768,14 +850,14 @@ export const formProps: FormProps = { ...@@ -768,14 +850,14 @@ export const formProps: FormProps = {
itemId: '', itemId: '',
dicOptions: [], dicOptions: [],
useSelectButton: true, useSelectButton: true,
buttonName: '选择产品', buttonName: '选择',
showLabel: true, showLabel: true,
showComponentBorder: true, showComponentBorder: true,
showBorder: false, showBorder: false,
bordercolor: '#f0f0f0', bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true], bordershowtype: [true, true, true, true],
borderwidth: 1, borderwidth: 1,
showIndex: false, showIndex: true,
isShow: true, isShow: true,
multipleHeads: [], multipleHeads: [],
buttonList: [], buttonList: [],
...@@ -790,7 +872,77 @@ export const formProps: FormProps = { ...@@ -790,7 +872,77 @@ export const formProps: FormProps = {
hasCheckedCol: false, hasCheckedCol: false,
events: {}, events: {},
showPagenation: true, showPagenation: true,
widths: [
{
key: 'd762849da7e741a7b004c1c81b91593a',
name: '产品ID',
bindField: 'cpid',
resizable: false,
isEdit: false,
},
{
key: 'cd0038f42bc64c189b3821f0e2061321',
name: '编号',
bindField: 'cpbh',
resizable: false,
isEdit: true,
},
{
key: 'c8f88cafd17f4655bfbe4643ffe58c9c',
name: '名称',
bindField: 'cpmc',
resizable: false,
isEdit: true,
},
{
key: '6ce71ecb0b6e4d14ae65be4029b179fd',
name: '内部代码',
bindField: 'nbdm',
resizable: false,
isEdit: false,
},
{
key: '0c075736898c431ea3f5bca58ec65af6',
name: '型号',
bindField: 'xh',
resizable: false,
isEdit: false,
},
{
key: '697829b6aed54b8cbaa853c62619831a',
name: '合金状态',
bindField: 'hjzt',
resizable: false,
isEdit: false,
}, },
{
key: '2f56d9297a9c49d59d3b43f62e2946f2',
name: '规格(尺寸)',
bindField: 'gg',
resizable: false,
isEdit: false,
},
{
key: '6a93c6d77ce1428c9fbba62a02afd6d0',
name: '数量',
bindField: 'sl',
resizable: false,
isEdit: false,
},
{
key: '3b80cb19086e49e1a746cf9ace3f938e',
name: '质量/KG',
bindField: 'zl',
resizable: false,
isEdit: false,
},
],
},
},
],
},
],
componentProps: { tabPosition: 'top', size: 'default', type: 'line', isShow: true },
}, },
{ {
key: 'f7ae7fe08ec74cf6b91cd3cd35cfeaaf', key: 'f7ae7fe08ec74cf6b91cd3cd35cfeaaf',
......
...@@ -33,7 +33,7 @@ export const permissionList = [ ...@@ -33,7 +33,7 @@ export const permissionList = [
defaultValue: '', defaultValue: '',
}, },
{ {
required: true, required: false,
view: true, view: true,
edit: true, edit: true,
disabled: false, disabled: false,
...@@ -169,7 +169,7 @@ export const permissionList = [ ...@@ -169,7 +169,7 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesProductionPlanProductList', tableName: 'mesProductionPlanProductList',
fieldName: '物料编号', fieldName: '编号',
fieldId: 'cpbh', fieldId: 'cpbh',
type: 'Input', type: 'Input',
key: 'cd0038f42bc64c189b3821f0e2061321', key: 'cd0038f42bc64c189b3821f0e2061321',
...@@ -184,6 +184,21 @@ export const permissionList = [ ...@@ -184,6 +184,21 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesProductionPlanProductList', tableName: 'mesProductionPlanProductList',
fieldName: '名称',
fieldId: 'cpmc',
type: 'Input',
key: 'c8f88cafd17f4655bfbe4643ffe58c9c',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProductionPlanProductList',
fieldName: '内部代码', fieldName: '内部代码',
fieldId: 'nbdm', fieldId: 'nbdm',
type: 'Input', type: 'Input',
......
<template> <template>
<ResizePageWrapper :hasLeft="false"> <ResizePageWrapper :hasLeft="false">
<template #resizeRight> <template #resizeRight>
...@@ -26,7 +27,11 @@ ...@@ -26,7 +27,11 @@
</template> </template>
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'action'"> <template v-if="column.dataIndex === 'action'">
<TableAction <TableAction
:actions="getLessActions(record)" :actions="getLessActions(record)"
:dropDownActions="getMoreActions(record)" :dropDownActions="getMoreActions(record)"
...@@ -39,14 +44,27 @@ ...@@ -39,14 +44,27 @@
}}</span> }}</span>
</template> </template>
</template> </template>
</BasicTable> </BasicTable>
</template> </template>
<ScjhModal @register="registerModal" @success="handleFormSuccess" @cancel="handleFormCancel" />
</ResizePageWrapper>
<ScjhModal @register="registerModal" @success="handleFormSuccess" @cancel="handleFormCancel"/>
</ResizePageWrapper>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, computed, provide, Ref, createVNode } from 'vue'; import { ref, computed,provide,Ref, createVNode,
} from 'vue';
import { Modal } from 'ant-design-vue'; import { Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue'; import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
...@@ -61,19 +79,45 @@ ...@@ -61,19 +79,45 @@
import { useI18n } from '/@/hooks/web/useI18n'; import { useI18n } from '/@/hooks/web/useI18n';
import { usePermission } from '/@/hooks/web/usePermission'; import { usePermission } from '/@/hooks/web/usePermission';
import CustomButtonModal from '/@/components/Form/src/components/CustomButtonModal.vue'; import CustomButtonModal from '/@/components/Form/src/components/CustomButtonModal.vue';
import { executeListStyle, getValue } from '/@/hooks/web/useListStyle'; //列表样式配置 import { executeListStyle, getValue } from '/@/hooks/web/useListStyle';//列表样式配置
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useModal } from '/@/components/Modal'; import { useModal } from '/@/components/Modal';
import ScjhModal from './components/ScjhModal.vue'; import ScjhModal from './components/ScjhModal.vue';
import { searchFormSchema, columns } from './components/config'; import { searchFormSchema, columns } from './components/config';
import Icon from '/@/components/Icon/index'; import Icon from '/@/components/Icon/index';
const listSpliceNum = ref(3); //操作列最先展示几个 const listSpliceNum = ref(3); //操作列最先展示几个
import { useConcurrentLock } from '/@/hooks/web/useConcurrentLock'; import { useConcurrentLock } from '/@/hooks/web/useConcurrentLock';
const pageParamsInfo = ref<any>({}); const pageParamsInfo = ref<any>({});
...@@ -92,6 +136,11 @@ ...@@ -92,6 +136,11 @@
const filterColumns = filterColumnAuth(columns); const filterColumns = filterColumnAuth(columns);
const tableRef = ref(); const tableRef = ref();
//展示在列表内的按钮 //展示在列表内的按钮
const actionButtons = ref<string[]>(['view', 'edit', 'delete']); const actionButtons = ref<string[]>(['view', 'edit', 'delete']);
const buttonConfigs = computed(() => { const buttonConfigs = computed(() => {
...@@ -162,12 +211,18 @@ ...@@ -162,12 +211,18 @@
const { currentRoute } = useRouter(); const { currentRoute } = useRouter();
const formIdComputedRef = computed(() => currentRoute.value.meta.formId as string); const formIdComputedRef = computed(() => currentRoute.value.meta.formId as string);
provide<Ref<string>>('currentFormId', formIdComputedRef); provide<Ref<string>>('currentFormId', formIdComputedRef);
const selectedKeys = ref<string[]>([]); const selectedKeys = ref<string[]>([]);
const selectedRowsData = ref<any[]>([]); const selectedRowsData = ref<any[]>([]);
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerTable, { reload }] = useTable({ const [registerTable, { reload }] = useTable({
...@@ -184,18 +239,25 @@ ...@@ -184,18 +239,25 @@
fieldMapToTime: [], fieldMapToTime: [],
showResetButton: false, showResetButton: false,
}, },
bordered: false, bordered:false,
beforeFetch: (params) => { beforeFetch: (params) => {
pageParamsInfo.value = { ...params, FormId: formIdComputedRef.value, PK: 'id' }; pageParamsInfo.value = {...params, FormId: formIdComputedRef.value,PK: 'id' }
return pageParamsInfo.value; return pageParamsInfo.value;
}, },
afterFetch: (res) => { afterFetch: (res) => {
selectedKeys.value = []; selectedKeys.value = [];
selectedRowsData.value = []; selectedRowsData.value = [];
}, },
useSearchForm: true, useSearchForm: true,
showTableSetting: true, showTableSetting: true,
striped: false, striped: false,
actionColumn: { actionColumn: {
width: 195, width: 195,
...@@ -212,10 +274,15 @@ ...@@ -212,10 +274,15 @@
objectId: formIdComputedRef.value, ////系统表单formId,自定义表单releaseId的id值 objectId: formIdComputedRef.value, ////系统表单formId,自定义表单releaseId的id值
}); });
function buttonClick(code) { function buttonClick(code) {
btnEvent[code](); btnEvent[code]();
} }
function handleAdd() { function handleAdd() {
openModal(true, { isUpdate: false }); openModal(true, { isUpdate: false });
} }
...@@ -235,12 +302,16 @@ ...@@ -235,12 +302,16 @@
id: record[field], id: record[field],
isUpdate: true, isUpdate: true,
}; };
openModal(true, info); openModal(true, info);
} catch (error) {} } catch (error) {}
} }
function handleDelete(record: Recordable) { function handleDelete(record: Recordable) {
deleteList([record.id]); deleteList([record.id]);
} }
...@@ -265,6 +336,10 @@ ...@@ -265,6 +336,10 @@
}); });
} }
function onSelectChange(selectedRowKeys: [], selectedRows) { function onSelectChange(selectedRowKeys: [], selectedRows) {
selectedKeys.value = selectedRowKeys; selectedKeys.value = selectedRowKeys;
selectedRowsData.value = selectedRows; selectedRowsData.value = selectedRows;
...@@ -272,6 +347,7 @@ ...@@ -272,6 +347,7 @@
function customRow(record: Recordable) { function customRow(record: Recordable) {
return { return {
onClick: () => { onClick: () => {
let selectedRowKeys = [...selectedKeys.value]; let selectedRowKeys = [...selectedKeys.value];
if (selectedRowKeys.indexOf(record.id) >= 0) { if (selectedRowKeys.indexOf(record.id) >= 0) {
...@@ -291,11 +367,15 @@ ...@@ -291,11 +367,15 @@
} }
function handleSuccess() { function handleSuccess() {
selectedKeys.value = []; selectedKeys.value = [];
selectedRowsData.value = []; selectedRowsData.value = [];
reload(); reload();
} }
function handleFormSuccess() { function handleFormSuccess() {
handleSuccess(); handleSuccess();
handleCloseFormEnableLocke(buttonConfigs.value, 'edit'); handleCloseFormEnableLocke(buttonConfigs.value, 'edit');
...@@ -304,8 +384,9 @@ ...@@ -304,8 +384,9 @@
handleCloseFormEnableLocke(buttonConfigs.value, 'edit'); handleCloseFormEnableLocke(buttonConfigs.value, 'edit');
} }
function handleView(record: Recordable) { function handleView(record: Recordable) {
let info = { let info={
isView: true, isView: true,
id: record.id, id: record.id,
}; };
...@@ -348,7 +429,7 @@ ...@@ -348,7 +429,7 @@
let list = getActions(record); let list = getActions(record);
return list.slice(listSpliceNum.value); return list.slice(listSpliceNum.value);
} }
function getActions(record: Recordable): ActionItem[] { function getActions(record: Recordable):ActionItem[] {
record.isCanEdit = false; record.isCanEdit = false;
let actionsList: ActionItem[] = []; let actionsList: ActionItem[] = [];
...@@ -375,17 +456,24 @@ ...@@ -375,17 +456,24 @@
}); });
return actionsList; return actionsList;
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
:deep(.ant-table-selection-col) { :deep(.ant-table-selection-col) {
width: 50px; width: 50px;
} }
.show { .show{
display: flex; display: flex;
} }
.hide { .hide{
display: none !important; display: none !important;
} }
</style> </style>
...@@ -854,7 +854,7 @@ export const formProps: FormProps = { ...@@ -854,7 +854,7 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
showLabel: true, showLabel: true,
controls: true, controls: true,
required: false, required: true,
subTotal: false, subTotal: false,
isShow: true, isShow: true,
rules: [], rules: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment