fix bug
This commit is contained in:
@@ -202,6 +202,7 @@ export const option = createCrudOption([
|
||||
label: '单价',
|
||||
prop: 'cargoValue',
|
||||
formslot: true,
|
||||
formatter: row => (String(row.cargoValue) === '-1' ? '' : row.cargoValue),
|
||||
minWidth: 120,
|
||||
rules: [
|
||||
{
|
||||
@@ -277,6 +278,9 @@ export const option = createCrudOption([
|
||||
),
|
||||
]);
|
||||
|
||||
// 搜索栏标签统一加宽,给较长的货物类型字段预留足够展示空间。
|
||||
option.searchLabelWidth = 160;
|
||||
|
||||
export const excelOption = {
|
||||
submitBtn: false,
|
||||
emptyBtn: false,
|
||||
|
||||
@@ -50,6 +50,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
@@ -128,6 +129,7 @@ export const option = {
|
||||
prop: 'directEconomicLoss',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: '元',
|
||||
minWidth: 140,
|
||||
span: 12,
|
||||
placeholder: '请输入',
|
||||
@@ -138,6 +140,7 @@ export const option = {
|
||||
prop: 'insuranceClaimAmount',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: '元',
|
||||
minWidth: 140,
|
||||
span: 12,
|
||||
placeholder: '请输入',
|
||||
|
||||
@@ -49,6 +49,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
@@ -145,6 +146,7 @@ export const option = {
|
||||
prop: 'fee',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: '元',
|
||||
minWidth: 100,
|
||||
span: 12,
|
||||
placeholder: '请输入',
|
||||
|
||||
@@ -30,6 +30,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
|
||||
@@ -39,6 +39,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
|
||||
@@ -43,6 +43,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
|
||||
@@ -35,6 +35,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
@@ -70,6 +71,7 @@ export const option = {
|
||||
prop: 'previousMonthMileage',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: 'km',
|
||||
minWidth: 210,
|
||||
slot: true,
|
||||
rules: [{ validator: validateNonNegative, trigger: 'blur' }],
|
||||
@@ -79,6 +81,7 @@ export const option = {
|
||||
prop: 'currentMonthMileage',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: 'km',
|
||||
minWidth: 210,
|
||||
slot: true,
|
||||
rules: [{ validator: validateNonNegative, trigger: 'blur' }],
|
||||
@@ -88,6 +91,7 @@ export const option = {
|
||||
prop: 'monthlyMileage',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: 'km',
|
||||
minWidth: 170,
|
||||
slot: true,
|
||||
rules: [{ validator: validateNonNegative, trigger: 'blur' }],
|
||||
@@ -97,6 +101,7 @@ export const option = {
|
||||
prop: 'totalMileage',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: 'km',
|
||||
minWidth: 170,
|
||||
slot: true,
|
||||
rules: [{ validator: validateNonNegative, trigger: 'blur' }],
|
||||
|
||||
@@ -36,6 +36,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
@@ -123,6 +124,7 @@ export const option = {
|
||||
prop: 'unitPrice',
|
||||
type: 'input',
|
||||
formslot: true,
|
||||
append: '元/升',
|
||||
minWidth: 120,
|
||||
rules: [{ validator: validateNonNegative, trigger: 'blur' }],
|
||||
},
|
||||
|
||||
@@ -47,6 +47,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
|
||||
@@ -40,6 +40,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
|
||||
@@ -27,6 +27,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
|
||||
@@ -50,6 +50,7 @@ export const option = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: '序号',
|
||||
indexWidth: 90,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
@@ -127,6 +128,8 @@ export const option = {
|
||||
{
|
||||
label: '地点',
|
||||
prop: 'location',
|
||||
slot: true,
|
||||
formslot: true,
|
||||
minWidth: 180,
|
||||
overHidden: true,
|
||||
span: 12,
|
||||
|
||||
Reference in New Issue
Block a user