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

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

潘际乾 committed
77 78
    <!-- ==========单选框=========== -->
    <c-col :span="24">
闫泽浩 committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
      <!-- <c-col :span="8">
      <c-checkbox v-model="seatyph">海关</c-checkbox>
        </c-col> 
      <c-col :span="8">
            <c-checkbox v-model="seatypo">Other</c-checkbox>
          </c-col> 
      <c-col :span="8">
            <c-checkbox v-model="seatypa">Own Address</c-checkbox>
          </c-col> 
      <c-col :span="8">
            <c-checkbox v-model="seatypb">Bank</c-checkbox>
          </c-col> 
       <c-col :span="8">
            <c-checkbox v-model="seatypc">Client</c-checkbox>
          </c-col>  -->
          
 <el-form-item label="Type">
                <c-col :span="2">
          <c-checkbox v-model="seatyph">海关</c-checkbox>
        </c-col> 
潘际乾 committed
99
      <c-col :span="4">
闫泽浩 committed
100 101
            <c-checkbox v-model="seatypo">Other</c-checkbox>
          </c-col> 
潘际乾 committed
102
      <c-col :span="4">
闫泽浩 committed
103 104 105 106 107
            <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> 
潘际乾 committed
108
      <c-col :span="4">
闫泽浩 committed
109 110
            <c-checkbox v-model="seatypc">Client</c-checkbox>
          </c-col> 
111
        </el-form-item>
潘际乾 committed
112
    </c-col>
闫泽浩 committed
113 114 115 116 117 118 119 120 121 122
       <c-col :span="20" style="text-align: right; height: 36.8px">
        <el-button size="small" @click="handleReset">重置</el-button>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="onInfbutSearow"
          >查询
        </el-button>
      </c-col>
123

潘际乾 committed
124
    <!-- =========表格========== -->
闫泽浩 committed
125
    <c-col :span="20">
潘际乾 committed
126 127 128 129
      <c-istream-table 
        :border="true" 
        :list="tableData" 
        :columns="columns"
闫泽浩 committed
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
        v-on:chooseRowEvent="chooseRowEvent">
         <c-table-column fixed="right" prop="op" label="操作" width="165px">
            
            <template slot-scope="{ scope }">
              <c-button
                style="margin-left: 0"
                size="small"
                @click="onInfbutDsp(scope.$index, scope.row)"
              >
                详情
              </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>
          </c-table-column>
潘际乾 committed
171 172
      </c-istream-table>
    </c-col>
闫泽浩 committed
173
   </c-content>
174 175 176
  </div>
</template>
<script>
潘际乾 committed
177
import Api from "~/service/Api";
wangren committed
178
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
179 180
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infpta/Event";
181 182

export default {
潘际乾 committed
183 184
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
185
  mixins: [commonProcess],
潘际乾 committed
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
  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() {
      return this.model.infbut.dspstm.rows;
201
    },
潘际乾 committed
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 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
		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
256 257 258
    chooseRowEvent(row) {
      this.model.infbut.selrow = row.IDX + 1;
    },
潘际乾 committed
259 260 261 262
    ...Event
  },
  created: function() {},
};
263
</script>
潘际乾 committed
264
<style></style>