Menu.vue 8.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<template>
  <div class="eibs-tab">
     <el-form
      class="m-table-search-form"
      ref="paramsForm"
      :inline="true"
      label-position="right"
      label-width="110px"
      size="small"
    >
        <c-row>
            <c-col :span="24">
                <c-fullbox>
                    <el-form-item label="Type of items" prop="" style="width:100%">
                        <c-checkbox v-model="model.chkinc">Incomming</c-checkbox>
                        <c-checkbox v-model="model.chkdzt">E-Trade</c-checkbox>
                        <c-checkbox v-model="model.chkpen">Break</c-checkbox>
                        <c-checkbox v-model="model.chkcor">Correction</c-checkbox>
                        <c-checkbox v-model="model.chkaut">Automatic</c-checkbox>
                        <c-checkbox v-model="model.chkcan">归档</c-checkbox>
                        <c-checkbox v-model="model.chkbat">批量</c-checkbox>
                        <c-checkbox v-model="model.chkeco">三方付汇</c-checkbox>
23 24
                        <c-checkbox v-model="model.incpay">应收款</c-checkbox>
                        <c-checkbox v-model="model.outpay">应付款</c-checkbox>
25 26 27 28 29 30
                        <c-checkbox v-model="model.ecpay">三方收汇</c-checkbox>
                    </el-form-item>
                </c-fullbox>
            </c-col>
        </c-row>
            
taojinrui committed
31 32
        <c-col :span="24">
            <c-col :span="11">
nanrui committed
33
            <el-form-item label="汇款编号" prop="selobj" style="width:100%">
taojinrui committed
34 35
                <c-input v-model="model.selobj" style="width:100%"></c-input>
            </el-form-item>
36 37
            </c-col>

taojinrui committed
38
            <c-col :span="11" :offset="1">
39
            <el-form-item label="简略信息" prop="seltxt" style="width:100%">
taojinrui committed
40 41 42 43
                <c-input v-model="model.seltxt" style="width:100%"></c-input>
            </el-form-item>
            </c-col>
        </c-col>
44

taojinrui committed
45 46
        <c-col :span="24">
            <c-col :span= "11">
nanrui committed
47
            <el-form-item label="用户选择" prop="usfmod.flt" style="width:100%">
taojinrui committed
48 49 50 51 52 53 54 55 56 57
                <c-fullbox>
                    <c-select v-model="model.usfmod.flt"  placeholder="请输入Selection of User" style="width:100%">
                        <el-option 
                            v-for="item in flt"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        ></el-option>
                    </c-select>
                    <template slot="footer">
58
                        <c-button size="small" type="primary">Show_Set</c-button>
taojinrui committed
59 60 61 62
                    </template>
                </c-fullbox>
            </el-form-item>
            </c-col>
63

taojinrui committed
64 65 66 67 68 69 70
            <c-col :span="11" :offset="1">
            <el-form-item label="Between" prop="inidatfro" style="width:100%">
                <c-date-picker
                    type="date"
                    v-model="model.inidatfro"
                    value-format="yyyy-MM-dd"
                    style="width:48%"
nanrui committed
71
                    palceholder="请选择开立日期"
taojinrui committed
72
                ></c-date-picker>
73

taojinrui committed
74
                <span> - </span>
75

taojinrui committed
76 77 78 79 80 81 82 83
                <c-date-picker 
                    type="date"
                    v-model="model.inidattil"
                    value-format="yyyy-MM-dd"
                    style="width :48%"
                    placeholder="请选择Open Date to"
                ></c-date-picker>
            </el-form-item>
84
            </c-col>
taojinrui committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
        </c-col>

        <c-col
        :span="24"
        style="text-align: right; height: 36.8px"
        v-if="true"
      >
        <el-button size="small" @click="handleReset">重置</el-button>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="handleSearch"
          >查询</el-button
        >
        <!-- <el-button type="text" @click="searchToggle = true">
          收起
          <i class="el-icon-arrow-up"></i>
        </el-button> -->
      </c-col>
105
    </el-form> 
taojinrui committed
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 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152

    <c-col :span="24">
        <c-istream-table :list="stmData.data" :columns="stmData.columns" >
            <el-table-column fixed="right" prop="op" label="操作" width="140px">
            <template slot="header">
              <c-col :span="11" style="text-align: left"><span>操作</span></c-col>
            </template>
            <template slot-scope="scope">
              <el-popover
                placement="top-start"
                title="历史信息"
                width="800"
                trigger="click"
                :ref="'popover_' + scope.row.IDX"
              >
              <div style="text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;">
               <span class="el-icon-close" @click="closeTrn('popover_' + scope.row.IDX)"/>
              </div>
                <c-istream-table
                  :list="trnData.data"
                  :columns="trnData.columns"
                >
                  <el-table-column prop="op" label="操作" width="0">
                    <template slot-scope="scope">
                      <c-button
                        style="margin-left: 0"
                        size="small"
                        @click="display(scope.row['INR'])"
                      >
                        详情
                      </c-button>
                    </template>
                  </el-table-column>
                </c-istream-table>
                <c-button
                  style="margin-left: 0"
                  size="small"
                  @click="getTrnInfo(scope.$index, scope.row)"
                  slot="reference"
                >
                  详情
                </c-button>
              </el-popover>
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
nanrui committed
153
                @click="getButtons(scope.row['汇款编号'])"
taojinrui committed
154 155 156 157 158 159 160
              >
                处理
              </c-button>
            </template>
          </el-table-column>
        </c-istream-table>
    </c-col>
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Sptcpt/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {
            flt: [
                { label: "All Users", value: "<ALL>" },
                { label: "Selected User", value: "<SELU>" },
            ],
taojinrui committed
179 180
            stmData:{
                columns:[
nanrui committed
181 182
                    "4 1 \"交易代码\" 150 ",
                    "5 2 \"汇款编号\" 160",
183
                    "6 3 \"简略信息\" 120",
taojinrui committed
184
                    "7 5 \"Creation\" 101 20 30 1",
nanrui committed
185
                    "1 6 \"状态\" 160 1 0:0 1 SPT:STA",
taojinrui committed
186 187 188 189 190 191 192 193 194
                    "8 7 \"By User\" 166",
                    "15 8 \"Work User\" 176",
                    "17 9 \"Work Branch\" 176",
                    "16 10 \"Last User\" 176",
                    "3 11 \"Info\" 150 1 20:0 1 FormatINFDSP",
                    "10 12 \"Infotext\" 200"
                ],
                data:[],
            }
195 196
        }
    },
taojinrui committed
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
    methods:{
        ...Event,
        async getButtons(ownref) {
            this.ownref = ownref;
            this.$refs.childs.initdialog = true;
            console.log("ownref:" + ownref);
        },

        async onChoose(code) {
            //跳转交易
            this.$router.history.push("/business/" + code);
            this.$refs.childs.initdialog = false;
        },

        async getTrnInfo(idx, row) {
            this.model.objinr = row["INR"];
            this.model.inr = row["INR"];
            this.model.infcon.chksubcon = "X";

            this.dialogTableVisible = true;
            let rtnmsg = await this.executeDefault("infcon.chksubcon");

            if ((rtnmsg.respCode = SUCCESS)) {
                this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
            }
        },
        closeTrn(refId) {
            this.$refs[refId].doClose();
        },
    },
227 228 229 230 231 232 233 234
    created:function(){

    }
}
</script>
<style>

</style>