doctor-admin-components 1.0.14-beta.20 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "doctor-admin-components",
3
3
  "version1": "1.0.11",
4
- "version": "1.0.14-beta.20",
4
+ "version": "1.0.14-beta.22",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -211,7 +211,7 @@
211
211
  v-model="scope2.row.packageGrossWeight"
212
212
  placeholder="请输入毛重"
213
213
  size="mini"
214
- type="number"
214
+ v-decimal="3"
215
215
  @input="limitDecimalPlaces(index, scope1.$index, scope2.$index, scope2.row, 'packageGrossWeight')"
216
216
  ></el-input>
217
217
  </el-form-item>
@@ -230,7 +230,7 @@
230
230
  v-model="scope2.row.packageTareWeight"
231
231
  placeholder="请输入皮重"
232
232
  size="mini"
233
- type="number"
233
+ v-decimal="3"
234
234
  @input="limitDecimalPlaces(index, scope1.$index, scope2.$index, scope2.row, 'packageTareWeight')"
235
235
  ></el-input>
236
236
  </el-form-item>
@@ -249,7 +249,7 @@
249
249
  v-model="scope2.row.packageNetWeight"
250
250
  placeholder="请输入净重"
251
251
  size="mini"
252
- type="number"
252
+ v-decimal="3"
253
253
  @input="limitDecimalPlaces(index, scope1.$index, scope2.$index, scope2.row, 'packageNetWeight')"
254
254
  ></el-input>
255
255
  </el-form-item>
@@ -682,13 +682,13 @@ export default {
682
682
  },
683
683
 
684
684
  limitDecimalPlaces(index, scope1Index, scope2Index, data, type) {
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
- }
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
+ // }
692
692
  if (type == 'packageGrossWeight') {
693
693
  this.changePackageGrossWeight(index, scope1Index, scope2Index)
694
694
  } else if (type == 'packageTareWeight') {