ovwn.vue 4.32 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
<template>
  <div class="eibs-tab">

    <c-col :span="12">
      <c-col :span="12">
        <el-form-item label="交易代码" prop="rec.trncod">
          <c-select v-model="model.rec.trncod" @change="changeTrncod" :loading="searchLoading" :disabled="isDisabled" style="width: 100%" placeholder="请选择交易代码" dbCode="PMSTRN">
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item style="text-align: left; margin-left: 5px" label-width="0px" prop="rec.trnnam">
          <c-input v-model="model.rec.trnnam" disabled style="text-align: left; width: 100%" placeholder="">
          </c-input>
          <!-- <c-select-value-to-label v-model="model.rec.trncod" dbCode="ATPTXT" disabled>
					</c-select-value-to-label> -->
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <el-table :data="model.trnbchlst" :total="model.total" height="500" :sticky-header="true" :border="true">
        <el-table-column label="权限控制标识" prop="pmsflg" width="auto">
          <template v-slot="scope">
            <div class="checkbox-container">
              <el-checkbox v-model="scope.row.pmsflg" true-label="X" false-label="" disabled></el-checkbox>
            </div>
          </template>
        </el-table-column>
        <el-table-column label="机构代码" prop="branch" width="auto">
        </el-table-column>
        <el-table-column label="机构名称" prop="bchnam" width="auto">
        </el-table-column>
        <el-table-column label="操作用户" prop="usrnam" width="auto">
        </el-table-column>
        <el-table-column label="操作日期" prop="pmsdat" width="auto">
        </el-table-column>
        <el-table-column label="INR" prop="inr" width="auto">
        </el-table-column>
        <el-table-column label="机构INR" prop="bchinr" width="auto">
        </el-table-column>
      </el-table>
    </c-col>

    <!-- <c-col :span="24">
      <c-paging-table :data="model.trnbchlst" :pageNumber="model.pageNum" :pageSize="model.pageSize" :total="model.total" v-on:queryFunc="queryFunc" :border="true">
        <el-table-column label="权限控制标识" prop="pmsflg" width="auto">
          <template v-slot="scope">
            <div class="checkbox-container">
              <el-checkbox v-model="scope.row.pmsflg" true-label="X" false-label="" disabled></el-checkbox>
            </div>
          </template>
        </el-table-column>
        <el-table-column label="机构代码" prop="branch" width="auto">
        </el-table-column>
        <el-table-column label="机构名称" prop="bchnam" width="auto">
        </el-table-column>
        <el-table-column label="操作用户" prop="usrnam" width="auto">
        </el-table-column>
        <el-table-column label="操作日期" prop="pmsdat" width="auto">
        </el-table-column>
        <el-table-column label="INR" prop="inr" width="auto">
        </el-table-column>
        <el-table-column label="机构INR" prop="bchinr" width="auto">
        </el-table-column>
      </c-paging-table>
    </c-col> -->

    <c-col :span="24" style="padding-top:30px">
      <span>权限控制标识勾选则表示该机构对应交易的业务权限被控制</span>
    </c-col>
  </div>
</template>

<script>
import event from "../event";
import codes from "~/config/CodeTable";
import { queryByTrncod } from "~/service/manage/tbp.js";
import commonFunctions from "~/mixin/commonFunctions.js";
import commonDepend from "~/mixin/commonDepend.js";

export default {
  props: ["model"],
  inject: ["root"],
  mixins: [event, commonFunctions, commonDepend],
  data() {
    return {
      pagination: {
        pageNum: 1,
        pageSize: 10,
        total: 0
      },
      tableData: [],
      searchLoading: false,
      
    };
  },
  computed: {
    isDisabled() {
      if(this.model.lev !== "0") {
        return true;
      } else {
        return false;
      }
    }
  },
  mounted() {},
  methods: {
    // onSearch() {
    //   this.model.pageSize = PageSize;
    //   this.model.pageNum = 1;
    //   this.onDbitbpSearch();
    // },

    // queryFunc(pageNumber, pageSize) {
    //   this.model.pageNum = pageNumber;
    //   this.model.pageSize = pageSize;
    //   this.onDbitbpSearch();
    // }
  }
};
</script>

<style scoped>
.checkbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>