doctor-admin-components 1.0.13-beta.93 → 1.0.13-beta.95

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.13-beta.93",
4
+ "version": "1.0.13-beta.95",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -374,11 +374,11 @@
374
374
  channel !== 'official-website' && contract.contractType == 'sale'
375
375
  "
376
376
  >增加装运</div> -->
377
- <div class="addshipment" @click.stop="handleGeneratePurchase"
377
+ <!-- <div class="addshipment" @click.stop="handleGeneratePurchase"
378
378
  v-if="
379
379
  channel !== 'official-website' && contract.contractType == 'purchase'
380
380
  "
381
- >{{ $t('contractDetail.add_shipment') }}</div>
381
+ >{{ $t('contractDetail.add_shipment') }}</div> -->
382
382
  </div>
383
383
  </template>
384
384
  <template v-slot:content>
@@ -7,7 +7,7 @@
7
7
  <span v-if="voidInvoiceList" style="color: red">【快捷转卖】:系统检测到此销售合同关联的采购合同存在【已作废】的装运,</span>
8
8
  <el-button v-if="voidInvoiceList" @click="handleReference" size="mini" type="text">点击这里直接复制并引用</el-button>
9
9
  </slot>
10
- <div v-if="reason" style="color:#f00;padding-left:60px;margin-bottom:10px;">{{ reason }}</div>
10
+ <div v-if="reason" style="color: #f00; padding-left: 60px; margin-bottom: 10px">{{ reason }}</div>
11
11
  <el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="80px">
12
12
  <el-row>
13
13
  <el-col :span="6">
@@ -94,7 +94,7 @@
94
94
  <el-row>
95
95
  <el-col :span="8">
96
96
  <el-form-item label="对应采购合同" prop="purchaseContractNo" label-width="100">
97
- <el-select v-model="form.purchaseContractNo" size="small">
97
+ <el-select v-model="form.purchaseContractNo" size="small" clearable="">
98
98
  <el-option v-for="item in contract.purchaseContractNos" :key="item" :label="item" :value="item" />
99
99
  </el-select>
100
100
  </el-form-item>
@@ -440,7 +440,16 @@
440
440
  </template>
441
441
 
442
442
  <script>
443
- import { haveVoidShipment, listBizShipment, getBizShipment, delBizShipment, addWithContainer, addContainerCheck, updateWithContainer, updateWithContainerAndInvoice } from '../../../api/biz/bizShipment'
443
+ import {
444
+ haveVoidShipment,
445
+ listBizShipment,
446
+ getBizShipment,
447
+ delBizShipment,
448
+ addWithContainer,
449
+ addContainerCheck,
450
+ updateWithContainer,
451
+ updateWithContainerAndInvoice
452
+ } from '../../../api/biz/bizShipment'
444
453
  import { generateFinalInvoiceByShipmentId } from '../../../api/biz/bizInvoice'
445
454
  import { updateBizContractDetail } from '../../../api/biz/bizContractDetail'
446
455
  import { queryPurchaseContracts } from '../../../api/biz/bizContract'
@@ -457,7 +466,7 @@ export default {
457
466
  dicts: ['shipping_company'],
458
467
  components: {
459
468
  selectBooking,
460
- ReferenceAlert,
469
+ ReferenceAlert
461
470
  },
462
471
  data() {
463
472
  return {
@@ -595,7 +604,7 @@ export default {
595
604
  handleReferenced(data) {
596
605
  //shipment, copyFileTypeList
597
606
  let contractIds = this.form.contractIds // 保持不变
598
- this.form = {...this.form, ...data.shipment, 'contractIds':contractIds}
607
+ this.form = { ...this.form, ...data.shipment, contractIds: contractIds }
599
608
  // 需要去掉shipmentId
600
609
  this.form.shipmentId = null
601
610
  this.form.citeShipmentId = data.shipment.shipmentId
@@ -817,6 +826,7 @@ export default {
817
826
  bookingNo: null,
818
827
  billOfLadingNo: null,
819
828
  destinationPort: null,
829
+ purchaseContractNo: null,
820
830
  etd: null,
821
831
  eta: null,
822
832
  actualArrivalDate: null,
@@ -894,8 +904,7 @@ export default {
894
904
  return { ...v, selected: false }
895
905
  })
896
906
  // 过滤作废的采购合同
897
- queryPurchaseContracts(contract.contractId)
898
- .then((res) => {
907
+ queryPurchaseContracts(contract.contractId).then((res) => {
899
908
  let purchaseContractNos = res.rows
900
909
  this.contract.purchaseContractNos = purchaseContractNos
901
910
  if (purchaseContractNos && purchaseContractNos.length == 1) {
@@ -934,12 +943,11 @@ export default {
934
943
  console.error(error)
935
944
  })
936
945
  // 查询是否有可引用的
937
- haveVoidShipment(contract.contractId)
938
- .then((res) => {
939
- this.voidInvoiceList = res.rows && res.rows.length > 0 ? res.rows : null
940
- })
946
+ haveVoidShipment(contract.contractId).then((res) => {
947
+ this.voidInvoiceList = res.rows && res.rows.length > 0 ? res.rows : null
948
+ })
941
949
  // 测试数据
942
- // this.voidInvoiceList = [{'contractId': '1', 'contractNo':'合同号1'}]
950
+ // this.voidInvoiceList = [{'contractId': '1', 'contractNo':'合同号1'}]
943
951
  },
944
952
  /** 修改按钮操作 */
945
953
  handleUpdate(row) {
@@ -1166,18 +1174,18 @@ export default {
1166
1174
  // 装运前校验
1167
1175
  async checkPreShipment() {
1168
1176
  let res = await addContainerCheck({
1169
- 'billOfLadingNo': this.form.billOfLadingNo,
1170
- 'bookingNo': this.form.bookingNo,
1171
- 'shipmentId': this.form.shipmentId
1177
+ billOfLadingNo: this.form.billOfLadingNo,
1178
+ bookingNo: this.form.bookingNo,
1179
+ shipmentId: this.form.shipmentId
1172
1180
  })
1173
1181
  if (!res.data.checkShipmentTip) {
1174
1182
  return true
1175
1183
  }
1176
1184
  let result = await MessageBox.confirm(res.data.checkShipmentTip, '提示', {
1177
- confirmButtonText: '确定',
1178
- cancelButtonText: '取消',
1179
- type: 'warning'
1180
- }).catch(err => err)
1185
+ confirmButtonText: '确定',
1186
+ cancelButtonText: '取消',
1187
+ type: 'warning'
1188
+ }).catch((err) => err)
1181
1189
  return result === 'confirm'
1182
1190
  },
1183
1191
  /** 提交按钮 */