doctor-admin-components 1.0.13-beta.7 → 1.0.13-beta.71

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.
Files changed (50) hide show
  1. package/README.md +18 -7
  2. package/package.json +1 -1
  3. package/packages/index.js +7 -0
  4. package/packages/src/api/biz/bizContract.js +980 -1
  5. package/packages/src/api/biz/bizContractCompany.js +1 -1
  6. package/packages/src/api/biz/bizFileInfo.js +16 -0
  7. package/packages/src/api/biz/bizInvoice.js +1 -1
  8. package/packages/src/assets/images/click-show-table.png +0 -0
  9. package/packages/src/assets/images/more.png +0 -0
  10. package/packages/src/assets/images/pdf-new.png +0 -0
  11. package/packages/src/components/FileUpload/contract-drag-new.vue +99 -10
  12. package/packages/src/i18n/en/message.json +297 -0
  13. package/packages/src/i18n/index.js +38 -0
  14. package/packages/src/i18n/zh-CN/message.json +297 -0
  15. package/packages/src/index.js +6 -0
  16. package/packages/src/utils/index.js +35 -0
  17. package/packages/src/utils/request.js +120 -146
  18. 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
  19. package/packages/src/views/biz/bizFileInfo/contract copy.vue +1711 -0
  20. package/packages/src/views/biz/bizFileInfo/contract.vue +1676 -998
  21. package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +114 -0
  22. package/packages/src/views/biz/bizFileInfo/contractFile/ContentTitle.vue +102 -0
  23. package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +308 -0
  24. package/packages/src/views/biz/bizFileInfo/contractFile/Progress.vue +85 -0
  25. package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +122 -0
  26. package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +83 -0
  27. package/packages/src/views/biz/bizFileInfo/contractFile/ShowAndHide.vue +178 -0
  28. package/packages/src/views/biz/bizFileInfo/fileShow copy.vue +321 -0
  29. package/packages/src/views/biz/bizFileInfo/fileShow.vue +131 -46
  30. package/packages/src/views/biz/bizFileInfo/fileShowClaim.vue +1 -1
  31. package/packages/src/views/biz/bizShipment/add.vue +126 -61
  32. package/packages/src/views/biz/contractTracing/addSubCompany.vue +106 -169
  33. package/packages/src/views/biz/contractTracing/billInfo.vue +150 -315
  34. package/packages/src/views/biz/contractTracing/companyBanks.vue +228 -0
  35. package/packages/src/views/biz/contractTracing/contractPdf.vue +5 -3
  36. package/packages/src/views/biz/contractTracing/contractSummary.vue +286 -629
  37. package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
  38. package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +204 -7
  39. package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
  40. package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +153 -7
  41. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +8 -2
  42. package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +203 -176
  43. package/packages/src/views/test.vue +3 -3
  44. package/packages/src/views/biz/contractTracing/association.vue +0 -189
  45. package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
  46. package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
  47. package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
  48. package/packages/src/views/biz/contractTracing/edit.vue +0 -205
  49. package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
  50. package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
@@ -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
- <el-table
5
- v-if="this.companyType == 'delivery'"
6
- v-loading="loading"
7
- :data="deliveryCompanyList"
8
- key="delivery-table"
9
- >
10
- <el-table-column
11
- :label="$t('contract.consignee')"
12
- align="center"
13
- prop="companyEnglishName"
14
- />
15
- <el-table-column :label="$t('contract.taxId')" align="center" prop="taxNumber" />
16
- <el-table-column :label="$t('contract.consigneeAddress')" align="center" prop="address" />
17
- <el-table-column :label="$t('contract.contact')" align="center" prop="contact" />
18
- <el-table-column :label="$t('contract.phoneNumber')" align="center" prop="phoneNumber" />
19
- <el-table-column :label="$t('contract.email')" align="center" prop="email" />
20
- <el-table-column v-if="channel !== 'official-website'" :label="$t('contract.bliRemark')" align="center" prop="bliRemark" />
21
- <el-table-column label="PAN NO." align="center" prop="panNo"></el-table-column>
22
- <el-table-column label="PAN NO." align="center" prop="panNo"></el-table-column>
23
- <el-table-column label="IEC CODE" align="center" prop="iecCode"></el-table-column>
24
- <el-table-column
25
- :label="$t('button.operation')"
26
- align="center"
27
- class-name="small-padding fixed-width"
28
- width="200"
29
- >
30
- <template slot-scope="scope">
31
- <el-button
32
- size="mini"
33
- type="text"
34
- @click="updateSubCompany(scope.row)"
35
- >{{ $t("button.edit") }}</el-button>
36
- <el-button
37
- size="mini"
38
- type="text"
39
- @click="deleteSubCompany(scope.row)"
40
- >{{ $t("button.delete") }}</el-button>
41
- <el-tag
42
- v-if="scope.row.defaultFlag"
43
- type="warning"
44
- effect="dark"
45
- size="small"
46
- >{{ $t("button.default") }}</el-tag>
47
- <el-button
48
- v-else
49
- type="text"
50
- size="small"
51
- @click="setSubCompanyDefault(scope.row)"
52
- >{{ $t("button.setDefault") }}</el-button>
53
- </template>
54
- </el-table-column>
55
- </el-table>
56
- <el-button
57
- class="mt10"
58
- type="primary"
59
- v-if="this.companyType == 'delivery'"
60
- size="mini "
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-table
65
- v-loading="loading"
66
- :data="notifierCompanyList"
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
- <el-tag
98
- v-if="scope.row.defaultFlag"
99
- type="warning"
100
- effect="dark"
101
- size="small"
102
- >{{ $t("button.default") }}</el-tag>
103
- <el-button
104
- v-else
105
- type="text"
106
- size="small"
107
- @click="setSubCompanyDefault(scope.row)"
108
- >{{ $t("button.setDefault") }}</el-button>
109
- </template>
110
- </el-table-column>
111
- </el-table>
112
- <el-button
113
- class="mt10"
114
- v-if="this.companyType == 'notifier'"
115
- type="primary"
116
- size="mini"
117
- @click="addSubCompany('notifier')"
118
- >{{ $t("button.addCompany") }}</el-button>
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
- listBizContractCompany,
128
- delBizContractCompany,
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
- { required: true, message: '公司名称不能为空', trigger: 'blur' },
162
- ],
163
- companyCode: [
164
- { required: true, message: '公司代码不能为空', trigger: 'blur' },
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,112 @@ 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
- this.loading = true;
192
+ let loadingInstance = this.$loading || this.$loading.service
193
+ const loading = loadingInstance({
194
+ lock: true,
195
+ text: 'Loading',
196
+ spinner: 'el-icon-loading',
197
+ background: 'rgba(0, 0, 0, 0.7)'
198
+ })
196
199
  listBizContractCompany({
197
- companyId: this.companyId,
200
+ companyId: this.companyId
198
201
  }).then((response) => {
199
- const subCompanyList = response.rows;
202
+ const subCompanyList = response.rows
200
203
  this.deliveryCompanyList = subCompanyList.filter((i) => {
201
- return i.companyType == 'delivery';
202
- });
204
+ return i.companyType == 'delivery'
205
+ })
203
206
  this.notifierCompanyList = subCompanyList.filter((i) => {
204
- return i.companyType == 'notifier';
205
- });
206
- this.loading = false;
207
- });
207
+ return i.companyType == 'notifier'
208
+ })
209
+ this.open = true
210
+ loading.close()
211
+ })
208
212
  },
209
213
  // 子公司详情
210
214
  detailSubCompany(row) {
211
- this.$refs.subCompanyDetail.handleDetail(row);
215
+ this.$refs.subCompanyDetail.handleDetail(row)
212
216
  },
213
217
  // 新增子公司
214
218
  addSubCompany(type) {
215
- this.$refs.addSubCompany.handleAdd(this.companyId, type);
219
+ this.$refs.addSubCompany.handleAdd(this.companyId, type)
216
220
  },
217
221
  // 修改子公司
218
222
  updateSubCompany(row) {
219
- this.$refs.addSubCompany.handleUpdate(row);
223
+ this.$refs.addSubCompany.handleUpdate(row)
220
224
  },
221
225
  // 删除子公司
222
226
  deleteSubCompany(row) {
223
- const contractCompanyId = row.contractCompanyId;
227
+ const contractCompanyId = row.contractCompanyId
224
228
  this.$modal
225
- .confirm('Do you want to delete the contract company record data item?')
229
+ .confirm('你确定要删除这个公司吗')
226
230
  .then(function () {
227
- return delBizContractCompany(contractCompanyId);
231
+ return delBizContractCompany(contractCompanyId)
228
232
  })
229
233
  .then(() => {
230
- this.getList();
231
- this.$modal.msgSuccess('Successfully deleted');
234
+ this.getList()
235
+ this.$modal.msgSuccess('Successfully deleted')
232
236
  })
233
- .catch(() => {});
237
+ .catch(() => {})
234
238
  },
235
239
  setSubCompanyDefault(row) {
236
- row.defaultFlag = true;
240
+ row.defaultFlag = true
237
241
  updateBizContractCompany(row).then((response) => {
238
- this.getList();
239
- this.$modal.msgSuccess('Set' + row.companyEnglishName + 'as default');
240
- });
242
+ this.getList()
243
+ this.$modal.msgSuccess('Set' + row.companyEnglishName + 'as default')
244
+ })
241
245
  },
242
246
  /** 选择按钮操作 */
243
247
  handleSubCompany(companyId, companyType) {
244
- this.open = true;
245
- this.companyType = companyType;
246
- this.companyId = companyId;
247
- const title =
248
- companyType == 'delivery'
249
- ? this.$t('contract.consigneeCompanyTitle')
250
- : companyType == 'notifier'
251
- ? this.$t('contract.notifierCompanyTitle')
252
- : '';
253
- this.title = title;
254
- this.getList();
255
- },
256
- },
257
- };
248
+ this.companyType = companyType
249
+ this.companyId = companyId
250
+ const title = companyType == 'delivery' ? this.$t('contract.consigneeCompanyTitle') : companyType == 'notifier' ? this.$t('contract.notifierCompanyTitle') : ''
251
+ this.title = title
252
+ if (companyId) {
253
+ this.getList()
254
+ }
255
+ }
256
+ }
257
+ }
258
258
  </script>
259
259
 
260
- <style scoped lang="scss"></style>
260
+ <style scoped lang="scss">
261
+ .text {
262
+ font-size: 14px;
263
+ }
264
+
265
+ .item {
266
+ margin-bottom: 18px;
267
+ }
268
+
269
+ .clearfix:before,
270
+ .clearfix:after {
271
+ display: table;
272
+ content: '';
273
+ }
274
+ .clearfix:after {
275
+ clear: both;
276
+ }
277
+
278
+ .box-card {
279
+ margin-top: 5px;
280
+ }
281
+ </style>
282
+ <style>
283
+ .el-message-box__wrapper {
284
+ z-index: 9999 !important;
285
+ }
286
+
287
+ </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 15038779532@163.com
5
- * @LastEditTime: 2023-07-20 17:34:04
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
 
@@ -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>