Infsea.vue 5.92 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
潘际乾 committed
3 4 5
    <!-- ==========顶部-左========= -->
    <c-col :span="11">
      <c-col :span="24">
6
        <el-form-item label="Address No." prop="seaobjkey">
潘际乾 committed
7 8 9 10 11
          <c-input
            v-model="model.seaobjkey"
            maxlength="24"
            placeholder="请输入PTA"
          ></c-input>
12
        </el-form-item>
潘际乾 committed
13 14
      </c-col>
      <c-col :span="24">
15
        <el-form-item label="Party No." prop="seaptyextkey">
潘际乾 committed
16 17 18 19 20
          <c-input
            v-model="model.seaptyextkey"
            maxlength="24"
            placeholder="请输入External Key Used to Uniquely Identify a party"
          ></c-input>
21
        </el-form-item>
潘际乾 committed
22 23 24 25 26 27 28 29 30 31 32
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="ZIP/Location" prop="seazip">
            <c-input
              v-model="model.seazip"
              maxlength="10"
              placeholder="请输入ZIP Code/First Part of S.W.I.F.T. Line 4"
            ></c-input>
          </el-form-item>
        </c-col>
33

潘际乾 committed
34 35 36 37 38 39 40 41 42
        <c-col :span="12">
          <el-form-item label="" prop="seatxt" label-width="15px">
            <c-input
              v-model="model.seatxt"
              maxlength="25"
              placeholder="请输入Textpart of City"
            ></c-input>
          </el-form-item>
        </c-col>
43
      </c-col>
潘际乾 committed
44 45 46 47
    </c-col>
    <!-- ==========顶部-右========= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
48
        <el-form-item label="Name" prop="seanam">
潘际乾 committed
49 50 51 52 53
          <c-input
            v-model="model.seanam"
            maxlength="35"
            placeholder="请输入External Visible Name of Address"
          ></c-input>
54
        </el-form-item>
潘际乾 committed
55 56
      </c-col>
      <c-col :span="24">
57
        <el-form-item label="BIC" prop="seabic">
潘际乾 committed
58 59 60 61 62
          <c-input
            v-model="model.seabic"
            maxlength="11"
            placeholder="请输入BIC of Address Optional"
          ></c-input>
63 64 65
        </el-form-item>
      </c-col>
      <c-col :span="24">
潘际乾 committed
66 67 68 69 70 71
        <el-form-item label="Street" prop="seastr">
          <c-input
            v-model="model.seastr"
            maxlength="35"
            placeholder="请输入Street"
          ></c-input>
72
        </el-form-item>
潘际乾 committed
73 74
      </c-col>
    </c-col>
75

潘际乾 committed
76 77 78 79 80 81 82 83
    <!-- ==========单选框=========== -->
    <c-col :span="24">
      <c-col :span="3">
        <el-form-item label="Type"> </el-form-item>
      </c-col>
      <c-col :span="4">
        <el-form-item label="Bank" prop="seatypb">
          <c-checkbox v-model="seatypb"></c-checkbox>
84
        </el-form-item>
潘际乾 committed
85
      </c-col>
86

潘际乾 committed
87 88 89
      <c-col :span="4">
        <el-form-item label="Client" prop="seatypc">
          <c-checkbox v-model="seatypc"></c-checkbox>
90
        </el-form-item>
潘际乾 committed
91
      </c-col>
92

潘际乾 committed
93 94 95
      <c-col :span="4">
        <el-form-item label="Own Address" prop="seatypa">
          <c-checkbox v-model="seatypa"></c-checkbox>
96
        </el-form-item>
潘际乾 committed
97
      </c-col>
98

潘际乾 committed
99 100 101
      <c-col :span="4">
        <el-form-item label="Other" prop="seatypo">
          <c-checkbox v-model="seatypo"></c-checkbox>
102
        </el-form-item>
潘际乾 committed
103
      </c-col>
104

潘际乾 committed
105 106 107
      <c-col :span="4">
        <el-form-item label="海关" prop="seatyph">
          <c-checkbox v-model="seatyph"></c-checkbox>
108 109
        </el-form-item>
      </c-col>
潘际乾 committed
110
    </c-col>
111

潘际乾 committed
112 113 114 115 116 117
    <!-- =========表格========== -->
    <c-col :span="22" :offset="1">
      <c-istream-table 
        :border="true" 
        :list="tableData" 
        :columns="columns"
潘际乾 committed
118
        v-on:chooseRowEvent="chooseRowEvent"
潘际乾 committed
119 120 121 122 123 124 125 126 127
        style="width:80%,text-align:center">
        <!-- <el-table-column label="Address No" width="auto"></el-table-column>
        <el-table-column label="Adress Name" width="auto"></el-table-column>
        <el-table-column label="BIC" width="auto"></el-table-column>
        <el-table-column label="ZIP" width="auto"></el-table-column>
        <el-table-column label="Location" width="auto"></el-table-column>
        <el-table-column label="Street" width="auto"></el-table-column> -->
      </c-istream-table>
    </c-col>
128 129 130
  </div>
</template>
<script>
潘际乾 committed
131
import Api from "~/service/Api";
wangren committed
132
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
133 134
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infpta/Event";
135 136

export default {
潘际乾 committed
137 138
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
139
  mixins: [commonProcess],
潘际乾 committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
  data() {
    return {
      columns: [
          "2 1 \"Address No\" 140",
          "3 2 \"Adress Name\" 140",
          "4 3 \"BIC\" 80",
          "5 4 \"ZIP\" 80",
          "6 5 \"Location\" 120",
          "7 6 \"Street\" 120"
      ]
    };
  },
	computed: {
    tableData() {
      // "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD."
      return this.model.infbut.dspstm.rows;
156
    },
潘际乾 committed
157 158 159 160 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 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
		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 = '';
    },
潘际乾 committed
211 212 213
    chooseRowEvent(row) {
      this.model.infbut.selrow = row.IDX + 1;
    },
潘际乾 committed
214 215 216 217
    ...Event
  },
  created: function() {},
};
218
</script>
潘际乾 committed
219
<style></style>