页面问题修改
This commit is contained in:
parent
7dd2ad52f2
commit
d0aef87a51
|
|
@ -432,7 +432,7 @@ export default {
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "category",
|
||||||
inverse: true,
|
inverse: true,
|
||||||
offset: 100,
|
offset: 60,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
show: true,
|
show: true,
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
@ -537,7 +537,7 @@ export default {
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "category",
|
||||||
inverse: true,
|
inverse: true,
|
||||||
offset: -20,
|
offset: -10,
|
||||||
axisTick: "none",
|
axisTick: "none",
|
||||||
axisLine: "none",
|
axisLine: "none",
|
||||||
show: true,
|
show: true,
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@
|
||||||
<el-table-column align="center" prop="purchaseNum" :show-overflow-tooltip="true" width="150">
|
<el-table-column align="center" prop="purchaseNum" :show-overflow-tooltip="true" width="150">
|
||||||
<template slot="header" slot-scope="scope">
|
<template slot="header" slot-scope="scope">
|
||||||
<span>数量(kg)</span>
|
<span>数量(kg)</span>
|
||||||
<el-button type="text" style="margin-left: 10px;" @click="">取整</el-button>
|
<el-button type="text" style="margin-left: 10px;" @click="roundingNum">取整</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.purchaseNum" maxlength="10" clearable @input="(v)=>(scope.row.purchaseNum=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
|
<el-input v-model="scope.row.purchaseNum" maxlength="10" clearable @input="(v)=>(scope.row.purchaseNum=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
|
||||||
|
|
@ -288,10 +288,9 @@ export default {
|
||||||
let arr = response.rows;
|
let arr = response.rows;
|
||||||
arr.forEach(item=>{
|
arr.forEach(item=>{
|
||||||
if(item.itemName=='material_conversion_rounding_method'){
|
if(item.itemName=='material_conversion_rounding_method'){
|
||||||
this.material_conversion_rounding_method = item.itemValue
|
this.material_conversion_rounding_method = item.itemValue||0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(this.material_conversion_rounding_method)
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//区域树
|
//区域树
|
||||||
|
|
@ -450,6 +449,19 @@ export default {
|
||||||
this.end = parseInt(end.getTime() / 1000)
|
this.end = parseInt(end.getTime() / 1000)
|
||||||
return [start, end]
|
return [start, end]
|
||||||
},
|
},
|
||||||
|
roundingNum(){
|
||||||
|
console.log(this.material_conversion_rounding_method)
|
||||||
|
console.log(this.dialogTableList)
|
||||||
|
this.dialogTableList.forEach(item=>{
|
||||||
|
if(this.material_conversion_rounding_method==0){//向上取整
|
||||||
|
this.$set(item,"purchaseNum",Math.ceil(item.purchaseNum))
|
||||||
|
}else if(this.material_conversion_rounding_method==1){//向下取整
|
||||||
|
this.$set(item,"purchaseNum",Math.floor(item.purchaseNum))
|
||||||
|
}else if(this.material_conversion_rounding_method==2){//四舍五入
|
||||||
|
this.$set(item,"purchaseNum",Math.round(item.purchaseNum))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//日期
|
//日期
|
||||||
formatDate(date) {
|
formatDate(date) {
|
||||||
// 格式化为 YYYY-MM-DD
|
// 格式化为 YYYY-MM-DD
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="采购单号" align="center" prop="orderGoodsCode" :show-overflow-tooltip="true" />
|
<el-table-column label="采购单号" align="center" prop="orderGoodsCode" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="采购订单标题" align="center" prop="orderGoodsCode" :show-overflow-tooltip="true"/>
|
<el-table-column label="采购订单标题" align="center" prop="orderTitle" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="采购总金额(元" align="center" prop="orderAmount" :show-overflow-tooltip="true" width="120">
|
<el-table-column label="采购总金额(元" align="center" prop="orderAmount" :show-overflow-tooltip="true" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ (scope.row.orderAmount/100).toFixed(2) }}</span>
|
<span>{{ (scope.row.orderAmount/100).toFixed(2) }}</span>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue