Commit 7829bf09 by sunhaiwei

采购到货页面物料信息自动带出

parent 2f38cd24
......@@ -174,6 +174,8 @@ export interface MesWarehouseArrivedInfoModel {
modifyDate: string;
modifyUserId: string;
wlid: string;
}
/**
......
......@@ -921,6 +921,100 @@ export const formProps: FormProps = {
},
},
{
key: 'c793430b933d4d6db6c492bdec4597b1',
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: 'd156328500cb4894ad6856524fb85d98',
bindTable: 'mes_warehouse_arrived_info',
},
{
name: 'cpmc',
tableTitle: '物料名称',
bindField: 'wlmc',
show: true,
width: 150,
component: 'e8b50d775cf34c278af462df13a9c865',
bindTable: 'mes_warehouse_arrived_info',
},
{
name: 'gg',
tableTitle: '规格',
bindField: 'gg',
show: true,
width: 150,
component: '0e6903d4d9014dcfae6b1cb666d448b7',
bindTable: 'mes_warehouse_arrived_info',
},
{
name: 'xh',
tableTitle: '型号',
bindField: 'xh',
show: true,
width: 150,
component: '63ed4d83c8bc4858872435c676ca8eb7',
bindTable: 'mes_warehouse_arrived_info',
},
],
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'd156328500cb4894ad6856524fb85d98',
title: '物料编码',
dataIndex: 'wlbm',
......@@ -943,7 +1037,7 @@ export const formProps: FormProps = {
events: {},
listStyle: '',
isSave: false,
isShow: true,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
......
......@@ -268,6 +268,21 @@ export const permissionList = [
showChildren: false,
tableName: 'mesWarehouseArrivedInfoList',
fieldName: '物料编码',
fieldId: 'wlid',
type: 'MultiplePopup',
key: 'c793430b933d4d6db6c492bdec4597b1',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseArrivedInfoList',
fieldName: '物料编码',
fieldId: 'wlbm',
type: 'Input',
key: 'd156328500cb4894ad6856524fb85d98',
......
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