123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>开票订单表-详情</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
- <!-- 所有的 css js 资源 -->
- <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- <style type="text/css">
- .c-panel .c-label {
- width: 8em;
- }
- </style>
- </head>
- <body>
- <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
- <!-- ------- 内容部分 ------- -->
- <div class="s-body">
- <div class="c-panel">
- <el-form v-if="m">
- <el-row>
- <el-collapse value='1'>
- <el-collapse-item name="1">
- <div slot="title">
- 基础信息
- </div>
- <div>
- <el-row>
- <el-col span="12">
- <sa-info name="业务名称" br>{{m.businessName}}</sa-info>
- <sa-info name="业务订单号" br>{{m.businessNo}}</sa-info>
- <sa-info name="微信支付订单号" br>{{m.transactionId}}</sa-info>
- <sa-info name="账单金额" br>{{m.billMoney}}</sa-info>
- <sa-info name="开票时间" br>{{m.invoiceTime}}</sa-info>
- </el-col>
- <el-col span="12">
- <sa-info type="img" name="账单截图" :value="m.billImage" br></sa-info>
- <sa-info type="enum" name="开票状态" :value="m.status"
- :jv="{0: '未申请', 1: '已申请', 2: '已开票'}" br></sa-info>
- <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
- </el-col>
- </el-row>
- </div>
- </el-collapse-item>
- </el-collapse>
- </el-row>
- <el-row>
- <el-collapse value='1'>
- <el-collapse-item name="1">
- <div slot="title">
- 收费明细
- </div>
- <el-table :data="feeDetails" style="width: 100%">
- <el-table-column label="收费项目">
- <template slot-scope="s">
- <b v-if="s.row.feeType == 1">核酸检测</b>
- <b v-if="s.row.feeType == 2">消杀作业</b>
- <b v-if="s.row.feeType == 3">装卸作业</b>
- <b v-if="s.row.feeType == 4">停车费</b>
- <b v-if="s.row.feeType == 5">过磅费</b>
- <b v-if="s.row.feeType == 6">入场管理费</b>
- <b v-if="s.row.feeType == 7">充电打冷作业</b>
- </template>
- </el-table-column>
- <el-table-column label="业务类型" prop="itemTypeName"></el-table-column>
- <el-table-column label="车型" prop="itemName"></el-table-column>
- <el-table-column label="车牌号" prop="carNo" width="90px"></el-table-column>
- <el-table-column label="数量" prop="num"></el-table-column>
- <el-table-column label="单价(元)" prop="unitPrice"></el-table-column>
- <el-table-column label="总价(元)" prop="itemPrice"></el-table-column>
- <el-table-column label="税率(%)">
- <template slot-scope="s">
- <span>{{s.row.taxRate * 100}}</span>
- </template>
- </el-table-column>
- <el-table-column label="税款(元)">
- <template slot-scope="s">
- <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- <el-table-column label="不含税金额(元)">
- <template slot-scope="s">
- <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- <el-table-column label="业务单号" width="140px">
- <template slot-scope="s">
- <span v-if="s.row.businessNo != null && s.row.businessNo != ''">{{s.row.businessNo}}</span>
- <span v-else>{{s.row.businessCarNo}}</span>
- </template>
- </el-table-column>
- <!-- <sa-td name="订单编号" prop="transactionId" width="220px" ></sa-td>-->
- <el-table-column label="微信支付业务单号" width="220px">
- <template slot-scope="s">
- <el-tooltip :content="s.row.transactionId" placement="bottom" effect="light">
- <el-button class="keyButton">{{ s.row.transactionId }}</el-button>
- </el-tooltip>
- </template>
- </el-table-column>
- </el-table>
- </el-collapse-item>
- </el-collapse>
- </el-row>
- </el-form>
- </div>
- </div>
- <!-- ------- 底部按钮 ------- -->
- <div class="s-foot">
- <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
- <el-button @click="sa.closeCurrIframe()">取消</el-button>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
- },
- el: '.vue-box',
- data: {
- id: sa.p('id', 0), // 获取数据ID
- m: null,
- feeDetails: ''
- },
- methods: {
- getDetails(tranId) {
- if(tranId){
- sa.ajax('/TbInvoiceOrder/getDetailsByTransId?transactionId=' + tranId, function (res) {
- this.feeDetails = res.data;
- }.bind(this))
- }else {
- if(this.m.preOrderNum){
- sa.ajax('/TbInvoiceOrder/getDetailsByBusinessId?preOrderNum=' + this.m.preOrderNum, function (res) {
- this.feeDetails = res.data;
- }.bind(this))
- }
- }
- }
- },
- mounted: function () {
- sa.ajax('/TbInvoiceOrder/getById?id=' + this.id, function (res) {
- this.m = res.data;
- this.getDetails(this.m.transactionId);
- if (res.data == null) {
- sa.alert('未能查找到 id=' + this.id + " 详细数据");
- }
- }.bind(this))
- }
- })
- </script>
- </body>
- </html>
|