Commit 7f8e3e85 by sunhaiwei

销售出库页面添加物料编码选择框

parent 02d778ab
......@@ -1029,37 +1029,93 @@ export const formProps: FormProps = {
mainKey: 'mesWarehouseSaleoutInfoList',
columns: [
{
key: '5946ace2f9bf4ca9b6c6d5d3527aba83',
key: '54d24d79d45b465aae192edd0afb5bcd',
title: '物料编码',
dataIndex: 'wlbm',
componentType: 'Input',
defaultValue: '',
componentType: 'MultiplePopup',
componentProps: {
popupType: 'associate',
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入物料编码',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
placeholder: '请选择物料编码',
showLabel: true,
required: 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: 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 *,cpmc as value,cpmc 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: 'wlmc',
show: true,
width: 150,
component: '92b05df5ae0d4ba2b89a9916bab6b5b7',
bindTable: 'mes_warehouse_saleout_info',
},
{
name: 'gg',
tableTitle: '规格',
bindField: 'gg',
show: true,
width: 150,
component: '1d99a6a80d094a868f0375efcc8f2fe9',
bindTable: 'mes_warehouse_saleout_info',
},
{
name: 'xh',
tableTitle: '型号',
bindField: 'xh',
show: true,
width: 150,
component: '515c850edee148278145a0a457b1d5d6',
bindTable: 'mes_warehouse_saleout_info',
},
],
},
dicOptions: [],
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '6728aceca0174f729cf429d4b5b0f79a',
key: '92b05df5ae0d4ba2b89a9916bab6b5b7',
title: '物料名称',
dataIndex: 'wlmc',
componentType: 'Input',
......@@ -1069,6 +1125,7 @@ export const formProps: FormProps = {
span: '',
defaultValue: '',
placeholder: '请输入物料名称',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1084,7 +1141,7 @@ export const formProps: FormProps = {
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
isShowAi: true,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
......
......@@ -291,8 +291,8 @@ export const permissionList = [
tableName: 'mesWarehouseSaleoutInfoList',
fieldName: '物料编码',
fieldId: 'wlbm',
type: 'Input',
key: '5946ace2f9bf4ca9b6c6d5d3527aba83',
type: 'MultiplePopup',
key: '54d24d79d45b465aae192edd0afb5bcd',
children: [],
},
{
......@@ -307,7 +307,7 @@ export const permissionList = [
fieldName: '物料名称',
fieldId: 'wlmc',
type: 'Input',
key: '6728aceca0174f729cf429d4b5b0f79a',
key: '92b05df5ae0d4ba2b89a9916bab6b5b7',
children: [],
},
{
......
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