123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>收费明细表-列表</title>
- <meta 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>
- </head>
- <style>
- @page {
- size: portrait;
- /* 纵向 */
- margin: 1.5cm 2.5cm 1.5cm 2.5cm;
- * 边距 上右下左 */
- }
- .keyButton.el-button {
- width: 100%;
- overflow: hidden;
- text-align: left;
- text-overflow: ellipsis;
- white-space: nowrap;
- border: 0 !important;
- background: transparent;
- padding: 0 !important;
- }
- .keyButton.el-button:hover {
- border: 0 !important;
- background: transparent;
- padding: 0 !important;
- }
- .price-t {
- font-size: 14px;
- font-weight: bold;
- line-height: 2em;
- margin-bottom: 3px;
- float: right;
- }
- </style>
- <body>
- <div class="vue-box" style="display: none;" :style="'display: block;'">
- <div class="c-panel">
- <!-- ------------- 检索参数 ------------- -->
- <div class="c-title">检索参数</div>
- <el-form ref="form" :model='p' @submit.native.prevent>
- <div class="c-item">
- <label class="c-label">类型:</label>
- <el-select v-model="p.type" placeholder="请选择" filterable>
- <el-option label="停车费" value="4"></el-option>
- <el-option label="业务费" value="1,2,3,5,6,7"></el-option>
- </el-select>
- </div>
- <sa-item type="text" name="车型" v-model="p.itemName"></sa-item>
- <sa-item type="text" name="车牌号" v-model="p.carNo"></sa-item>
- <sa-item type="text" name="业务单号" v-model="p.businessNo"></sa-item>
- <div class="c-item">
- <label class="c-label">收费项目:</label>
- <el-select v-model="p.feeType" placeholder="请选择" filterable>
- <el-option label="核酸检测" value="1"></el-option>
- <el-option label="消杀作业" value="2"></el-option>
- <el-option label="装卸作业" value="3"></el-option>
- <el-option label="停车业务" value="4"></el-option>
- <el-option label="过磅费" value="5"></el-option>
- <el-option label="入场管理费" value="6"></el-option>
- <el-option label="充电打冷作业" value="7"></el-option>
- </el-select>
- </div>
- <div class="c-item">
- <label class="c-label">业务类型:</label>
- <el-select v-model="p.itemTypeName" placeholder="请选择" filterable>
- <el-option v-for="item in itemTypeList" :key="item.id" :label="item.name"
- :value="item.name">
- </el-option>
- </el-select>
- </div>
- <div class="c-item">
- <label class="c-label">日期范围:</label>
- <el-date-picker size="mini" v-model="selectTime" type="daterange" unlink-panels="false"
- range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
- format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd">
- </el-date-picker>
- </div>
- <div class="c-item">
- <label class="c-label">是否开票:</label>
- <el-select v-model="p.isInvoice" placeholder="请选择" filterable>
- <el-option label="全部" value=""></el-option>
- <el-option label="未开票" value="0"></el-option>
- <el-option label="已开票" value="1"></el-option>
- </el-select>
- </div>
- <sa-item type="text" name="微信支付号" v-model="p.transactionId"></sa-item>
- <sa-item type="text" name="作业公司" v-model="p.pickCustomerName"></sa-item>
- <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
- <el-button type="info" @click="sa.f5()">刷新</el-button>
- <el-button type="warning" v-if="sa.isAuth('tb-statistics-export')" @click="exportFn()">导出
- </el-button>
- <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-statistics-print')"
- @click="print()">打印</el-button>
- <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-kaidan-confirm')"
- @click="kaiDanConfirm()">开单确认</el-button>
- <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-diaodu-confirm')"
- @click="diaoDuConfirm()">复核确认</el-button>
- <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-jicha-confirm')"
- @click="jiChaConfirm()">稽查确认</el-button>
- <el-button class="c-btn" type="danger" icon="el-icon" v-if="sa.isAuth('tb-jicha-cancel')"
- @click="jiChaCancel()">取消确认</el-button>
- <slot></slot>
- <div class="price-t">
- 总共<span
- style="color: #ff6600">  {{dataCount}}  </span>条      
- 总金额<span style="color: #ff6600">  {{totalPrice}}  </span>元
- </div>
- <br />
- </el-form>
- <!-- ------------- 数据列表 ------------- -->
- <el-table class="data-table" ref="data-table" :data="dataList" show-summary :summary-method="getSumRol"
- style="margin-top: 10px;">
- <sa-td type="selection"></sa-td>
- <sa-td name="收费项目" prop="feeType" type="enum"
- :jv="{1: '核酸检测',2: '消杀作业', 3: '装卸作业', 4: '停车业务', 5: '过磅费', 6: '入场管理费', 7: '充电打冷作业'}"></sa-td>
- <sa-td name="业务类型" prop="itemTypeName"></sa-td>
- <sa-td name="车型" prop="itemName"></sa-td>
- <sa-td name="车牌号" prop="carNo" width="90px"></sa-td>
- <!-- <sa-td name="重量(kg)" prop="weight"></sa-td> -->
- <sa-td name="数量" prop="num"></sa-td>
- <sa-td name="单价(元)" prop="unitPrice"></sa-td>
- <sa-td name="总价(元)" prop="itemPrice"></sa-td>
- <sa-td name="缴费方式" prop="module"></sa-td>
- <sa-td name="结算状态" prop="isSettle" type="enum" :jv="{0: '未结算',1: '已结算'}"></sa-td>
- <sa-td name="复核状态" prop=""></sa-td>
- <!-- <sa-td name="税率(%)" prop="taxRate" ></sa-td>-->
- <el-table-column label="税率(%)">
- <template slot-scope="s">
- <span>{{s.row.taxRate * 100}}</span>
- </template>
- </el-table-column>
- <!-- <sa-td name="税款(元)" prop="taxPrice" ></sa-td>-->
- <el-table-column label="税款(元)">
- <template slot-scope="s">
- <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- <!-- <sa-td name="不含税金额(元)" prop="noTaxPrice" ></sa-td>-->
- <el-table-column label="不含税金额(元)">
- <template slot-scope="s">
- <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- <!-- <sa-td name="收款方式" prop="payType" type="enum" :jv="{3: '微信支付'}"></sa-td>
- <sa-td name="收款种类" prop="payMode" type="enum" :jv="{1: '直接收款'}"></sa-td> -->
- <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>
- <sa-td name="作业编号" prop="businessItemNo" width="145px"></sa-td>
- <sa-td name="作业公司" prop="pickCustomerName"></sa-td>
- <sa-td name="客户名称" prop="customerName"></sa-td>
- <sa-td name="发票号" prop="invoice" width="145px"></sa-td>
- <sa-td name="主体名称" prop="entityName"></sa-td>
- <sa-td name="生成时间" prop="createTime" width="150px"></sa-td>
- <sa-td name="付款时间" prop="payTime" width="150px"></sa-td>
- <sa-td name="更新时间" prop="updateTime" width="150px"></sa-td>
- <sa-td name="备注" prop="remark"></sa-td>
- <sa-td name="开单员" prop="kaiDanPerson" width="80px"></sa-td>
- <sa-td name="复核员" prop="diaoDuPerson" width="80px"></sa-td>
- <sa-td name="统计稽查员" prop="jiChaPerson" width="80px"></sa-td>
- </el-table>
- <!-- ------------- 分页 ------------- -->
- <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
- </sa-item>
- </div>
- <el-dialog title="提示" :visible.sync="emodel.visible" width="38%">
- <div class="c-item">
- <label class="c-label">收费项目:</label>
- <el-select v-model="emodel.form.feeType" placeholder="请选择" filterable>
- <el-option label="核酸检测" value="1"></el-option>
- <el-option label="消杀作业" value="2"></el-option>
- <el-option label="装卸作业" value="3"></el-option>
- <el-option label="停车费" value="4"></el-option>
- <el-option label="过磅费" value="5"></el-option>
- <el-option label="入场管理费" value="6"> </el-option>
- <el-option label="充电打冷作业" value="7"> </el-option>
- </el-select>
- </div>
- <div class="c-item">
- <label class="c-label">业务类型:</label>
- <el-select v-model="emodel.form.itemTypeName" placeholder="请选择" filterable>
- <el-option v-for="item in itemTypeList" :key="item.id" :label="item.name" :value="item.name">
- </el-option>
- </el-select>
- </div>
- <div class="c-item">
- <label class="c-label"><span style="color: red;">*</span>日期范围:</label>
- <el-date-picker size="mini" v-model="exportTime" type="daterange" unlink-panels="false"
- range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" format="yyyy 年 MM 月 dd 日"
- value-format="yyyy-MM-dd">
- </el-date-picker>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="emodel.visible = false">取 消</el-button>
- <el-button type="primary" @click="">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
- },
- el: '.vue-box',
- data: {
- count:0,
- p: { // 查询参数
- id: '', // 主键
- businessNo: '', // 业务单号
- transactionId: '', //微信支付号
- pickCustomerName: '',
- carNo: '', // 车牌号
- feeType: '', //收费类型
- itemTypeId: '', // 业务类型id
- itemTypeName: '', // 业务类型
- itemName: '', // 业务项
- itemPrice: '', // 项目金额(元)
- payDay: '', // 支付日期
- payType: '', // 支付方式(3=微信支付)
- createTime: '', // 创建时间
- pageNo: 1, // 当前页
- pageSize: 10, // 页大小
- sortType: 11, // 排序方式
- type: '',
- isInvoice: '', //是否开票
- },
- dataCount: 0,
- dataList: [], // 数据集合
- itemTypeList: [],
- selectTime: [],
- selectTimeRange: {
- beginTime: '', //查询开始时间
- endTime: '', //查询结束时间
- },
- exportTime: [],
- emodel: {
- visible: false,
- form: {
- // payDay: ''
- feeType: '',
- itemTypeName: '',
- beginTime: '', //查询开始时间
- endTime: '', //查询结束时间
- }
- },
- totalPrice: 0,
- tableSum: {
- itemPriceSum: 0,
- taxPriceSum: 0,
- noTaxPriceSum: 0,
- },
- },
- methods: {
- getSumRol(param) {
- const columns = param.columns;
- const sums = [];
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = "合计";
- return;
- }
- //根据当前列绑定的字段名进行判断,根据字段名决定展示什么内容
- switch (column.label) {
- //金额;
- case "总价(元)":
- //在这里你就可以根据需要对数据进行一些处理(保留小数位数,加上单位等)
- sums[index] = this.tableSum.itemPriceSum;
- break;
- //人数
- case "税款(元)":
- sums[index] = this.tableSum.taxPriceSum;
- break;
- //件数;
- case "不含税金额(元)":
- sums[index] = this.tableSum.noTaxPriceSum;
- break;
- //不需要计算合计的列就展示‘--’
- default:
- sums[index] = "";
- break;
- }
- });
- return sums;
- },
- calcuSum() {
- var itemPriceSum = 0;
- var taxPriceSum = 0;
- var noTaxPriceSum = 0;
- var len = this.dataList.length;
- for (var i = 0; i < len; i++) {
- itemPriceSum = (itemPriceSum * 100 + this.dataList[i].itemPrice * 100) / 100;
- taxPriceSum = (taxPriceSum * 100 + this.dataList[i].taxPrice * 100) / 100;
- noTaxPriceSum = (noTaxPriceSum * 100 + this.dataList[i].noTaxPrice * 100) / 100;
- }
- this.tableSum.itemPriceSum = itemPriceSum;
- this.tableSum.taxPriceSum = Number(taxPriceSum).toFixed(2);
- this.tableSum.noTaxPriceSum = Number(noTaxPriceSum).toFixed(2);
- },
- getTotalPrice() {
- if (this.selectTime != null && this.selectTime.length != 0) {
- this.selectTimeRange.beginTime = this.selectTime[0];
- this.selectTimeRange.endTime = this.selectTime[1];
- }
- sa.ajax('/TbFeeDetails/getTotalMoney?beginTime=' + this.selectTimeRange.beginTime + '&endTime=' +
- this.selectTimeRange.endTime,
- sa.removeNull(this.p),
- function(res) {
- this.totalPrice = res.data.itemPriceSum;
- this.tableSum.itemPriceSum = res.data.itemPriceSum;
- this.tableSum.taxPriceSum = res.data.taxPriceSum;
- this.tableSum.noTaxPriceSum = res.data.noTaxPriceSum;
- }.bind(this));
- },
- kaiDanConfirm() {
- let selection = this.$refs['data-table'].selection;
- let ids = sa.getArrayField(selection, 'id');
- if (selection.length == 0) {
- return sa.msg('请至少选择一条数据')
- }
- this.$confirm('确定进行开单确认操作?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- }).then(() => {
- sa.ajax('/TbFeeDetails/kaiDanConfirm', {
- ids: ids.join(',')
- }, function(res) {
- this.f5();
- }.bind(this))
- }).catch(() => {
- });
- },
- diaoDuConfirm() {
- let selection = this.$refs['data-table'].selection;
- let ids = sa.getArrayField(selection, 'id');
- if (selection.length == 0) {
- return sa.msg('请至少选择一条数据')
- }
- this.$confirm('确定进行复核确认操作?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- }).then(() => {
- sa.ajax('/TbFeeDetails/diaoDuConfirm', {
- ids: ids.join(',')
- }, function(res) {
- this.f5();
- }.bind(this))
- }).catch(() => {
- });
- },
- jiChaConfirm() {
- let selection = this.$refs['data-table'].selection;
- let ids = sa.getArrayField(selection, 'id');
- if (selection.length == 0) {
- return sa.msg('请至少选择一条数据')
- }
- this.$confirm('确定进行稽查确认操作?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- }).then(() => {
- sa.ajax('/TbFeeDetails/jiChaConfirm', {
- ids: ids.join(',')
- }, function(res) {
- this.f5();
- }.bind(this))
- }).catch(() => {
- });
- },
- jiChaCancel() {
- let selection = this.$refs['data-table'].selection;
- let ids = sa.getArrayField(selection, 'id');
- if (selection.length == 0) {
- return sa.msg('请至少选择一条数据')
- }
- this.$confirm('确定进行开单确认操作?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- sa.ajax('/TbFeeDetails/jiChaCancel', {
- ids: ids.join(',')
- }, function(res) {
- this.f5();
- }.bind(this))
- }).catch(() => {
- });
- },
- print: function() {
- let selection = this.$refs['data-table'].selection;
- let ids = sa.getArrayField(selection, 'id');
- let params = '?';
- var str = '';
- if (selection.length > 0) {
- params += 'ids=' + ids.join(',');
- str = '所选项目';
- } else {
- if (this.selectTime != null && this.selectTime.length != 0) {
- this.selectTimeRange.beginTime = this.selectTime[0];
- this.selectTimeRange.endTime = this.selectTime[1];
- }
- var beginTime = this.selectTimeRange.beginTime;
- var endTime = this.selectTimeRange.endTime;
- var feeType = this.p.feeType;
- var itemTypeName = this.p.itemTypeName;
- if (beginTime === '' && endTime === '') {
- str += '所有时间';
- } else {
- str += beginTime + "至" + endTime
- }
- if (feeType === '') {
- str += "、所有收费项目";
- } else {
- var feeTypeName = '';
- if (feeType == 1) {
- feeTypeName = "核酸检测";
- } else if (feeType == 2) {
- feeTypeName = "消杀作业";
- } else if (feeType == 3) {
- feeTypeName = "装卸作业";
- } else if (feeType == 4) {
- feeTypeName = "停车费";
- } else if (feeType == 5) {
- feeTypeName = "过磅费";
- } else if (feeType == 6) {
- feeTypeName = "入场管理费";
- } else if (feeType == 7) {
- feeTypeName = "充电打冷作业";
- }
- str += "、收费项目为" + feeTypeName;
- }
- if (itemTypeName === '') {
- str += "、所有业务类型";
- } else {
- str += "、业务类型为" + itemTypeName;
- }
- let itemName = this.p.itemName;
- if (itemName) {
- str += '车型为:' + itemName;
- }
- params += 'beginTime=' + beginTime +
- "&endTime=" + endTime + "&feeType=" + feeType + "&itemTypeName=" +
- itemTypeName;
- }
- this.$confirm('确定打印' + str + '的数据?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- sa.showIframe('打印申报信息表', 'detailPrint.html' + params, '100%', '100%');
- }).catch(() => {
- });
- },
- exportFn() {
- let selection = this.$refs['data-table'].selection;
- let ids = sa.getArrayField(selection, 'id');
- var str = '';
- if (selection.length > 0) {
- this.p.ids = ids.join(',');
- str = '所选项目';
- } else {
- if (this.selectTime != null && this.selectTime.length != 0) {
- this.selectTimeRange.beginTime = this.selectTime[0];
- this.selectTimeRange.endTime = this.selectTime[1];
- }
- var beginTime = this.selectTimeRange.beginTime;
- var endTime = this.selectTimeRange.endTime;
- if (!beginTime && !endTime) {
- sa.error('导出时间必选');
- return;
- }
- var feeType = this.p.feeType;
- var itemTypeName = this.p.itemTypeName;
- if (beginTime === '' && endTime === '') {
- str += '所有时间';
- } else {
- str += beginTime + "至" + endTime
- }
- if (feeType === '') {
- str += "、所有收费项目";
- } else {
- var feeTypeName = '';
- if (feeType == 1) {
- feeTypeName = "核酸检测";
- } else if (feeType == 2) {
- feeTypeName = "消杀作业";
- } else if (feeType == 3) {
- feeTypeName = "装卸作业";
- } else if (feeType == 4) {
- feeTypeName = "停车费";
- } else if (feeType == 5) {
- feeTypeName = "过磅费";
- } else if (feeType == 6) {
- feeTypeName = "入场管理费";
- } else if (feeType == 7) {
- feeTypeName = "充电打冷作业";
- }
- str += "、收费项目为" + feeTypeName;
- }
- if (itemTypeName === '') {
- str += "、所有业务类型";
- } else {
- str += "、业务类型为" + itemTypeName;
- }
- let itemName = this.p.itemName;
- if (itemName) {
- str += '车型为:' + itemName;
- }
- }
- this.p.beginTime = beginTime;
- this.p.endTime = endTime;
- this.$confirm('确定导出' + str + '的数据?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- let uuid=new Date().getTime();
- this.p.uuid=uuid;
- sa.ajax('/TbFeeDetails/export/details', sa.removeNull(this.p),
- function(resp) {
- sa.loading('正在导出....');
- this.count=0
- this.checkExportUrl(uuid);
- }.bind(this));
- }).catch(() => {
- });
- },
- checkExportUrl(uuid) {
- sa.ajaxNoLoading('/TbFeeDetails/export/details/path?uuid=' + uuid,
- function(resp) {
- let url = resp.data;
- if (url) {
- sa.hideLoading();
- window.location.href = url;
- } else {
- let count=this.count;
- if(count>=30){
- sa.error('导出超时');
- sa.hideLoading();
- return;
- }
- setTimeout(() => {
- this.count=count+1
- this.checkExportUrl(uuid);
- }, 1000)
- }
- }.bind(this));
- },
- // 刷新
- f5: function() {
- if (this.selectTime != null && this.selectTime.length != 0) {
- this.selectTimeRange.beginTime = this.selectTime[0];
- this.selectTimeRange.endTime = this.selectTime[1];
- }
- if (!this.selectTime) {
- this.selectTimeRange.beginTime = '';
- this.selectTimeRange.endTime = '';
- }
- sa.ajax('/TbFeeDetails/getList?beginTime=' + this.selectTimeRange.beginTime + '&endTime=' +
- this.selectTimeRange.endTime,
- sa.removeNull(this.p),
- function(res) {
- this.dataList = res.data; // 数据
- this.dataCount = res.dataCount; // 数据总数
- sa.f5TableHeight(); // 刷新表格高度
- }.bind(this));
- this.getTotalPrice();
- },
- // 查看
- get: function(data) {
- sa.showIframe('数据详情', 'tb-fee-details-info.html?id=' + data.id, '1050px', '90%');
- },
- // 查看 - 根据选中的
- getBySelect: function(data) {
- var selection = this.$refs['data-table'].selection;
- if (selection.length == 0) {
- return sa.msg('请选择一条数据')
- }
- this.get(selection[0]);
- },
- getItemTypeList() {
- sa.ajax('/TbItemType/getList', {
- pageNo: 1,
- pageSize: 100
- }, function(resp) {
- this.itemTypeList = resp.data;
- }.bind(this));
- },
- },
- created: function() {
- this.f5();
- this.getItemTypeList();
- sa.onInputEnter();
- }
- })
- </script>
- </body>
- </html>
|