doctor-admin-components 1.0.13-beta.5 → 1.0.13-beta.50
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/README.md +18 -7
- package/package.json +1 -1
- package/packages/index.js +4 -0
- package/packages/src/api/biz/bizContract.js +963 -1
- package/packages/src/api/biz/bizContractCompany.js +1 -1
- package/packages/src/api/biz/bizFileInfo.js +16 -0
- package/packages/src/assets/images/click-show-table.png +0 -0
- package/packages/src/assets/images/more.png +0 -0
- package/packages/src/assets/images/pdf-new.png +0 -0
- package/packages/src/components/FileUpload/contract-drag-new.vue +99 -10
- package/packages/src/i18n/en/message.json +296 -0
- package/packages/src/i18n/index.js +38 -0
- package/packages/src/i18n/zh-CN/message.json +296 -0
- package/packages/src/utils/index.js +35 -0
- package/packages/src/utils/request.js +120 -146
- package/packages/src/views/biz/bizFileInfo/PAYMENT_VOUCHER(/"payment_voucher/", /"/344/273/230/346/254/276/345/207/255/350/257/201.ini" +222 -0
- package/packages/src/views/biz/bizFileInfo/contract copy.vue +1711 -0
- package/packages/src/views/biz/bizFileInfo/contract.vue +1657 -996
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +114 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ContentTitle.vue +102 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +280 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/Progress.vue +85 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +122 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +83 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ShowAndHide.vue +178 -0
- package/packages/src/views/biz/bizFileInfo/fileShow copy.vue +321 -0
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +131 -46
- package/packages/src/views/biz/bizFileInfo/fileShowClaim.vue +1 -1
- package/packages/src/views/biz/bizShipment/add.vue +122 -71
- package/packages/src/views/biz/contractTracing/addSubCompany.vue +106 -169
- package/packages/src/views/biz/contractTracing/billInfo.vue +150 -315
- package/packages/src/views/biz/contractTracing/contractSummary.vue +286 -629
- package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +200 -7
- package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
- package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +91 -3
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +8 -2
- package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +196 -176
- package/packages/src/views/test.vue +3 -3
- package/packages/src/views/biz/contractTracing/association.vue +0 -189
- package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
- package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
- package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
- package/packages/src/views/biz/contractTracing/edit.vue +0 -205
- package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
- package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
|
@@ -183,6 +183,13 @@
|
|
|
183
183
|
type="number"
|
|
184
184
|
/>
|
|
185
185
|
</el-form-item>
|
|
186
|
+
<div class="balance-money" v-if="purchaseBalanceMoney && purchaseBalanceMoney != item.amount">
|
|
187
|
+
<span class="balance-money-text">提示:系统计算的尾款为${{ purchaseBalanceMoney }}</span>
|
|
188
|
+
<span @click.stop="dialogVisibleConfirm" class="balance-money-click">
|
|
189
|
+
<img class="balance-money-icon" src="../../../assets/images/click-show-table.png" alt="">
|
|
190
|
+
<span style="color:#3e82f4">点击这里去校准</span>
|
|
191
|
+
</span>
|
|
192
|
+
</div>
|
|
186
193
|
<el-form-item label="备注">
|
|
187
194
|
<el-input
|
|
188
195
|
v-model="item.remark"
|
|
@@ -205,7 +212,7 @@
|
|
|
205
212
|
</el-form>
|
|
206
213
|
<div slot="footer" class="dialog-footer">
|
|
207
214
|
<el-button @click="cancel">取 消</el-button>
|
|
208
|
-
<el-button @click="submitForm"
|
|
215
|
+
<el-button type="primary" @click="submitForm">确认上传</el-button>
|
|
209
216
|
<el-button
|
|
210
217
|
v-if="type == 'deposit'"
|
|
211
218
|
type="primary"
|
|
@@ -213,6 +220,19 @@
|
|
|
213
220
|
>上传并生成收付款</el-button
|
|
214
221
|
>
|
|
215
222
|
</div>
|
|
223
|
+
<el-dialog
|
|
224
|
+
title="系统计算金额和发票金额不一致"
|
|
225
|
+
:visible.sync="dialogVisible"
|
|
226
|
+
:modal="false"
|
|
227
|
+
width="30%"
|
|
228
|
+
:close-on-click-modal="false"
|
|
229
|
+
:before-close="handleClose">
|
|
230
|
+
<span>系统检测到您填写的发票金额和系统计算的金额不一致,有可能存在发票金额填写错误或者系统计算的定金扣减不符合业务情况。若系统计算有误,请先校准修正系统数据,以免影响财务对账。</span>
|
|
231
|
+
<span slot="footer" class="dialog-footer">
|
|
232
|
+
<el-button @click="dialogVisibleCancel">忽略并确认上传</el-button>
|
|
233
|
+
<el-button type="primary" @click="dialogVisibleConfirm">去校准</el-button>
|
|
234
|
+
</span>
|
|
235
|
+
</el-dialog>
|
|
216
236
|
</el-dialog>
|
|
217
237
|
</div>
|
|
218
238
|
</template>
|
|
@@ -235,7 +255,18 @@ import { getByContractId } from "../../../api/biz/bizShipment";
|
|
|
235
255
|
|
|
236
256
|
export default {
|
|
237
257
|
name: "PurchaseInvoiceUpload",
|
|
238
|
-
components: {
|
|
258
|
+
components: {
|
|
259
|
+
UploadInvoice
|
|
260
|
+
},
|
|
261
|
+
props: {
|
|
262
|
+
purchaseBalanceMoneyProp: {
|
|
263
|
+
type: Number | String,
|
|
264
|
+
default: '',
|
|
265
|
+
},
|
|
266
|
+
getShipmentPurchaseFun:{
|
|
267
|
+
type: Function
|
|
268
|
+
}
|
|
269
|
+
},
|
|
239
270
|
data() {
|
|
240
271
|
return {
|
|
241
272
|
test: null,
|
|
@@ -253,10 +284,28 @@ export default {
|
|
|
253
284
|
purchaseContractList: [],
|
|
254
285
|
type: null,
|
|
255
286
|
shipmentId: null,
|
|
287
|
+
dialogVisible: false,
|
|
288
|
+
purchaseBalanceMoney: '',
|
|
256
289
|
};
|
|
257
290
|
},
|
|
258
291
|
created() {},
|
|
259
292
|
methods: {
|
|
293
|
+
dialogVisibleCancel() {
|
|
294
|
+
this.submitForm(false);
|
|
295
|
+
this.dialogVisible = false;
|
|
296
|
+
},
|
|
297
|
+
dialogVisibleConfirm() {
|
|
298
|
+
this.getShipmentPurchaseFun && this.getShipmentPurchaseFun(this.form)
|
|
299
|
+
this.dialogVisible = false;
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* @description: 确认弹窗
|
|
303
|
+
* @param {*} done
|
|
304
|
+
* @return {*}
|
|
305
|
+
*/
|
|
306
|
+
handleClose() {
|
|
307
|
+
this.dialogVisible = false;
|
|
308
|
+
},
|
|
260
309
|
//上传并生成
|
|
261
310
|
uploadAndGenerate() {
|
|
262
311
|
this.$refs["form"].validate((valid) => {
|
|
@@ -276,10 +325,16 @@ export default {
|
|
|
276
325
|
});
|
|
277
326
|
},
|
|
278
327
|
/** 提交按钮 */
|
|
279
|
-
submitForm() {
|
|
328
|
+
submitForm(comfirmClickFlag) {
|
|
280
329
|
this.$refs["form"].validate((valid) => {
|
|
281
330
|
if (valid) {
|
|
331
|
+
console.log('type', this.type);
|
|
282
332
|
if (this.type == "finally") {
|
|
333
|
+
if(comfirmClickFlag) {
|
|
334
|
+
if(this.form.fixedInvoiceList[0].amount && this.purchaseBalanceMoney && this.form.fixedInvoiceList[0].amount != this.purchaseBalanceMoney) {
|
|
335
|
+
return this.dialogVisible = true;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
283
338
|
uploadFinallyInvoice(this.form).then((response) => {
|
|
284
339
|
this.$modal.msgSuccess("保存成功");
|
|
285
340
|
this.$emit("refresh");
|
|
@@ -379,5 +434,38 @@ export default {
|
|
|
379
434
|
}
|
|
380
435
|
},
|
|
381
436
|
},
|
|
437
|
+
watch: {
|
|
438
|
+
purchaseBalanceMoneyProp: {
|
|
439
|
+
handler(val){
|
|
440
|
+
this.purchaseBalanceMoney = val;
|
|
441
|
+
},
|
|
442
|
+
immediate: true,
|
|
443
|
+
deep: true
|
|
444
|
+
},
|
|
445
|
+
}
|
|
382
446
|
};
|
|
383
447
|
</script>
|
|
448
|
+
<style lang="scss" scoped>
|
|
449
|
+
.balance-money {
|
|
450
|
+
display:flex;
|
|
451
|
+
justify-content: space-around;
|
|
452
|
+
align-items: center;
|
|
453
|
+
margin-bottom: 20px;
|
|
454
|
+
.balance-money-text {
|
|
455
|
+
font-size: 12px;
|
|
456
|
+
color: #f00;
|
|
457
|
+
}
|
|
458
|
+
.balance-money-click {
|
|
459
|
+
cursor: pointer;
|
|
460
|
+
.balance-money-icon {
|
|
461
|
+
width: 20px;
|
|
462
|
+
height: 20px;
|
|
463
|
+
cursor: pointer;
|
|
464
|
+
vertical-align: sub;
|
|
465
|
+
margin-right:5px;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: zhangpengwei 15038779532@163.com
|
|
3
3
|
* @Date: 2023-07-31 17:40:56
|
|
4
|
-
* @LastEditors: zhangpengwei
|
|
5
|
-
* @LastEditTime:
|
|
4
|
+
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
+
* @LastEditTime: 2024-04-02 17:58:33
|
|
6
6
|
* @FilePath: /doctor-admin-components/packages/src/views/biz/contractTracing/chargingDialog.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
@@ -132,6 +132,11 @@ export default {
|
|
|
132
132
|
contract: null
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
|
+
props: {
|
|
136
|
+
getContractFileInfoCallback: {
|
|
137
|
+
type: Function
|
|
138
|
+
}
|
|
139
|
+
},
|
|
135
140
|
created() {},
|
|
136
141
|
mounted() {},
|
|
137
142
|
methods: {
|
|
@@ -155,6 +160,7 @@ export default {
|
|
|
155
160
|
type: 'success',
|
|
156
161
|
message: '修改成功'
|
|
157
162
|
})
|
|
163
|
+
this.getContractFileInfoCallback && this.getContractFileInfoCallback()
|
|
158
164
|
})
|
|
159
165
|
})
|
|
160
166
|
.catch(() => {
|
|
@@ -1,121 +1,129 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="app-container">
|
|
3
3
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
|
4
|
-
<
|
|
5
|
-
v-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@click="addSubCompany('delivery')"
|
|
62
|
-
>{{ $t("button.addCompany") }}</el-button>
|
|
4
|
+
<span v-if="this.companyType == 'delivery'">
|
|
5
|
+
<el-card class="box-card" shadow="hover" v-for="item in deliveryCompanyList" :key="item.contractCompanyId">
|
|
6
|
+
<div slot="header" class="clearfix">
|
|
7
|
+
<span>{{ item.companyEnglishName }}</span>
|
|
8
|
+
<div style="float: right; padding: 3px 0">
|
|
9
|
+
<el-tag v-if="item.defaultFlag" type="warning" effect="dark" size="small">{{ $t('button.default') }}</el-tag>
|
|
10
|
+
<el-button v-else type="text" size="small" @click="setSubCompanyDefault(item)">{{ $t('button.setDefault') }}</el-button>
|
|
11
|
+
<el-button size="mini" type="text" @click="updateSubCompany(item)">{{ $t('button.edit') }}</el-button>
|
|
12
|
+
<el-button style="color: red" size="mini" type="text" @click="deleteSubCompany(item)">{{ $t('button.delete') }}</el-button>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="text item">
|
|
16
|
+
<el-form :model="item">
|
|
17
|
+
<el-row>
|
|
18
|
+
<el-col :span="12">
|
|
19
|
+
<el-form-item :label="$t('contract.consignee')">
|
|
20
|
+
{{ item.companyEnglishName }}
|
|
21
|
+
</el-form-item>
|
|
22
|
+
</el-col>
|
|
23
|
+
<el-col :span="12">
|
|
24
|
+
<el-form-item :label="$t('contract.taxId')">
|
|
25
|
+
{{ item.taxNumber }}
|
|
26
|
+
</el-form-item>
|
|
27
|
+
</el-col>
|
|
28
|
+
</el-row>
|
|
29
|
+
<el-row>
|
|
30
|
+
<el-form-item :label="$t('contract.consigneeAddress')"> {{ item.address }}</el-form-item>
|
|
31
|
+
</el-row>
|
|
32
|
+
<el-row>
|
|
33
|
+
<el-col :span="8">
|
|
34
|
+
<el-form-item label="PAN NO."> {{ item.panNo }}</el-form-item>
|
|
35
|
+
</el-col>
|
|
36
|
+
<el-col :span="8">
|
|
37
|
+
<el-form-item label="GST NUMBER."> {{ item.gstNumber }}</el-form-item>
|
|
38
|
+
</el-col>
|
|
39
|
+
<el-col :span="8">
|
|
40
|
+
<el-form-item label="IEC CODE"> {{ item.iecCode }}</el-form-item>
|
|
41
|
+
</el-col>
|
|
42
|
+
</el-row>
|
|
43
|
+
<el-row>
|
|
44
|
+
<el-col :span="8">
|
|
45
|
+
<el-form-item :label="$t('contract.contact')"> {{ item.contact }} </el-form-item>
|
|
46
|
+
</el-col>
|
|
47
|
+
<el-col :span="8">
|
|
48
|
+
<el-form-item :label="$t('contract.phoneNumber')"> {{ item.phoneNumber.join() }}</el-form-item>
|
|
49
|
+
</el-col>
|
|
50
|
+
<el-col :span="8">
|
|
51
|
+
<el-form-item :label="$t('contract.email')"> {{ item.email.join() }}</el-form-item>
|
|
52
|
+
</el-col>
|
|
53
|
+
</el-row>
|
|
54
|
+
<el-row>
|
|
55
|
+
<el-form-item :label="$t('contract.bliRemark')" v-if="channel !== 'official-website'">{{ item.bliRemark }}</el-form-item>
|
|
56
|
+
</el-row>
|
|
57
|
+
</el-form>
|
|
58
|
+
</div>
|
|
59
|
+
</el-card>
|
|
60
|
+
</span>
|
|
63
61
|
|
|
64
|
-
<el-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
v-if="this.companyType == 'notifier'"
|
|
68
|
-
key="notifier-table"
|
|
69
|
-
>
|
|
70
|
-
<el-table-column :label="$t('contract.notifier')" align="center" prop="companyEnglishName" />
|
|
71
|
-
<el-table-column :label="$t('contract.taxId')" align="center" prop="taxNumber" />
|
|
72
|
-
<el-table-column :label="$t('contract.notifierAddress')" align="center" prop="address" />
|
|
73
|
-
<el-table-column :label="$t('contract.contact')" align="center" prop="contact" />
|
|
74
|
-
<el-table-column :label="$t('contract.phoneNumber')" align="center" prop="phoneNumber" />
|
|
75
|
-
<el-table-column :label="$t('contract.email')" align="center" prop="email" />
|
|
76
|
-
<el-table-column label="PAN NO." align="center" prop="panNo"></el-table-column>
|
|
77
|
-
<el-table-column label="PAN NO." align="center" prop="panNo"></el-table-column>
|
|
78
|
-
<el-table-column label="IEC CODE" align="center" prop="iecCode"></el-table-column>
|
|
79
|
-
<el-table-column
|
|
80
|
-
:label="$t('button.operation')"
|
|
81
|
-
width="200"
|
|
82
|
-
align="center"
|
|
83
|
-
class-name="small-padding fixed-width"
|
|
84
|
-
>
|
|
85
|
-
<template slot-scope="scope">
|
|
86
|
-
<el-button
|
|
87
|
-
size="mini"
|
|
88
|
-
type="text"
|
|
89
|
-
@click="updateSubCompany(scope.row)"
|
|
90
|
-
>{{ $t("button.edit") }}</el-button>
|
|
91
|
-
<el-button
|
|
92
|
-
size="mini"
|
|
93
|
-
type="text"
|
|
94
|
-
@click="deleteSubCompany(scope.row)"
|
|
95
|
-
>{{ $t("button.delete") }}</el-button>
|
|
62
|
+
<el-button icon="el-icon-plus" plain class="mt10" type="primary" v-if="this.companyType == 'delivery'" size="mini " @click="addSubCompany('delivery')">{{
|
|
63
|
+
$t('新增收货人公司')
|
|
64
|
+
}}</el-button>
|
|
96
65
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
type="text"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
66
|
+
<span v-if="this.companyType == 'notifier'">
|
|
67
|
+
<el-card class="box-card" shadow="hover" v-for="item in notifierCompanyList" :key="item.contractCompanyId">
|
|
68
|
+
<div slot="header" class="clearfix">
|
|
69
|
+
<span>{{ item.companyEnglishName }}</span>
|
|
70
|
+
<div style="float: right; padding: 3px 0">
|
|
71
|
+
<el-tag v-if="item.defaultFlag" type="warning" effect="dark" size="small">{{ $t('button.default') }}</el-tag>
|
|
72
|
+
<el-button v-else type="text" size="small" @click="setSubCompanyDefault(item)">{{ $t('button.setDefault') }}</el-button>
|
|
73
|
+
<el-button size="mini" type="text" @click="updateSubCompany(item)">{{ $t('button.edit') }}</el-button>
|
|
74
|
+
<el-button style="color: red" size="mini" type="text" @click="deleteSubCompany(item)">{{ $t('button.delete') }}</el-button>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="text item">
|
|
78
|
+
<el-form :model="item">
|
|
79
|
+
<el-row>
|
|
80
|
+
<el-col :span="12">
|
|
81
|
+
<el-form-item :label="$t('contract.consignee')">
|
|
82
|
+
{{ item.companyEnglishName }}
|
|
83
|
+
</el-form-item>
|
|
84
|
+
</el-col>
|
|
85
|
+
<el-col :span="12">
|
|
86
|
+
<el-form-item :label="$t('contract.taxId')">
|
|
87
|
+
{{ item.taxNumber }}
|
|
88
|
+
</el-form-item>
|
|
89
|
+
</el-col>
|
|
90
|
+
</el-row>
|
|
91
|
+
<el-row>
|
|
92
|
+
<el-form-item :label="$t('contract.consigneeAddress')"> {{ item.address }}</el-form-item>
|
|
93
|
+
</el-row>
|
|
94
|
+
<el-row>
|
|
95
|
+
<el-col :span="8">
|
|
96
|
+
<el-form-item label="PAN NO."> {{ item.panNo }}</el-form-item>
|
|
97
|
+
</el-col>
|
|
98
|
+
<el-col :span="8">
|
|
99
|
+
<el-form-item label="GST NUMBER."> {{ item.gstNumber }}</el-form-item>
|
|
100
|
+
</el-col>
|
|
101
|
+
<el-col :span="8">
|
|
102
|
+
<el-form-item label="IEC CODE"> {{ item.iecCode }}</el-form-item>
|
|
103
|
+
</el-col>
|
|
104
|
+
</el-row>
|
|
105
|
+
<el-row>
|
|
106
|
+
<el-col :span="8">
|
|
107
|
+
<el-form-item :label="$t('contract.contact')"> {{ item.contact }} </el-form-item>
|
|
108
|
+
</el-col>
|
|
109
|
+
<el-col :span="8">
|
|
110
|
+
<el-form-item :label="$t('contract.phoneNumber')"> {{ item.phoneNumber.join() }}</el-form-item>
|
|
111
|
+
</el-col>
|
|
112
|
+
<el-col :span="8">
|
|
113
|
+
<el-form-item :label="$t('contract.email')"> {{ item.email.join() }}</el-form-item>
|
|
114
|
+
</el-col>
|
|
115
|
+
</el-row>
|
|
116
|
+
<el-row>
|
|
117
|
+
<el-form-item :label="$t('contract.bliRemark')" v-if="channel !== 'official-website'">{{ item.bliRemark }}</el-form-item>
|
|
118
|
+
</el-row>
|
|
119
|
+
</el-form>
|
|
120
|
+
</div>
|
|
121
|
+
</el-card>
|
|
122
|
+
</span>
|
|
123
|
+
|
|
124
|
+
<el-button icon="el-icon-plus" plain class="mt10" v-if="this.companyType == 'notifier'" type="primary" size="mini" @click="addSubCompany('notifier')">
|
|
125
|
+
{{ '新增通知人公司' }}
|
|
126
|
+
</el-button>
|
|
119
127
|
</el-dialog>
|
|
120
128
|
|
|
121
129
|
<add-sub-company ref="addSubCompany" @submit="submit" :channel="channel"></add-sub-company>
|
|
@@ -123,19 +131,16 @@
|
|
|
123
131
|
</template>
|
|
124
132
|
|
|
125
133
|
<script>
|
|
126
|
-
import {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
updateBizContractCompany,
|
|
130
|
-
} from '../../../api/biz/bizContractCompany';
|
|
131
|
-
import AddSubCompany from './addSubCompany';
|
|
134
|
+
import { Form } from 'element-ui'
|
|
135
|
+
import { listBizContractCompany, delBizContractCompany, updateBizContractCompany } from '../../../api/biz/bizContractCompany'
|
|
136
|
+
import AddSubCompany from './addSubCompany'
|
|
132
137
|
|
|
133
138
|
export default {
|
|
134
139
|
name: 'SubCompanyDialog',
|
|
135
140
|
mixins: [],
|
|
136
|
-
components: { AddSubCompany },
|
|
141
|
+
components: { AddSubCompany, Form },
|
|
137
142
|
props: {
|
|
138
|
-
channel: ''
|
|
143
|
+
channel: ''
|
|
139
144
|
},
|
|
140
145
|
data() {
|
|
141
146
|
return {
|
|
@@ -157,20 +162,12 @@ export default {
|
|
|
157
162
|
form: {},
|
|
158
163
|
// 表单校验
|
|
159
164
|
rules: {
|
|
160
|
-
companyName: [
|
|
161
|
-
|
|
162
|
-
],
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
createTime: [
|
|
167
|
-
{ required: true, message: '创建时间不能为空', trigger: 'blur' },
|
|
168
|
-
],
|
|
169
|
-
updateTime: [
|
|
170
|
-
{ required: true, message: '更新时间不能为空', trigger: 'blur' },
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
};
|
|
165
|
+
companyName: [{ required: true, message: '公司名称不能为空', trigger: 'blur' }],
|
|
166
|
+
companyCode: [{ required: true, message: '公司代码不能为空', trigger: 'blur' }],
|
|
167
|
+
createTime: [{ required: true, message: '创建时间不能为空', trigger: 'blur' }],
|
|
168
|
+
updateTime: [{ required: true, message: '更新时间不能为空', trigger: 'blur' }]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
174
171
|
},
|
|
175
172
|
computed: {},
|
|
176
173
|
watch: {},
|
|
@@ -179,82 +176,105 @@ export default {
|
|
|
179
176
|
methods: {
|
|
180
177
|
//子公司相关操作后刷新列表
|
|
181
178
|
submit() {
|
|
182
|
-
this.getList()
|
|
183
|
-
this.$emit('submit')
|
|
179
|
+
this.getList()
|
|
180
|
+
this.$emit('submit')
|
|
184
181
|
},
|
|
185
182
|
//新增子公司
|
|
186
183
|
addSubCompany(type) {
|
|
187
|
-
this.$refs.addSubCompany.handleAdd(this.companyId, type)
|
|
184
|
+
this.$refs.addSubCompany.handleAdd(this.companyId, type)
|
|
188
185
|
},
|
|
189
186
|
//修改子公司
|
|
190
187
|
updateSubCompany(row) {
|
|
191
|
-
this.$refs.addSubCompany.handleUpdate(row)
|
|
188
|
+
this.$refs.addSubCompany.handleUpdate(row)
|
|
192
189
|
},
|
|
193
190
|
/** 查询合同公司记录列表 */
|
|
194
191
|
getList() {
|
|
195
|
-
|
|
192
|
+
const loading = this.$loading({
|
|
193
|
+
lock: true,
|
|
194
|
+
text: 'Loading',
|
|
195
|
+
spinner: 'el-icon-loading',
|
|
196
|
+
background: 'rgba(0, 0, 0, 0.7)'
|
|
197
|
+
})
|
|
196
198
|
listBizContractCompany({
|
|
197
|
-
companyId: this.companyId
|
|
199
|
+
companyId: this.companyId
|
|
198
200
|
}).then((response) => {
|
|
199
|
-
const subCompanyList = response.rows
|
|
201
|
+
const subCompanyList = response.rows
|
|
200
202
|
this.deliveryCompanyList = subCompanyList.filter((i) => {
|
|
201
|
-
return i.companyType == 'delivery'
|
|
202
|
-
})
|
|
203
|
+
return i.companyType == 'delivery'
|
|
204
|
+
})
|
|
203
205
|
this.notifierCompanyList = subCompanyList.filter((i) => {
|
|
204
|
-
return i.companyType == 'notifier'
|
|
205
|
-
})
|
|
206
|
-
this.
|
|
207
|
-
|
|
206
|
+
return i.companyType == 'notifier'
|
|
207
|
+
})
|
|
208
|
+
this.open = true
|
|
209
|
+
loading.close()
|
|
210
|
+
})
|
|
208
211
|
},
|
|
209
212
|
// 子公司详情
|
|
210
213
|
detailSubCompany(row) {
|
|
211
|
-
this.$refs.subCompanyDetail.handleDetail(row)
|
|
214
|
+
this.$refs.subCompanyDetail.handleDetail(row)
|
|
212
215
|
},
|
|
213
216
|
// 新增子公司
|
|
214
217
|
addSubCompany(type) {
|
|
215
|
-
this.$refs.addSubCompany.handleAdd(this.companyId, type)
|
|
218
|
+
this.$refs.addSubCompany.handleAdd(this.companyId, type)
|
|
216
219
|
},
|
|
217
220
|
// 修改子公司
|
|
218
221
|
updateSubCompany(row) {
|
|
219
|
-
this.$refs.addSubCompany.handleUpdate(row)
|
|
222
|
+
this.$refs.addSubCompany.handleUpdate(row)
|
|
220
223
|
},
|
|
221
224
|
// 删除子公司
|
|
222
225
|
deleteSubCompany(row) {
|
|
223
|
-
const contractCompanyId = row.contractCompanyId
|
|
226
|
+
const contractCompanyId = row.contractCompanyId
|
|
224
227
|
this.$modal
|
|
225
|
-
.confirm('
|
|
228
|
+
.confirm('你确定要删除这个公司吗')
|
|
226
229
|
.then(function () {
|
|
227
|
-
return delBizContractCompany(contractCompanyId)
|
|
230
|
+
return delBizContractCompany(contractCompanyId)
|
|
228
231
|
})
|
|
229
232
|
.then(() => {
|
|
230
|
-
this.getList()
|
|
231
|
-
this.$modal.msgSuccess('Successfully deleted')
|
|
233
|
+
this.getList()
|
|
234
|
+
this.$modal.msgSuccess('Successfully deleted')
|
|
232
235
|
})
|
|
233
|
-
.catch(() => {})
|
|
236
|
+
.catch(() => {})
|
|
234
237
|
},
|
|
235
238
|
setSubCompanyDefault(row) {
|
|
236
|
-
row.defaultFlag = true
|
|
239
|
+
row.defaultFlag = true
|
|
237
240
|
updateBizContractCompany(row).then((response) => {
|
|
238
|
-
this.getList()
|
|
239
|
-
this.$modal.msgSuccess('Set' + row.companyEnglishName + 'as default')
|
|
240
|
-
})
|
|
241
|
+
this.getList()
|
|
242
|
+
this.$modal.msgSuccess('Set' + row.companyEnglishName + 'as default')
|
|
243
|
+
})
|
|
241
244
|
},
|
|
242
245
|
/** 选择按钮操作 */
|
|
243
246
|
handleSubCompany(companyId, companyType) {
|
|
244
|
-
this.
|
|
245
|
-
this.
|
|
246
|
-
this.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
this.getList();
|
|
255
|
-
},
|
|
256
|
-
},
|
|
257
|
-
};
|
|
247
|
+
this.companyType = companyType
|
|
248
|
+
this.companyId = companyId
|
|
249
|
+
const title = companyType == 'delivery' ? this.$t('contract.consigneeCompanyTitle') : companyType == 'notifier' ? this.$t('contract.notifierCompanyTitle') : ''
|
|
250
|
+
this.title = title
|
|
251
|
+
if (companyId) {
|
|
252
|
+
this.getList()
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
258
257
|
</script>
|
|
259
258
|
|
|
260
|
-
<style scoped lang="scss"
|
|
259
|
+
<style scoped lang="scss">
|
|
260
|
+
.text {
|
|
261
|
+
font-size: 14px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.item {
|
|
265
|
+
margin-bottom: 18px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.clearfix:before,
|
|
269
|
+
.clearfix:after {
|
|
270
|
+
display: table;
|
|
271
|
+
content: '';
|
|
272
|
+
}
|
|
273
|
+
.clearfix:after {
|
|
274
|
+
clear: both;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.box-card {
|
|
278
|
+
margin-top: 5px;
|
|
279
|
+
}
|
|
280
|
+
</style>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: zhangpengwei 15038779532@163.com
|
|
3
3
|
* @Date: 2023-07-20 14:47:50
|
|
4
|
-
* @LastEditors: zhangpengwei
|
|
5
|
-
* @LastEditTime:
|
|
4
|
+
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
+
* @LastEditTime: 2024-04-12 11:10:46
|
|
6
6
|
* @FilePath: /zpw-com-test/src/doctorscrap-components/test.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div>
|
|
11
|
-
<button @click.stop="jump">click</button>
|
|
11
|
+
<button @click.stop="jump"> click</button>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
14
14
|
|