doctor-admin-components 1.0.13-beta.58 → 1.0.13-beta.59

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.13-beta.58",
4
+ "version": "1.0.13-beta.59",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -764,7 +764,6 @@
764
764
  <el-col :span="24">
765
765
  <el-col :span="24">
766
766
  <div style="margin-bottom:-20px">
767
- {{ getShipmentPurchaseAmount(shipmentFileInfo,shipmentIndex) }}
768
767
  <span
769
768
  v-if="channel !== 'official-website' &&
770
769
  contract.contractType == 'purchase' "
@@ -1479,6 +1478,7 @@ export default {
1479
1478
 
1480
1479
  changeShipBillNo(index) {
1481
1480
  this.shipBillNo = index
1481
+ this.activeName = index
1482
1482
  this.setRate(index)
1483
1483
  },
1484
1484
  changeGoodsBillNo(index) {
@@ -1487,17 +1487,6 @@ export default {
1487
1487
  changeClaimBillNo(index) {
1488
1488
  this.claimBillNo = index
1489
1489
  },
1490
- getShipmentPurchaseAmount(shipmentFileInfo, shipmentIndex) {
1491
- if (shipmentIndex == this.activeName) {
1492
- getPurchaseAmount(shipmentFileInfo.shipmentId).then((res) => {
1493
- this.purchaseBalanceMoney = (res.data.totalPurchaseAmount - res.data.purchaseDepositAmount).toFixed(2)
1494
- this.shipmentPurchaseAmountMessage =
1495
- `${this.$t('contractDetail.reference_invince')}$` + this.purchaseBalanceMoney
1496
- ;
1497
- return this.shipmentPurchaseAmountMessage;
1498
- });
1499
- }
1500
- },
1501
1490
  getShipmentPurchase(shipmentFileInfo) {
1502
1491
  this.$refs.shipmentPurchaseAmount.handleShow(shipmentFileInfo.shipmentId);
1503
1492
  },
@@ -2002,7 +1991,7 @@ export default {
2002
1991
  shipTextArr.push(this.$t('contractDetail.Waiting_for_the_seller_to_ship'))
2003
1992
  this.claimProgressInfo.textArr = shipTextArr
2004
1993
  }
2005
-
1994
+ this.getShipmentPurchaseAmount()
2006
1995
  this.loadingInstance.close();
2007
1996
  },
2008
1997
  //获取合同文件信息
@@ -2153,6 +2142,16 @@ export default {
2153
2142
  this.loading = false;
2154
2143
  });
2155
2144
  },
2145
+ getShipmentPurchaseAmount() {
2146
+ let shipmentFileInfo = this.shipmentItemData
2147
+ getPurchaseAmount(shipmentFileInfo.shipmentId).then((res) => {
2148
+ this.purchaseBalanceMoney = (res.data.totalPurchaseAmount - res.data.purchaseDepositAmount).toFixed(2)
2149
+ this.shipmentPurchaseAmountMessage =
2150
+ `${this.$t('contractDetail.reference_invince')}$` + this.purchaseBalanceMoney
2151
+ ;
2152
+ return this.shipmentPurchaseAmountMessage;
2153
+ });
2154
+ },
2156
2155
  },
2157
2156
  computed: {
2158
2157
  // 销售获取最新的尾款发票