doctor-admin-components 1.0.13-pro.1 → 1.0.14-beta.1

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 (46) hide show
  1. package/README.md +10 -2
  2. package/package.json +1 -1
  3. package/packages/index.js +16 -0
  4. package/packages/src/api/biz/bizContract.js +1005 -0
  5. package/packages/src/api/biz/bizFileInfo.js +16 -0
  6. package/packages/src/api/biz/bizInvoice.js +1 -1
  7. package/packages/src/api/biz/bizShipment.js +18 -0
  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/DictTag/index.vue +12 -2
  12. package/packages/src/components/FileUpload/contract-drag-new.vue +100 -11
  13. package/packages/src/i18n/en/message.json +305 -0
  14. package/packages/src/i18n/index.js +38 -0
  15. package/packages/src/i18n/zh-CN/message.json +305 -0
  16. package/packages/src/index.js +24 -1
  17. package/packages/src/utils/index.js +35 -0
  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 +1783 -986
  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 +123 -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 +143 -47
  30. package/packages/src/views/biz/bizFileInfo/fileShowClaim.vue +1 -1
  31. package/packages/src/views/biz/bizShipment/add.vue +124 -23
  32. package/packages/src/views/biz/bizShipment/referenceAlert.vue +168 -0
  33. package/packages/src/views/biz/contractTracing/billInfo.vue +64 -40
  34. package/packages/src/views/biz/contractTracing/companyBanks.vue +228 -0
  35. package/packages/src/views/biz/contractTracing/contractInfo.vue +1 -1
  36. package/packages/src/views/biz/contractTracing/contractPdf.vue +7 -4
  37. package/packages/src/views/biz/contractTracing/contractSummary.vue +24 -18
  38. package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
  39. package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +281 -31
  40. package/packages/src/views/biz/contractTracing/editBill.vue +22 -9
  41. package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +153 -7
  42. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +14 -0
  43. package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +8 -2
  44. package/packages/src/views/components/RegionPicker/Distpicker.vue +459 -0
  45. package/packages/src/views/components/RegionPicker/districts.js +4641 -0
  46. package/packages/src/views/test.vue +3 -3
@@ -65,7 +65,23 @@
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="应付金额($)"
69
85
  :prop="'proFormInvoiceList.' + index + '.amount'"
70
86
  :rules="[
71
87
  { required: true, message: '不能为空' },
@@ -95,6 +111,7 @@
95
111
  <upload-invoice v-model="dt.invoiceFileList" :limit="20" />
96
112
  </el-form-item>
97
113
  </el-row>
114
+ <company-banks ref="companyBanks" :companyId="companyId" @selectBank="(data) => selectBank(index, 'ProForma', data)"></company-banks>
98
115
  </el-row>
99
116
  </el-card>
100
117
  <el-row />
@@ -168,7 +185,23 @@
168
185
  </el-form-item>
169
186
  <el-row>
170
187
  <el-form-item
171
- label="金额($)"
188
+ label="发票金额($)"
189
+ :prop="'fixedInvoiceList.' + index + '.invoiceAmount'"
190
+ :rules="[
191
+ { required: true, message: '不能为空' },
192
+ { type: 'number', message: '必须为数字值' },
193
+ ]"
194
+ >
195
+ <el-input
196
+ v-model.number="item.invoiceAmount"
197
+ clearable
198
+ size="small"
199
+ placeholder="请填写票面金额"
200
+ type="number"
201
+ />
202
+ </el-form-item>
203
+ <el-form-item
204
+ label="应付金额($)"
172
205
  :prop="'fixedInvoiceList.' + index + '.amount'"
173
206
  :rules="[
174
207
  { required: true, message: '不能为空' },
@@ -183,6 +216,13 @@
183
216
  type="number"
184
217
  />
185
218
  </el-form-item>
219
+ <div class="balance-money" v-if="purchaseBalanceMoney && purchaseBalanceMoney != item.amount">
220
+ <span class="balance-money-text">提示:系统计算的尾款为${{ purchaseBalanceMoney }}</span>
221
+ <span @click.stop="dialogVisibleConfirm" class="balance-money-click">
222
+ <img class="balance-money-icon" src="../../../assets/images/click-show-table.png" alt="">
223
+ <span style="color:#3e82f4">点击这里去校准</span>
224
+ </span>
225
+ </div>
186
226
  <el-form-item label="备注">
187
227
  <el-input
188
228
  v-model="item.remark"
@@ -200,12 +240,13 @@
200
240
  </el-form-item>
201
241
  </el-row>
202
242
  <el-divider></el-divider>
243
+ <company-banks ref="companyBanks" :companyId="companyId" @selectBank="(data) => selectBank(index, 'Fixed', data)"></company-banks>
203
244
  </el-row>
204
245
  </el-card>
205
246
  </el-form>
206
247
  <div slot="footer" class="dialog-footer">
207
248
  <el-button @click="cancel">取 消</el-button>
208
- <el-button @click="submitForm">仅上传</el-button>
249
+ <el-button type="primary" @click="submitForm">确认上传</el-button>
209
250
  <el-button
210
251
  v-if="type == 'deposit'"
211
252
  type="primary"
@@ -213,6 +254,19 @@
213
254
  >上传并生成收付款</el-button
214
255
  >
215
256
  </div>
257
+ <el-dialog
258
+ title="系统计算金额和发票金额不一致"
259
+ :visible.sync="dialogVisible"
260
+ :modal="false"
261
+ width="30%"
262
+ :close-on-click-modal="false"
263
+ :before-close="handleClose">
264
+ <span>系统检测到您填写的发票金额和系统计算的金额不一致,有可能存在发票金额填写错误或者系统计算的定金扣减不符合业务情况。若系统计算有误,请先校准修正系统数据,以免影响财务对账。</span>
265
+ <span slot="footer" class="dialog-footer">
266
+ <el-button @click="dialogVisibleCancel">忽略并确认上传</el-button>
267
+ <el-button type="primary" @click="dialogVisibleConfirm">去校准</el-button>
268
+ </span>
269
+ </el-dialog>
216
270
  </el-dialog>
217
271
  </div>
218
272
  </template>
@@ -232,10 +286,28 @@ import {
232
286
  getInvoiceListByShipmentId,
233
287
  } from "../../../api/biz/bizInvoice";
234
288
  import { getByContractId } from "../../../api/biz/bizShipment";
289
+ import CompanyBanks from './companyBanks.vue';
235
290
 
236
291
  export default {
237
292
  name: "PurchaseInvoiceUpload",
238
- components: { UploadInvoice },
293
+ components: {
294
+ UploadInvoice,
295
+ CompanyBanks
296
+ },
297
+ props: {
298
+ // 合同公司id(目前是合同id)
299
+ companyId: {
300
+ type: String | Number,
301
+ default: null,
302
+ },
303
+ purchaseBalanceMoneyProp: {
304
+ type: Number | String,
305
+ default: '',
306
+ },
307
+ getShipmentPurchaseFun:{
308
+ type: Function
309
+ }
310
+ },
239
311
  data() {
240
312
  return {
241
313
  test: null,
@@ -246,17 +318,50 @@ export default {
246
318
  // 是否显示弹出层
247
319
  open: false,
248
320
  // 表单参数
249
- form: { proFormInvoiceList: [], fixedInvoiceList: [] },
321
+ form: {
322
+ proFormInvoiceList: [],
323
+ fixedInvoiceList: [],
324
+ },
250
325
  //销售合同选项表
251
326
  saleContractList: [],
252
327
  //采购合同选项表
253
328
  purchaseContractList: [],
254
329
  type: null,
255
330
  shipmentId: null,
331
+ dialogVisible: false,
332
+ purchaseBalanceMoney: '',
256
333
  };
257
334
  },
258
- created() {},
335
+ created() {
336
+ console.log('companyId:', this.companyId)
337
+ },
259
338
  methods: {
339
+ dialogVisibleCancel() {
340
+ this.submitForm(false);
341
+ this.dialogVisible = false;
342
+ },
343
+ dialogVisibleConfirm() {
344
+ this.getShipmentPurchaseFun && this.getShipmentPurchaseFun(this.form)
345
+ this.dialogVisible = false;
346
+ },
347
+ /**
348
+ * @description: 确认弹窗
349
+ * @param {*} done
350
+ * @return {*}
351
+ */
352
+ handleClose() {
353
+ this.dialogVisible = false;
354
+ },
355
+ // 选择收款账户
356
+ selectBank(index, fixed, data) {
357
+ console.log('proFormInvoiceList', this.form.proFormInvoiceList);
358
+ console.log('fixedInvoiceList', this.form.fixedInvoiceList);
359
+ if (fixed == 'ProForma') {
360
+ this.form.proFormInvoiceList[index].accountId = data?.accountId
361
+ } else {
362
+ this.form.fixedInvoiceList[index].accountId = data?.accountId
363
+ }
364
+ },
260
365
  //上传并生成
261
366
  uploadAndGenerate() {
262
367
  this.$refs["form"].validate((valid) => {
@@ -276,10 +381,16 @@ export default {
276
381
  });
277
382
  },
278
383
  /** 提交按钮 */
279
- submitForm() {
384
+ submitForm(comfirmClickFlag) {
280
385
  this.$refs["form"].validate((valid) => {
281
386
  if (valid) {
387
+ console.log('type', this.type);
282
388
  if (this.type == "finally") {
389
+ if(comfirmClickFlag) {
390
+ if(this.form.fixedInvoiceList[0].amount && this.purchaseBalanceMoney && this.form.fixedInvoiceList[0].amount != this.purchaseBalanceMoney) {
391
+ return this.dialogVisible = true;
392
+ }
393
+ }
283
394
  uploadFinallyInvoice(this.form).then((response) => {
284
395
  this.$modal.msgSuccess("保存成功");
285
396
  this.$emit("refresh");
@@ -310,9 +421,11 @@ export default {
310
421
  },
311
422
  /** 展示按钮操作 */
312
423
  handleUpload(row, type, shipmentId) {
424
+ console.log('row:', row)
313
425
  this.reset();
314
426
  this.type = type;
315
427
  this.shipmentId = shipmentId;
428
+ this.companyId = row.contractId
316
429
  if (type == "finally") {
317
430
  getInvoiceListByShipmentId(shipmentId)
318
431
  .then((response) => {
@@ -379,5 +492,38 @@ export default {
379
492
  }
380
493
  },
381
494
  },
495
+ watch: {
496
+ purchaseBalanceMoneyProp: {
497
+ handler(val){
498
+ this.purchaseBalanceMoney = val;
499
+ },
500
+ immediate: true,
501
+ deep: true
502
+ },
503
+ }
382
504
  };
383
505
  </script>
506
+ <style lang="scss" scoped>
507
+ .balance-money {
508
+ display:flex;
509
+ justify-content: space-around;
510
+ align-items: center;
511
+ margin-bottom: 20px;
512
+ .balance-money-text {
513
+ font-size: 12px;
514
+ color: #f00;
515
+ }
516
+ .balance-money-click {
517
+ cursor: pointer;
518
+ .balance-money-icon {
519
+ width: 20px;
520
+ height: 20px;
521
+ cursor: pointer;
522
+ vertical-align: sub;
523
+ margin-right:5px;
524
+ }
525
+ }
526
+ }
527
+
528
+
529
+ </style>
@@ -1,3 +1,11 @@
1
+ <!--
2
+ * @Author: zhangpengwei 15038779532@163.com
3
+ * @Date: 2023-07-31 17:40:56
4
+ * @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
5
+ * @LastEditTime: 2024-04-02 17:58:33
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
+ -->
1
9
  <template>
2
10
  <div class="app-container">
3
11
  <!-- 合同争议详情对话框 -->
@@ -124,6 +132,11 @@ export default {
124
132
  contract: null
125
133
  }
126
134
  },
135
+ props: {
136
+ getContractFileInfoCallback: {
137
+ type: Function
138
+ }
139
+ },
127
140
  created() {},
128
141
  mounted() {},
129
142
  methods: {
@@ -147,6 +160,7 @@ export default {
147
160
  type: 'success',
148
161
  message: '修改成功'
149
162
  })
163
+ this.getContractFileInfoCallback && this.getContractFileInfoCallback()
150
164
  })
151
165
  })
152
166
  .catch(() => {
@@ -131,7 +131,7 @@
131
131
  </template>
132
132
 
133
133
  <script>
134
- import { Form } from 'element-ui'
134
+ import { Form, Loading } from 'element-ui'
135
135
  import { listBizContractCompany, delBizContractCompany, updateBizContractCompany } from '../../../api/biz/bizContractCompany'
136
136
  import AddSubCompany from './addSubCompany'
137
137
 
@@ -189,7 +189,7 @@ export default {
189
189
  },
190
190
  /** 查询合同公司记录列表 */
191
191
  getList() {
192
- const loading = this.$loading({
192
+ const loading = Loading.service({
193
193
  lock: true,
194
194
  text: 'Loading',
195
195
  spinner: 'el-icon-loading',
@@ -278,3 +278,9 @@ export default {
278
278
  margin-top: 5px;
279
279
  }
280
280
  </style>
281
+ <style>
282
+ .el-message-box__wrapper {
283
+ z-index: 9999 !important;
284
+ }
285
+
286
+ </style>