|
@@ -295,11 +295,11 @@
|
|
|
<el-input
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model.trim="row.orderQuantity"
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
+ oninput='this.value=this.value.replace(/[^(\d)]/g,"")'
|
|
|
size="small"
|
|
|
@input="quantityChange(row)"
|
|
|
></el-input>
|
|
|
- <span v-else>{{ row.orderQuantity }}</span>
|
|
|
+ <span v-else>{{ row.orderQuantity | IntegerFormat }}</span>
|
|
|
</template>
|
|
|
<template slot="cname" slot-scope="{ row }">
|
|
|
<goods-select v-if="row.$cellEdit" v-model="row.cname" @getRow="getGoodsRow($event, row)"
|
|
@@ -755,6 +755,12 @@ import Cookies from 'js-cookie'
|
|
|
import feeInfo from "@/components/fee-info/main";
|
|
|
import {corpsAddrSelect} from "@/api/basicData/customerInformation";
|
|
|
import billApplication from "@/components/bill/billApplication";
|
|
|
+import {
|
|
|
+ isDiscount,
|
|
|
+ isPercentage,
|
|
|
+ micrometerFormat,
|
|
|
+ IntegerFormat
|
|
|
+} from "@/util/validate";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
@@ -1438,6 +1444,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ filters: {
|
|
|
+ IntegerFormat(num) {
|
|
|
+ return IntegerFormat(num);
|
|
|
+ }
|
|
|
+ },
|
|
|
//初始化查询
|
|
|
async created() {
|
|
|
this.rowHeight = (window.innerHeight - 130) + 'px'
|