doctor-admin-components 1.0.13-beta.8 → 1.0.13-pro.0
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/src/api/biz/bizContract.js +0 -1
- package/packages/src/api/biz/bizContractCompany.js +1 -1
- package/packages/src/utils/request.js +120 -146
- package/packages/src/views/biz/bizShipment/add.vue +101 -50
- 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 +11 -6
- package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +0 -8
- package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +196 -176
- 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
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: zhangpengwei 15038779532@163.com
|
|
3
|
-
* @Date: 2023-07-31 17:40:56
|
|
4
|
-
* @LastEditors: zhangpengwei 15038779532@163.com
|
|
5
|
-
* @LastEditTime: 2023-07-31 18:01:49
|
|
6
|
-
* @FilePath: /doctor-admin-components/packages/src/views/biz/contractTracing/chargingDialog.vue
|
|
7
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
-
-->
|
|
9
1
|
<template>
|
|
10
2
|
<div class="app-container">
|
|
11
3
|
<!-- 合同争议详情对话框 -->
|
|
@@ -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,189 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="app-container">
|
|
3
|
-
<!-- 合同详情对话框 -->
|
|
4
|
-
<el-dialog :title="title" :visible.sync="open" width="550px" append-to-body>
|
|
5
|
-
<el-form ref="form" :model="form" label-width="100px">
|
|
6
|
-
<el-form-item label="合同编号" v-if="form.contractType == 'purchase'">
|
|
7
|
-
<el-select
|
|
8
|
-
v-model="form.saleContractNos"
|
|
9
|
-
placeholder=""
|
|
10
|
-
multiple
|
|
11
|
-
filterable
|
|
12
|
-
remote
|
|
13
|
-
:remote-method="selectContract"
|
|
14
|
-
>
|
|
15
|
-
<el-option
|
|
16
|
-
v-for="item in this.saleContractList"
|
|
17
|
-
:key="item.contractId"
|
|
18
|
-
:label="item.contractNo"
|
|
19
|
-
:value="item.contractNo"
|
|
20
|
-
/>
|
|
21
|
-
</el-select>
|
|
22
|
-
</el-form-item>
|
|
23
|
-
|
|
24
|
-
<el-form-item label="合同编号" v-if="form.contractType == 'sale'">
|
|
25
|
-
<el-select
|
|
26
|
-
v-model="form.purchaseContractNos"
|
|
27
|
-
placeholder=""
|
|
28
|
-
multiple
|
|
29
|
-
filterable
|
|
30
|
-
remote
|
|
31
|
-
:remote-method="selectContract"
|
|
32
|
-
>
|
|
33
|
-
<el-option
|
|
34
|
-
v-for="item in this.purchaseContractList"
|
|
35
|
-
:key="item.contractId"
|
|
36
|
-
:label="item.contractNo"
|
|
37
|
-
:value="item.contractNo"
|
|
38
|
-
/>
|
|
39
|
-
</el-select>
|
|
40
|
-
</el-form-item>
|
|
41
|
-
</el-form>
|
|
42
|
-
<div slot="footer" class="dialog-footer">
|
|
43
|
-
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
44
|
-
<el-button @click="cancel">取 消</el-button>
|
|
45
|
-
</div>
|
|
46
|
-
</el-dialog>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<script>
|
|
51
|
-
import {
|
|
52
|
-
getBizContract,
|
|
53
|
-
listBizContract,
|
|
54
|
-
associationContract,
|
|
55
|
-
} from "../../../api/biz/bizContract";
|
|
56
|
-
|
|
57
|
-
export default {
|
|
58
|
-
name: "AssociationContract",
|
|
59
|
-
data() {
|
|
60
|
-
return {
|
|
61
|
-
// 遮罩层
|
|
62
|
-
loading: true,
|
|
63
|
-
// 弹出层标题
|
|
64
|
-
title: "",
|
|
65
|
-
// 是否显示弹出层
|
|
66
|
-
open: false,
|
|
67
|
-
// 表单参数
|
|
68
|
-
form: {},
|
|
69
|
-
//销售合同选项表
|
|
70
|
-
saleContractList: [],
|
|
71
|
-
//采购合同选项表
|
|
72
|
-
purchaseContractList: [],
|
|
73
|
-
};
|
|
74
|
-
},
|
|
75
|
-
created() {},
|
|
76
|
-
methods: {
|
|
77
|
-
selectContract(query) {
|
|
78
|
-
if (this.form.contractType == "sale") {
|
|
79
|
-
listBizContract({ contractType: "purchase", contractNo: query }).then(
|
|
80
|
-
(res) => {
|
|
81
|
-
this.purchaseContractList = res.rows;
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
} else {
|
|
85
|
-
listBizContract({ contractType: "sale", contractNo: query }).then(
|
|
86
|
-
(res) => {
|
|
87
|
-
this.saleContractList = res.rows;
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
/** 提交按钮 */
|
|
93
|
-
submitForm() {
|
|
94
|
-
associationContract(this.form).then((response) => {
|
|
95
|
-
this.$modal.msgSuccess("关联成功");
|
|
96
|
-
this.open = false;
|
|
97
|
-
this.$emit("refresh");
|
|
98
|
-
});
|
|
99
|
-
},
|
|
100
|
-
// 取消按钮
|
|
101
|
-
cancel() {
|
|
102
|
-
this.open = false;
|
|
103
|
-
this.reset();
|
|
104
|
-
},
|
|
105
|
-
// 表单重置
|
|
106
|
-
reset() {
|
|
107
|
-
this.form = {
|
|
108
|
-
contractId: null,
|
|
109
|
-
transactionId: null,
|
|
110
|
-
dealId: null,
|
|
111
|
-
askId: null,
|
|
112
|
-
askName: null,
|
|
113
|
-
contractNo: null,
|
|
114
|
-
contractType: null,
|
|
115
|
-
quoteType: null,
|
|
116
|
-
currency: null,
|
|
117
|
-
buyerAccountId: null,
|
|
118
|
-
buyCompanyId: null,
|
|
119
|
-
buyContractCompanyId: null,
|
|
120
|
-
buyCompanyName: null,
|
|
121
|
-
buyCompanyNameEn: null,
|
|
122
|
-
buyCompanyAddress: null,
|
|
123
|
-
supplierAccountId: null,
|
|
124
|
-
supplierCompanyId: null,
|
|
125
|
-
supplierContractCompanyId: null,
|
|
126
|
-
supplierCompanyName: null,
|
|
127
|
-
supplierCompanyNameEn: null,
|
|
128
|
-
supplierCompanyAddress: null,
|
|
129
|
-
totalWeight: null,
|
|
130
|
-
serviceFee: null,
|
|
131
|
-
serviceFeeSwitch: null,
|
|
132
|
-
freightTerms: null,
|
|
133
|
-
deposit: null,
|
|
134
|
-
depositDays: null,
|
|
135
|
-
balance: null,
|
|
136
|
-
balanceDays: null,
|
|
137
|
-
balancePaymentType: null,
|
|
138
|
-
balancePaymentForm: null,
|
|
139
|
-
loadingCountry: null,
|
|
140
|
-
originCountry: null,
|
|
141
|
-
destination: null,
|
|
142
|
-
numberOfContainersForTwenty: null,
|
|
143
|
-
numberOfContainersForForty: null,
|
|
144
|
-
numberOfContainersForTwentyOrForty: null,
|
|
145
|
-
toleranceFloat: null,
|
|
146
|
-
weightTolerance: null,
|
|
147
|
-
latestShipment: null,
|
|
148
|
-
livePriceSwitch: null,
|
|
149
|
-
livePriceDays: null,
|
|
150
|
-
livePriceForm: null,
|
|
151
|
-
livePriceUsertype: null,
|
|
152
|
-
requiredDocuments: null,
|
|
153
|
-
qualityCertificate: null,
|
|
154
|
-
qualityCertificateSwitch: null,
|
|
155
|
-
claim: null,
|
|
156
|
-
claimSwitch: null,
|
|
157
|
-
arbitration: null,
|
|
158
|
-
arbitrationSwitch: null,
|
|
159
|
-
memo: null,
|
|
160
|
-
memoSwitch: null,
|
|
161
|
-
contractState: null,
|
|
162
|
-
invoiceState: null,
|
|
163
|
-
remark: null,
|
|
164
|
-
imported: null,
|
|
165
|
-
submitFlag: null,
|
|
166
|
-
createTime: null,
|
|
167
|
-
updateTime: null,
|
|
168
|
-
completionTime: null,
|
|
169
|
-
dealTime: null,
|
|
170
|
-
contractStatus: "0",
|
|
171
|
-
contractFlag: null,
|
|
172
|
-
submitEndTime: null,
|
|
173
|
-
saleContractNos: null,
|
|
174
|
-
purchaseContractNos: null,
|
|
175
|
-
};
|
|
176
|
-
this.resetForm("form");
|
|
177
|
-
},
|
|
178
|
-
/** 展示按钮操作 */
|
|
179
|
-
handleAssociation(row) {
|
|
180
|
-
this.reset();
|
|
181
|
-
getBizContract(row.contractId).then((res) => {
|
|
182
|
-
this.form = res.data;
|
|
183
|
-
this.open = true;
|
|
184
|
-
this.title = "关联合同";
|
|
185
|
-
});
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
</script>
|