<template>
|
<div ref="container" class="page-list-container">
|
<!--数据Table-->
|
<yrt-data-list :ref="dataListRef" :editor-ref="editorRef" :data-options="dataOptions" :fields.sync="dataListOptions.fields" :buttons="dataListOptions.buttons" :button-click="buttonClick" :data-list-selections.sync="dataListSelections" :auth-nodes="authNodes">
|
</yrt-data-list>
|
<!--数据编辑器Editor-->
|
<yrt-editor :ref="editorRef" :data-list-ref="dataListRef" v-bind="editorOptions" :data-options="dataOptions" :action.sync="editorOptions.action" :top.sync="editorOptions.top" :visible.sync="editorOptions.config.visible" :detail-button-click="detailButtonClick" :auth-nodes="authNodes" :btn-read-only="btnReadOnly" :use-detail-slot="['SortingStatus']">
|
|
</yrt-editor>
|
|
</div>
|
</template>
|
|
<script>
|
import baseLayout from "@/components/common/base-layout.vue";
|
import yrtSelector from "@/components/common/yrtSelector.vue";
|
|
export default {
|
name: "tms-way-vtms-bill-list",
|
components: { yrtSelector },
|
mixins: [baseLayout],
|
data() {
|
return {};
|
},
|
methods: {
|
buttonClick(authNode) {
|
switch (authNode) {
|
case "exportbill":
|
// 批量审核
|
return this.exporbill();
|
}
|
},
|
// 账单导出
|
exporbill() {
|
var where = this.dataList.getAllWhere();
|
where = where.replace("wayBillCode", "W.wayBillCode");
|
var url = "/api/tms/wayBill/exportbill";
|
const params = {
|
code: where
|
};
|
var callback = res => {
|
this.common.showMsg(res);
|
if (res.result) {
|
window.open(this.common.domain + "/api/common/download?url=" + res.data.url);
|
}
|
};
|
this.common.ajax(url, params, callback, true);
|
}
|
}
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
.box-card {
|
.upload-bill {
|
width: 480px;
|
.el-upload__tip {
|
margin-top: 20px;
|
}
|
}
|
.scrollbar-wrap {
|
max-height: 600px !important;
|
}
|
}
|
</style>
|