doctor-admin-components 1.0.14-beta.82 → 1.0.14-beta.85

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "doctor-admin-components",
3
3
  "version1": "1.0.11",
4
- "version": "1.0.14-beta.82",
4
+ "version": "1.0.14-beta.85",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -295,7 +295,8 @@
295
295
  "voucherOrReceipt": "Voucher/Receipt",
296
296
  "weight": "weight(MT)",
297
297
  "yes": "Yes",
298
- "cndn": "Debit note & Credit note"
298
+ "cndn": "Debit note & Credit note",
299
+ "addShipment": "Add Shipment"
299
300
  },
300
301
  "distpicker":{
301
302
  "province": "Province",
@@ -295,7 +295,8 @@
295
295
  "voucherOrReceipt": "凭证/条款",
296
296
  "weight": "重量(MT)",
297
297
  "yes": "Yes",
298
- "cndn": "Debit note & Credit note"
298
+ "cndn": "Debit note & Credit note",
299
+ "addShipment": "添加装运"
299
300
  },
300
301
  "distpicker":{
301
302
  "province": "省",
@@ -371,7 +371,16 @@
371
371
  <SectionSlot @updateOpen="handleShippingUpdateOpen" :infoPro="shipProgressInfo" v-if="contractFileInfo && !contractFileInfo.shipmentFileInfoList">
372
372
  <template v-slot:header>
373
373
  <div style="position:relative">
374
- <ProgressDetail :infoPro="shipProgressInfo"></ProgressDetail>
374
+ <ProgressDetail :infoPro="shipProgressInfo">
375
+ <template slot="action" v-if="contract.contractType == 'purchase'">
376
+ <div style="position: absolute; margin-left: 15px;bottom: 5px;">
377
+ <el-select v-model="selectSaleContractId" placeholder="请选择" size="mini">
378
+ <el-option v-for="item in contract.associationContractList" :key="item.contractId" :label="item.contractNo" :value="item.contractId"></el-option>
379
+ </el-select>
380
+ <el-button class="ml5" type="success" size="mini" icon="el-icon-plus" @click.stop="handleAddShipment" circle></el-button>
381
+ </div>
382
+ </template>
383
+ </ProgressDetail>
375
384
  </div>
376
385
  </template>
377
386
  <template v-slot:content>
@@ -722,10 +731,10 @@
722
731
  </el-col>
723
732
  </el-col>
724
733
  <!-- 临时尾款发票 -->
725
- <el-col :span="24" v-if="contract.quoteType != 'FIXED'">
734
+ <el-col :span="24">
726
735
  <div class="hr-class"></div>
727
736
  </el-col>
728
- <el-col :span="24" v-if="contract.quoteType != 'FIXED'">
737
+ <el-col :span="24">
729
738
  <div class="content-root-row" style="display: flex;">
730
739
  <ContentTitle :contentTitleProp="{
731
740
  bgButton: $t('contractDetail.saleTemporaryFinallyInvoice'),
@@ -1521,7 +1530,9 @@ export default {
1521
1530
  //参考采购价
1522
1531
  shipmentPurchaseAmountMessage: '',
1523
1532
  loadingInstance: null,
1524
- purchaseBalanceMoney: null
1533
+ purchaseBalanceMoney: null,
1534
+ // 新增:选择关联合同
1535
+ selectSaleContractId: null,
1525
1536
  };
1526
1537
  },
1527
1538
  created() {
@@ -1547,6 +1558,30 @@ export default {
1547
1558
  },
1548
1559
  mounted() { },
1549
1560
  methods: {
1561
+ handleAddShipment() {
1562
+ if (!this.selectSaleContractId) {
1563
+ return this.$message.warning('请选择关联的销售合同')
1564
+ }
1565
+ // 弹框二次确认
1566
+ this.$confirm('是否添加空白装运', '提示', {
1567
+ confirmButtonText: '确定',
1568
+ cancelButtonText: '取消',
1569
+ type: 'warning'
1570
+ })
1571
+ .then(() => {
1572
+ // 添加装运接口
1573
+ addBizShipment({
1574
+ purchaseContractId: this.contract.contractId,
1575
+ saleContractId: this.selectSaleContractId,
1576
+ }).then(() => {
1577
+ this.$message.success('添加成功')
1578
+ this.handleRefresh()
1579
+ })
1580
+ })
1581
+ .catch((e) => {
1582
+ console.log(e)
1583
+ })
1584
+ },
1550
1585
  // 装运模块状态变化,需要同步关联模块
1551
1586
  handleShippingUpdateOpen(isOpen) {
1552
1587
  this.$refs.SectionReceiving && this.$refs.SectionReceiving[0]?.setOpen(isOpen)
@@ -2389,13 +2424,13 @@ export default {
2389
2424
  },
2390
2425
  },
2391
2426
  watch: {
2392
- // selectFileListProp: {
2393
- // handler(val) {
2394
- // this.selectFileList = val
2395
- // },
2396
- // immediate: true,
2397
- // deep: true
2398
- // },
2427
+ contract: {
2428
+ handler(val) {
2429
+ this.selectSaleContractId = val.associationContractList[0].contractId
2430
+ },
2431
+ immediate: true,
2432
+ deep: true
2433
+ },
2399
2434
  },
2400
2435
  destroyed() {
2401
2436
  clearTimeout(this.timer);
@@ -14,6 +14,7 @@
14
14
  <img class="progress-img" :src="info.img" alt="">
15
15
  <div class="progress-text">{{ info.text}}</div>
16
16
  </div>
17
+ <slot name="action"></slot>
17
18
  </el-col>
18
19
  <el-col :span="info.hidden ? 11 : 16">
19
20
  <div class="progress-info"
@@ -2,6 +2,10 @@
2
2
  <div class="app-container">
3
3
  <!-- 添加或修改装运对话框 -->
4
4
  <el-dialog :visible.sync="open" z-index="1000" width="80%" :before-close="handleClose" :title="title">
5
+ <template slot="title">
6
+ <strong style="font-size: 18px;">{{ form.shipmentId ? '修改装运' : title }}</strong>
7
+ <span style="color: red">(注意“目的港”、“起运港”两个字段,如果为空,可参考后面括号内的值进行选择)</span>
8
+ </template>
5
9
  <slot name="billOfLadingUpload"></slot>
6
10
  <slot name="">
7
11
  <span v-if="isDraft" style="color: red">提示: 当前打开了【{{ form.lastUpdateUserName }}】在【{{ form.updateTime }}】保存的装运草稿</span>
@@ -24,7 +28,6 @@
24
28
  <el-form-item label="提单号" prop="billOfLadingNo">
25
29
  <el-input v-model="form.billOfLadingNo" placeholder="请输入提单号" size="small" />
26
30
  </el-form-item>
27
-
28
31
  <el-form-item label="目的港" prop="destinationPort">
29
32
  <!-- <el-select v-model="form.destinationPort" style="width: 100%" placeholder="请选择目的港" clearable filterable size="small">
30
33
  <el-option v-for="(item, i) in destinationPortList" :key="i" :value="item.dictValue" :label="item.dictValue" />
@@ -40,9 +43,11 @@
40
43
  }"
41
44
  placeholder="请选择目的港"
42
45
  :show-all-levels="false"
46
+ :filter-method="filterPortMethod"
43
47
  clearable
44
48
  filterable
45
49
  ></el-cascader>
50
+ <span>({{ form.destinationPort }})</span>
46
51
  </el-form-item>
47
52
 
48
53
  <el-form-item label="起运港" prop="originPort">
@@ -60,9 +65,11 @@
60
65
  }"
61
66
  placeholder="请选择起运港"
62
67
  :show-all-levels="false"
68
+ :filter-method="filterPortMethod"
63
69
  clearable
64
70
  filterable
65
71
  ></el-cascader>
72
+ <span>({{ form.originPort }})</span>
66
73
  </el-form-item>
67
74
 
68
75
  <el-form-item label="海运距离(KM)" prop="portDistance">
@@ -152,7 +159,8 @@
152
159
  </div>
153
160
  </el-row>
154
161
  <el-divider></el-divider>
155
- <el-row v-for="(dt, index) in form.containerList" :key="'dt' + index">
162
+ <el-button v-if="!form.containerList || form.containerList.length==0" icon="el-icon-plus" size="mini" type="warning" circle @click="addContainerRow"></el-button>
163
+ <el-row v-else v-for="(dt, index) in form.containerList" :key="'dt' + index">
156
164
  <el-row>
157
165
  <el-col :span="2">
158
166
  <div style="font-weight: bolder; margin-top: 10px">
@@ -654,6 +662,10 @@ export default {
654
662
  }
655
663
  },
656
664
  methods: {
665
+ filterPortMethod(node, keyword) {
666
+ // console.log('node:', node, "keyword:", keyword)
667
+ return node.data.dictValue.toLowerCase().indexOf(keyword.toLowerCase()) !== -1 || node.data.dictLabel.indexOf(keyword) !== -1
668
+ },
657
669
  getPortDatas() {
658
670
  if (this.destinationPortList.length == 0) {
659
671
  getPortTree({
@@ -1056,7 +1068,9 @@ export default {
1056
1068
  },
1057
1069
  /** 修改按钮操作 */
1058
1070
  handleUpdate(row) {
1071
+ console.log("shipment handleUpdate:", row)
1059
1072
  this.reset()
1073
+ this.getPortDatas()
1060
1074
  const shipmentId = row.shipmentId
1061
1075
  this.$emit('openFullscreenLoading')
1062
1076
  getBizShipment(shipmentId).then((response) => {
@@ -1066,7 +1080,6 @@ export default {
1066
1080
  this.contractDetailList = contract.contractDetailList.map((v) => {
1067
1081
  return { ...v, selected: false }
1068
1082
  })
1069
-
1070
1083
  var purchaseContractNos = contract?.purchaseContractNos
1071
1084
  if (typeof purchaseContractNos == 'string') {
1072
1085
  purchaseContractNos = purchaseContractNos?.split(',')