Commit f89510ea by sunhaiwei

采购到货页面供应商字段改成可选择

parent ac0c5a6d
......@@ -28,7 +28,52 @@ export const searchFormSchema: FormSchema[] = [
field: 'gys',
label: '供应商',
defaultValue: undefined,
component: 'Input',
component: 'XjrSelect',
componentProps: {
datasourceType: 'api',
apiConfig: {
path: '/jcxx/gysInfoList',
method: 'GET',
apiId: '9099e750be50417299aa85ac4f27608b',
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_partner where delete_mark = 0 and customer=\'2\'"+\r\n\' ?{keyword, AND name LIKE CONCAT("%", #{keyword}, "%")}\';\r\nreturn db.select(sql);',
outputParams: [
{ name: 'label', tableTitle: '名称', bindField: '', show: true, width: 150 },
{ name: 'code', tableTitle: '编号', bindField: '', show: true, width: 150 },
{ name: 'contacts', tableTitle: '联系人', bindField: '', show: true, width: 150 },
{ name: 'address', tableTitle: '地址', bindField: '', show: true, width: 150 },
],
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'zdr',
......@@ -458,34 +503,66 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: '9f64a605992b43cc9443c96669b33b3d',
key: '67205496b1c94fea99508f8b16520473',
field: 'gys',
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/gysInfoList',
method: 'GET',
apiId: '9099e750be50417299aa85ac4f27608b',
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_partner where delete_mark = 0 and customer=\'2\'"+\r\n\' ?{keyword, AND name LIKE CONCAT("%", #{keyword}, "%")}\';\r\nreturn db.select(sql);',
outputParams: [
{ name: 'label', tableTitle: '名称', show: true, width: 150 },
{ name: 'code', tableTitle: '编号', show: true, width: 150 },
{ name: 'contacts', tableTitle: '联系人', show: true, width: 150 },
{ name: 'address', 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%' },
},
......
......@@ -77,11 +77,10 @@ export const permissionList = [
fieldId: 'gys',
isSubTable: false,
showChildren: true,
type: 'input',
key: '9f64a605992b43cc9443c96669b33b3d',
type: 'associate-popup',
key: '67205496b1c94fea99508f8b16520473',
children: [],
options: {},
defaultValue: '',
},
{
required: 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