优化单据的宽度

This commit is contained in:
季圣华
2021-09-03 23:40:46 +08:00
parent 8a7f16947d
commit 3a2da03ac7
8 changed files with 18 additions and 15 deletions

View File

@@ -418,7 +418,7 @@
data () { data () {
return { return {
title: "详情", title: "详情",
width: '1200px', width: '1600px',
visible: false, visible: false,
model: {}, model: {},
financialType: '', financialType: '',

View File

@@ -107,7 +107,7 @@
data () { data () {
return { return {
title:"操作", title:"操作",
width: '1200px', width: '1600px',
moreStatus: false, moreStatus: false,
// 新增时子表默认添加几行空数据 // 新增时子表默认添加几行空数据
addDefaultRowNum: 1, addDefaultRowNum: 1,

View File

@@ -104,7 +104,7 @@
data () { data () {
return { return {
title:"操作", title:"操作",
width: '1200px', width: '1600px',
moreStatus: false, moreStatus: false,
// 新增时子表默认添加几行空数据 // 新增时子表默认添加几行空数据
addDefaultRowNum: 1, addDefaultRowNum: 1,

View File

@@ -112,7 +112,7 @@
data () { data () {
return { return {
title:"操作", title:"操作",
width: '1200px', width: '1600px',
moreStatus: false, moreStatus: false,
// 新增时子表默认添加几行空数据 // 新增时子表默认添加几行空数据
addDefaultRowNum: 1, addDefaultRowNum: 1,

View File

@@ -112,7 +112,7 @@
data () { data () {
return { return {
title:"操作", title:"操作",
width: '1200px', width: '1600px',
moreStatus: false, moreStatus: false,
// 新增时子表默认添加几行空数据 // 新增时子表默认添加几行空数据
addDefaultRowNum: 1, addDefaultRowNum: 1,

View File

@@ -137,7 +137,7 @@
data () { data () {
return { return {
title:"操作", title:"操作",
width: '1200px', width: '1600px',
moreStatus: false, moreStatus: false,
// 新增时子表默认添加几行空数据 // 新增时子表默认添加几行空数据
addDefaultRowNum: 0, addDefaultRowNum: 0,

View File

@@ -137,7 +137,7 @@
data () { data () {
return { return {
title:"操作", title:"操作",
width: '1200px', width: '1600px',
moreStatus: false, moreStatus: false,
// 新增时子表默认添加几行空数据 // 新增时子表默认添加几行空数据
addDefaultRowNum: 0, addDefaultRowNum: 0,

View File

@@ -290,30 +290,30 @@
dataSource: [], dataSource: [],
columns: [ columns: [
{ {
title: '条码', key: 'barCode', width: '20%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}', title: '条码', key: 'barCode', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}',
validateRules: [{ required: true, message: '${title}不能为空' }, validateRules: [{ required: true, message: '${title}不能为空' },
{ pattern: /^[1-9]\d*$/, message: '请输入零以上的正整数' }, { pattern: /^[1-9]\d*$/, message: '请输入零以上的正整数' },
{ pattern: /^\d{4,13}$/, message: '4到13位数字' }, { pattern: /^\d{4,13}$/, message: '4到13位数字' },
{ handler: this.validateBarCode}] { handler: this.validateBarCode}]
}, },
{ {
title: '单位', key: 'commodityUnit', width: '10%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}', title: '单位', key: 'commodityUnit', width: '8%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}',
validateRules: [{ required: true, message: '${title}不能为空' }] validateRules: [{ required: true, message: '${title}不能为空' }]
}, },
{ {
title: '多属性', key: 'sku', width: '12%', type: FormTypes.input, defaultValue: '', readonly:true, placeholder: '点击生成条码赋值' title: '多属性', key: 'sku', width: '10%', type: FormTypes.input, defaultValue: '', readonly:true, placeholder: '点击生成条码赋值'
}, },
{ {
title: '采购价', key: 'purchaseDecimal', width: '12%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' title: '采购价', key: 'purchaseDecimal', width: '8%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}'
}, },
{ {
title: '零售价', key: 'commodityDecimal', width: '12%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' title: '零售价', key: 'commodityDecimal', width: '8%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}'
}, },
{ {
title: '销售价', key: 'wholesaleDecimal', width: '12%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' title: '销售价', key: 'wholesaleDecimal', width: '8%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}'
}, },
{ {
title: '最低售价', key: 'lowDecimal', width: '12%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}' title: '最低售价', key: 'lowDecimal', width: '8%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}'
} }
] ]
}, },
@@ -845,5 +845,8 @@
} }
</script> </script>
<style scoped> <style scoped>
.input-table {
max-width: 100%;
min-width: 1550px;
}
</style> </style>