123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <template>
- <div class="main-contain">
- <div class="position">
- <bread-crumb :crumbs="crumbs"></bread-crumb>
- <div>
- <el-button type="warning" @click="approval">反审核</el-button>
- <el-button type="warning" @click="examine">审核</el-button>
- <el-button type="primary" @click="Add">新增</el-button>
- </div>
- </div>
- <div class="app-container">
- <div
- style="
- justify-content: flex-start;
- margin: 0px 0 12px 0;
- display: flex;
- align-items: center;
- "
- >
- <div>
- <el-input
- size="small"
- style="width: 200px; margin-left: 10px"
- class="filter-item"
- v-model.trim="keywords"
- />
- <el-button
- size="small"
- class="filter-item"
- type="primary"
- icon="el-icon-search"
- @click="search"
- >查看</el-button
- >
- </div>
- <div>
- 单据日期:
- <el-date-picker v-model="value1" type="date" placeholder="选择日期">
- </el-date-picker>
- <el-button
- size="small"
- class="filter-item"
- type="primary"
- icon="el-icon-search"
- @click="search"
- >查看</el-button
- >
- </div>
- </div>
- <el-table
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266',
- }"
- :data="tableData"
- border
- @selection-change="handleSelectionChange"
- >
-
- <el-table-column type="selection" width="55"> </el-table-column>
- <el-table-column label="单据编号" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.drug_name ? scope.row.drug_name : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="单据日期" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.drug_spec ? scope.row.drug_spec : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="商品名称" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="调出仓库" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="调入仓库" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="制单人" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="审核人" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="审核时间" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" width="260px">
- <template slot-scope="scope">
- <el-tooltip class="item" content="编辑" placement="top-start">
- <el-button
- icon="el-icon-edit-outline"
- size="small"
- type="primary"
- @click="toEdit(scope.row)"
- >
- </el-button>
- </el-tooltip>
- <el-tooltip class="item" content="删除" placement="top-start">
- <el-button
- icon="el-icon-delete"
- size="small"
- type="danger"
- @click="toDelete(scope.row, scope.row.$index)"
- >
- </el-button>
- </el-tooltip>
-
- <el-tooltip class="item" content="详情" placement="top-start">
- <el-button
- icon="el-icon-view"
- size="small"
- type="primary"
- @click="toDetails(scope.row, scope.row.$index)"
- >
- </el-button>
- </el-tooltip>
- </template>
- </el-table-column>
- </el-table>
-
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :page-sizes="[10, 50, 100, 200, 500, 1000]"
- :page-size="10"
- background
- align="right"
- style="margin-top: 20px"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- >
- </el-pagination>
- </div>
- </div>
- </template>
-
- <script>
- import BreadCrumb from "@/xt_pages/components/bread-crumb";
- export default {
- components: {
- BreadCrumb,
- },
- data() {
- return {
- crumbs: [
- { path: false, name: "库房管理" },
- { path: "/stock/warehousequery", name: "库存调拨" },
- ],
- value1: "",
- total: 0,
- page: 1,
- limit: 10,
- tableData: [{}, {}],
- };
- },
-
- methods: {
- // 初始化数据
- init() {},
-
- // 反审核
- approval() {},
-
- // 审核
- examine() {},
-
- // 添加
- Add() {
- this.$router.push({path:"/stock/inventoryTransfer/Addtrans"})
- },
-
- // 删除
- toDelete() {},
-
- // 详情查看
- toDetails() {
- this.$router.push({path:"/stock/inventoryTransfer/transDetails"})
- },
-
- // 表单全选
- handleSelectionChange() {},
-
- // 页表操作
- handleSizeChange(val) {
- this.limit = val;
- this.init();
- },
- handleCurrentChange(val) {
- this.page = val;
- this.init();
- },
-
- // 表格样式
- changColor({ rowIndex }) {
- if (rowIndex % 2 == 1) {
- return {
- backgroundColor: "#C4E1FF",
- color: "#303133",
- };
- } else {
- return {
- backgroundColor: "#ACD6FF",
- color: "#303133",
- };
- }
- },
- },
- };
- </script>
-
- <style rel="stylesheet/css" lang="scss" scoped>
- </style>
|