|
@@ -47,7 +47,7 @@
|
|
<el-button @click="gain(1)" type="text">获取</el-button>
|
|
<el-button @click="gain(1)" type="text">获取</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="净重(公斤)">
|
|
<el-form-item label="净重(公斤)">
|
|
- <el-input disabled placeholder="自动计算" v-model="form.netWeight"></el-input>
|
|
|
|
|
|
+ <el-input placeholder="自动计算" v-model="form.netWeight" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item class="form-title" label="基本信息">
|
|
<el-form-item class="form-title" label="基本信息">
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -444,10 +444,18 @@ export default {
|
|
grossWeightInput(e) {
|
|
grossWeightInput(e) {
|
|
if (this.form.tare && e) this.form.netWeight = e - this.form.tare
|
|
if (this.form.tare && e) this.form.netWeight = e - this.form.tare
|
|
else this.form.netWeight = ''
|
|
else this.form.netWeight = ''
|
|
|
|
+
|
|
|
|
+ if (this.form.netWeight&&this.form.unitPrice) {
|
|
|
|
+ this.form.grainFund = Number(this.form.unitPrice * (this.form.netWeight / 1000)).toFixed(3)
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
tareInput(e) {
|
|
tareInput(e) {
|
|
if (this.form.grossWeight && e) this.form.netWeight = this.form.grossWeight - e
|
|
if (this.form.grossWeight && e) this.form.netWeight = this.form.grossWeight - e
|
|
else this.form.netWeight = ''
|
|
else this.form.netWeight = ''
|
|
|
|
+ if (this.form.netWeight&&this.form.unitPrice) {
|
|
|
|
+ this.form.grainFund = Number(this.form.unitPrice * (this.form.netWeight / 1000)).toFixed(3)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
changeDate() {
|
|
changeDate() {
|
|
if (this.value) {
|
|
if (this.value) {
|