Commit d618696e by sunhaiwei

产品信息页面添加计量单位

parent c2054e80
...@@ -105,6 +105,12 @@ export interface MesBaseProductInfoModel { ...@@ -105,6 +105,12 @@ export interface MesBaseProductInfoModel {
p1: string; p1: string;
sfqypc: string; sfqypc: string;
scjl: string;
ckjl: string;
fzjl: string;
} }
/** /**
......
...@@ -612,6 +612,72 @@ export const formProps: FormProps = { ...@@ -612,6 +612,72 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: 'c5963f37e0514bafbe3ec2015544f54a',
field: 'scjl',
label: '生产计量',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择生产计量',
showLabel: true,
showSearch: true,
isMultiple: false,
clearable: false,
disabled: false,
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' },
],
defaultSelect: '',
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/jcxx/getJldw',
method: 'GET',
apiId: '9e3f493ed3fe4384a8f3eab17f1fee9b',
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 *,id as value,name as label from roke_uom where 1=1 ?{keyword, and name LIKE CONCAT('%', #{keyword}, '%')}\";\r\nreturn db.select(sql);",
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: 'adc48bfeb4ec40c982b4b6c40c07a8e1', key: 'adc48bfeb4ec40c982b4b6c40c07a8e1',
field: 'sfyx', field: 'sfyx',
label: '有效的', label: '有效的',
...@@ -699,6 +765,72 @@ export const formProps: FormProps = { ...@@ -699,6 +765,72 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '99c217c27f184cdfbc3fa7ffb9065d23',
field: 'ckjl',
label: '仓库计量',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择仓库计量',
showLabel: true,
showSearch: true,
isMultiple: false,
clearable: false,
disabled: false,
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' },
],
defaultSelect: '',
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/jcxx/getJldw',
method: 'GET',
apiId: '9e3f493ed3fe4384a8f3eab17f1fee9b',
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 *,id as value,name as label from roke_uom where 1=1 ?{keyword, and name LIKE CONCAT('%', #{keyword}, '%')}\";\r\nreturn db.select(sql);",
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '1c96dccdc764461690cb631d5cc2662b', key: '1c96dccdc764461690cb631d5cc2662b',
field: 'sfqypc', field: 'sfqypc',
label: '是否启用批次', label: '是否启用批次',
...@@ -792,6 +924,72 @@ export const formProps: FormProps = { ...@@ -792,6 +924,72 @@ export const formProps: FormProps = {
style: { width: '100%' }, style: { width: '100%' },
}, },
}, },
{
key: '4aa65e068aac43d492b0a102262924be',
field: 'fzjl',
label: '辅助计量',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择辅助计量',
showLabel: true,
showSearch: true,
isMultiple: false,
clearable: false,
disabled: false,
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' },
],
defaultSelect: '',
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/jcxx/getJldw',
method: 'GET',
apiId: '9e3f493ed3fe4384a8f3eab17f1fee9b',
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 *,id as value,name as label from roke_uom where 1=1 ?{keyword, and name LIKE CONCAT('%', #{keyword}, '%')}\";\r\nreturn db.select(sql);",
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
], ],
}, },
{ {
......
...@@ -156,6 +156,22 @@ export const permissionList = [ ...@@ -156,6 +156,22 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '生产计量',
fieldId: 'scjl',
isSubTable: false,
showChildren: true,
type: 'select',
key: 'c5963f37e0514bafbe3ec2015544f54a',
children: [],
options: {},
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '有效的', fieldName: '有效的',
fieldId: 'sfyx', fieldId: 'sfyx',
isSubTable: false, isSubTable: false,
...@@ -207,6 +223,22 @@ export const permissionList = [ ...@@ -207,6 +223,22 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '仓库计量',
fieldId: 'ckjl',
isSubTable: false,
showChildren: true,
type: 'select',
key: '99c217c27f184cdfbc3fa7ffb9065d23',
children: [],
options: {},
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '是否启用批次', fieldName: '是否启用批次',
fieldId: 'sfqypc', fieldId: 'sfqypc',
isSubTable: false, isSubTable: false,
...@@ -258,6 +290,22 @@ export const permissionList = [ ...@@ -258,6 +290,22 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '辅助计量',
fieldId: 'fzjl',
isSubTable: false,
showChildren: true,
type: 'select',
key: '4aa65e068aac43d492b0a102262924be',
children: [],
options: {},
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '内部代码', fieldName: '内部代码',
fieldId: 'nbdm', fieldId: 'nbdm',
isSubTable: false, isSubTable: false,
......
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