页面问题修改

This commit is contained in:
zzyuan 2025-08-05 09:15:23 +08:00
parent 7dd2ad52f2
commit d0aef87a51
3 changed files with 18 additions and 6 deletions

View File

@ -432,7 +432,7 @@ export default {
{
type: "category",
inverse: true,
offset: 100,
offset: 60,
axisLabel: {
show: true,
align: "left",
@ -537,7 +537,7 @@ export default {
{
type: "category",
inverse: true,
offset: -20,
offset: -10,
axisTick: "none",
axisLine: "none",
show: true,

View File

@ -189,7 +189,7 @@
<el-table-column align="center" prop="purchaseNum" :show-overflow-tooltip="true" width="150">
<template slot="header" slot-scope="scope">
<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 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'))"/>
@ -288,10 +288,9 @@ export default {
let arr = response.rows;
arr.forEach(item=>{
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)
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) {
// YYYY-MM-DD

View File

@ -233,7 +233,7 @@
</template>
</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="orderTitle" :show-overflow-tooltip="true"/>
<el-table-column label="采购总金额(元" align="center" prop="orderAmount" :show-overflow-tooltip="true" width="120">
<template slot-scope="scope">
<span>{{ (scope.row.orderAmount/100).toFixed(2) }}</span>