doctor-admin-components 1.0.14-beta.21 → 1.0.14-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -212,6 +212,7 @@
|
|
|
212
212
|
placeholder="请输入毛重"
|
|
213
213
|
size="mini"
|
|
214
214
|
v-decimal="3"
|
|
215
|
+
@input="limitDecimalPlaces(index, scope1.$index, scope2.$index, scope2.row, 'packageGrossWeight')"
|
|
215
216
|
></el-input>
|
|
216
217
|
</el-form-item>
|
|
217
218
|
</template>
|
|
@@ -230,6 +231,7 @@
|
|
|
230
231
|
placeholder="请输入皮重"
|
|
231
232
|
size="mini"
|
|
232
233
|
v-decimal="3"
|
|
234
|
+
@input="limitDecimalPlaces(index, scope1.$index, scope2.$index, scope2.row, 'packageTareWeight')"
|
|
233
235
|
></el-input>
|
|
234
236
|
</el-form-item>
|
|
235
237
|
</template>
|
|
@@ -248,6 +250,7 @@
|
|
|
248
250
|
placeholder="请输入净重"
|
|
249
251
|
size="mini"
|
|
250
252
|
v-decimal="3"
|
|
253
|
+
@input="limitDecimalPlaces(index, scope1.$index, scope2.$index, scope2.row, 'packageNetWeight')"
|
|
251
254
|
></el-input>
|
|
252
255
|
</el-form-item>
|
|
253
256
|
</template>
|
|
@@ -679,13 +682,13 @@ export default {
|
|
|
679
682
|
},
|
|
680
683
|
|
|
681
684
|
limitDecimalPlaces(index, scope1Index, scope2Index, data, type) {
|
|
682
|
-
let value = data[type]
|
|
683
|
-
const decimalPlaces = 3
|
|
684
|
-
if (!isNaN(value)) {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}
|
|
685
|
+
// let value = data[type]
|
|
686
|
+
// const decimalPlaces = 3
|
|
687
|
+
// if (!isNaN(value)) {
|
|
688
|
+
// value = parseFloat(value).toFixed(decimalPlaces)
|
|
689
|
+
// value = parseFloat(value).toString()
|
|
690
|
+
// data[type] = value
|
|
691
|
+
// }
|
|
689
692
|
if (type == 'packageGrossWeight') {
|
|
690
693
|
this.changePackageGrossWeight(index, scope1Index, scope2Index)
|
|
691
694
|
} else if (type == 'packageTareWeight') {
|