Commit c31dc623 by zhangquan

样式修改和保留一位小数

1 parent 185aa4e4
......@@ -152,7 +152,7 @@ export default {
.replace('.', '$#$')
.replace(/\./g, '')
.replace('$#$', '.')
temp = temp.replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') //只能输入两个小数
temp = temp.replace(/^(-)*(\d+)\.(\d).*$/, '$1$2.$3') //只能输入1个小数
this.$nextTick(() => {
const target = this.couponFormObj.selectedGoodsList.find(item => item.id == id)
target.newCost = temp
......@@ -212,7 +212,7 @@ export default {
.container {
background-color: #fff;
padding: 32px 30px;
min-height: 600px;
min-height: calc(100vh - 150px);
position: relative;
/deep/ .glsx-combi-form {
padding-bottom: 30px;
......
......@@ -15,7 +15,7 @@
{{ scope.scope.productName }}
</div>
<div slot="spreadPrice" slot-scope="scope">
<span :style="{ color: Number(scope.scope.lineationPrice - scope.scope.costPrice) <= 0 ? '#eb4e4e' : '#666666' }">{{ Number(Number(scope.scope.lineationPrice - scope.scope.costPrice).toFixed(2)) }}</span>
<span :style="{ color: Number(scope.scope.lineationPrice - scope.scope.costPrice) <= 0 ? '#eb4e4e' : '#666666' }">{{ Number(Number(scope.scope.lineationPrice - scope.scope.costPrice).toFixed(1)) }}</span>
</div>
</GLTable>
</div>
......@@ -216,7 +216,7 @@ export default {
list.splice(idx, 1)
}
}
list.map(item => this.$set(item, 'newCost', Number((item.lineationPrice - item.costPrice).toFixed(2))))
list.map(item => this.$set(item, 'newCost', Number((item.lineationPrice - item.costPrice).toFixed(1))))
this.$emit('confirmDialog', [...list, ...this.selectedGoodsList])
this.handleClose()
},
......
......@@ -112,7 +112,7 @@ export default {
},
{
label: '商品名称',
width: 280,
minWidth: 280,
line: 1,
addHtml: 'goodsName'
},
......@@ -307,6 +307,7 @@ export default {
.container {
background-color: #fff;
padding: 20px;
height: calc(100vh - 120px);
.good_name {
.coupon_type {
width: 40px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!