Infsea.vue 8.67 KB
Newer Older
wangren committed
1 2 3
<template>
  <div class="eibs-tab">
        <!-- ----------左 ---------->
潘际乾 committed
4
        <c-col :span="12" class="col-left">
wangren committed
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
          <c-col :span="24">
            <el-form-item label=" Name" prop="ptysea.nam">
              <c-input
                v-model="model.ptysea.nam"
                placeholder="请输入External Visible Name"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="Street" prop="adrsea.str1">
              <c-input
                v-model="model.adrsea.str1"
                maxlength="35"
                placeholder="请输入Street/SWIFT Line 3"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="City" prop="adrsea.loctxt">
              <c-input
                v-model="model.adrsea.loctxt"
                maxlength="25"
                placeholder="请输入Textpart of City/Second Part of SWIFT Line 4"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
LiRui committed
33
            <!-- PTY.IDTYPE -->
wangren committed
34 35 36 37 38 39 40 41 42 43 44 45
            <el-form-item label="客户类别" prop="persontype">
              <c-select
                v-model="model.persontype"
                style="width: 100%"
                placeholder="请选择客户类别"
                :code="codes.persontype"
              >
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="24">
LiRui committed
46
            <!-- PTA.BRANCHINR -->
wangren committed
47 48 49 50 51
            <el-form-item label="支行行号" prop="zhbchinr">
              <c-select
                v-model="model.zhbchinr"
                style="width: 100%"
                placeholder="请选择支行行号"
潘际乾 committed
52
                :code="getValues('zhbchinr')"
wangren committed
53 54 55 56 57 58
              >
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
        <!------------- 右 ---------->
潘际乾 committed
59
        <c-col :span="12" class="col-right">
wangren committed
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
          <c-col :span="24">
            <el-form-item label="Party No." prop="ptysea.extkey">
              <c-input
                v-model="model.ptysea.extkey"
                maxlength="24"
                placeholder="请输入Party No."
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="BIC " prop="adrsea.bic">
              <c-input
                v-model="model.adrsea.bic"
                maxlength="11"
                placeholder="请输入BIC "
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="ZIP Code" prop="adrsea.loczip">
              <c-input
                v-model="model.adrsea.loczip"
                maxlength="10"
                placeholder="请输入ZIP Code"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
LiRui committed
91
            <!-- PTY.TRNMAN -->
wangren committed
92 93 94 95 96 97 98 99 100 101 102
            <el-form-item label="交易主体" prop="jyzt">
              <c-select
                v-model="model.jyzt"
                style="width: 100%"
                placeholder="请选择交易主体"
                :code="codes.jyzt"
              >
              </c-select>
            </el-form-item>

            <c-col :span="24">
LiRui committed
103
              <!-- PTY.IDCODE -->
wangren committed
104 105 106 107 108 109 110 111 112 113
              <el-form-item label="统一社会信用代码" prop="shxydm">
                <c-input
                  v-model="model.shxydm"
                  maxlength="18"
                  placeholder="请输入统一社会信用代码"
                ></c-input>
              </el-form-item>
            </c-col>
          </c-col>
        </c-col>
wangren committed
114 115
      
      <c-col :span="24">
LiRui committed
116
        <!-- PTY.PTYTYP -->
wangren committed
117
        <el-form-item label="Type">
闫泽浩 committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
                <c-col :span="2">
          <c-checkbox v-model="seatyph">海关</c-checkbox>
        </c-col> 
      <c-col :span="4">
            <c-checkbox v-model="seatypo">Other</c-checkbox>
          </c-col> 
      <c-col :span="4">
            <c-checkbox v-model="seatypa">Own Address</c-checkbox>
          </c-col> 
     <c-col :span="4">
            <c-checkbox v-model="seatypb">Bank</c-checkbox>
          </c-col> 
      <c-col :span="4">
            <c-checkbox v-model="seatypc">Client</c-checkbox>
          </c-col> 
wangren committed
133
        </el-form-item>
wangren committed
134 135
      </c-col>
      <c-col :span="24" style="text-align: right; height: 36.8px">
闫泽浩 committed
136
        <el-button size="small" @click="handleReset">重置</el-button>
wangren committed
137 138 139 140 141 142 143 144 145 146 147 148 149
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="onInfbutSearow"
          >查询
        </el-button>
      </c-col>

      <c-col :span="24">
        <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
      </c-col>
      <c-col :span="24" >
wangren committed
150 151 152
        <c-istream-table 
        :list="stmData.data" 
        :columns="stmData.columns"
wangren committed
153
        :showButtonFlg="true">
wangren committed
154 155
          <c-table-column fixed="right" prop="op" label="操作" width="165px">
            
wangren committed
156 157 158 159
            <template slot-scope="{ scope }">
              <c-button
                style="margin-left: 0"
                size="small"
wangren committed
160
                @click="onInfbutDsp(scope.$index, scope.row)"
wangren committed
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
              >
                详情
              </c-button>
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="continueEdit(scope.row)"
              >
                处理
              </c-button>
              <el-popover placement="top-start" width="50" trigger="click">
                <ul class="table-button-item-list">
                  <li>
                    <c-button size="small" style="margin-left: 0"
                      >指派</c-button
                    >
                  </li>
                  <li>
                    <c-button size="small" style="margin-left: 0"
                      >删除</c-button
                    >
                  </li>
                </ul>
                <a
                  slot="reference"
                  href="javascript:void(0)"
                  style="margin-left: 5px"
                  ><i class="el-icon-more"></i
                ></a>
              </el-popover>
            </template>
wangren committed
193
          </c-table-column>
wangren committed
194
        </c-istream-table>
潘际乾 committed
195
      </c-col>    
wangren committed
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infpty/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      initdialog: false,
闫泽浩 committed
211
      radio: 3,
wangren committed
212 213
      stmData: {
        columns: [
潘际乾 committed
214
          '1 1 "客户号" 120 ',
wangren committed
215 216 217 218 219 220 221 222
          '8 2 "中文名称" 150 ',
          '2 3 "Name" 198 ',
          '9 4 "客户类别" 98 1 0 1 KEHULB',
          '3 5 "Street" 200 ',
          '10 6 "支行名称" 98 ',
          '4 7 "ZIP" 98  ',
          '11 8 "支行行号" 200 ',
          '5 9 "City" 120',
潘际乾 committed
223
          '12 10 "组织机构代码" 200',
wangren committed
224 225 226 227 228 229 230 231
          '6 11 "BIC" 70',
          '13 12 "统一社会信用代码" 200',
          '7 13 "交易主体" 98  1 0 1 TRNMAN',
        ],
        data: [],
      },
    };
  },
闫泽浩 committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
  computed: {
    tableData() {
      return this.model.infbut.dspstm.rows;
    },
		seatypb: {
			get: function() {
				return this.model.seatypb === 'X'
			},
			set: function(val) {
        this.clearSeatyp()
				this.model.seatypb = val ? 'X' : ''
			}
		},
		seatypc: {
			get: function() {
				return this.model.seatypc === 'X'
			},
			set: function(val) {
        this.clearSeatyp()
				this.model.seatypc = val ? 'X' : ''
			}
		},
		seatypa: {
			get: function() {
				return this.model.seatypa === 'X'
			},
			set: function(val) {
        this.clearSeatyp()
				this.model.seatypa = val ? 'X' : ''
			}
		},
		seatypo: {
			get: function() {
				return this.model.seatypo === 'X'
			},
			set: function(val) {
        this.clearSeatyp()
				this.model.seatypo = val ? 'X' : ''
			}
		},
		seatyph: {
			get: function() {
				return this.model.seatyph === 'X'
			},
			set: function(val) {
        this.clearSeatyp()
				this.model.seatyph = val ? 'X' : ''
			}
		}
	},
  methods: {
     clearSeatyp() {
      this.model.seatypb = '';
      this.model.seatypc = '';
      this.model.seatypa = '';
      this.model.seatypo = '';
      this.model.seatyph = '';
    },
    chooseRowEvent(row) {
      this.model.infbut.selrow = row.IDX + 1;
    },
    ...Event},
wangren committed
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
  created: function () {},
};
</script>
<style scoped>
.table-button-item-list {
  padding: 0;
  margin: 0;
}
.table-button-item-list li {
  list-style: none;
  padding: 5px 0;
  text-align: center;
  color: #606266;
  cursor: pointer;
}
</style>