doctor-admin-components 1.0.13-beta.9 → 1.0.13-pro.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.
- package/README.md +18 -7
- package/package.json +1 -1
- package/packages/src/api/biz/bizContract.js +0 -1
- package/packages/src/api/biz/bizContractCompany.js +1 -1
- package/packages/src/utils/request.js +120 -146
- package/packages/src/views/biz/bizShipment/add.vue +109 -54
- package/packages/src/views/biz/contractTracing/addSubCompany.vue +106 -169
- package/packages/src/views/biz/contractTracing/billInfo.vue +150 -315
- package/packages/src/views/biz/contractTracing/contractSummary.vue +9 -4
- package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +0 -8
- package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +196 -176
- package/packages/src/views/biz/contractTracing/association.vue +0 -189
- package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
- package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
- package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
- package/packages/src/views/biz/contractTracing/edit.vue +0 -205
- package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
- package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="app-container">
|
|
3
3
|
<!-- 添加或修改装运对话框 -->
|
|
4
|
-
<el-dialog :title="title" :visible.sync="open" width="80%"
|
|
4
|
+
<el-dialog :title="title" :visible.sync="open" width="80%" :before-close="handleClose">
|
|
5
5
|
<el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="80px">
|
|
6
6
|
<el-row>
|
|
7
7
|
<el-col :span="6">
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
v-model="scope2.row.packageGrossWeight"
|
|
203
203
|
placeholder="请输入毛重"
|
|
204
204
|
size="mini"
|
|
205
|
-
@
|
|
205
|
+
@input="changePackageGrossWeight(index, scope1.$index, scope2.$index)"
|
|
206
206
|
></el-input>
|
|
207
207
|
</el-form-item>
|
|
208
208
|
</template>
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
v-model="scope2.row.packageTareWeight"
|
|
221
221
|
placeholder="请输入皮重"
|
|
222
222
|
size="mini"
|
|
223
|
-
@
|
|
223
|
+
@input="changePackageTareWeight(index, scope1.$index, scope2.$index)"
|
|
224
224
|
></el-input>
|
|
225
225
|
</el-form-item>
|
|
226
226
|
</template>
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
<el-button @click="cancel">取 消</el-button>
|
|
389
389
|
</div>
|
|
390
390
|
|
|
391
|
-
<div style="display: flex; justify-content: center; align-items: center">
|
|
391
|
+
<div style="display: flex; justify-content: center; align-items: center" v-if="title == '修改装运'">
|
|
392
392
|
<ul>
|
|
393
393
|
按钮说明
|
|
394
394
|
<ul>
|
|
@@ -627,6 +627,21 @@ export default {
|
|
|
627
627
|
this.form.containerList[index].totalGoodsGrossWeight = this.form.containerList[index].containerDetailList.reduce((total, item) => {
|
|
628
628
|
return total + Number(item.goodsGrossWeight)
|
|
629
629
|
}, 0)
|
|
630
|
+
//计算净重
|
|
631
|
+
this.form.containerList[index].containerDetailList[k].packageList[yindex].packageNetWeight = (
|
|
632
|
+
this.form.containerList[index].containerDetailList[k].packageList[yindex].packageGrossWeight -
|
|
633
|
+
this.form.containerList[index].containerDetailList[k].packageList[yindex].packageTareWeight
|
|
634
|
+
).toFixed(3)
|
|
635
|
+
|
|
636
|
+
this.form.containerList[index].containerDetailList[k].goodsNetWeight = this.form.containerList[index].containerDetailList[k].packageList.reduce((total, item) => {
|
|
637
|
+
return total + Number(item.packageNetWeight)
|
|
638
|
+
}, 0)
|
|
639
|
+
|
|
640
|
+
this.form.containerList[index].totalGoodsNetWeight = this.form.containerList[index].containerDetailList
|
|
641
|
+
.reduce((total, item) => {
|
|
642
|
+
return total + Number(item.goodsNetWeight)
|
|
643
|
+
}, 0)
|
|
644
|
+
.toFixed(3)
|
|
630
645
|
},
|
|
631
646
|
changePackageTareWeight(index, k, yindex) {
|
|
632
647
|
//计算皮重
|
|
@@ -981,31 +996,38 @@ export default {
|
|
|
981
996
|
submitShipment() {
|
|
982
997
|
this.$refs['form'].validate((valid) => {
|
|
983
998
|
if (valid) {
|
|
984
|
-
|
|
999
|
+
let loadingInstance = Loading.service({
|
|
1000
|
+
text: '请稍候',
|
|
1001
|
+
spinner: 'el-icon-loading',
|
|
1002
|
+
background: 'rgba(0, 0, 0, 0.7)',
|
|
1003
|
+
customClass: 'custom-loading-class'
|
|
1004
|
+
})
|
|
985
1005
|
if (this.form.shipmentId == null) {
|
|
986
|
-
let loadingInstance = Loading.service({
|
|
987
|
-
text: '请稍候',
|
|
988
|
-
spinner: 'el-icon-loading',
|
|
989
|
-
background: 'rgba(0, 0, 0, 0.7)'
|
|
990
|
-
})
|
|
991
1006
|
addWithContainer(this.form).then((response) => {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
.catch(() => {
|
|
1000
|
-
this.$router.push({
|
|
1001
|
-
name: 'BizShipment',
|
|
1002
|
-
params: { viewDetailFlag: true }
|
|
1003
|
-
})
|
|
1007
|
+
if (response.code == 200) {
|
|
1008
|
+
this.open = false
|
|
1009
|
+
loadingInstance.close()
|
|
1010
|
+
this.$confirm('装运已生成!您可以点击“确认”按钮留在当前页面,或点击“去看看”按钮查看详细信息。', {
|
|
1011
|
+
confirmButtonText: '确定',
|
|
1012
|
+
cancelButtonText: '去看看',
|
|
1013
|
+
type: 'warning'
|
|
1004
1014
|
})
|
|
1005
|
-
|
|
1015
|
+
.then(() => {})
|
|
1016
|
+
.catch(() => {
|
|
1017
|
+
this.$router.push({
|
|
1018
|
+
name: 'BizShipment',
|
|
1019
|
+
params: { viewDetailFlag: true }
|
|
1020
|
+
})
|
|
1021
|
+
})
|
|
1022
|
+
this.$emit('refresh')
|
|
1023
|
+
} else {
|
|
1024
|
+
loadingInstance.close()
|
|
1025
|
+
}
|
|
1006
1026
|
})
|
|
1007
1027
|
} else {
|
|
1008
1028
|
updateWithContainer(this.form).then((res) => {
|
|
1029
|
+
loadingInstance.close()
|
|
1030
|
+
this.open = false
|
|
1009
1031
|
this.$modal.msgSuccess('修改成功')
|
|
1010
1032
|
this.$emit('refresh')
|
|
1011
1033
|
})
|
|
@@ -1021,25 +1043,34 @@ export default {
|
|
|
1021
1043
|
submitAndDownload(templateType) {
|
|
1022
1044
|
this.$refs['form'].validate((valid) => {
|
|
1023
1045
|
if (valid) {
|
|
1024
|
-
this.open = false
|
|
1025
1046
|
let loadingInstance = Loading.service({
|
|
1026
1047
|
text: '请稍候',
|
|
1027
1048
|
spinner: 'el-icon-loading',
|
|
1028
|
-
background: 'rgba(0, 0, 0, 0.7)'
|
|
1049
|
+
background: 'rgba(0, 0, 0, 0.7)',
|
|
1050
|
+
customClass: 'custom-loading-class'
|
|
1029
1051
|
})
|
|
1030
|
-
addWithContainer(this.form)
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1052
|
+
addWithContainer(this.form)
|
|
1053
|
+
.then((res) => {
|
|
1054
|
+
if (res.code == 200) {
|
|
1055
|
+
var query = {}
|
|
1056
|
+
query.orderByColumn = 'shipmentId'
|
|
1057
|
+
query.isAsc = 'desc'
|
|
1058
|
+
query.pageNum = 1
|
|
1059
|
+
query.pageSize = 1
|
|
1060
|
+
listBizShipment(query).then((res) => {
|
|
1061
|
+
var shipment = res.rows[0]
|
|
1062
|
+
this.handleDownloadShipment(shipment, templateType)
|
|
1063
|
+
})
|
|
1064
|
+
this.$emit('refresh')
|
|
1065
|
+
this.open = false
|
|
1066
|
+
loadingInstance.close()
|
|
1067
|
+
} else {
|
|
1068
|
+
loadingInstance.close()
|
|
1069
|
+
}
|
|
1070
|
+
})
|
|
1071
|
+
.finally(() => {
|
|
1072
|
+
loadingInstance.close()
|
|
1040
1073
|
})
|
|
1041
|
-
this.$emit('refresh')
|
|
1042
|
-
})
|
|
1043
1074
|
}
|
|
1044
1075
|
})
|
|
1045
1076
|
},
|
|
@@ -1065,26 +1096,42 @@ export default {
|
|
|
1065
1096
|
submitForm() {
|
|
1066
1097
|
this.$refs['form'].validate((valid) => {
|
|
1067
1098
|
if (valid) {
|
|
1068
|
-
|
|
1099
|
+
let loadingInstance = Loading.service({
|
|
1100
|
+
text: '请稍候',
|
|
1101
|
+
spinner: 'el-icon-loading',
|
|
1102
|
+
background: 'rgba(0, 0, 0, 0.7)',
|
|
1103
|
+
customClass: 'custom-loading-class'
|
|
1104
|
+
})
|
|
1069
1105
|
if (this.form.shipmentId == null) {
|
|
1070
|
-
addWithContainer(this.form)
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1106
|
+
addWithContainer(this.form)
|
|
1107
|
+
.then((response) => {
|
|
1108
|
+
if (response.code == 200) {
|
|
1109
|
+
this.open = false
|
|
1110
|
+
this.$modal.msgSuccess('生成成功')
|
|
1111
|
+
var query = {}
|
|
1112
|
+
query.orderByColumn = 'shipmentId'
|
|
1113
|
+
query.isAsc = 'desc'
|
|
1114
|
+
query.pageNum = 1
|
|
1115
|
+
query.pageSize = 10
|
|
1116
|
+
if (this.contract.contractType == 'sale') {
|
|
1117
|
+
query.saleContractId = this.contract.contractId
|
|
1118
|
+
} else {
|
|
1119
|
+
query.purchaseContractId = this.contract.contractId
|
|
1120
|
+
}
|
|
1121
|
+
listBizShipment(query).then((res) => {
|
|
1122
|
+
var shipment = res.rows[0]
|
|
1123
|
+
this.handleGenerateFinalInvoice(shipment)
|
|
1124
|
+
})
|
|
1125
|
+
} else {
|
|
1126
|
+
loadingInstance.close()
|
|
1127
|
+
}
|
|
1128
|
+
})
|
|
1129
|
+
.finally(() => {
|
|
1130
|
+
loadingInstance.close()
|
|
1085
1131
|
})
|
|
1086
|
-
})
|
|
1087
1132
|
} else {
|
|
1133
|
+
loadingInstance.close()
|
|
1134
|
+
this.open = false
|
|
1088
1135
|
this.$emit('openGenerateLive', { ...this.form, quoteType: this.contract.quoteType })
|
|
1089
1136
|
}
|
|
1090
1137
|
}
|
|
@@ -1139,3 +1186,11 @@ export default {
|
|
|
1139
1186
|
border-radius: 4px;
|
|
1140
1187
|
}
|
|
1141
1188
|
</style>
|
|
1189
|
+
<style lang="scss">
|
|
1190
|
+
.el-loading-mask.custom-loading-class.is-fullscreen {
|
|
1191
|
+
z-index: 3000 !important;
|
|
1192
|
+
}
|
|
1193
|
+
.el-message.el-message--error {
|
|
1194
|
+
z-index: 3001 !important;
|
|
1195
|
+
}
|
|
1196
|
+
</style>
|