doctor-admin-components 1.0.14-beta.57 → 1.0.14-beta.58

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.57",
4
+ "version": "1.0.14-beta.58",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -37,12 +37,12 @@
37
37
  <h3>ARTICLE 8 – PAYMENT</h3>
38
38
  <div>
39
39
  <div v-if="form.quoteType && form.quoteType != 'FIXED'">
40
- The Buyer shall pay a deposit of {{form.deposit}} TTYY within {{form.depositDays}} days {{form.depositPaymentForm}}
41
- The remaining {{form.balance}}% balance of the total Contract Price shall be paid by the Buyer to TTYY via Telegraphic Transfer ({{form.balanceDays}}) days no later than {{form.balancePaymentType}} days {{form.balancePaymentForm}}.
40
+ The Buyer shall pay a deposit of {{form.deposit}} TTYY within {{form.depositDays}} days {{depositPaymentFormKey(form.depositPaymentForm)}}
41
+ The remaining {{form.depositAmount != null ? ``:`${form.balance}%`}} balance of the total Contract Price shall be paid by the Buyer to TTYY via Telegraphic Transfer ({{form.balanceDays}}) days no later than {{form.balancePaymentType}} days {{ balancePaymentFormKey(form.balancePaymentForm)}}.
42
42
  </div>
43
43
  <div v-else>
44
- The Buyer shall pay a deposit of {{form.deposit}} of the total Contract Price to TTYY within {{form.depositDays}} days {{form.depositPaymentForm}}
45
- The remaining {{form.balance}}% balance of the total Contract Price shall be paid by the Buyer to TTYY via Telegraphic Transfer ({{form.balancePaymentType}}) no later than {{form.balanceDays}} days {{form.balancePaymentForm}}.
44
+ The Buyer shall pay a deposit of {{form.deposit}} of the total Contract Price to TTYY within {{form.depositDays}} days {{depositPaymentFormKey(form.depositPaymentForm)}}
45
+ The remaining {{form.depositAmount != null ? ``:`${form.balance}%`}} balance of the total Contract Price shall be paid by the Buyer to TTYY via Telegraphic Transfer ({{form.balancePaymentType}}) no later than {{form.balanceDays}} days {{ balancePaymentFormKey(form.balancePaymentForm)}}.
46
46
  </div>
47
47
  The Buyer shall ensure that all payments are made free and clear of any deductions, charges, fees, or withholdings imposed by any governmental or regulatory authority. If any such deductions or withholdings are required by law, the Buyer shall increase the amount payable to TTYY so that, after any such deductions or withholdings, TTYY receives an amount equal to the Contract Price.
48
48
  If the Buyer fails to make any payment within the stipulated time frames, TTYY shall be entitled to charge interest on the overdue amount at a rate of 0.05% per day from the due date until the date of actual payment.
@@ -171,7 +171,7 @@
171
171
  TTYY's downstream customers shall pay a deposit of {{form.deposit}} the Seller within {{form.depositDays}} days {{form.depositPaymentForm}}.</div>
172
172
  <div v-else>
173
173
  TTYY's downstream customers shall pay a deposit of {{form.deposit}} of the total Contract Price to the Seller within {{form.depositDays}} days {{form.depositPaymentForm}}.</div>
174
- The remaining {{form.balance}}% balance of the total Contract Price shall be paid to the Seller via Telegraphic Transfer ({{form.balancePaymentType}}) no later than {{form.balanceDays}} days {{form.balancePaymentForm}}.
174
+ The remaining {{form.depositAmount != null ? ``:`${form.balance}%`}} balance of the total Contract Price shall be paid to the Seller via Telegraphic Transfer ({{form.balancePaymentType}}) no later than {{form.balanceDays}} days {{ balancePaymentFormKey(form.balancePaymentForm)}}.
175
175
  </div>
176
176
  <h3>AARTICLE 9 – FLOATING PRICE</h3>
177
177
  <div v-if="form.quoteType && form.quoteType != 'FIXED'">
@@ -256,6 +256,7 @@
256
256
  import TextContent from './contractClauseComponenrts/TextContent'
257
257
  export default {
258
258
  name: 'ContractClause',
259
+ dicts: ['deposit_payment_form', 'balance_payment_form'],
259
260
  props: {
260
261
  form: {
261
262
  type: Object,
@@ -279,6 +280,14 @@ export default {
279
280
  methods: {
280
281
  disableEdit() {
281
282
  this.disable = true
283
+ },
284
+ depositPaymentFormKey(value) {
285
+ let label = this.dict.type.deposit_payment_form.find(item => item.value == value)?.raw?.dictLabelEn
286
+ return label || ''
287
+ },
288
+ balancePaymentFormKey(value) {
289
+ let label = this.dict.type.balance_payment_form.find(item => item.value == value)?.raw?.dictLabelEn
290
+ return label || ''
282
291
  }
283
292
  }
284
293
  }