doctor-admin-components 1.0.14-beta.34 → 1.0.14-beta.35

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.34",
4
+ "version": "1.0.14-beta.35",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -50,20 +50,20 @@
50
50
  </el-form-item>
51
51
  </el-col>
52
52
  <el-col :span="6">
53
- <el-form-item label="ETA" prop="eta" label-width="100">
54
- <div style="display: flex; flex-direction: row; align-items: center">
55
- <el-date-picker
56
- style="width: 75%"
57
- clearable
58
- size="small"
59
- v-model="form.eta"
60
- type="date"
61
- value-format="yyyy-MM-dd HH:mm:ss"
62
- placeholder="请选择预计到港日期"
63
- ></el-date-picker>
64
- <el-button type="text" @click="refreshUpdateTime">更新</el-button>
65
- </div>
66
- </el-form-item>
53
+ <el-form-item label="ETA" prop="eta" label-width="100">
54
+ <div style="display: flex; flex-direction: row; align-items: center">
55
+ <el-date-picker
56
+ style="width: 75%"
57
+ clearable
58
+ size="small"
59
+ v-model="form.eta"
60
+ type="date"
61
+ value-format="yyyy-MM-dd HH:mm:ss"
62
+ placeholder="请选择预计到港日期"
63
+ ></el-date-picker>
64
+ <el-button type="text" @click="refreshUpdateTime">更新</el-button>
65
+ </div>
66
+ </el-form-item>
67
67
  </el-col>
68
68
  <el-col :span="6">
69
69
  <el-form-item label="实际到港日" prop="actualArrivalDate" label-width="90px">
@@ -458,7 +458,8 @@ import {
458
458
  updateWithContainer,
459
459
  updateWithContainerAndInvoice,
460
460
  saveDraft,
461
- getDraft, refreshUpdateTime
461
+ getDraft,
462
+ refreshUpdateTime
462
463
  } from '../../../api/biz/bizShipment'
463
464
  import { generateFinalInvoiceByShipmentId } from '../../../api/biz/bizInvoice'
464
465
  import { updateBizContractDetail } from '../../../api/biz/bizContractDetail'
@@ -701,21 +702,27 @@ export default {
701
702
  },
702
703
 
703
704
  changePackageGrossWeight(index, k, yindex) {
704
- this.form.containerList[index].containerDetailList[k].goodsGrossWeight = this.form.containerList[index].containerDetailList[k].packageList.reduce((total, item) => {
705
- return total + Number(item.packageGrossWeight)
706
- }, 0)
707
- this.form.containerList[index].totalGoodsGrossWeight = this.form.containerList[index].containerDetailList.reduce((total, item) => {
708
- return total + Number(item.goodsGrossWeight)
709
- }, 0)
705
+ this.form.containerList[index].containerDetailList[k].goodsGrossWeight = this.form.containerList[index].containerDetailList[k].packageList
706
+ .reduce((total, item) => {
707
+ return total + Number(item.packageGrossWeight)
708
+ }, 0)
709
+ .toFixed(3)
710
+ this.form.containerList[index].totalGoodsGrossWeight = this.form.containerList[index].containerDetailList
711
+ .reduce((total, item) => {
712
+ return total + Number(item.goodsGrossWeight)
713
+ }, 0)
714
+ .toFixed(3)
710
715
  //计算净重
711
716
  this.form.containerList[index].containerDetailList[k].packageList[yindex].packageNetWeight = (
712
717
  this.form.containerList[index].containerDetailList[k].packageList[yindex].packageGrossWeight -
713
718
  this.form.containerList[index].containerDetailList[k].packageList[yindex].packageTareWeight
714
719
  ).toFixed(3)
715
720
 
716
- this.form.containerList[index].containerDetailList[k].goodsNetWeight = this.form.containerList[index].containerDetailList[k].packageList.reduce((total, item) => {
717
- return total + Number(item.packageNetWeight)
718
- }, 0)
721
+ this.form.containerList[index].containerDetailList[k].goodsNetWeight = this.form.containerList[index].containerDetailList[k].packageList
722
+ .reduce((total, item) => {
723
+ return total + Number(item.packageNetWeight)
724
+ }, 0)
725
+ .toFixed(3)
719
726
 
720
727
  this.form.containerList[index].totalGoodsNetWeight = this.form.containerList[index].containerDetailList
721
728
  .reduce((total, item) => {
@@ -725,21 +732,27 @@ export default {
725
732
  },
726
733
  changePackageTareWeight(index, k, yindex) {
727
734
  //计算皮重
728
- this.form.containerList[index].containerDetailList[k].goodsTareWeight = this.form.containerList[index].containerDetailList[k].packageList.reduce((total, item) => {
729
- return total + Number(item.packageTareWeight)
730
- }, 0)
731
- this.form.containerList[index].totalGoodsTareWeight = this.form.containerList[index].containerDetailList.reduce((total, item) => {
732
- return total + Number(item.goodsTareWeight)
733
- }, 0)
735
+ this.form.containerList[index].containerDetailList[k].goodsTareWeight = this.form.containerList[index].containerDetailList[k].packageList
736
+ .reduce((total, item) => {
737
+ return total + Number(item.packageTareWeight)
738
+ }, 0)
739
+ .toFixed(3)
740
+ this.form.containerList[index].totalGoodsTareWeight = this.form.containerList[index].containerDetailList
741
+ .reduce((total, item) => {
742
+ return total + Number(item.goodsTareWeight)
743
+ }, 0)
744
+ .toFixed(3)
734
745
  //计算净重
735
746
  this.form.containerList[index].containerDetailList[k].packageList[yindex].packageNetWeight = (
736
747
  this.form.containerList[index].containerDetailList[k].packageList[yindex].packageGrossWeight -
737
748
  this.form.containerList[index].containerDetailList[k].packageList[yindex].packageTareWeight
738
749
  ).toFixed(3)
739
750
 
740
- this.form.containerList[index].containerDetailList[k].goodsNetWeight = this.form.containerList[index].containerDetailList[k].packageList.reduce((total, item) => {
741
- return total + Number(item.packageNetWeight)
742
- }, 0)
751
+ this.form.containerList[index].containerDetailList[k].goodsNetWeight = this.form.containerList[index].containerDetailList[k].packageList
752
+ .reduce((total, item) => {
753
+ return total + Number(item.packageNetWeight)
754
+ }, 0)
755
+ .toFixed(3)
743
756
 
744
757
  this.form.containerList[index].totalGoodsNetWeight = this.form.containerList[index].containerDetailList
745
758
  .reduce((total, item) => {
@@ -1324,12 +1337,14 @@ export default {
1324
1337
  refreshUpdateTime() {
1325
1338
  if (this.form.shipmentId) {
1326
1339
  const loading = this.openLoading()
1327
- refreshUpdateTime(this.form.shipmentId).then((res) => {
1328
- loading.close()
1329
- this.$modal.msgSuccess('更新成功')
1330
- }).catch(() => {
1331
- loading.close();
1332
- })
1340
+ refreshUpdateTime(this.form.shipmentId)
1341
+ .then((res) => {
1342
+ loading.close()
1343
+ this.$modal.msgSuccess('更新成功')
1344
+ })
1345
+ .catch(() => {
1346
+ loading.close()
1347
+ })
1333
1348
  }
1334
1349
  }
1335
1350
  }