123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <!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/print/jquery-2.0.3.js" type="text/javascript"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- <style type="text/css">
- .s-body {
- margin: 0;
- }
- .c-panel .c-label {
- width: 8em;
- }
- .title {
- text-align: center;
- font-size: 20px;
- font-weight: bold;
- padding: 0 0 20px 0px;
- }
- </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-col span="12">
- <sa-info name="车牌号" br>{{m.carNo}}</sa-info>
- <sa-info name="车牌颜色" br>{{m.color}}</sa-info>
- <sa-info name="车牌规格(米)" br>{{m.carSize}}</sa-info>
- <sa-info name="入场时间" br>{{m.realInTime}}<label v-if="m.inTimeSupplement===1">(补)</label>
- </sa-info>
- <sa-info name="补录时间" br v-if="m.inTimeSupplementTime">{{m.inTimeSupplementTime}}
- </sa-info>
- <sa-info name="入场通道" br>{{m.inChannel}}</sa-info>
- <sa-info name="备注" br v-if="m.remark">{{m.remark}}</sa-info>
- <sa-info type="img" name="入场图片" :value="m.inImage" br></sa-info>
- </el-col>
- <el-col span="12">
- <sa-info name="离场时间" br>{{m.realOutTime}}<label
- v-if="m.outTimeSupplement===1">(补)</label></sa-info>
- <sa-info name="补录时间" br v-if="m.outTimeSupplementTime">{{m.outTimeSupplementTime}}
- </sa-info>
- <sa-info name="离场通道" br>{{m.outChannel}}</sa-info>
- <sa-info name="停车费" br>{{m.money}}元</sa-info>
- <sa-info name="重量" br>
- <label v-if="m.netWeight">{{m.netWeight}}吨</label>
- <label v-else>未过磅</label>
- </sa-info>
- <sa-info name="支付状态" br>{{m.payType}}</sa-info>
- <sa-info name="出场确认说明" br v-if="m.outRemark">{{m.outRemark}}</sa-info>
- <sa-info type="img" name="离场图片" :value="m.outImage" br></sa-info>
- </el-col>
- <!-- <el-col span=8>
- <sa-info name="重量" br>
- <label v-if="m.netWeight">{{m.netWeight}}吨</label>
- <label v-else>未过磅</label>
- </sa-info>
- <sa-info name="过磅费" br>{{m.netweightMoney}}元</sa-info>
- <sa-info style="margin-top: 0;" type="enum" name="审核状态" :value="m.payNetweightMoney"
- :jv="{0: '未支付', 1: '已支付'}" br>
- </sa-info>
- <sa-info style="margin-top: 0;" name="支付时间" br>
- {{m.netweightMoneyTime}}
- </sa-info>
- </el-col> -->
- </el-row>
- <el-row v-if="businessList.length>0">
- <el-collapse value='1'>
- <el-collapse-item name="1">
- <div slot="title">
- 业务列表
- </div>
- <el-table :data="businessList" style="width: 100%">
- <sa-td name="业务单号" prop="no" width="180"></sa-td>
- <sa-td name="客户名称" prop="customerName" width="200"></sa-td>
- <sa-td name="企业" prop="pickCustomerName" width="170"></sa-td>
- <sa-td name="业务项" prop="goodsName" width="160"></sa-td>
- <sa-td name="费用(元)" prop="itemPrice" width="120"></sa-td>
- <sa-td name="已支付(元)" prop="payMoney" width="140"></sa-td>
- <sa-td width="160" name="创建时间" prop="createTime" width="140"></sa-td>
- </el-table>
- </el-collapse-item>
- </el-collapse>
- </el-row>
- <el-row v-if="tableData.length>0">
- <el-collapse value='2'>
- <el-collapse-item name="2">
- <div slot="title">
- 具体业务项(<span style="color: red;">总费用{{totalMoney}}元</span>)
- </div>
- <el-table :data="tableData" style="width: 100%">
- <el-table-column prop="itemTypeName" label="收费项" width="180">
- </el-table-column>
- <el-table-column prop="itemName" label="收费明细" width="200">
- </el-table-column>
- <el-table-column prop="itemPrice" label="单价" width="170">
- </el-table-column>
- <el-table-column prop="unit" label="计费标准" width="160">
- </el-table-column>
-
- <el-table-column prop="num" label="数量">
- </el-table-column>
- <el-table-column prop="total" label="合计" width="120">
- </el-table-column>
- <el-table-column prop="cabinetNo" label="柜号">
- </el-table-column>
- <el-table-column prop="cabinetType" label="取/存">
- <template slot-scope="s">
- <label v-if="s.row.cabinetType==-1">-</label>
- <label v-if="s.row.cabinetType==0">存柜</label>
- <label v-if="s.row.cabinetType==1">取柜</label>
- </template>
- </el-table-column>
- <el-table-column prop="cabinetType" label="柜状态">
- <template slot-scope="s">
- <label v-if="s.row.cabinetStatus==0">未取</label>
- <label v-if="s.row.cabinetStatus==1">已取</label>
- </template>
- </el-table-column>
- <el-table-column prop="coldStartTime" label="开始时间" width="160">
- </el-table-column>
- <sa-td name="开始时间图片" width="130" prop="startImage" type="img">
- </sa-td>
- <el-table-column prop="coldEndTime" label="结束时间" width="160">
- </el-table-column>
- <sa-td name="结束时间图片" width="130" prop="endImage" type="img">
- </sa-td>
-
- <el-table-column prop="payStatus" label="支付状态" width="100">
- <template slot-scope="s">
- <span v-if="s.row.itemName=='人工、机械装卸车辆'">
- <span v-if="m.payUnloadMoney==0">未支付</span>
- <span v-else>已支付</span>
- </span>
- <span v-else>
- <span v-if="s.row.payStatus==1">已支付</span>
- <span v-else>未支付</span>
- </span>
- </template>
- </el-table-column>
- <el-table-column prop="refundMoney" label="退款金额">
- </el-table-column>
- <el-table-column prop="payTime" label="支付时间" width="140">
- </el-table-column>
- <el-table-column prop="remark" label="备注" width="140">
- </el-table-column>
- </el-table>
- </el-collapse-item>
- </el-collapse>
- </el-row>
- </el-form>
- </div>
- </div>
- <!-- ------- 底部按钮 ------- -->
- <div class="s-foot">
- <!-- <el-button v-if="sa.isAuth('tb-business-car-judge')&&m.businessType===1&&m.confirmJudge!=1"
- class="c-btn" type="success" icon="el-icon" @click="pass()">审核通过</el-button>
- <el-button v-if="sa.isAuth('tb-business-car-judge')&&m.businessType===1&&m.confirmJudge==1"
- class="c-btn" type="warning" icon="el-icon" @click="callback()">审核驳回</el-button> -->
- <el-button v-if="sa.isAuth('tb-business-car-print')&&m.pay===1&&m.businessType===1" type="success"
- @click="printFn()">打印</el-button>
- <el-button type="success" @click="sa.closeCurrIframe()">关闭</el-button>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
- },
- el: '.vue-box',
- data: {
- businessList: [],
- tableData: [],
- id: sa.p('id', 0), // 获取数据ID
- m: {}
- },
- computed: {
- totalMoney() {
- let businessList = this.businessList;
- let money = 0;
- for (let i in businessList) {
- money += parseFloat(businessList[i].itemPrice);
- }
- return money;
- }
- },
- methods: {
- pass() {
- sa.ajax('/TbBusinessCar/confirmJudgePass', {
- id: this.id
- }, function(res) {
- let msg = res.msg;
- if (msg) {
- sa.alert(msg, this.clean);
- return;
- }
- sa.alert('审核通过', this.clean);
- }.bind(this))
- },
- callback() {
- let that = this;
- layer.prompt({
- title: '填写审核意见'
- }, function(content, index) {
- layer.close(index);
- sa.ajax('/TbBusinessCar/callback', {
- id: that.id,
- judgeContent: content
- }, function(res) {
- sa.alert('已驳回', that.clean);
- })
- });
- },
- clean() {
- parent.app.f5();
- sa.closeCurrIframe();
- },
- printFn() {
- sa.showIframe('凭据打印', 'tb-business-car-print.html?businessCarId=' + this.id, '800px', '100%');
- },
- getItemsByCarId() {
- sa.ajax('/TbBusinessItem/getByBusinessCarId', {
- businessCarId: this.id
- }, function(resp) {
- this.tableData = resp.data;
- }.bind(this))
- },
- getByBusinessCarId() {
- sa.ajax('/TbBusiness/getByBusinessCarId', {
- businessCarId: this.id
- }, function(resp) {
- this.businessList = resp.data;
- }.bind(this))
- },
- getById() {
- sa.ajax('/TbBusinessCar/getById?id=' + this.id, function(res) {
- this.m = res.data;
- if (res.data == null) {
- sa.alert('未能查找到 id=' + this.id + " 详细数据");
- }
- }.bind(this))
- }
- },
- mounted: function() {
- this.getById();
- this.getItemsByCarId();
- this.getByBusinessCarId();
- }
- })
- </script>
- </body>
- </html>
|