价格
This commit is contained in:
parent
c0127dea55
commit
425f5426eb
@ -309,10 +309,10 @@
|
||||
<el-table-column label="商品单价" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.goodsPrice"
|
||||
type="number"
|
||||
v-model.number="scope.row.goodsPrice"
|
||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>7){value=value.slice(0,7)}"
|
||||
min="0"
|
||||
type="number"
|
||||
placeholder="小数点后两位(元)"
|
||||
></el-input>
|
||||
</template>
|
||||
@ -625,7 +625,6 @@ export default {
|
||||
this.getList();
|
||||
this.info();
|
||||
this.infos();
|
||||
// this.getList2();
|
||||
},
|
||||
methods: {
|
||||
upwhetherShelf(row) {
|
||||
@ -750,12 +749,6 @@ export default {
|
||||
// this.getListByUserquery.pageNum = 1;
|
||||
this.info();
|
||||
},
|
||||
// getList2() {
|
||||
// stationList(this.getListByUserquery).then((res) => {
|
||||
// this.total2 = res.total;
|
||||
// this.nurseStationlist = res.rows;
|
||||
// });
|
||||
// },
|
||||
resetQuery2() {
|
||||
this.resetForm("queryForm");
|
||||
(this.getListByUserquery = {
|
||||
|
||||
@ -292,10 +292,10 @@
|
||||
<el-table-column label="商品单价" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.goodsPrice"
|
||||
type="number"
|
||||
v-model.number="scope.row.goodsPrice"
|
||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>7){value=value.slice(0,7)}"
|
||||
min="0"
|
||||
type="number"
|
||||
placeholder="小数点后两位(元)"
|
||||
></el-input>
|
||||
</template>
|
||||
|
||||
@ -993,6 +993,8 @@ export default {
|
||||
this.form.consumablePrice =
|
||||
this.form.nurseStationConsumables[0].consumablePrice;
|
||||
this.form.sort = this.form.nurseStationConsumables[0].sort;
|
||||
} else {
|
||||
this.form.consumablePrice = Number(this.form.consumablePrice);
|
||||
}
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
@ -1003,6 +1005,9 @@ export default {
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
this.form.nurseStationConsumables.forEach((e) => {
|
||||
e.consumablePrice = Number(e.consumablePrice);
|
||||
});
|
||||
addStationConsumable(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
|
||||
@ -314,10 +314,10 @@
|
||||
<el-table-column property="price" label="价格" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.price"
|
||||
v-model.number="scope.row.price"
|
||||
placeholder="小数点后两位(元)"
|
||||
type="number"
|
||||
min="0"
|
||||
type="number"
|
||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>6){value=value.slice(0,6)}"
|
||||
></el-input>
|
||||
</template>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user