doctor-admin-components 1.0.13-beta.6 → 1.0.13-beta.61

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 (49) 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 +296 -0
  13. package/packages/src/i18n/index.js +38 -0
  14. package/packages/src/i18n/zh-CN/message.json +296 -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 +1678 -1003
  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 +280 -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 +119 -69
  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/contractSummary.vue +286 -629
  36. package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
  37. package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +200 -7
  38. package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
  39. package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +157 -7
  40. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +8 -2
  41. package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +196 -176
  42. package/packages/src/views/test.vue +3 -3
  43. package/packages/src/views/biz/contractTracing/association.vue +0 -189
  44. package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
  45. package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
  46. package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
  47. package/packages/src/views/biz/contractTracing/edit.vue +0 -205
  48. package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
  49. package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
@@ -65,7 +65,24 @@
65
65
  </el-date-picker>
66
66
  </el-form-item>
67
67
  <el-form-item
68
- label="金额($)"
68
+ label="发票金额($)"
69
+ :prop="'proFormInvoiceList.' + index + '.invoiceAmount'"
70
+ :rules="[
71
+ { required: true, message: '不能为空' },
72
+ { type: 'number', message: '必须为数字值' },
73
+ ]"
74
+ >
75
+ <el-input
76
+ v-model.number="dt.invoiceAmount"
77
+ clearable
78
+ size="small"
79
+ placeholder="请输入票面金额"
80
+ type="number"
81
+ />
82
+ </el-form-item>
83
+ <el-form-item
84
+ label="应付金额($)"
85
+ label-width="140px"
69
86
  :prop="'proFormInvoiceList.' + index + '.amount'"
70
87
  :rules="[
71
88
  { required: true, message: '不能为空' },
@@ -95,6 +112,7 @@
95
112
  <upload-invoice v-model="dt.invoiceFileList" :limit="20" />
96
113
  </el-form-item>
97
114
  </el-row>
115
+ <company-banks ref="companyBanks" :companyId="companyId" @selectBank="(data) => selectBank(index, 'ProForma', data)"></company-banks>
98
116
  </el-row>
99
117
  </el-card>
100
118
  <el-row />
@@ -168,7 +186,24 @@
168
186
  </el-form-item>
169
187
  <el-row>
170
188
  <el-form-item
171
- label="金额($)"
189
+ label="发票金额($)"
190
+ :prop="'fixedInvoiceList.' + index + '.invoiceAmount'"
191
+ :rules="[
192
+ { required: true, message: '不能为空' },
193
+ { type: 'number', message: '必须为数字值' },
194
+ ]"
195
+ >
196
+ <el-input
197
+ v-model.number="item.invoiceAmount"
198
+ clearable
199
+ size="small"
200
+ placeholder="请填写票面金额"
201
+ type="number"
202
+ />
203
+ </el-form-item>
204
+ <el-form-item
205
+ label="应付金额($)"
206
+ label-width="140px"
172
207
  :prop="'fixedInvoiceList.' + index + '.amount'"
173
208
  :rules="[
174
209
  { required: true, message: '不能为空' },
@@ -183,6 +218,13 @@
183
218
  type="number"
184
219
  />
185
220
  </el-form-item>
221
+ <div class="balance-money" v-if="purchaseBalanceMoney && purchaseBalanceMoney != item.amount">
222
+ <span class="balance-money-text">提示:系统计算的尾款为${{ purchaseBalanceMoney }}</span>
223
+ <span @click.stop="dialogVisibleConfirm" class="balance-money-click">
224
+ <img class="balance-money-icon" src="../../../assets/images/click-show-table.png" alt="">
225
+ <span style="color:#3e82f4">点击这里去校准</span>
226
+ </span>
227
+ </div>
186
228
  <el-form-item label="备注">
187
229
  <el-input
188
230
  v-model="item.remark"
@@ -200,12 +242,13 @@
200
242
  </el-form-item>
201
243
  </el-row>
202
244
  <el-divider></el-divider>
245
+ <company-banks ref="companyBanks" :companyId="companyId" @selectBank="(data) => selectBank(index, 'Fixed', data)"></company-banks>
203
246
  </el-row>
204
247
  </el-card>
205
248
  </el-form>
206
249
  <div slot="footer" class="dialog-footer">
207
250
  <el-button @click="cancel">取 消</el-button>
208
- <el-button @click="submitForm">仅上传</el-button>
251
+ <el-button type="primary" @click="submitForm">确认上传</el-button>
209
252
  <el-button
210
253
  v-if="type == 'deposit'"
211
254
  type="primary"
@@ -213,6 +256,19 @@
213
256
  >上传并生成收付款</el-button
214
257
  >
215
258
  </div>
259
+ <el-dialog
260
+ title="系统计算金额和发票金额不一致"
261
+ :visible.sync="dialogVisible"
262
+ :modal="false"
263
+ width="30%"
264
+ :close-on-click-modal="false"
265
+ :before-close="handleClose">
266
+ <span>系统检测到您填写的发票金额和系统计算的金额不一致,有可能存在发票金额填写错误或者系统计算的定金扣减不符合业务情况。若系统计算有误,请先校准修正系统数据,以免影响财务对账。</span>
267
+ <span slot="footer" class="dialog-footer">
268
+ <el-button @click="dialogVisibleCancel">忽略并确认上传</el-button>
269
+ <el-button type="primary" @click="dialogVisibleConfirm">去校准</el-button>
270
+ </span>
271
+ </el-dialog>
216
272
  </el-dialog>
217
273
  </div>
218
274
  </template>
@@ -232,10 +288,28 @@ import {
232
288
  getInvoiceListByShipmentId,
233
289
  } from "../../../api/biz/bizInvoice";
234
290
  import { getByContractId } from "../../../api/biz/bizShipment";
291
+ import CompanyBanks from './companyBanks.vue';
235
292
 
236
293
  export default {
237
294
  name: "PurchaseInvoiceUpload",
238
- components: { UploadInvoice },
295
+ components: {
296
+ UploadInvoice,
297
+ CompanyBanks
298
+ },
299
+ props: {
300
+ // 合同公司id(目前是合同id)
301
+ companyId: {
302
+ type: String | Number,
303
+ default: null,
304
+ },
305
+ purchaseBalanceMoneyProp: {
306
+ type: Number | String,
307
+ default: '',
308
+ },
309
+ getShipmentPurchaseFun:{
310
+ type: Function
311
+ }
312
+ },
239
313
  data() {
240
314
  return {
241
315
  test: null,
@@ -246,17 +320,50 @@ export default {
246
320
  // 是否显示弹出层
247
321
  open: false,
248
322
  // 表单参数
249
- form: { proFormInvoiceList: [], fixedInvoiceList: [] },
323
+ form: {
324
+ proFormInvoiceList: [],
325
+ fixedInvoiceList: [],
326
+ },
250
327
  //销售合同选项表
251
328
  saleContractList: [],
252
329
  //采购合同选项表
253
330
  purchaseContractList: [],
254
331
  type: null,
255
332
  shipmentId: null,
333
+ dialogVisible: false,
334
+ purchaseBalanceMoney: '',
256
335
  };
257
336
  },
258
- created() {},
337
+ created() {
338
+ console.log('companyId:', this.companyId)
339
+ },
259
340
  methods: {
341
+ dialogVisibleCancel() {
342
+ this.submitForm(false);
343
+ this.dialogVisible = false;
344
+ },
345
+ dialogVisibleConfirm() {
346
+ this.getShipmentPurchaseFun && this.getShipmentPurchaseFun(this.form)
347
+ this.dialogVisible = false;
348
+ },
349
+ /**
350
+ * @description: 确认弹窗
351
+ * @param {*} done
352
+ * @return {*}
353
+ */
354
+ handleClose() {
355
+ this.dialogVisible = false;
356
+ },
357
+ // 选择收款账户
358
+ selectBank(index, fixed, data) {
359
+ console.log('proFormInvoiceList', this.form.proFormInvoiceList);
360
+ console.log('fixedInvoiceList', this.form.fixedInvoiceList);
361
+ if (fixed == 'ProForma') {
362
+ this.form.proFormInvoiceList[index].accountId = data?.accountId
363
+ } else {
364
+ this.form.fixedInvoiceList[index].accountId = data?.accountId
365
+ }
366
+ },
260
367
  //上传并生成
261
368
  uploadAndGenerate() {
262
369
  this.$refs["form"].validate((valid) => {
@@ -276,10 +383,16 @@ export default {
276
383
  });
277
384
  },
278
385
  /** 提交按钮 */
279
- submitForm() {
386
+ submitForm(comfirmClickFlag) {
280
387
  this.$refs["form"].validate((valid) => {
281
388
  if (valid) {
389
+ console.log('type', this.type);
282
390
  if (this.type == "finally") {
391
+ if(comfirmClickFlag) {
392
+ if(this.form.fixedInvoiceList[0].amount && this.purchaseBalanceMoney && this.form.fixedInvoiceList[0].amount != this.purchaseBalanceMoney) {
393
+ return this.dialogVisible = true;
394
+ }
395
+ }
283
396
  uploadFinallyInvoice(this.form).then((response) => {
284
397
  this.$modal.msgSuccess("保存成功");
285
398
  this.$emit("refresh");
@@ -310,9 +423,13 @@ export default {
310
423
  },
311
424
  /** 展示按钮操作 */
312
425
  handleUpload(row, type, shipmentId) {
426
+ console.log('row:', row)
313
427
  this.reset();
314
428
  this.type = type;
315
429
  this.shipmentId = shipmentId;
430
+ if (!this.companyId) {
431
+ this.companyId = row.contractId
432
+ }
316
433
  if (type == "finally") {
317
434
  getInvoiceListByShipmentId(shipmentId)
318
435
  .then((response) => {
@@ -379,5 +496,38 @@ export default {
379
496
  }
380
497
  },
381
498
  },
499
+ watch: {
500
+ purchaseBalanceMoneyProp: {
501
+ handler(val){
502
+ this.purchaseBalanceMoney = val;
503
+ },
504
+ immediate: true,
505
+ deep: true
506
+ },
507
+ }
382
508
  };
383
509
  </script>
510
+ <style lang="scss" scoped>
511
+ .balance-money {
512
+ display:flex;
513
+ justify-content: space-around;
514
+ align-items: center;
515
+ margin-bottom: 20px;
516
+ .balance-money-text {
517
+ font-size: 12px;
518
+ color: #f00;
519
+ }
520
+ .balance-money-click {
521
+ cursor: pointer;
522
+ .balance-money-icon {
523
+ width: 20px;
524
+ height: 20px;
525
+ cursor: pointer;
526
+ vertical-align: sub;
527
+ margin-right:5px;
528
+ }
529
+ }
530
+ }
531
+
532
+
533
+ </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 15038779532@163.com
5
- * @LastEditTime: 2023-07-31 18:01:49
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(() => {