|
@@ -85,13 +85,17 @@
|
|
|
<check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun">
|
|
|
</check-schedule>
|
|
|
</el-dialog>
|
|
|
- <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
|
|
|
- :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
|
|
|
- <check :checkData="checkData" :checkDetail="true" :idList="idList" @operationType="operationType"
|
|
|
- @choceCheckFun="choceCheckFun">
|
|
|
- </check>
|
|
|
- </el-dialog>
|
|
|
- <reportContainer style="width: 100%; height: 80%" ref="reportContainer"></reportContainer>
|
|
|
+ <!--<el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"-->
|
|
|
+ <!-- :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>-->
|
|
|
+ <!-- <check :checkData="checkData" :checkDetail="true" :idList="idList" @operationType="operationType"-->
|
|
|
+ <!-- @choceCheckFun="choceCheckFun">-->
|
|
|
+ <!-- </check>-->
|
|
|
+ <!--</el-dialog>-->
|
|
|
+ <reportContainerlos style="width: 100%; height: 100vh" ref="reportContainer">
|
|
|
+ <check :checkData="checkData" :checkDetail="true" :idList="idList" @operationType="operationType"
|
|
|
+ @choceCheckFun="choceCheckFun">
|
|
|
+ </check>
|
|
|
+ </reportContainerlos>
|
|
|
</basic-container>
|
|
|
</template>
|
|
|
|
|
@@ -107,7 +111,7 @@ import { getUserInfo } from "@/api/system/user";
|
|
|
import { gainUser } from "@/api/basicData/customerInquiry";
|
|
|
import {corpsDescListAll} from "../../api/tirePartsMall/salesManagement/saleOrder";
|
|
|
|
|
|
-import reportContainer from "@/views/iosBasicData/report-container/report-container.vue"
|
|
|
+import reportContainerlos from "@/views/iosBasicData/report-container/report-container-los.vue"
|
|
|
import {finstlbillsDetail} from "../../api/iosBasicData/finstlbills";
|
|
|
import {reportsGetReportData} from "@/api/iosBasicData/reports";
|
|
|
|
|
@@ -117,7 +121,7 @@ export default {
|
|
|
components: {
|
|
|
check,
|
|
|
checkSchedule,
|
|
|
- reportContainer
|
|
|
+ reportContainerlos
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -200,12 +204,23 @@ export default {
|
|
|
methods: {
|
|
|
// 预览报表
|
|
|
async handleReportPreview(url,row){
|
|
|
+ this.checkData = row
|
|
|
const res = await reportsGetReportData({
|
|
|
billId:row.billId,
|
|
|
reportCode:'FYSH',
|
|
|
groupCode:2,
|
|
|
})
|
|
|
var data = res.data.data.data
|
|
|
+ // 报表取的是最后一项,把第一项的数据赋值给最后一项
|
|
|
+ data[data.length - 1].amountDrUsd = data[0].amountDrUsd
|
|
|
+ data[data.length - 1].amountDr = data[0].amountDr
|
|
|
+ data[data.length - 1].amountCrUsd = data[0].amountCrUsd
|
|
|
+ data[data.length - 1].amountCr = data[0].amountCr
|
|
|
+ data[data.length - 1].amountProfitUsd = data[0].amountProfitUsd
|
|
|
+ data[data.length - 1].amountProfit = data[0].amountProfit
|
|
|
+ data[data.length - 1].amountProfitLoc = data[0].amountProfitLoc
|
|
|
+ data[data.length - 1].rate = data[0].rate
|
|
|
+ data[data.length - 1].grossMargin = data[0].grossMargin
|
|
|
|
|
|
console.log(row,203)
|
|
|
Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
|
|
@@ -311,7 +326,8 @@ export default {
|
|
|
this.checkDialog = true;
|
|
|
},
|
|
|
operationType() {
|
|
|
- this.checkDialog = false;
|
|
|
+ // this.checkDialog = false;
|
|
|
+ this.$refs.reportContainer.visible = false
|
|
|
this.refreshChange();
|
|
|
this.idList = [];
|
|
|
},
|
|
@@ -391,7 +407,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
choceCheckFun() {
|
|
|
- this.checkDialog = false;
|
|
|
+ // this.checkDialog = false;
|
|
|
+ this.$refs.reportContainer.visible = false
|
|
|
this.refreshChange();
|
|
|
},
|
|
|
openCheckSchedule(row) {
|