|
@@ -48,9 +48,9 @@
|
|
|
<BillofLadingDetails
|
|
|
v-else-if="businesstypeData.reportsType == 'TDXQ' || businesstypeData.reportsType == 'DCWTS'"
|
|
|
:documentForm="documentForm"></BillofLadingDetails>
|
|
|
- <BillofLadingDetailsM
|
|
|
- v-else-if="businesstypeData.reportsType == 'MBL BOOKING SHEET'"
|
|
|
- :documentForm="documentForm"></BillofLadingDetailsM>
|
|
|
+ <BillofLadingDetailsM v-else-if="businesstypeData.reportsType == 'MBL BOOKING SHEET'"
|
|
|
+ :documentForm="documentForm">
|
|
|
+ </BillofLadingDetailsM>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<!--<el-button type="success" @click="documentSubmit(true)" >保存并打印</el-button>-->
|
|
|
<el-button v-if="addShow" type="success" :disabled="!documentForm.id"
|
|
@@ -110,11 +110,11 @@ import { isProcurement } from "@/api/basicData/configuration";
|
|
|
export default {
|
|
|
components: {
|
|
|
businessReports,
|
|
|
- BillofLadingDetails,BillofLadingDetailsM, reportContainer, reportformsList, bbusinesstype, DispatchNotice, PurchaseNotice
|
|
|
+ BillofLadingDetails, BillofLadingDetailsM, reportContainer, reportformsList, bbusinesstype, DispatchNotice, PurchaseNotice
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- textareaNumber:5,
|
|
|
+ textareaNumber: 5,
|
|
|
previewDialog: false, // 打印预览弹窗
|
|
|
PreviewOption: {}, // 打印预览弹窗的配置项
|
|
|
PreviewOptionBack: {
|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
this.documentOption = await this.getColumnData(this.getColumnName(312.1), this.documentOptionBack);
|
|
|
this.PreviewOption = await this.getColumnData(this.getColumnName(312.3), this.PreviewOptionBack);
|
|
|
isProcurement({ "param": "textarea.number" }).then(res => {
|
|
|
- if(res.data.data){
|
|
|
+ if (res.data.data) {
|
|
|
this.textareaNumber = res.data.data
|
|
|
}
|
|
|
})
|
|
@@ -332,13 +332,14 @@ export default {
|
|
|
const data = await this.PreviewOnLoad(this.PreviewPage, {
|
|
|
businessType: 'HYCK',
|
|
|
classifyCode: '单证',
|
|
|
- groupCode: row.groupCode=='提单详情(H)'?'提单详情':row.groupCode
|
|
|
+ groupCode: row.groupCode == '提单详情(H)' ? '提单详情' : row.groupCode
|
|
|
});
|
|
|
this.$nextTick(() => {
|
|
|
if (data.length == 1) {
|
|
|
this.handleReportPreview(data[0].url, this.documentForm)
|
|
|
} else {
|
|
|
this.previewDialog = true
|
|
|
+ this.documentVisible = false
|
|
|
}
|
|
|
})
|
|
|
// let obj = {businessType:'HYCK',classifyCode:'单证',groupCode:row.groupCode}
|
|
@@ -441,7 +442,7 @@ export default {
|
|
|
reportsGetReportData({
|
|
|
billId: this.assemblyForm.id,
|
|
|
reportCode: this.businesstypeData.classifyCode,
|
|
|
- groupCode: this.businesstypeData.groupCode,
|
|
|
+ groupCode: this.businesstypeData.groupCode=='提单详情(H)'?'提单详情':this.businesstypeData.groupCode,
|
|
|
reportsType: this.businesstypeData.reportsType,
|
|
|
type: 'HYCK'
|
|
|
}).then(res => {
|
|
@@ -497,6 +498,7 @@ export default {
|
|
|
obj.groupCode = this.businesstypeData.groupCode
|
|
|
obj.reportsType = this.businesstypeData.reportsType
|
|
|
}
|
|
|
+ console.log(this.documentForm)
|
|
|
obj.printContent = JSON.stringify({
|
|
|
data: {
|
|
|
...this.documentForm,
|