优化单据的宽度屏幕自适应
This commit is contained in:
@@ -1000,7 +1000,7 @@
|
||||
purchaseBySaleFlag: false,
|
||||
financialBillNoList: [],
|
||||
tableWidth: {
|
||||
'width': '1550px'
|
||||
'width': '1500px'
|
||||
},
|
||||
tableWidthRetail: {
|
||||
'width': '1150px'
|
||||
@@ -1298,7 +1298,10 @@
|
||||
},
|
||||
created () {
|
||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
||||
this.width = realScreenWidth<1600?'1300px':'1600px'
|
||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||
this.tableWidth = {
|
||||
'width': realScreenWidth<1500?'1250px':'1500px'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
initSetting(record, type, ds) {
|
||||
|
||||
@@ -54,7 +54,7 @@ export const BillModalMixin = {
|
||||
let userInfo = Vue.ls.get(USER_INFO)
|
||||
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
||||
this.width = realScreenWidth<1600?'1300px':'1600px'
|
||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||
},
|
||||
computed: {
|
||||
readOnly: function() {
|
||||
|
||||
@@ -252,7 +252,7 @@
|
||||
{ title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '税率', key: 'taxRate', width: '4%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '备注', key: 'remark', width: '5%', type: FormTypes.input }
|
||||
]
|
||||
},
|
||||
|
||||
@@ -281,9 +281,9 @@
|
||||
},
|
||||
{ title: '单价', key: 'unitPrice', width: '4%', type: FormTypes.inputNumber},
|
||||
{ title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '税率', key: 'taxRate', width: '3%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税率', key: 'taxRate', width: '4%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '备注', key: 'remark', width: '5%', type: FormTypes.input },
|
||||
{ title: '关联id', key: 'linkId', width: '5%', type: FormTypes.hidden },
|
||||
]
|
||||
|
||||
@@ -246,9 +246,9 @@
|
||||
},
|
||||
{ title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber },
|
||||
{ title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '税率', key: 'taxRate', width: '3%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税率', key: 'taxRate', width: '4%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '备注', key: 'remark', width: '5%', type: FormTypes.input},
|
||||
{ title: '关联id', key: 'linkId', width: '5%', type: FormTypes.hidden },
|
||||
]
|
||||
|
||||
@@ -257,9 +257,9 @@
|
||||
},
|
||||
{ title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber},
|
||||
{ title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '税率', key: 'taxRate', width: '3%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税率', key: 'taxRate', width: '4%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '备注', key: 'remark', width: '5%', type: FormTypes.input }
|
||||
]
|
||||
},
|
||||
|
||||
@@ -237,9 +237,9 @@
|
||||
},
|
||||
{ title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber},
|
||||
{ title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '税率', key: 'taxRate', width: '3%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税率', key: 'taxRate', width: '4%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '备注', key: 'remark', width: '5%', type: FormTypes.input }
|
||||
]
|
||||
},
|
||||
|
||||
@@ -295,9 +295,9 @@
|
||||
},
|
||||
{ title: '单价', key: 'unitPrice', width: '4%', type: FormTypes.inputNumber},
|
||||
{ title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '税率', key: 'taxRate', width: '3%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税率', key: 'taxRate', width: '4%', type: FormTypes.inputNumber,placeholder: '%'},
|
||||
{ title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '5%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true },
|
||||
{ title: '备注', key: 'remark', width: '5%', type: FormTypes.input },
|
||||
{ title: '关联id', key: 'linkId', width: '5%', type: FormTypes.hidden },
|
||||
]
|
||||
|
||||
@@ -468,7 +468,7 @@
|
||||
},
|
||||
created () {
|
||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
||||
this.width = realScreenWidth<1600?'1300px':'1600px'
|
||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||
},
|
||||
methods: {
|
||||
show(record, type) {
|
||||
|
||||
@@ -37,7 +37,7 @@ export const FinancialModalMixin = {
|
||||
let userInfo = Vue.ls.get(USER_INFO)
|
||||
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
||||
this.width = realScreenWidth<1600?'1300px':'1600px'
|
||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||
},
|
||||
computed: {
|
||||
readOnly: function() {
|
||||
|
||||
Reference in New Issue
Block a user