doctor-admin-components 1.0.13-beta.4 → 1.0.13-beta.40
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/index.js +4 -0
- package/packages/src/api/biz/bizContract.js +963 -1
- package/packages/src/api/biz/bizContractCompany.js +1 -1
- package/packages/src/assets/images/click-show-table.png +0 -0
- package/packages/src/assets/images/more.png +0 -0
- package/packages/src/assets/images/pdf-new.png +0 -0
- package/packages/src/components/FileUpload/contract-drag-new.vue +89 -8
- package/packages/src/i18n/en/message.json +259 -0
- package/packages/src/i18n/index.js +38 -0
- package/packages/src/i18n/zh-CN/message.json +259 -0
- package/packages/src/utils/index.js +35 -0
- package/packages/src/utils/request.js +120 -146
- 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
- package/packages/src/views/biz/bizFileInfo/contract copy.vue +1711 -0
- package/packages/src/views/biz/bizFileInfo/contract.vue +1591 -967
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +114 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ContentTitle.vue +102 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +280 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/Progress.vue +84 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +122 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +83 -0
- package/packages/src/views/biz/bizFileInfo/fileShow copy.vue +321 -0
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +178 -130
- package/packages/src/views/biz/bizFileInfo/fileShowClaim.vue +1 -1
- package/packages/src/views/biz/bizShipment/add.vue +111 -66
- 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/contractPdf.vue +31 -20
- package/packages/src/views/biz/contractTracing/contractSummary.vue +286 -629
- package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +202 -8
- package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
- package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +91 -3
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +8 -2
- 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">
|
|
@@ -147,14 +147,14 @@
|
|
|
147
147
|
</el-col>
|
|
148
148
|
<el-col :span="8">
|
|
149
149
|
<el-form-item label="集装箱皮重(kg)" :prop="'containerList.' + index + '.containerTareWeight'" :rules="subrules.containerTareWeight" label-width="120px">
|
|
150
|
-
<el-input v-model="dt.containerTareWeight" placeholder="请输入" size="mini"></el-input>
|
|
150
|
+
<el-input v-model="dt.containerTareWeight" placeholder="请输入" size="mini" type="number"></el-input>
|
|
151
151
|
</el-form-item>
|
|
152
152
|
</el-col>
|
|
153
153
|
</el-row>
|
|
154
154
|
<el-row>
|
|
155
155
|
<el-col :span="6">
|
|
156
156
|
<el-form-item label="总货物毛重(t)" :prop="'containerList.' + index + '.totalGoodsGrossWeight'" :rules="subrules.totalGoodsGrossWeight" label-width="105px">
|
|
157
|
-
<el-input v-if="editSwitch" size="mini" v-model="dt.totalGoodsGrossWeight"></el-input>
|
|
157
|
+
<el-input v-if="editSwitch" size="mini" v-model="dt.totalGoodsGrossWeight" type="number"></el-input>
|
|
158
158
|
<div v-else>
|
|
159
159
|
{{ dt.totalGoodsGrossWeight ? dt.totalGoodsGrossWeight : '自动计算' }}
|
|
160
160
|
</div>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
</el-col>
|
|
163
163
|
<el-col :span="6">
|
|
164
164
|
<el-form-item label="总货物皮重(t)" :prop="'containerList.' + index + '.totalGoodsTareWeight'" :rules="subrules.totalGoodsTareWeight" label-width="105px">
|
|
165
|
-
<el-input v-if="editSwitch" size="mini" v-model="dt.totalGoodsTareWeight"></el-input>
|
|
165
|
+
<el-input v-if="editSwitch" size="mini" v-model="dt.totalGoodsTareWeight" type="number"></el-input>
|
|
166
166
|
<div v-else>
|
|
167
167
|
{{ dt.totalGoodsTareWeight ? dt.totalGoodsTareWeight : '自动计算' }}
|
|
168
168
|
</div>
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
</el-col>
|
|
171
171
|
<el-col :span="6">
|
|
172
172
|
<el-form-item label="总货物净重(t)" :prop="'containerList.' + index + '.totalGoodsNetWeight'" :rules="subrules.totalGoodsNetWeight" label-width="105px">
|
|
173
|
-
<el-input v-if="editSwitch" size="mini" v-model="dt.totalGoodsNetWeight"></el-input>
|
|
173
|
+
<el-input v-if="editSwitch" size="mini" v-model="dt.totalGoodsNetWeight" type="number"></el-input>
|
|
174
174
|
<div v-else>
|
|
175
175
|
{{ dt.totalGoodsNetWeight ? dt.totalGoodsNetWeight : '自动计算' }}
|
|
176
176
|
</div>
|
|
@@ -202,7 +202,8 @@
|
|
|
202
202
|
v-model="scope2.row.packageGrossWeight"
|
|
203
203
|
placeholder="请输入毛重"
|
|
204
204
|
size="mini"
|
|
205
|
-
|
|
205
|
+
type="number"
|
|
206
|
+
@input="changePackageGrossWeight(index, scope1.$index, scope2.$index)"
|
|
206
207
|
></el-input>
|
|
207
208
|
</el-form-item>
|
|
208
209
|
</template>
|
|
@@ -220,7 +221,8 @@
|
|
|
220
221
|
v-model="scope2.row.packageTareWeight"
|
|
221
222
|
placeholder="请输入皮重"
|
|
222
223
|
size="mini"
|
|
223
|
-
|
|
224
|
+
type="number"
|
|
225
|
+
@input="changePackageTareWeight(index, scope1.$index, scope2.$index)"
|
|
224
226
|
></el-input>
|
|
225
227
|
</el-form-item>
|
|
226
228
|
</template>
|
|
@@ -234,7 +236,7 @@
|
|
|
234
236
|
:rules="rules.packageNetWeight"
|
|
235
237
|
:prop="'containerList.' + index + '.containerDetailList.' + scope1.$index + '.packageList.' + scope2.$index + '.packageNetWeight'"
|
|
236
238
|
>
|
|
237
|
-
<el-input v-model="scope2.row.packageNetWeight" placeholder="请输入净重" size="mini"></el-input>
|
|
239
|
+
<el-input v-model="scope2.row.packageNetWeight" placeholder="请输入净重" size="mini" type="number"></el-input>
|
|
238
240
|
</el-form-item>
|
|
239
241
|
</template>
|
|
240
242
|
</el-table-column>
|
|
@@ -348,7 +350,7 @@
|
|
|
348
350
|
:prop="'containerList.' + index + '.containerDetailList.' + scope.$index + '.goodsNumber'"
|
|
349
351
|
:rules="subrules.goodsNumber"
|
|
350
352
|
>
|
|
351
|
-
<el-input v-model="scope.row.goodsNumber" size="small" @change="changeTotalGoodsNumber(index)"></el-input>
|
|
353
|
+
<el-input v-model="scope.row.goodsNumber" size="small" @change="changeTotalGoodsNumber(index)" type="number"></el-input>
|
|
352
354
|
</el-form-item>
|
|
353
355
|
</template>
|
|
354
356
|
</el-table-column>
|
|
@@ -388,7 +390,7 @@
|
|
|
388
390
|
<el-button @click="cancel">取 消</el-button>
|
|
389
391
|
</div>
|
|
390
392
|
|
|
391
|
-
<div style="display: flex; justify-content: center; align-items: center">
|
|
393
|
+
<div style="display: flex; justify-content: center; align-items: center" v-if="title == '修改装运'">
|
|
392
394
|
<ul>
|
|
393
395
|
按钮说明
|
|
394
396
|
<ul>
|
|
@@ -627,6 +629,21 @@ export default {
|
|
|
627
629
|
this.form.containerList[index].totalGoodsGrossWeight = this.form.containerList[index].containerDetailList.reduce((total, item) => {
|
|
628
630
|
return total + Number(item.goodsGrossWeight)
|
|
629
631
|
}, 0)
|
|
632
|
+
//计算净重
|
|
633
|
+
this.form.containerList[index].containerDetailList[k].packageList[yindex].packageNetWeight = (
|
|
634
|
+
this.form.containerList[index].containerDetailList[k].packageList[yindex].packageGrossWeight -
|
|
635
|
+
this.form.containerList[index].containerDetailList[k].packageList[yindex].packageTareWeight
|
|
636
|
+
).toFixed(3)
|
|
637
|
+
|
|
638
|
+
this.form.containerList[index].containerDetailList[k].goodsNetWeight = this.form.containerList[index].containerDetailList[k].packageList.reduce((total, item) => {
|
|
639
|
+
return total + Number(item.packageNetWeight)
|
|
640
|
+
}, 0)
|
|
641
|
+
|
|
642
|
+
this.form.containerList[index].totalGoodsNetWeight = this.form.containerList[index].containerDetailList
|
|
643
|
+
.reduce((total, item) => {
|
|
644
|
+
return total + Number(item.goodsNetWeight)
|
|
645
|
+
}, 0)
|
|
646
|
+
.toFixed(3)
|
|
630
647
|
},
|
|
631
648
|
changePackageTareWeight(index, k, yindex) {
|
|
632
649
|
//计算皮重
|
|
@@ -969,7 +986,6 @@ export default {
|
|
|
969
986
|
}
|
|
970
987
|
}
|
|
971
988
|
if (this.billInfoSummary) {
|
|
972
|
-
alert('1111')
|
|
973
989
|
this.addContainerRow()
|
|
974
990
|
}
|
|
975
991
|
|
|
@@ -982,28 +998,33 @@ export default {
|
|
|
982
998
|
submitShipment() {
|
|
983
999
|
this.$refs['form'].validate((valid) => {
|
|
984
1000
|
if (valid) {
|
|
985
|
-
this.open = false
|
|
986
1001
|
if (this.form.shipmentId == null) {
|
|
987
1002
|
let loadingInstance = Loading.service({
|
|
988
1003
|
text: '请稍候',
|
|
989
1004
|
spinner: 'el-icon-loading',
|
|
990
|
-
background: 'rgba(0, 0, 0, 0.7)'
|
|
1005
|
+
background: 'rgba(0, 0, 0, 0.7)',
|
|
1006
|
+
customClass: 'custom-loading-class'
|
|
991
1007
|
})
|
|
992
1008
|
addWithContainer(this.form).then((response) => {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
.catch(() => {
|
|
1001
|
-
this.$router.push({
|
|
1002
|
-
name: 'BizShipment',
|
|
1003
|
-
params: { viewDetailFlag: true }
|
|
1004
|
-
})
|
|
1009
|
+
if (response.code == 200) {
|
|
1010
|
+
this.open = false
|
|
1011
|
+
loadingInstance.close()
|
|
1012
|
+
this.$confirm('装运已生成!您可以点击“确认”按钮留在当前页面,或点击“去看看”按钮查看详细信息。', {
|
|
1013
|
+
confirmButtonText: '确定',
|
|
1014
|
+
cancelButtonText: '去看看',
|
|
1015
|
+
type: 'warning'
|
|
1005
1016
|
})
|
|
1006
|
-
|
|
1017
|
+
.then(() => {})
|
|
1018
|
+
.catch(() => {
|
|
1019
|
+
this.$router.push({
|
|
1020
|
+
name: 'BizShipment',
|
|
1021
|
+
params: { viewDetailFlag: true }
|
|
1022
|
+
})
|
|
1023
|
+
})
|
|
1024
|
+
this.$emit('refresh')
|
|
1025
|
+
} else {
|
|
1026
|
+
loadingInstance.close()
|
|
1027
|
+
}
|
|
1007
1028
|
})
|
|
1008
1029
|
} else {
|
|
1009
1030
|
updateWithContainer(this.form).then((res) => {
|
|
@@ -1022,25 +1043,34 @@ export default {
|
|
|
1022
1043
|
submitAndDownload(templateType) {
|
|
1023
1044
|
this.$refs['form'].validate((valid) => {
|
|
1024
1045
|
if (valid) {
|
|
1025
|
-
this.open = false
|
|
1026
1046
|
let loadingInstance = Loading.service({
|
|
1027
1047
|
text: '请稍候',
|
|
1028
1048
|
spinner: 'el-icon-loading',
|
|
1029
|
-
background: 'rgba(0, 0, 0, 0.7)'
|
|
1049
|
+
background: 'rgba(0, 0, 0, 0.7)',
|
|
1050
|
+
customClass: 'custom-loading-class'
|
|
1030
1051
|
})
|
|
1031
|
-
addWithContainer(this.form)
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
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()
|
|
1041
1073
|
})
|
|
1042
|
-
this.$emit('refresh')
|
|
1043
|
-
})
|
|
1044
1074
|
}
|
|
1045
1075
|
})
|
|
1046
1076
|
},
|
|
@@ -1066,30 +1096,41 @@ export default {
|
|
|
1066
1096
|
submitForm() {
|
|
1067
1097
|
this.$refs['form'].validate((valid) => {
|
|
1068
1098
|
if (valid) {
|
|
1069
|
-
|
|
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
|
+
})
|
|
1070
1105
|
if (this.form.shipmentId == null) {
|
|
1071
|
-
addWithContainer(this.form)
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
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()
|
|
1086
1131
|
})
|
|
1087
|
-
})
|
|
1088
1132
|
} else {
|
|
1089
|
-
this
|
|
1090
|
-
this.generateFinalInvoiceForm.quoteType = this.contract.quoteType
|
|
1091
|
-
this.generateFinalInvoiceOpen = true
|
|
1092
|
-
this.generateFinalInvoiceTitle = '更新临时尾款发票'
|
|
1133
|
+
this.$emit('openGenerateLive', { ...this.form, quoteType: this.contract.quoteType })
|
|
1093
1134
|
}
|
|
1094
1135
|
}
|
|
1095
1136
|
})
|
|
@@ -1099,11 +1140,7 @@ export default {
|
|
|
1099
1140
|
this.reset()
|
|
1100
1141
|
const shipmentId = row.shipmentId
|
|
1101
1142
|
getBizShipment(shipmentId).then((response) => {
|
|
1102
|
-
this.
|
|
1103
|
-
this.generateFinalInvoiceForm.quoteType = response.data.quoteType
|
|
1104
|
-
this.generateFinalInvoiceForm.saleFinalInvoice = response.data.saleInvoice
|
|
1105
|
-
this.generateFinalInvoiceOpen = true
|
|
1106
|
-
this.generateFinalInvoiceTitle = '生成临时尾款发票'
|
|
1143
|
+
this.$emit('openGenerateLive', response.data)
|
|
1107
1144
|
})
|
|
1108
1145
|
},
|
|
1109
1146
|
/** 删除按钮操作 */
|
|
@@ -1147,3 +1184,11 @@ export default {
|
|
|
1147
1184
|
border-radius: 4px;
|
|
1148
1185
|
}
|
|
1149
1186
|
</style>
|
|
1187
|
+
<style lang="scss">
|
|
1188
|
+
.el-loading-mask.custom-loading-class.is-fullscreen {
|
|
1189
|
+
z-index: 3000 !important;
|
|
1190
|
+
}
|
|
1191
|
+
.el-message.el-message--error {
|
|
1192
|
+
z-index: 3001 !important;
|
|
1193
|
+
}
|
|
1194
|
+
</style>
|