|
|
@@ -72,6 +72,9 @@
|
|
|
<el-button type="text" size="small" v-else-if="scope.row.checkType == 'aia-approve'"
|
|
|
:disabled="scope.row.auditStatus != 'S'" @click.stop="printWindowfun(scope.row, 'aia-approve')">审批
|
|
|
</el-button>
|
|
|
+ <el-button type="text" size="small" v-else-if="scope.row.checkType == 'FYSQ'"
|
|
|
+ :disabled="scope.row.auditStatus != 'S'" @click.stop="printWindowfun(scope.row, 'FYSQ')">审批
|
|
|
+ </el-button>
|
|
|
<el-button type="text" size="small" v-else :disabled="scope.row.auditStatus != 'S'"
|
|
|
@click.stop="openCheck(scope.row)">审批
|
|
|
</el-button>
|
|
|
@@ -128,7 +131,7 @@ import { corpsDescListAll } from "../../api/tirePartsMall/salesManagement/saleOr
|
|
|
|
|
|
import reportContainerlos from "@/views/iosBasicData/report-container/report-container-los.vue"
|
|
|
import { finstlbillsDetail } from "../../api/iosBasicData/finstlbills";
|
|
|
-import { reportsGetReportData } from "@/api/iosBasicData/reports";
|
|
|
+import { reportsGetReportData, reportsGetReportDataBox } from "@/api/iosBasicData/reports";
|
|
|
import reportformsList from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsList.vue";
|
|
|
import { getList as getreportsList } from "@/api/iosBasicData/reports";
|
|
|
|
|
|
@@ -282,9 +285,15 @@ export default {
|
|
|
classifyCode: 'AMENDAI',
|
|
|
groupCode: 'AI'
|
|
|
}
|
|
|
- } else { }
|
|
|
+ } else if (type == 'FYSQ') {
|
|
|
+ obj = {
|
|
|
+ businessType: 'FYSQ',
|
|
|
+ classifyCode:row.srcBusType,
|
|
|
+ groupCode: 'FYSQ'
|
|
|
+ }
|
|
|
+ }
|
|
|
getreportsList(1, 10, obj).then(res => {
|
|
|
- this.reportRadio(res.data.data.records[0])
|
|
|
+ this.reportRadio(res.data.data.records[0], type)
|
|
|
})
|
|
|
// this.selectPrintingDialog = true
|
|
|
// let page = {
|
|
|
@@ -301,18 +310,32 @@ export default {
|
|
|
// })
|
|
|
},
|
|
|
// 获取报表数据
|
|
|
- reportRadio(val) {
|
|
|
+ reportRadio(val, type) {
|
|
|
console.log(val, 240)
|
|
|
- reportsGetReportData({
|
|
|
- billId: this.reportsData.billId,
|
|
|
- reportCode: val.classifyCode,
|
|
|
- groupCode: val.groupCode,
|
|
|
- type: val.businessType
|
|
|
- }).then(res => {
|
|
|
- // 关闭弹窗
|
|
|
- this.selectPrintingDialog = false
|
|
|
- this.handleReportPreview(val.url, res.data.data.data)
|
|
|
- })
|
|
|
+ if (type == 'FYSQ') {
|
|
|
+ reportsGetReportDataBox({
|
|
|
+ billId: this.reportsData.billId,
|
|
|
+ reportCode: val.classifyCode,
|
|
|
+ groupCode: val.groupCode,
|
|
|
+ type: val.businessType
|
|
|
+ }).then(res => {
|
|
|
+ // 关闭弹窗
|
|
|
+ this.selectPrintingDialog = false
|
|
|
+ this.handleReportPreview(val.url, res.data.data.data)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ reportsGetReportData({
|
|
|
+ billId: this.reportsData.billId,
|
|
|
+ reportCode: val.classifyCode,
|
|
|
+ groupCode: val.groupCode,
|
|
|
+ type: val.businessType
|
|
|
+ }).then(res => {
|
|
|
+ // 关闭弹窗
|
|
|
+ this.selectPrintingDialog = false
|
|
|
+ this.handleReportPreview(val.url, res.data.data.data)
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
// 关闭弹窗
|
|
|
handleClose(done) {
|