|
@@ -77,10 +77,6 @@
|
|
|
>导出</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
- <!-- <right-toolbar
|
|
|
- :showSearch.sync="showSearch"
|
|
|
- @queryTable="getList"
|
|
|
- ></right-toolbar> -->
|
|
|
</el-row>
|
|
|
|
|
|
<el-table
|
|
@@ -112,10 +108,6 @@
|
|
|
<el-table-column label="取得方式" align="center" prop="acquire" />
|
|
|
<el-table-column label="质量状况" align="center" prop="quality" />
|
|
|
<el-table-column label="放置地点" align="center" prop="address" />
|
|
|
- <!-- <el-table-column label="备注" align="center" prop="remark" /> -->
|
|
|
- <!-- <el-table-column label="单位" align="center" prop="unitId" /> -->
|
|
|
- <!-- <el-table-column label="创建时间" align="center" prop="createtime" /> -->
|
|
|
- <!-- <el-table-column label="更新时间" align="center" prop="updatetime" /> -->
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
align="center"
|
|
@@ -180,30 +172,26 @@
|
|
|
<el-input v-model="form.version" placeholder="请输入规格型号" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="数量" prop="quantity">
|
|
|
- <!-- <el-input v-model="form.quantity" placeholder="请输入数量" /> -->
|
|
|
- <el-input-number
|
|
|
+ <el-input
|
|
|
v-model="form.quantity"
|
|
|
controls-position="right"
|
|
|
- :min="0"
|
|
|
- :max="99999999"
|
|
|
+ oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
@blur="shuLiang"
|
|
|
- ></el-input-number>
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="单价" prop="price">
|
|
|
- <!-- <el-input v-model="form.price" placeholder="请输入单价" /> -->
|
|
|
- <el-input-number
|
|
|
+ <el-input
|
|
|
v-model="form.price"
|
|
|
controls-position="right"
|
|
|
- :min="0"
|
|
|
- :max="99999999"
|
|
|
- :step="0.1"
|
|
|
+ oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
@blur="danJia"
|
|
|
- ></el-input-number>
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="总价" prop="totalPrice">
|
|
|
<el-input
|
|
|
v-model="form.totalPrice"
|
|
|
controls-position="right"
|
|
|
+ readonly
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="装备时间" prop="equipTime">
|
|
@@ -349,13 +337,13 @@ export default {
|
|
|
methods: {
|
|
|
// 数量输入完毕失去焦点触发
|
|
|
shuLiang() {
|
|
|
- if (this.form.price !== 0 && this.form.quantity !== 0) {
|
|
|
+ if (this.form.price !== null && this.form.quantity !== null) {
|
|
|
this.form.totalPrice = this.form.price * this.form.quantity;
|
|
|
}
|
|
|
},
|
|
|
// 单价失去焦点触发
|
|
|
danJia() {
|
|
|
- if (this.form.price !== 0 && this.form.quantity !== 0) {
|
|
|
+ if (this.form.price !== null && this.form.quantity !== null) {
|
|
|
this.form.totalPrice = this.form.price * this.form.quantity;
|
|
|
}
|
|
|
},
|