doctor-admin-components 1.0.12-beta.21 → 1.0.12-beta.23

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.12-beta.21",
4
+ "version": "1.0.12-beta.23",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -9,6 +9,19 @@ export function listBizDealRecord(query) {
9
9
  });
10
10
  }
11
11
 
12
+ /**
13
+ * @description: 订单追踪
14
+ * @param {*} query
15
+ * @return {*}
16
+ */
17
+ export function orderTracing(query) {
18
+ return request({
19
+ url: "/app-v3/order/tracing",
20
+ method: "get",
21
+ params: query
22
+ });
23
+ }
24
+
12
25
  // 查询成交记录列表
13
26
  export function listDealWithContract(query) {
14
27
  return request({
@@ -6,6 +6,7 @@ import errorCode from "./errorCode";
6
6
  import { tansParams, blobValidate } from "./ruoyi";
7
7
  import cache from "../plugins/cache";
8
8
  import { saveAs } from "file-saver";
9
+ import Cookies from "js-cookie";
9
10
 
10
11
  let downloadLoadingInstance;
11
12
  // 是否显示重新登录
@@ -78,6 +79,13 @@ service.interceptors.request.use(
78
79
  }
79
80
  }
80
81
  }
82
+ console.log(config.url);
83
+
84
+ if (config.url.includes('/order/tracing?askId')) {
85
+ config.baseURL = ''
86
+ const token = Cookies.get('token')
87
+ config.headers.token = token
88
+ }
81
89
  return config;
82
90
  },
83
91
  (error) => {
@@ -261,7 +261,7 @@
261
261
  v-if="
262
262
  channel !== 'official-website' && contract.contractType == 'sale'
263
263
  "
264
- >生成船运</el-button
264
+ >生成装运</el-button
265
265
  >
266
266
  <el-tabs v-model="activeName">
267
267
  <el-tab-pane
@@ -355,7 +355,10 @@
355
355
  {{ "包裹" + (scope.$index + 1) }}
356
356
  </template>
357
357
  </el-table-column>
358
- <el-table-column label="毛重(t)" align="center">
358
+ <el-table-column align="center">
359
+ <template slot="header">
360
+ <span style="color: red">*</span> 毛重(t)
361
+ </template>
359
362
  <template slot-scope="scope2">
360
363
  <el-form-item
361
364
  label=""
@@ -386,7 +389,10 @@
386
389
  </el-form-item>
387
390
  </template>
388
391
  </el-table-column>
389
- <el-table-column label="皮重(t)" align="center">
392
+ <el-table-column align="center">
393
+ <template slot="header">
394
+ <span style="color: red">*</span> 皮重(t)
395
+ </template>
390
396
  <template slot-scope="scope2">
391
397
  <el-form-item
392
398
  label=""
@@ -417,7 +423,10 @@
417
423
  </el-form-item>
418
424
  </template>
419
425
  </el-table-column>
420
- <el-table-column label="净重(t)" align="center">
426
+ <el-table-column align="center">
427
+ <template slot="header">
428
+ <span style="color: red">*</span> 净重(t)
429
+ </template>
421
430
  <template slot-scope="scope2">
422
431
  <el-form-item
423
432
  label=""
@@ -491,7 +500,10 @@
491
500
  </el-table>
492
501
  </template>
493
502
  </el-table-column>
494
- <el-table-column label="货物" align="center">
503
+ <el-table-column align="center">
504
+ <template slot="header">
505
+ <span style="color: red">*</span> 货物
506
+ </template>
495
507
  <template slot-scope="scope">
496
508
  <el-form-item
497
509
  label=""
@@ -522,7 +534,10 @@
522
534
  </el-form-item>
523
535
  </template>
524
536
  </el-table-column>
525
- <el-table-column label="货物毛重(t)" align="center">
537
+ <el-table-column align="center">
538
+ <template slot="header">
539
+ <span style="color: red">*</span> 货物毛重(t)
540
+ </template>
526
541
  <template slot-scope="scope">
527
542
  <el-form-item
528
543
  label=""
@@ -551,7 +566,10 @@
551
566
  </el-form-item>
552
567
  </template>
553
568
  </el-table-column>
554
- <el-table-column label="货物皮重(t)" align="center">
569
+ <el-table-column align="center">
570
+ <template slot="header">
571
+ <span style="color: red">*</span> 货物皮重(t)
572
+ </template>
555
573
  <template slot-scope="scope">
556
574
  <el-form-item
557
575
  label=""
@@ -580,7 +598,10 @@
580
598
  </el-form-item>
581
599
  </template>
582
600
  </el-table-column>
583
- <el-table-column label="货物净重(t)" align="center">
601
+ <el-table-column align="center">
602
+ <template slot="header">
603
+ <span style="color: red">*</span> 货物净重(t)
604
+ </template>
584
605
  <template slot-scope="scope">
585
606
  <el-form-item
586
607
  label=""
@@ -609,7 +630,10 @@
609
630
  </el-form-item>
610
631
  </template>
611
632
  </el-table-column>
612
- <el-table-column label="货物包裹件数" align="center">
633
+ <el-table-column align="center">
634
+ <template slot="header">
635
+ <span style="color: red">*</span> 货物包裹件数
636
+ </template>
613
637
  <template slot-scope="scope">
614
638
  <el-form-item
615
639
  label=""
@@ -657,12 +681,12 @@
657
681
  type="primary"
658
682
  @click="submitShipment"
659
683
  style="margin-right: 10px"
660
- >{{ title == "添加装运" ? "仅生成装运" : "保存" }}</el-button
684
+ >{{ title == "生成装运" ? "仅生成装运" : "保存" }}</el-button
661
685
  >
662
686
  <el-dropdown
663
687
  @command="(command) => handleTemplate(command)"
664
688
  trigger="click"
665
- v-if="title == '添加装运'"
689
+ v-if="title == '生成装运'"
666
690
  style="margin-right: 10px"
667
691
  >
668
692
  <el-button type="primary">
@@ -675,7 +699,7 @@
675
699
  </el-dropdown>
676
700
 
677
701
  <el-button
678
- v-if="title == '添加装运'"
702
+ v-if="title == '生成装运'"
679
703
  type="primary"
680
704
  @click="submitForm"
681
705
  style="margin-right: 10px"
@@ -1172,7 +1196,7 @@ export default {
1172
1196
  this.addContainerRow();
1173
1197
  }
1174
1198
  this.open = true;
1175
- this.title = "添加装运";
1199
+ this.title = "生成装运";
1176
1200
  },
1177
1201
  /** 修改按钮操作 */
1178
1202
  handleUpdate(row) {
@@ -2,7 +2,7 @@
2
2
  * @Author: zhangpengwei 15038779532@163.com
3
3
  * @Date: 2023-08-28 19:04:39
4
4
  * @LastEditors: zhangpengwei 15038779532@163.com
5
- * @LastEditTime: 2023-09-14 18:03:30
5
+ * @LastEditTime: 2023-09-18 18:01:20
6
6
  * @FilePath: /doctor-admin-components/packages/src/views/biz/contractTracing/contractSummary.vue
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  -->
@@ -170,15 +170,16 @@
170
170
  </el-row>
171
171
  <el-row>
172
172
  <el-col :span="18">
173
- <el-form-item :label="$t('contractDetail.preferredQuoteMethod')">
174
- {{
175
- getPreferredQuoteMethodLabel(dealRecord.preferredQuoteMethod)
176
- }}
177
- </el-form-item>
173
+ <el-form-item :label="$t('contractDetail.preferredQuoteMethod')">
174
+ {{
175
+ getPreferredQuoteMethodLabel(dealRecord.preferredQuoteMethod)
176
+ }}
177
+ </el-form-item>
178
+ </el-col>
179
+ <!-- 买家点价 -->
180
+ <el-col :span="6">
181
+ <div class="share" v-if="showPricing" style="right:100px;" @click.stop="openPriceFix">开始点价</div>
178
182
  </el-col>
179
- <!-- <el-col :span="6">
180
- <div class="share" v-if="channel === 'official-website'" style="right:100px;" @click.stop="openPriceFix">开始点价</div>
181
- </el-col> -->
182
183
  </el-row>
183
184
  </el-card>
184
185
 
@@ -535,7 +536,10 @@
535
536
  type="expand"
536
537
  v-if="channel == 'official-website'"
537
538
  >
538
- <template slot-scope="{ row }" v-if="row && row.claimList && row.claimList.length">
539
+ <template
540
+ slot-scope="{ row }"
541
+ v-if="row && row.claimList && row.claimList.length"
542
+ >
539
543
  <div class="claim-list">
540
544
  <div>
541
545
  {{ $t("contract.Claim_records") }}({{
@@ -719,7 +723,10 @@
719
723
  </el-button>
720
724
  <!-- v-if="channel == 'official-website' && scope.row.showFallbackQuality" -->
721
725
  <el-button
722
- v-if="channel == 'official-website' && scope.row.showFallbackQuality"
726
+ v-if="
727
+ channel == 'official-website' &&
728
+ scope.row.showFallbackQuality
729
+ "
723
730
  size="mini"
724
731
  type="primary"
725
732
  style="padding-left: 5px; padding-right: 5px"
@@ -756,7 +763,7 @@
756
763
 
757
764
  <script>
758
765
  import { mapGetters } from "vuex";
759
- import { getBizDealRecordByAskId } from "../../../api/biz/bizDealRecord";
766
+ import { getBizDealRecordByAskId, orderTracing } from "../../../api/biz/bizDealRecord";
760
767
  import {
761
768
  getBizContract,
762
769
  getBizContractByNo,
@@ -868,6 +875,7 @@ export default {
868
875
  updateTime: "2023-08-16T10:14:27",
869
876
  },
870
877
  ],
878
+ showPricing: false
871
879
  };
872
880
  },
873
881
  computed: {},
@@ -1000,7 +1008,7 @@ export default {
1000
1008
  this.$refs.shipmentDetail.handleShow(row);
1001
1009
  },
1002
1010
  //查看合同详情
1003
-
1011
+
1004
1012
  viewContractDetail(contractNo) {
1005
1013
  getBizContractByNo(contractNo).then((res) => {
1006
1014
  this.$router.push({
@@ -1060,7 +1068,11 @@ export default {
1060
1068
  const blNumber = invoice.billOfLadingNo || "待补充";
1061
1069
  const containerNo = invoice.containerNoList || "待补充";
1062
1070
  const eta = this.parseTime(invoice.eta, "{y}-{m}-{d}") || "待补充";
1063
-
1071
+ const pod =
1072
+ (invoice.terminal ? invoice.terminal : "") + invoice?.destination;
1073
+ const askNames = invoice.containerDetailList
1074
+ .map((item) => item.askName)
1075
+ .join("/");
1064
1076
  const englishText = `更新时间 ${
1065
1077
  invoice.geekUpdateTime || invoice.shipmentCreateTime
1066
1078
  }
@@ -1072,6 +1084,8 @@ Value: $${value}
1072
1084
  BL#: ${blNumber}
1073
1085
  Container#: ${containerNo}
1074
1086
  ETA: ${eta}
1087
+ POD: ${pod}
1088
+ Descriptions: ${askNames}
1075
1089
 
1076
1090
  温馨提示:到货通知。请贵司收到此通知后的7个工作日内安排支付货款,以便安排提单电放,避免产生不必要的滞箱费用。
1077
1091
  致:收货公司${invoice.receiveCompanyName || "待补充"}
@@ -1080,7 +1094,10 @@ ${invoiceNoTitleZh}:${invoiceNo}
1080
1094
  发票金额:$${value}
1081
1095
  提单号:${blNumber}
1082
1096
  集装箱号:${containerNo}
1083
- 预计到港:${eta}`;
1097
+ 预计到港:${eta}
1098
+ 目的港: ${pod}
1099
+ 品名: ${askNames}
1100
+ `;
1084
1101
 
1085
1102
  // 创建临时 <textarea> 元素,将链接写入其中
1086
1103
  const textArea = document.createElement("textarea");
@@ -1235,6 +1252,20 @@ ${invoiceNoTitleZh}:${invoiceNo}
1235
1252
  item.askCover = item.imageList.toString();
1236
1253
  }
1237
1254
  });
1255
+
1256
+ if (this.dealRecord.askId && this.channel == 'official-website') {
1257
+ orderTracing({askId:this.dealRecord.askId}).then(res => {
1258
+ if (res.code == 200) {
1259
+ res?.data?.contracts?.forEach(element => {
1260
+ if(element.showPricing) {
1261
+ this.showPricing = true
1262
+ }
1263
+ });
1264
+ }
1265
+ }).catch(err => {
1266
+ console.log(err)
1267
+ })
1268
+ }
1238
1269
  });
1239
1270
  listBizInvoice({
1240
1271
  contractId: this.contractId,
@@ -1288,11 +1319,10 @@ ${invoiceNoTitleZh}:${invoiceNo}
1288
1319
  processedData.push(shipmentMap[key]);
1289
1320
  }
1290
1321
  }
1291
- console.log('===processedData==', processedData);
1322
+ console.log("===processedData==", processedData);
1292
1323
  return processedData;
1293
1324
  },
1294
1325
 
1295
-
1296
1326
  //获取合同信息
1297
1327
  getContract(contractId) {
1298
1328
  getBizContract(contractId).then((res) => {
@@ -1312,11 +1342,11 @@ ${invoiceNoTitleZh}:${invoiceNo}
1312
1342
  activeNameFun(v) {
1313
1343
  this.activeName = "" + v;
1314
1344
  },
1315
- openPriceFix () {
1316
- this.$buryingPoint({data:{funcKey:'click_fixprice_buyer'}})
1317
- this.$store.commit('setPriceFixAskId', this.contract.askId)
1318
- this.$store.commit('setFixPriceDialogVisible', true)
1319
- }
1345
+ openPriceFix() {
1346
+ this.$buryingPoint({ data: { funcKey: "click_fixprice_buyer" } });
1347
+ this.$store.commit("setPriceFixAskId", this.contract.askId);
1348
+ this.$store.commit("setFixPriceDialogVisible", true);
1349
+ },
1320
1350
  },
1321
1351
  };
1322
1352
  </script>
@@ -1345,13 +1375,13 @@ ${invoiceNoTitleZh}:${invoiceNo}
1345
1375
  }
1346
1376
  }
1347
1377
  .share {
1348
- width: 120px;
1349
- height: 30px;
1350
- background: #4d904d;
1351
- color: #fff;
1352
- border-radius: 6px 6px 6px 6px;
1353
- line-height: 30px;
1354
- text-align: center;
1355
- cursor:pointer;
1378
+ width: 120px;
1379
+ height: 30px;
1380
+ background: #4d904d;
1381
+ color: #fff;
1382
+ border-radius: 6px 6px 6px 6px;
1383
+ line-height: 30px;
1384
+ text-align: center;
1385
+ cursor: pointer;
1356
1386
  }
1357
1387
  </style>