123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <!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>
- <script src="../../static/sa.js"></script>
- <script src="../../static/kj/upload-util.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>
- <div>
- <el-row>
- <el-col span="12">
- <sa-info name="业务项" br><span style="font-weight: bold;">{{m.goodsName}}</span>
- </sa-info>
- </sa-info>
- <sa-info name="业务编号" br>{{m.no}}</sa-info>
- <sa-info name="客户名称" br>
- <span v-if="m.customerName">{{m.customerName}}</span>
- <span>-</span>
- </sa-info>
- </el-col>
- <el-col span="12">
- <sa-info name="作业时间" br>{{m.operateTime}}</sa-info>
- <sa-info name="录入时间" br>{{m.createTime}}</sa-info>
- <sa-info name="业务费用" br>{{m.itemPrice}}(元)</sa-info>
- </el-col>
- </el-row>
- <el-row>
-
- <el-col span="12">
- <div class="c-item">
- <label class="c-label"><span style="color: red;">*</span>收费方式:</label>
- <el-select v-model="m.payType">
- <el-option label="现场收费" :value="1"></el-option>
- <el-option label="扣预存款" :value="5"></el-option>
- </el-select>
- </div>
- <div class="c-item">
- <label class="c-label"><span style="color: red;">*</span>收费时间:</label>
- <el-date-picker type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
- v-model="m.payTime"></el-date-picker>
- </div>
- <div class="c-item">
- <label class="c-label">备注:</label>
- <el-input placeholder="请输入内容" v-model="m.remark">
- </el-input>
- </div>
- </el-col>
- <el-col span="12">
- <div class="c-item">
- <label class="c-label"><span style="color: red;">*</span>收费种类:</label>
- <el-select v-model="m.payChannelType">
- <el-option label="微信系统收款" :value="1"></el-option>
- <el-option label="微信门店收款" :value="2"></el-option>
- </el-select>
- </div>
- <div class="c-item">
- <label class="c-label"><span style="color: red;" v-if="m.payType==1">*</span>微信支付号:</label>
- <el-input placeholder="微信支付号" v-model="m.transactionId">
- </el-input>
- </div>
- </el-col>
- </el-row>
- <el-row v-for="(item,index) in m.cars">
- <el-divider content-position="left"><label
- style="font-weight: bold;">车牌号:{{item.carNo}}</label></el-divider>
- <el-col span="12">
- <div class="c-item">
- <label class="c-label">入场时间:</label>
- <el-date-picker type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
- v-model="item.realInTime"></el-date-picker>
- </div>
- <div class="c-item">
- <label class="c-label">离场时间:</label>
- <el-date-picker type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
- v-model="item.realOutTime"></el-date-picker>
- </div>
- </el-col>
- <el-col span="12">
- <sa-item name="入场通道" placeholder="请输入入场通道" v-model="item.inChannel" br>
- </sa-item>
- <sa-item name="离场通道" placeholder="请输入离场通道" v-model="item.outChannel" br>
- </sa-item>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px;">
- <el-collapse value='1'>
- <el-collapse-item name="1">
- <div slot="title">
- 具体业务项
- <label
- style="color: red; font-weight: bold;margin-left: 20px;">合计:({{m.itemPrice}}元)</label>
- </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="180">
- </el-table-column>
- <el-table-column prop="itemPrice" label="单价">
- </el-table-column>
- <el-table-column prop="unit" label="计费标准">
- </el-table-column>
- <el-table-column prop="num" label="数量">
- </el-table-column>
- <el-table-column prop="total" label="合计">
- </el-table-column>
- </el-table>
- </el-collapse-item>
- </el-collapse>
- </el-row>
- </div>
- </el-row>
- </el-form>
- </div>
- </div>
- <!-- ------- 底部按钮 ------- -->
- <div class="s-foot">
- <!-- <el-button class="c-btn" type="success" icon="el-icon" @click="print()">打印单据</el-button> -->
- <el-button type="success" @click="confirmFn">确认线下收费</el-button>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
- },
- el: '.vue-box',
- data: {
- id: sa.p('id', 0), // 获取数据ID
- m: {
- payType:1
- },
- tableData: [],
- upload: {
- visible: false,
- form: {
- id: '',
- ticket: ''
- }
- }
- },
- methods: {
- confirmFn() {
- let m = this.m;
- if(!m.payTime){
- sa.error('收费时间必填')
- return;
- }
- if(m.payType==1&&!m.transactionId){
- sa.error('线下收费支付微信号必填')
- return;
- }
- let cars = m.cars;
- let obj = {
- id: m.id,
- cars: JSON.stringify(cars),
- remark: m.remark,
- payType:m.payType,
- payChannelType:m.payChannelType,
- payTime:m.payTime,
- transactionId:m.transactionId
- }
- sa.confirm('是否确认该业务已线下收费?', function() {
- sa.ajax('/TbBusiness/manualConfirm', obj, function(res) {
- parent.app.f5(); // 刷新父页面列表
- sa.closeCurrIframe(); // 关闭本页
- }.bind(this))
- }.bind(this));
- },
- getInfo() {
- sa.ajax('/TbBusiness/getOtherBusinessById?id=' + this.id, function(res) {
- let data = res.data;
- data.remark = '线下收费'
- this.m = data;
- this.tableData = res.data.items;
- }.bind(this))
- }
- },
- mounted: function() {
- this.getInfo()
- }
- })
- </script>
- </body>
- </html>
|