Commit 5008658f by sunhaiwei

采购到货页面子表批次号设置为自动带入

parent ead7818d
......@@ -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: [],
},
{
......
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