doctor-admin-components 1.0.14-beta.85 → 1.0.14-beta.87
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 +1 -1
- package/packages/src/views/biz/bizFileInfo/contract.vue +77 -22
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +3 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +0 -1
- package/packages/src/views/biz/contractTracing/contractClause.vue +20 -9
package/package.json
CHANGED
|
@@ -364,23 +364,18 @@
|
|
|
364
364
|
@changeShipBillNo="changeShipBillNo"
|
|
365
365
|
:progressInfo="shipProgressInfo"
|
|
366
366
|
:shipBillNoProp="shipBillNo"
|
|
367
|
-
|
|
367
|
+
>
|
|
368
|
+
<template slot="action" v-if="contract.contractType == 'purchase'">
|
|
369
|
+
<el-button class="mt5" type="success" size="mini" icon="el-icon-plus" @click.stop="clickAddShipment" circle></el-button>
|
|
370
|
+
</template>
|
|
371
|
+
</BillOfLadingNoTab>
|
|
368
372
|
<!-- 装运 -->
|
|
369
373
|
<div id="contract_shipping_id">
|
|
370
374
|
<!-- 生成装运 -->
|
|
371
375
|
<SectionSlot @updateOpen="handleShippingUpdateOpen" :infoPro="shipProgressInfo" v-if="contractFileInfo && !contractFileInfo.shipmentFileInfoList">
|
|
372
376
|
<template v-slot:header>
|
|
373
377
|
<div style="position:relative">
|
|
374
|
-
<ProgressDetail :infoPro="shipProgressInfo">
|
|
375
|
-
<template slot="action" v-if="contract.contractType == 'purchase'">
|
|
376
|
-
<div style="position: absolute; margin-left: 15px;bottom: 5px;">
|
|
377
|
-
<el-select v-model="selectSaleContractId" placeholder="请选择" size="mini">
|
|
378
|
-
<el-option v-for="item in contract.associationContractList" :key="item.contractId" :label="item.contractNo" :value="item.contractId"></el-option>
|
|
379
|
-
</el-select>
|
|
380
|
-
<el-button class="ml5" type="success" size="mini" icon="el-icon-plus" @click.stop="handleAddShipment" circle></el-button>
|
|
381
|
-
</div>
|
|
382
|
-
</template>
|
|
383
|
-
</ProgressDetail>
|
|
378
|
+
<ProgressDetail :infoPro="shipProgressInfo"></ProgressDetail>
|
|
384
379
|
</div>
|
|
385
380
|
</template>
|
|
386
381
|
<template v-slot:content>
|
|
@@ -1558,25 +1553,85 @@ export default {
|
|
|
1558
1553
|
},
|
|
1559
1554
|
mounted() { },
|
|
1560
1555
|
methods: {
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1556
|
+
async clickAddShipment() {
|
|
1557
|
+
//弹出选择框,选择关联的销售合同,点击确定后,执行新增
|
|
1558
|
+
const list = this.contract.associationContractList || []
|
|
1559
|
+
if (!list.length) {
|
|
1560
|
+
this.$message.warning('暂无可关联的销售合同')
|
|
1561
|
+
return
|
|
1562
|
+
}
|
|
1563
|
+
// 单个直接确认
|
|
1564
|
+
if (list.length === 1) {
|
|
1565
|
+
this.selectSaleContractId = list[0].contractId
|
|
1566
|
+
this.handleAddShipment(true)
|
|
1567
|
+
return
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
// 多个:用 render 函数渲染 el-select 弹窗
|
|
1571
|
+
let selectedId = list[0].contractId // 默认选中第一个
|
|
1572
|
+
|
|
1573
|
+
try {
|
|
1574
|
+
await this.$msgbox({
|
|
1575
|
+
title: '请选择关联的销售合同',
|
|
1576
|
+
message: this.$createElement('div', [
|
|
1577
|
+
this.$createElement('el-select', {
|
|
1578
|
+
props: { value: selectedId, placeholder: '请选择', style: 'width: 100%;', popperAppendToBody: false },
|
|
1579
|
+
on: { input: val => selectedId = val } // 闭包更新值
|
|
1580
|
+
},
|
|
1581
|
+
list.map(item =>
|
|
1582
|
+
this.$createElement('el-option', {
|
|
1583
|
+
props: { label: item.contractNo, value: item.contractId }
|
|
1584
|
+
})
|
|
1585
|
+
)),
|
|
1586
|
+
// 间隔占位
|
|
1587
|
+
this.$createElement('div', { style: 'height: 80px;' })
|
|
1588
|
+
]),
|
|
1589
|
+
showCancelButton: true,
|
|
1590
|
+
confirmButtonText: '确定',
|
|
1591
|
+
cancelButtonText: '取消',
|
|
1592
|
+
beforeClose: (action, instance, done) => {
|
|
1593
|
+
if (action === 'confirm' && !selectedId) {
|
|
1594
|
+
this.$message.warning('请选择关联的销售合同')
|
|
1595
|
+
return
|
|
1596
|
+
}
|
|
1597
|
+
done()
|
|
1598
|
+
}
|
|
1599
|
+
})
|
|
1600
|
+
|
|
1601
|
+
// 用户确认后执行
|
|
1602
|
+
this.selectSaleContractId = selectedId
|
|
1603
|
+
this.handleAddShipment(false)
|
|
1604
|
+
|
|
1605
|
+
} catch (e) {
|
|
1606
|
+
// 取消
|
|
1564
1607
|
}
|
|
1608
|
+
|
|
1609
|
+
},
|
|
1610
|
+
addBizShipmentRequest() {
|
|
1611
|
+
// 添加装运接口
|
|
1612
|
+
addBizShipment({
|
|
1613
|
+
purchaseContractId: this.contract.contractId,
|
|
1614
|
+
saleContractId: this.selectSaleContractId,
|
|
1615
|
+
}).then(() => {
|
|
1616
|
+
this.$message.success('添加成功')
|
|
1617
|
+
this.handleRefresh()
|
|
1618
|
+
})
|
|
1619
|
+
},
|
|
1620
|
+
handleAddShipment(showAlert = true) {
|
|
1621
|
+
console.log('==handleAddShipment==', this.selectSaleContractId)
|
|
1622
|
+
|
|
1565
1623
|
// 弹框二次确认
|
|
1624
|
+
if (!showAlert) {
|
|
1625
|
+
return this.addBizShipmentRequest()
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1566
1628
|
this.$confirm('是否添加空白装运', '提示', {
|
|
1567
1629
|
confirmButtonText: '确定',
|
|
1568
1630
|
cancelButtonText: '取消',
|
|
1569
1631
|
type: 'warning'
|
|
1570
1632
|
})
|
|
1571
1633
|
.then(() => {
|
|
1572
|
-
|
|
1573
|
-
addBizShipment({
|
|
1574
|
-
purchaseContractId: this.contract.contractId,
|
|
1575
|
-
saleContractId: this.selectSaleContractId,
|
|
1576
|
-
}).then(() => {
|
|
1577
|
-
this.$message.success('添加成功')
|
|
1578
|
-
this.handleRefresh()
|
|
1579
|
-
})
|
|
1634
|
+
this.addBizShipmentRequest()
|
|
1580
1635
|
})
|
|
1581
1636
|
.catch((e) => {
|
|
1582
1637
|
console.log(e)
|
|
@@ -36,12 +36,13 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
<h3>ARTICLE 8 – PAYMENT</h3>
|
|
38
38
|
<div>
|
|
39
|
+
<text-content :form="form" :disable="disable" keys="payment"></text-content>
|
|
40
|
+
</div>
|
|
41
|
+
<!-- <div>
|
|
39
42
|
<div>
|
|
40
|
-
<!-- 比例 -->
|
|
41
43
|
<div v-if="form && form.depositType == '1'">
|
|
42
44
|
The Buyer shall pay a deposit of {{ form.deposit}}% of the total Contract Price to TTYY within {{ form.depositDays }} days {{ depositPaymentFormKey(form.depositPaymentForm)}}.
|
|
43
45
|
</div>
|
|
44
|
-
<!-- 固定金额 -->
|
|
45
46
|
<div v-else>
|
|
46
47
|
The Buyer shall pay a deposit of {{`$${form.advanceDepositAmount}`}}
|
|
47
48
|
TTYY within {{ form.depositDays }} days {{ depositPaymentFormKey(form.depositPaymentForm) }}.
|
|
@@ -56,9 +57,12 @@
|
|
|
56
57
|
<br />
|
|
57
58
|
If the Buyer fails to make any payment within the stipulated time frames, TTYY shall be entitled to charge
|
|
58
59
|
interest on the overdue amount at a rate of 0.05% per day from the due date until the date of actual payment.
|
|
59
|
-
</div>
|
|
60
|
+
</div> -->
|
|
60
61
|
<h3>ARTICLE 9 – FLOATING PRICE</h3>
|
|
61
62
|
<div v-if="form.quoteType && form.quoteType != 'FIXED'">
|
|
63
|
+
<text-content :form="form" :disable="disable" keys="floatingPrice"></text-content>
|
|
64
|
+
</div>
|
|
65
|
+
<!-- <div v-if="form.quoteType && form.quoteType != 'FIXED'">
|
|
62
66
|
Price Period: The {{ form.livePriceUsertype }} has the pricing authority option from container loaded date until
|
|
63
67
|
{{ form.livePriceDays }} days {{ form.livePriceForm }} it arrives at the port.
|
|
64
68
|
<br />
|
|
@@ -89,7 +93,7 @@
|
|
|
89
93
|
<br />
|
|
90
94
|
Any extension of the Price Fixing Period shall be the final extension, and no further extensions shall be
|
|
91
95
|
granted unless otherwise agreed upon in writing by the parties.
|
|
92
|
-
</div>
|
|
96
|
+
</div> -->
|
|
93
97
|
<h3>ARTICLE 10 – MARGIN CALL</h3>
|
|
94
98
|
<div>
|
|
95
99
|
<text-content :form="form" :disable="disable" keys="saleMarginCall"></text-content>
|
|
@@ -100,6 +104,9 @@
|
|
|
100
104
|
</div>
|
|
101
105
|
<h3>ARTICLE 12 - PACKING, DELIVERY, SHIPPING & RISK OF LOSS</h3>
|
|
102
106
|
<div>
|
|
107
|
+
<text-content :form="form" :disable="disable" keys="salePacking"></text-content>
|
|
108
|
+
</div>
|
|
109
|
+
<!-- <div>
|
|
103
110
|
The delivery terms shall be set forth on the first page of the Contract. The Contract includes standard
|
|
104
111
|
commercial packaging for the goods. When special or export packaging is required or requested, the cost of the
|
|
105
112
|
special packaging will be separately invoiced.
|
|
@@ -120,7 +127,7 @@
|
|
|
120
127
|
cancellation notice to the seller 3 days’ before deadline as per above, this Agreement shall be automatically
|
|
121
128
|
extended for additional 45 days. In any case, the Buyer shall not be entitled to cancel this Agreement once
|
|
122
129
|
the Material is loaded into the containers and notice thereof has been given by the Seller to the Buyer.
|
|
123
|
-
</div>
|
|
130
|
+
</div> -->
|
|
124
131
|
<h3>ARTICLE 13 - AS IS; NO WARRANTY</h3>
|
|
125
132
|
<div>
|
|
126
133
|
<text-content :form="form" :disable="disable" keys="saleNoWarranty"></text-content>
|
|
@@ -213,11 +220,12 @@
|
|
|
213
220
|
</div>
|
|
214
221
|
<h3>ARTICLE 8 – PAYMENT</h3>
|
|
215
222
|
<div>
|
|
216
|
-
|
|
223
|
+
<text-content :form="form" :disable="disable" keys="payment"></text-content>
|
|
224
|
+
</div>
|
|
225
|
+
<!-- <div>
|
|
217
226
|
<div v-if="form && form.depositType == '1'">
|
|
218
227
|
TTYY's downstream customers shall pay a deposit of {{ form.deposit}}% of the total Contract Price to the Seller within {{ form.depositDays }} days {{ depositPaymentFormKey(form.depositPaymentForm)}}.
|
|
219
228
|
</div>
|
|
220
|
-
<!-- 固定金额 -->
|
|
221
229
|
<div v-else>
|
|
222
230
|
TTYY's downstream customers shall pay a deposit of {{`$${form.advanceDepositAmount}`}}
|
|
223
231
|
TTYY within {{ form.depositDays }} days {{ depositPaymentFormKey(form.depositPaymentForm) }}.
|
|
@@ -225,9 +233,12 @@
|
|
|
225
233
|
</div>
|
|
226
234
|
The remaining {{ form && form.depositType == '1' && form.balance > 0 ? `${form.balance}%` : '' }} balance of the total Contract Price shall
|
|
227
235
|
be paid to the Seller via Telegraphic Transfer ({{ form.balancePaymentType }}) no later than {{ form.balanceDays }}
|
|
228
|
-
days {{ balancePaymentFormKey(form.balancePaymentForm) }}.
|
|
236
|
+
days {{ balancePaymentFormKey(form.balancePaymentForm) }}. -->
|
|
229
237
|
<h3>AARTICLE 9 – FLOATING PRICE</h3>
|
|
230
238
|
<div v-if="form.quoteType && form.quoteType != 'FIXED'">
|
|
239
|
+
<text-content :form="form" :disable="disable" keys="floatingPrice"></text-content>
|
|
240
|
+
</div>
|
|
241
|
+
<!-- <div v-if="form.quoteType && form.quoteType != 'FIXED'">
|
|
231
242
|
Price Period: The {{ form.livePriceUsertype }} has the pricing option from container loaded date until
|
|
232
243
|
{{ form.livePriceDays }} days {{ form.livePriceForm }} it arrives at the port.
|
|
233
244
|
<br />
|
|
@@ -240,7 +251,7 @@
|
|
|
240
251
|
If one party is unable to fix the price within the agreed Price Fixing Period, it is permitted to apply for an
|
|
241
252
|
extension pricing period application.The other party have the right to evaluate and offer extension pricing
|
|
242
253
|
period or not.
|
|
243
|
-
</div>
|
|
254
|
+
</div> -->
|
|
244
255
|
<h3>ARTICLE 10 – PRICE ADJUSTMENT</h3>
|
|
245
256
|
<div>
|
|
246
257
|
<text-content :form="form" :disable="disable" keys="priceAdjustment"></text-content>
|