Commit dee15156 by 齐伟伦

Merge branch 'weiqiao-vue3' into 'hongshun'

Weiqiao vue3

See merge request !2
parents 945455de 7ec34d23
......@@ -29,10 +29,6 @@ export interface MesWarehouseProductPageModel {
crklx: string;
kgy: string;
scbm: string;
ck: string;
pch: string;
......@@ -42,6 +38,8 @@ export interface MesWarehouseProductPageModel {
djzt: string;
bz: string;
kgy: string;
}
/**
......
......@@ -66,7 +66,7 @@ export async function updateRokeDepartment(rokeDepartment: Recordable, mode: Err
{
url: Api.RokeDepartment,
params: rokeDepartment,
},
},
{
errorMessageMode: mode,
},
......
......@@ -74,7 +74,7 @@ export default {
registerButton: '注册',
rememberMe: '记住我',
forgetPassword: '忘记密码?',
otherSignIn: '其他登录方式',
// otherSignIn: '其他登录方式',
// notify
loginSuccessTitle: '登录成功',
......
......@@ -936,7 +936,7 @@ export const formProps: FormProps = {
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '联想弹层-联想数据配置',
assoTitle: '物料编码',
apiConfig: {
path: '/jcxx/wlInfoList',
method: 'GET',
......@@ -1169,74 +1169,110 @@ export const formProps: FormProps = {
},
},
{
key: 'ac4098a101a84c40b7ef51f714b136d9',
key: '36635cbf40d14baf96358f8fa129ce0f',
title: '实收数量',
dataIndex: 'sssl',
componentType: 'InputNumber',
componentType: 'Computation',
defaultValue: 0,
componentProps: {
width: '100%',
span: '',
min: 0,
step: 1,
disabled: false,
width: '100%',
defaultValue: 0,
placeholder: '请输入实收数量',
addonBefore: '',
addonAfter: '',
prefix: '',
maxlength: null,
showLabel: true,
controls: true,
required: false,
disabled: false,
subTotal: false,
computationalConfig: [],
computationalConfigValue: '== 请填写计算式配置 ==',
beAdoptedComponent: ['4be31cc0258a426bb3ed21612076b687'],
decimals: 0,
required: false,
isShow: true,
rules: [],
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: 'sssl',
listStyle: "return 'width:100%'",
},
},
{
key: '9cd15589c75f476ebe5605b3352e8ffc',
key: '5e4377f941cd450ba40bbc1f9d26ff27',
title: '应收数量',
dataIndex: 'yssl',
componentType: 'InputNumber',
componentType: 'Computation',
defaultValue: 0,
componentProps: {
width: '100%',
span: '',
min: 0,
step: 1,
disabled: false,
width: '100%',
defaultValue: 0,
placeholder: '请输入应收数量',
addonBefore: '',
addonAfter: '',
prefix: '',
maxlength: null,
showLabel: true,
controls: true,
required: false,
disabled: false,
subTotal: false,
computationalConfig: [],
computationalConfigValue: '== 请填写计算式配置 ==',
beAdoptedComponent: ['4be31cc0258a426bb3ed21612076b687'],
decimals: 0,
required: false,
isShow: true,
rules: [],
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: 'yssl',
listStyle: "return 'width:100%'",
},
},
{
key: '3b7ca3cc16344d6787f1676dcd3a77b7',
key: '4be31cc0258a426bb3ed21612076b687',
title: '剩余数量',
dataIndex: 'sysl',
componentType: 'InputNumber',
defaultValue: '',
componentType: 'Computation',
defaultValue: 0,
componentProps: {
width: '100%',
span: '',
defaultValue: '',
min: 0,
step: 1,
disabled: false,
width: '100%',
defaultValue: 0,
placeholder: '请输入剩余数量',
addonBefore: '',
addonAfter: '',
prefix: '',
maxlength: null,
showLabel: true,
controls: true,
required: false,
disabled: false,
subTotal: false,
computationalConfig: [
{
$index: 145,
label: '应收数量',
type: 'computational',
key: '5e4377f941cd450ba40bbc1f9d26ff27',
bindTable: 'mesWarehouseArrivedInfo',
bindField: 'yssl',
isMainForm: false,
},
{ $index: 841, label: '-', type: 'operation', key: 2 },
{
$index: 830,
label: '实收数量',
type: 'computational',
key: '36635cbf40d14baf96358f8fa129ce0f',
bindTable: 'mesWarehouseArrivedInfo',
bindField: 'sssl',
isMainForm: false,
},
],
computationalConfigValue: '应收数量-实收数量',
beAdoptedComponent: [],
decimals: 0,
required: false,
isShow: true,
rules: [],
events: {},
placeholder: '请输入剩余数量',
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'width:100%'",
},
},
{
......@@ -1320,7 +1356,10 @@ export const formProps: FormProps = {
showLabel: true,
required: false,
rules: [],
events: {},
events: {
click:
"const pch = formModel['pch'];\nconst length =formModel['mesWarehouseArrivedInfoList'].length;\nformModel.mesWarehouseArrivedInfoList[length-1].pch=pch; ",
},
listStyle: '',
isSave: false,
isShow: true,
......
......@@ -359,8 +359,8 @@ export const permissionList = [
tableName: 'mesWarehouseArrivedInfoList',
fieldName: '实收数量',
fieldId: 'sssl',
type: 'InputNumber',
key: 'ac4098a101a84c40b7ef51f714b136d9',
type: 'Computation',
key: '36635cbf40d14baf96358f8fa129ce0f',
children: [],
},
{
......@@ -374,8 +374,8 @@ export const permissionList = [
tableName: 'mesWarehouseArrivedInfoList',
fieldName: '应收数量',
fieldId: 'yssl',
type: 'InputNumber',
key: '9cd15589c75f476ebe5605b3352e8ffc',
type: 'Computation',
key: '5e4377f941cd450ba40bbc1f9d26ff27',
children: [],
},
{
......@@ -389,8 +389,8 @@ export const permissionList = [
tableName: 'mesWarehouseArrivedInfoList',
fieldName: '剩余数量',
fieldId: 'sysl',
type: 'InputNumber',
key: '3b7ca3cc16344d6787f1676dcd3a77b7',
type: 'Computation',
key: '4be31cc0258a426bb3ed21612076b687',
children: [],
},
{
......
......@@ -292,34 +292,87 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: '5a82773c288f4bb49914109c9f112f9e',
key: '1339633e12984e499ca9ceb44a89b739',
field: 'cpbh',
label: '产品编号',
type: 'input',
component: 'Input',
type: 'associate-popup',
component: 'MultiplePopup',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
popupType: 'associate',
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入产品编号',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
placeholder: '请选择产品编号',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '产品信息',
apiConfig: {
path: '/jcxx/wlbhList',
method: 'GET',
apiId: '588543bf8c6045fd89f63b8337f5aec6',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'keyword',
value: null,
description: null,
required: false,
dataType: null,
type: null,
defaultValue: null,
validateType: null,
error: null,
expression: null,
children: null,
bindType: '',
},
],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql ="select *,cpbh as value,cpbh as label from mes_base_product_info where delete_mark = 0"+\r\n\' ?{keyword, AND cpmc LIKE CONCAT("%", #{keyword}, "%")}\';\r\nreturn db.select(sql);',
outputParams: [
{ name: 'label', tableTitle: '产品编码', show: true, width: 150 },
{
name: 'cpmc',
tableTitle: '产品名称',
bindField: 'cpmc',
show: true,
width: 150,
component: '464846c54eb54238b89b5b87fca84e3b',
},
{
name: 'gg',
tableTitle: '规格',
bindField: 'gg',
show: true,
width: 150,
component: '55216a96a79245c2894a1e7ed60537aa',
},
{
name: 'xh',
tableTitle: '型号',
bindField: 'xh',
show: true,
width: 150,
component: 'afdf24cf5fe14e898257fe820d398723',
},
],
},
dicOptions: [],
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
......
......@@ -10,11 +10,10 @@ export const permissionList = [
fieldId: 'cpbh',
isSubTable: false,
showChildren: true,
type: 'input',
key: '5a82773c288f4bb49914109c9f112f9e',
type: 'associate-popup',
key: '1339633e12984e499ca9ceb44a89b739',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
......
......@@ -25,12 +25,6 @@ export const searchFormSchema: FormSchema[] = [
},
},
{
field: 'scbm',
label: '生产部门',
defaultValue: undefined,
component: 'Input',
},
{
field: 'ywzz',
label: '业务组织',
defaultValue: undefined,
......@@ -433,47 +427,75 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: '6948582a4bcc4ed59c2a9e20b0eb0a40',
key: '5138ee5cb107492e994b7e0b9e69be26',
field: 'kgy',
label: '库管员',
type: 'input',
component: 'Input',
type: 'associate-popup',
component: 'MultiplePopup',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
popupType: 'associate',
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入库管员',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
placeholder: '请选择库管员',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '库管员',
apiConfig: {
path: '/test3/getUserByName',
method: 'GET',
apiId: 'b0e85dd1dd054888a1452a3261938b28',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'name',
value: null,
description: null,
required: false,
dataType: null,
type: null,
defaultValue: null,
validateType: null,
error: null,
expression: null,
children: null,
bindType: '',
},
],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql = \'select id as "value", name as "label" from xjr_user WHERE delete_mark = 0 ?{name, and name like concat("%",#{name},"%")}\'\r\nreturn db.select(sql);\r\n',
outputParams: [{ name: 'label', tableTitle: '用户名', show: true, width: 150 }],
},
dicOptions: [],
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
],
},
{
span: 8,
list: [
{
key: '4974e34247094ea5bce99f66f4169b27',
field: 'scbm',
label: '生产部门',
key: 'ec89abed664a4341acd26ac8509d311a',
field: 'pch',
label: '批次号',
type: 'input',
component: 'Input',
colProps: { span: 24 },
......@@ -482,7 +504,7 @@ export const formProps: FormProps = {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入生产部门',
placeholder: '请输入批次号',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -505,6 +527,8 @@ export const formProps: FormProps = {
},
],
},
{
span: 8,
list: [
......@@ -596,13 +620,14 @@ export const formProps: FormProps = {
},
],
},
{
span: 8,
list: [
{
key: 'ec89abed664a4341acd26ac8509d311a',
field: 'pch',
label: '批次号',
key: '4974e34247094ea5bce99f66f4169b27',
field: 'scbm',
label: '生产部门',
type: 'input',
component: 'Input',
colProps: { span: 24 },
......@@ -611,7 +636,7 @@ export const formProps: FormProps = {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入批次号',
placeholder: '请输入生产部门',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -624,7 +649,7 @@ export const formProps: FormProps = {
events: {},
listStyle: '',
isSave: false,
isShow: true,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
......@@ -634,6 +659,7 @@ export const formProps: FormProps = {
},
],
},
{
span: 24,
list: [
......@@ -785,6 +811,100 @@ export const formProps: FormProps = {
mainKey: 'mesWarehouseProductInfoList',
columns: [
{
key: '9f9255da541c4ab6987fb95a9cd10fe0',
title: '物料编码',
dataIndex: 'wlid',
componentType: 'MultiplePopup',
componentProps: {
popupType: 'associate',
width: '100%',
span: '',
placeholder: '请选择物料编码',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '物料信息',
apiConfig: {
path: '/jcxx/wlInfoList',
method: 'GET',
apiId: '58a1e5be580f4cc991e444e95142bbe7',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'keyword',
value: null,
description: null,
required: false,
dataType: 'String',
type: null,
defaultValue: null,
validateType: null,
error: null,
expression: null,
children: null,
bindType: '',
},
],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql ="select *,id as value,cpbh as label from mes_base_product_info where delete_mark = 0"+\r\n\' ?{keyword, AND cpmc LIKE CONCAT("%", #{keyword}, "%")}\';\r\nreturn db.select(sql);',
outputParams: [
{
name: 'label',
tableTitle: '物料编码',
bindField: 'wlbm',
show: true,
width: 150,
component: '67758677bce44720b4af09091d5590f3',
bindTable: 'mes_warehouse_product_info',
},
{
name: 'cpmc',
tableTitle: '物料名称',
bindField: 'wlmc',
show: true,
width: 150,
component: '90eb56185b5c419b9f0d7d6179beed9b',
bindTable: 'mes_warehouse_product_info',
},
{
name: 'gg',
tableTitle: '规格',
bindField: 'gg',
show: true,
width: 150,
component: 'e5b7433c899c4af095639be8726ede96',
bindTable: 'mes_warehouse_product_info',
},
{
name: 'xh',
tableTitle: '型号',
bindField: 'xh',
show: true,
width: 150,
component: '3d33a3a9e46545c5ba831660038ebc88',
bindTable: 'mes_warehouse_product_info',
},
],
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '67758677bce44720b4af09091d5590f3',
title: '物料编码',
dataIndex: 'wlbm',
......@@ -802,12 +922,12 @@ export const formProps: FormProps = {
disabled: false,
allowClear: false,
showLabel: true,
required: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
......@@ -915,9 +1035,7 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
min: 0,
max: null,
step: 1,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
......@@ -967,9 +1085,7 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
min: 0,
max: null,
step: 1,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
......@@ -1014,32 +1130,42 @@ export const formProps: FormProps = {
},
},
{
key: '5d9a11c345e24ff59f416012ae5fb4c1',
key: 'f48fe405a2dc46799eb0c943254d6c88',
title: '货位',
dataIndex: 'hw',
componentType: 'Input',
defaultValue: '',
componentType: 'MultiplePopup',
componentProps: {
popupType: 'associate',
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入货位',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
placeholder: '请选择货位',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '货位信息',
apiConfig: {
path: '/getStoreLocation',
method: 'GET',
apiId: 'd55f1866db284ecd8b038a3956b9c5b7',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql=\"select name as value,name as label from mes_storage_location where delete_mark = 0 ?{keyword, and code like concat('%',#{keyword},'%')}\";\r\nreturn db.select(sql);",
outputParams: [
{ name: 'label', tableTitle: '货位名称', show: true, width: 150 },
],
},
dicOptions: [],
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
......@@ -1160,6 +1286,100 @@ export const formProps: FormProps = {
mainKey: 'mesWarehouseProductChangeList',
columns: [
{
key: 'c2c87879074c465cbf872c30f274f080',
title: '物料编码',
dataIndex: 'wlid',
componentType: 'MultiplePopup',
componentProps: {
popupType: 'associate',
width: '100%',
span: '',
placeholder: '请选择物料编码',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '物料信息',
apiConfig: {
path: '/jcxx/wlInfoList',
method: 'GET',
apiId: '58a1e5be580f4cc991e444e95142bbe7',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'keyword',
value: null,
description: null,
required: false,
dataType: 'String',
type: null,
defaultValue: null,
validateType: null,
error: null,
expression: null,
children: null,
bindType: '',
},
],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql ="select *,id as value,cpbh as label from mes_base_product_info where delete_mark = 0"+\r\n\' ?{keyword, AND cpmc LIKE CONCAT("%", #{keyword}, "%")}\';\r\nreturn db.select(sql);',
outputParams: [
{
name: 'label',
tableTitle: '物料编码',
bindField: 'wlbm',
show: true,
width: 150,
component: 'd1de0271a0aa489e8fbed33e705c4f5a',
bindTable: 'mes_warehouse_product_change',
},
{
name: 'cpmc',
tableTitle: '物料名称',
bindField: 'wlmc',
show: true,
width: 150,
component: '0f703bdd6bbe49f1ac1bac1b332090f2',
bindTable: 'mes_warehouse_product_change',
},
{
name: 'gg',
tableTitle: '规格',
bindField: 'gg',
show: true,
width: 150,
component: 'c35ad73504024d5ba769b876b00733d2',
bindTable: 'mes_warehouse_product_change',
},
{
name: 'xh',
tableTitle: '型号',
bindField: 'xh',
show: true,
width: 150,
component: '431253da65194e0290f806281603a46f',
bindTable: 'mes_warehouse_product_change',
},
],
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'd1de0271a0aa489e8fbed33e705c4f5a',
title: '物料编码',
dataIndex: 'wlbm',
......@@ -1170,7 +1390,6 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
placeholder: '请输入物料编码',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1183,7 +1402,7 @@ export const formProps: FormProps = {
events: {},
listStyle: '',
isSave: false,
isShow: true,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
......@@ -1201,7 +1420,6 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
placeholder: '请输入物料名称',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1232,7 +1450,6 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
placeholder: '请输入规格',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1263,7 +1480,6 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
placeholder: '请输入型号',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1294,7 +1510,6 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
placeholder: '请输入批次号',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1315,33 +1530,61 @@ export const formProps: FormProps = {
},
},
{
key: '4ff849ba704342fa901be52adeab6bb8',
key: 'fe0be7ab60d8433d8c4b5832b15acd60',
title: '货位',
dataIndex: 'hw',
componentType: 'Input',
defaultValue: '',
componentType: 'MultiplePopup',
componentProps: {
popupType: 'associate',
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入货位',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
placeholder: '请选择货位',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '货位信息',
apiConfig: {
path: '/getStoreLocation',
method: 'GET',
apiId: 'd55f1866db284ecd8b038a3956b9c5b7',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'keyword',
value: null,
description: null,
required: false,
dataType: null,
type: null,
defaultValue: null,
validateType: null,
error: null,
expression: null,
children: null,
bindType: '',
},
],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql=\"select name as value,name as label from mes_storage_location where delete_mark = 0 ?{keyword, and name like concat('%',#{keyword},'%')}\";\r\nreturn db.select(sql);",
outputParams: [
{ name: 'label', tableTitle: '名称', show: true, width: 150 },
],
},
dicOptions: [],
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
......@@ -1356,9 +1599,7 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
min: 0,
max: null,
step: 1,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
......@@ -1383,7 +1624,6 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
placeholder: '请输入备注',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......
......@@ -76,11 +76,10 @@ export const permissionList = [
fieldId: 'kgy',
isSubTable: false,
showChildren: true,
type: 'input',
key: '6948582a4bcc4ed59c2a9e20b0eb0a40',
type: 'associate-popup',
key: '5138ee5cb107492e994b7e0b9e69be26',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
......@@ -223,6 +222,21 @@ export const permissionList = [
showChildren: false,
tableName: 'mesWarehouseProductInfoList',
fieldName: '物料编码',
fieldId: 'wlid',
type: 'MultiplePopup',
key: '9f9255da541c4ab6987fb95a9cd10fe0',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseProductInfoList',
fieldName: '物料编码',
fieldId: 'wlbm',
type: 'Input',
key: '67758677bce44720b4af09091d5590f3',
......@@ -344,8 +358,8 @@ export const permissionList = [
tableName: 'mesWarehouseProductInfoList',
fieldName: '货位',
fieldId: 'hw',
type: 'Input',
key: '5d9a11c345e24ff59f416012ae5fb4c1',
type: 'MultiplePopup',
key: 'f48fe405a2dc46799eb0c943254d6c88',
children: [],
},
{
......@@ -403,6 +417,21 @@ export const permissionList = [
showChildren: false,
tableName: 'mesWarehouseProductChangeList',
fieldName: '物料编码',
fieldId: 'wlid',
type: 'MultiplePopup',
key: 'c2c87879074c465cbf872c30f274f080',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseProductChangeList',
fieldName: '物料编码',
fieldId: 'wlbm',
type: 'Input',
key: 'd1de0271a0aa489e8fbed33e705c4f5a',
......@@ -479,8 +508,8 @@ export const permissionList = [
tableName: 'mesWarehouseProductChangeList',
fieldName: '货位',
fieldId: 'hw',
type: 'Input',
key: '4ff849ba704342fa901be52adeab6bb8',
type: 'MultiplePopup',
key: 'fe0be7ab60d8433d8c4b5832b15acd60',
children: [],
},
{
......
<template>
<BasicModal
:height="500"
v-bind="$attrs" @register="registerModal" :title="getTitle"
@ok="handleSubmit" @cancel="handleClose" >
<ModalForm ref="formRef" v-model:value="state.formModel" :fromPage="FromPageType.MENU" />
<template #footer v-if=" !state.isView">
<BasicModal
:height="500"
v-bind="$attrs"
@register="registerModal"
:title="getTitle"
@ok="handleSubmit"
@cancel="handleClose"
>
<ModalForm ref="formRef" v-model:value="state.formModel" :fromPage="FromPageType.MENU" />
<template #footer v-if="!state.isView">
<template v-for="(item, index) in sortBy(formButtons, 'index')" :key="item.key">
<template v-if="item.isShow">
<template v-if="item.isShow">
<CustomButtonModal v-if="item.type == CustomButtonModalType.Modal" :info="item" />
<a-button
:type="item.style"
......@@ -22,29 +23,28 @@
</template>
</template>
</template>
</BasicModal>
</BasicModal>
</template>
<script lang="ts" setup>
import { ref, computed, reactive, provide, Ref } from 'vue';
import { ref, computed, reactive, provide, Ref } from 'vue';
import { BasicModal, useModalInner } from '/@/components/Modal';
import { CustomButtonModalType } from '/@/enums/userEnum';
import CustomButtonModal from '/@/components/Form/src/components/CustomButtonModal.vue';
import { CustomButtonModalType } from '/@/enums/userEnum';
import CustomButtonModal from '/@/components/Form/src/components/CustomButtonModal.vue';
import { useMessage } from '/@/hooks/web/useMessage';
import { useI18n } from '/@/hooks/web/useI18n';
import { formProps ,formButtons } from './config';
import { formProps, formButtons } from './config';
import ModalForm from './Form.vue';
import { FromPageType } from '/@/enums/workflowEnum';
import { sortBy } from 'lodash-es';
import { executeCurFormEvent } from '/@/utils/event/data';
import { sortBy } from 'lodash-es';
import { executeCurFormEvent } from '/@/utils/event/data';
const emit = defineEmits(['success', 'register']);
const { notification } = useMessage();
const formRef = ref();
const isCopy = ref<boolean>(false)
const isCopy = ref<boolean>(false);
const state = reactive({
formModel: {},
isUpdate: true,
......@@ -55,40 +55,41 @@
const { t } = useI18n();
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
await handleInner(data);
await handleInner(data);
});
const getTitle = computed(() => (state.isView ? '查看' : state.isUpdate ? '编辑' : isCopy.value ? '复制数据' : '新增'));
const getTitle = computed(() =>
state.isView ? '查看' : state.isUpdate ? '编辑' : isCopy.value ? '复制数据' : '新增',
);
async function handleInner(data){
async function handleInner(data) {
state.isUpdate = !!data?.isUpdate;
state.isView = !!data?.isView;
isCopy.value = !!data?.isCopy;
setModalProps({
destroyOnClose: true,
maskClosable: false,
showCancelBtn: false,
showOkBtn: false,
canFullscreen: true,
width: 900,
footer: state.isView ? null : undefined,defaultFullscreen:true,
width: 900,
footer: state.isView ? null : undefined,
defaultFullscreen: true,
});
if (state.isUpdate || state.isView || isCopy.value) {
state.rowId = data.id;
if (state.isView) {
await formRef.value.setDisabledForm();
}
await formRef.value.setFormDataFromId(state.rowId);
} else {
formRef.value.resetFields();
}
}
async function saveModal() {
let saveSuccess = false;
try {
......@@ -117,9 +118,9 @@
async function handleSubmit() {
try {
const saveSuccess = await saveModal();
setModalProps({ confirmLoading: true });
if (saveSuccess) {
if (!state.isUpdate || isCopy.value) {
//false 新增
......@@ -133,34 +134,31 @@
description: t('修改成功!'),
}); //提示消息
}
closeModal();
formRef.value.resetFields();
emit('success');
}
} finally {
setModalProps({ confirmLoading: false });
}
}
function customClick(item) {
if (item.key == 'confirm') {
handleSubmit();
} else if (item.key == 'cancel' && props.formType !== 'normal') {
} else if (item.key == 'cancel') {
handleClose();
closeModal();
closeModal();
} else if (item.key == 'reset') {
formRef.value.resetFields();
} else {
executeCurFormEvent(item.event, state.formModel, true);
}
}
}
function handleClose() {
formRef.value.resetFields();
}
</script>
\ No newline at end of file
<template>
<div class="pt-4">
<SimpleForm
ref="systemFormRef"
:formProps="data.formDataProps"
:formModel="state.formModel"
:isWorkFlow="props.fromPage!=FromPageType.MENU"
:isCamelCase="true"
:isWorkFlow="props.fromPage != FromPageType.MENU"
:isCamelCase="true"
@model-change="handleChange"
/>
</div>
......@@ -15,21 +14,30 @@
import { reactive, ref, onMounted, nextTick, watch } from 'vue';
import { formProps, formEventConfigs } from './config';
import SimpleForm from '/@/components/SimpleForm/src/SimpleForm.vue';
import { addMesCollectionScheme, getMesCollectionScheme, updateMesCollectionScheme } from '/@/api/jcsj/cjfa';
import { cloneDeep, isString } from 'lodash-es';
import {
addMesCollectionScheme,
getMesCollectionScheme,
updateMesCollectionScheme,
} from '/@/api/jcsj/cjfa';
import { cloneDeep, isString } from 'lodash-es';
import { FormDataProps } from '/@/components/Designer/src/types';
import { usePermission } from '/@/hooks/web/usePermission';
import CustomButtonModal from '/@/components/Form/src/components/CustomButtonModal.vue';
import { FromPageType } from '/@/enums/workflowEnum';
import { createFormEvent, getFormDataEvent, loadFormEvent, submitFormEvent,} from '/@/hooks/web/useFormEvent';
import {
createFormEvent,
getFormDataEvent,
loadFormEvent,
submitFormEvent,
} from '/@/hooks/web/useFormEvent';
import { changeWorkFlowForm, changeSchemaDisabled } from '/@/hooks/web/useWorkFlowForm';
import { WorkFlowFormParams } from '/@/model/workflow/bpmnConfig';
import { useRouter } from 'vue-router';
const { filterFormSchemaAuth } = usePermission();
const RowKey = 'id';
const emits = defineEmits(['changeUploadComponentIds','loadingCompleted', 'update:value']);
const emits = defineEmits(['changeUploadComponentIds', 'loadingCompleted', 'update:value']);
const props = defineProps({
fromPage: {
type: Number,
......@@ -42,34 +50,52 @@
});
const state = reactive({
formModel: {},
formInfo:{formId:'',formName:''}
formInfo: { formId: '', formName: '' },
});
const { currentRoute } = useRouter();
watch(
() => state.formModel,
(val) => {
(val) => {
emits('update:value', val);
},
{
deep: true,
},
);
onMounted(async () => {
try {
if (props.fromPage == FromPageType.MENU) {
setMenuPermission();
if(currentRoute.value.meta){
state.formInfo.formName = currentRoute.value.meta.title&&isString(currentRoute.value.meta.title)?currentRoute.value.meta.title:'';
state.formInfo.formId = currentRoute.value.meta.formId&&isString(currentRoute.value.meta.formId)?currentRoute.value.meta.formId:'';
if (currentRoute.value.meta) {
state.formInfo.formName =
currentRoute.value.meta.title && isString(currentRoute.value.meta.title)
? currentRoute.value.meta.title
: '';
state.formInfo.formId =
currentRoute.value.meta.formId && isString(currentRoute.value.meta.formId)
? currentRoute.value.meta.formId
: '';
}
await createFormEvent(formEventConfigs, state.formModel,
await createFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:初始化表单
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:初始化表单
await nextTick();
await loadFormEvent(formEventConfigs, state.formModel,
await loadFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:加载表单
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:加载表单
} else if (props.fromPage == FromPageType.FLOW) {
emits('loadingCompleted'); //告诉系统表单已经加载完毕
// loadingCompleted后 工作流页面直接利用Ref调用setWorkFlowForm方法
......@@ -78,15 +104,28 @@
} else if (props.fromPage == FromPageType.DESKTOP) {
// 桌面设计 表单事件需要执行
emits('loadingCompleted'); //告诉系统表单已经加载完毕
await createFormEvent(formEventConfigs, state.formModel,
await createFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:初始化表单
await loadFormEvent(formEventConfigs, state.formModel,
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:初始化表单
await loadFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:加载表单
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:加载表单
}
} catch (error) {}
});
// 根据菜单页面权限,设置表单属性(必填,禁用,显示)
function setMenuPermission() {
data.formDataProps.schemas = filterFormSchemaAuth(data.formDataProps.schemas!);
......@@ -106,20 +145,26 @@
} finally {
}
return values;
}
}
// 根据行唯一ID查询行数据,并设置表单数据 【编辑】
async function setFormDataFromId(rowId) {
try {
const record = await getMesCollectionScheme(rowId);
const record = await getMesCollectionScheme(rowId);
setFieldsValue(record);
state.formModel = record;
await getFormDataEvent(formEventConfigs, state.formModel,
await getFormDataEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:获取表单数据
} catch (error) {
}
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:获取表单数据
} catch (error) {}
}
// 辅助返回表单数据
async function getFieldsValue() {
let values = [];
......@@ -135,47 +180,66 @@
}
return values;
}
// 辅助设置表单数据
function setFieldsValue(record) {
systemFormRef.value.setFieldsValue(record);
}
// 重置表单数据
async function resetFields() {
await systemFormRef.value.resetFields();
}
// 设置表单数据全部为Disabled 【查看】
async function setDisabledForm( ) {
async function setDisabledForm() {
data.formDataProps.schemas = changeSchemaDisabled(cloneDeep(data.formDataProps.schemas));
}
// 获取行键值
function getRowKey() {
return RowKey;
}
// 更新api表单数据
async function update({ values, rowId }) {
try {
values[RowKey] = rowId;
state.formModel = values;
let saveVal = await updateMesCollectionScheme(values);
await submitFormEvent(formEventConfigs, state.formModel,
await submitFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:提交表单
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:提交表单
return saveVal;
} catch (error) {}
}
// 新增api表单数据
async function add(values) {
try {
state.formModel = values;
let saveVal = await addMesCollectionScheme(values);
await submitFormEvent(formEventConfigs, state.formModel,
await submitFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:提交表单
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:提交表单
return saveVal;
} catch (error) {}
}
// 根据工作流页面权限,设置表单属性(必填,禁用,显示)
async function setWorkFlowForm(obj: WorkFlowFormParams) {
async function setWorkFlowForm(obj: WorkFlowFormParams) {
try {
if (obj.formId) state.formInfo.formId = obj.formId;
if (obj.formName) state.formInfo.formName = obj.formName;
......@@ -189,23 +253,38 @@
state.formModel = formModels;
setFieldsValue(formModels);
} catch (error) {}
await createFormEvent(formEventConfigs, state.formModel,
await createFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:初始化表单
await loadFormEvent(formEventConfigs, state.formModel,
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:初始化表单
await loadFormEvent(
formEventConfigs,
state.formModel,
systemFormRef.value,
formProps.schemas, true, state.formInfo.formName,state.formInfo.formId); //表单事件:加载表单
formProps.schemas,
true,
state.formInfo.formName,
state.formInfo.formId,
); //表单事件:加载表单
}
function handleChange(val) {
function handleChange(val) {
emits('update:value', val);
}
async function sendMessageForAllIframe() {
async function sendMessageForAllIframe() {
try {
if (systemFormRef.value && systemFormRef.value.sendMessageForAllIframe) {
systemFormRef.value.sendMessageForAllIframe();
}
} catch (error) {}
}
defineExpose({
setFieldsValue,
resetFields,
......@@ -218,8 +297,6 @@
setWorkFlowForm,
getRowKey,
getFieldsValue,
sendMessageForAllIframe
sendMessageForAllIframe,
});
</script>
\ No newline at end of file
......@@ -523,6 +523,7 @@ export const formProps: FormProps = {
{ name: 'code', tableTitle: '编码' },
{ name: 'name', tableTitle: '名称' },
{ name: 'note', tableTitle: '备注' },
{ name: 'type', tableTitle: '类型' },
{ name: 'id', tableTitle: 'ID' },
],
},
......
......@@ -2,12 +2,12 @@
<template>
<BasicModal
:height="1080"
<BasicModal
:height="1080"
v-bind="$attrs" @register="registerModal" :title="getTitle"
@ok="handleSubmit" @cancel="handleClose" >
<ModalForm ref="formRef" v-model:value="state.formModel" :fromPage="FromPageType.MENU" />
</BasicModal>
</template>
......@@ -135,4 +135,3 @@
</script>
\ No newline at end of file
......@@ -10,10 +10,10 @@
</template>
<template #resizeRight>
<BasicTable @register="registerTable" isMenuTable ref="tableRef"
<BasicTable @register="registerTable" isMenuTable ref="tableRef"
>
<template #toolbar>
<template v-for="button in tableButtonConfig" :key="button.code">
<a-button v-if="button.isDefault" type="primary" @click="buttonClick(button.code)">
......@@ -21,10 +21,10 @@
{{ button.name }}
</a-button>
<CustomButtonModal v-else-if="button.buttonType == 'modal'" :info="button" />
<a-button v-else :type="button.buttonType === 'danger' ? 'default' : button.buttonType || 'primary'" :danger="button.buttonType === 'danger'" >
<template #icon><Icon :icon="button.icon" /></template>
{{ button.name }}
</a-button>
<!-- <a-button v-else :type="button.buttonType === 'danger' ? 'default' : button.buttonType || 'primary'" :danger="button.buttonType === 'danger'" >-->
<!-- <template #icon><Icon :icon="button.icon" /></template>-->
<!-- {{ button.name }}-->
<!-- </a-button>-->
</template>
</template>
<template #bodyCell="{ column, record }">
......@@ -36,25 +36,25 @@
:disabled="true"
/>
</template>
<template v-if="column.dataIndex === 'action'">
<TableAction
:actions="getLessActions(record)"
:dropDownActions="getMoreActions(record)"
/>
</template>
<template v-else-if="column.dataIndex && column?.listStyle">
<span :style="executeListStyle(getValue(record, column, 'style'), column?.listStyle)">{{
getValue(record, column, 'value')
}}</span>
</template>
</template>
</BasicTable>
</template>
......@@ -82,7 +82,7 @@
import { useMessage } from '/@/hooks/web/useMessage';
import { useI18n } from '/@/hooks/web/useI18n';
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 { useRouter } from 'vue-router';
......@@ -104,7 +104,7 @@
import { searchFormSchema, columns } from './components/config';
import { treeConfig } from './components/config';
import {TreeStructure} from '/@/components/TreeStructure';
import {TreeStructure} from '/@/components/TreeStructure';
import Icon from '/@/components/Icon/index';
import { BasicTree, TreeItem } from '/@/components/Tree';
......@@ -136,12 +136,7 @@
const filterColumns = filterColumnAuth(columns);
const tableRef = ref();
//展示在列表内的按钮
const actionButtons = ref<string[]>(["view","edit","delete"]);
const buttonConfigs = computed(()=>{
......@@ -197,17 +192,17 @@
return pageParamsInfo.value;
},
afterFetch: (res) => {
},
useSearchForm: true,
showTableSetting: true,
striped: false,
actionColumn: {
width: 195,
......@@ -428,4 +423,4 @@
</style>
\ No newline at end of file
</style>
......@@ -2,8 +2,8 @@
<template>
<BasicModal
:height="1080"
<BasicModal
:height="1080"
v-bind="$attrs" @register="registerModal" :title="getTitle"
@ok="handleSubmit" @cancel="handleClose" >
<ModalForm ref="formRef" v-model:value="state.formModel" :fromPage="FromPageType.MENU" />
......
......@@ -267,7 +267,7 @@ export const formProps: FormProps = {
popupType: 'associate',
width: '100%',
span: 7,
placeholder: '请产品名称选择',
placeholder: '请选择产品名称',
showLabel: true,
disabled: false,
datasourceType: 'api',
......@@ -927,7 +927,8 @@ export const formProps: FormProps = {
{ key: '3', title: 'Body' },
],
script:
"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)",
"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: '名称' },
......
......@@ -1126,6 +1126,35 @@ export const formProps: FormProps = {
},
},
{
key: 'f77409b09aba410ca08f78847b871a45',
field: 'jhsl',
label: '计划数量',
type: 'number',
component: 'InputNumber',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
min: 0,
max: null,
step: 1,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
placeholder: '请输入计划数量',
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '32d66a3f683c4cb482f439d0619412fd',
field: 'bz',
label: '备注',
......@@ -1138,7 +1167,7 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '请输入备注',
rows: 4,
rows: 3,
autoSize: false,
showCount: false,
disabled: false,
......
......@@ -387,6 +387,23 @@ export const permissionList = [
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '计划数量',
fieldId: 'jhsl',
isSubTable: false,
showChildren: true,
type: 'number',
key: 'f77409b09aba410ca08f78847b871a45',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '备注',
fieldId: 'bz',
isSubTable: false,
......
......@@ -111,11 +111,20 @@ import { log } from 'node:console';
if (newGylxId && !state.isInitializing) {
try {
const response = await getRokeRouting(newGylxId);
//计划数量
const jhsl = state.formModel["sl"];
//计划开始时间
const jhksrq = state.formModel["jhksrq"];
//计划结束时间
const jhjsrq = state.formModel["jhjsrq"];
// Assign the process list from API response to production order list with field mapping
state.formModel.mesProductionGongdanList = response.rokeRoutingProcessList.map(item => ({
gxbh: item.code, // 工序编号 → 工序编号
gxmc: item.name, // 工序名称 → 工序名称
jhsl: jhsl,
jhksrq: jhksrq,
jhjsrq: jhjsrq,
gxId: item.processId // 工序ID → 工序ID
}));
} catch (error) {
......
......@@ -782,7 +782,7 @@ export const formProps: FormProps = {
maxSize: '',
showLabel: true,
multiple: false,
disabled: true,
disabled: false,
required: false,
isShow: true,
events: {},
......@@ -817,7 +817,7 @@ export const formProps: FormProps = {
disabled: false,
allowClear: false,
showLabel: true,
required: false,
required: true,
rules: [],
events: { change: '' },
listStyle: '',
......@@ -1384,6 +1384,102 @@ export const formProps: FormProps = {
},
},
{
key: '512d436e22c895a098efc1be72a113ea',
title: '计划数量',
dataIndex: 'jhsl',
componentType: 'InputNumber',
defaultValue: null,
componentProps: {
width: '100%',
span: '',
defaultValue: null,
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: true,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '',
},
},
{
key: '983d777e22c113a965efc1be72a225ea',
title: '计划开始时间',
dataIndex: 'jhksrq',
componentType: 'DatePicker',
defaultValue: null,
componentProps: {
width: '100%',
span: '',
defaultValue: null,
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
format: 'YYYY-MM-DD HH:mm:ss',
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: '',
},
},
{
key: '345d623e15c966a965efc1be72a446ea',
title: '计划结束时间',
dataIndex: 'jhjsrq',
componentType: 'DatePicker',
defaultValue: null,
componentProps: {
width: '100%',
span: '',
defaultValue: null,
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
format: 'YYYY-MM-DD HH:mm:ss',
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: '',
},
},
{
key: '2f069a67fe784742a2729fa09af94ec4',
title: '工序ID隐藏',
dataIndex: 'gxId',
......
......@@ -35,23 +35,23 @@
</template>
</InputPassword>
</FormItem>
<FormItem name="code" class="enter-x" v-if="formData.showCaptcha">
<label class="form-title"> {{ t('验证码') }}</label>
<div style="display: flex">
<Input
size="large"
v-model:value="formData.code"
:placeholder="t('验证码')"
class="fix-auto-fill"
style="height: 58px"
/>
<img
:src="formData.captchaImg"
style="width: 100%; height: 60px; margin-left: 10px"
@click="getImg"
/>
</div>
</FormItem>
<!-- <FormItem name="code" class="enter-x" v-if="formData.showCaptcha">-->
<!-- <label class="form-title"> {{ t('验证码') }}</label>-->
<!-- <div style="display: flex">-->
<!-- <Input-->
<!-- size="large"-->
<!-- v-model:value="formData.code"-->
<!-- :placeholder="t('验证码')"-->
<!-- class="fix-auto-fill"-->
<!-- style="height: 58px"-->
<!-- />-->
<!-- <img-->
<!-- :src="formData.captchaImg"-->
<!-- style="width: 100%; height: 60px; margin-left: 10px"-->
<!-- @click="getImg"-->
<!-- />-->
<!-- </div>-->
<!-- </FormItem>-->
<ARow class="enter-x">
<ACol :span="12">
<FormItem>
......@@ -97,16 +97,16 @@
</ACol>
</ARow> -->
<a-divider class="enter-x">{{ t('其他登录方式') }}</a-divider>
<!-- <a-divider class="enter-x">{{ t('其他登录方式') }}</a-divider>-->
</div>
<!-- <div style="height: 1000px; width: 800px" v-else>
<iframe id="iframeId" style="height: 100%; width: 100%" :src="authorizeUrl"></iframe>
</div> -->
<div class="text-center" :class="`${prefixCls}-sign-in-way`">
<WechatOutlined @click="oauthLogin('wechat_enterprise')" class="methods-icon mr-5" />
<DingdingOutlined @click="oauthLogin('dingtalk')" class="methods-icon" />
</div>
<!-- <div class="text-center" :class="`${prefixCls}-sign-in-way`">-->
<!-- <WechatOutlined @click="oauthLogin('wechat_enterprise')" class="methods-icon mr-5" />-->
<!-- <DingdingOutlined @click="oauthLogin('dingtalk')" class="methods-icon" />-->
<!-- </div>-->
</Form>
<Modal
......
......@@ -287,6 +287,18 @@ export const columns: BasicColumn[] = [
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'createDate',
title: '创建时间',
componentType: 'date',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
......@@ -303,6 +315,19 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'lydh',
title: '来源单号',
componentType: 'select',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'zt',
title: '质检状态',
componentType: 'select',
......
......@@ -75,7 +75,18 @@ export const columns: BasicColumn[] = [
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'createDate',
title: '创建时间',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'cp',
......
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