Sptpopup.vue 13.7 KB
Newer Older
1
<template>
liushikai committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
  <c-page title="">
    <c-content :height="120">
    <div class="eibs-tab">
      <el-form
        :model="model"
        ref="modelForm"
        tokenKey="modelForm"
        :validate-on-rule-change="false"
        label-width="150px"
        size="small"
      >
       
       <c-col :span="21" style="height:24px">
          <el-form-item label="基本信息" class="messageLabel">
          </el-form-item>
        </c-col>
        <c-col :span="2" style="text-align:right">
liushikai committed
19
         <c-button type="primary" size="small" @click="exit">返回</c-button>
liushikai committed
20 21 22 23 24
       </c-col>
        <c-col :span="24" style="height: 10px">
          <el-divider></el-divider>
        </c-col>
        
liushikai committed
25

liushikai committed
26 27 28 29 30 31 32 33 34 35 36
        <c-col :span="11">
          <el-form-item label="Type" prop="spt.sta" style="width: 100%">
            <c-select
              v-model="model.spt.sta"
              style="width: 100%"
              placeholder="请选择Type"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
liushikai committed
37

liushikai committed
38 39 40 41 42 43 44 45 46 47 48 49
        <c-col :span="11" :offset="1">
          <el-form-item label="Status" prop="spt.hldflg" style="width: 100%">
            <c-select
              v-model="model.spt.hldflg"
              style="width: 100%"
              placeholder="请选择Hold Flag"
              :code="codes.hldflg"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
liushikai committed
50

liushikai committed
51 52
        <c-col :span="11">
          <el-form-item label="Reference" prop="spt.objnam" style="width: 100%">
liushikai committed
53
            <c-input
liushikai committed
54 55 56 57 58
              v-model="model.spt.objnam"
              maxlength="40"
              style="width: 100%"
              placeholder="请输入Reference"
              disabled
liushikai committed
59
            ></c-input>
liushikai committed
60 61 62 63 64
          </el-form-item>
        </c-col>

        <c-col :span="11" :offset="1">
          <el-form-item label="Ident No" prop="spt.inr" style="width: 100%">
liushikai committed
65
            <c-input
liushikai committed
66 67 68 69 70
              v-model="model.spt.inr"
              maxlength="8"
              style="width: 100%"
              placeholder="请输入Internal Unique ID of Pending Transaction"
              disabled
liushikai committed
71
            ></c-input>
liushikai committed
72 73 74 75 76 77 78 79 80 81 82 83
          </el-form-item>
        </c-col>

          <c-col :span="11">
            <el-form-item label="Name" prop="spt.txt" style="width: 100%">
              <c-input
                v-model="model.spt.txt"
                maxlength="40"
                style="width: 100%"
                placeholder="请输入Name"
                disabled
              ></c-input>
liushikai committed
84 85 86
            </el-form-item>
          </c-col>

liushikai committed
87
          <c-col :span="11" :offset="1">
liushikai committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
            <c-col :span="13">
              <el-form-item label="Transaction " prop="spt.frm">
                <c-input
                  v-model="model.spt.frm"
                  maxlength="6"
                  style="width: 95%"
                  placeholder="请输入Transaction "
                  disabled
                ></c-input>
              </el-form-item>
            </c-col>
            <c-col :span="11">
              <el-form-item label="" prop="spt.frm" label-width="0">
                <c-select
                  v-model="model.spt.frm"
                  maxlength="16"
                  placeholder="请输入Transaction "
                  :code="codes.frm"
                  style="width:100%"
                  disabled
                ></c-select>
              </el-form-item>
            </c-col>
          </c-col>
liushikai committed
112

liushikai committed
113 114 115 116 117 118 119 120 121 122
        <c-col :span="11">
          <el-form-item label="Responsible User " prop="spt.ownusr">
            <c-input
              v-model="model.spt.ownusr"
              maxlength="8"
              placeholder="请输入Responsible User "
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
liushikai committed
123

liushikai committed
124 125 126 127 128 129 130 131 132 133 134
        <c-col :span="11" :offset="1">
          <el-form-item label="Responsible Group" prop="spt.ownusg">
            <c-select
              v-model="model.spt.ownusg"
              style="width: 100%"
              placeholder="请选择Responsible Group"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
liushikai committed
135

liushikai committed
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
        <c-col :span="11">
          <c-col :span="19">
            <el-form-item label="Infotext" prop="spt.inftxt">
              <c-input
                type="textarea"
                v-model="model.spt.inftxt"
                maxlength="65"
                style="width: 100%"
                show-word-limit
                placeholder="请输入Infotext"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="5">
            <el-form-item label="" prop="spt.infdsp" label-width="5px">
              <c-select
                v-model="model.spt.infdsp"
                style="width: 100%; padding-left: 0px"
                placeholder="请选择Infotext"
                :code="codes.infdsp"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
liushikai committed
163

liushikai committed
164 165 166 167 168 169 170 171 172 173 174
        <c-col :span="11" :offset="1">
          <c-col :span="10">
            <el-form-item label="Entered by" prop="spt.usr">
              <c-input
                v-model="model.spt.usr"
                maxlength="8"
                placeholder="请输入Entered by"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
liushikai committed
175

liushikai committed
176 177 178 179 180 181 182 183 184
          <c-col :span="7">
            <el-form-item label="at" prop="spt.dattim" label-width="50px">
              <c-input
                v-model="model.spt.dattim"
                placeholder="请输入Time of Creation"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
liushikai committed
185

liushikai committed
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
          <c-col :span="7">
            <el-form-item label="in TRN" prop="spt.cretrn" label-width="70px">
              <c-input
                v-model="model.spt.cretrn"
                maxlength="6"
                placeholder="请输入Creating Transaction ID"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="24">
          <c-col :span="11">
            <el-form-item label="Target for Completion" prop="spt.tardattim">
              <c-input
                v-model="model.spt.tardattim"
                placeholder="请输入Target for Completion"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
         
         <c-col :span="24" style="height:24px;margin-top:8px">
liushikai committed
210
          <el-form-item label="报文信息" class="messageLabel">
liushikai committed
211 212 213 214 215
          </el-form-item>
        </c-col>
        <c-col :span="24" style="height: 0px">
          <el-divider></el-divider>
        </c-col>
liushikai committed
216

liushikai committed
217
        <!-- <c-col :span="12">
218 219 220
        <c-button size="small" type="primary"  @click="onSptpButord">
            Order
        </c-button>
liushikai committed
221
       </c-col> -->
liushikai committed
222

liushikai committed
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
                                   
       <c-col :span="12">
        <el-form-item label="Message Type " prop="sptp.smh.msgtyp">
            <c-input  v-model="model.sptp.smh.msgtyp" maxlength="20"  placeholder="请输入Message Type "></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Receiver Key " prop="sptp.smh.sndkey">
            <c-input  v-model="model.sptp.smh.sndkey" maxlength="50"  placeholder="请输入Receiver Key "></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Relevant Amount" prop="sptp.smh.relcur">
            <c-input  v-model="model.sptp.smh.relcur" maxlength="3"  placeholder="请输入Relevant Amount"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Relevant Amount Optional" prop="sptp.smh.relamt">
            <c-input  v-model="model.sptp.smh.relamt"  placeholder="请输入Relevant Amount Optional"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onSptpButcls">
            &Close
        </c-button>
liushikai committed
253
       </c-col> -->
潘际乾 committed
254
        <c-col :span="24" style="">
liushikai committed
255
          <!-- <el-form-item label-width="500px"> -->
liushikai committed
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 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
          <c-table :paginationShow="false" :border="true">
            <el-table-column
              label="Seq.No"
              prop="groseq"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="Msg.Type"
              prop="cortyp"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="Message references"
              prop="nam"
              width="150px"
            ></el-table-column>
            <el-table-column
              label="User"
              prop="creusr"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="Length"
              prop="msglen"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="File name"
              prop="docfil"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="File ext"
              prop="docfxt"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="DB-INR"
              prop="inr"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="CREFRM"
              prop="crefrm"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="CREDATTIM"
              prop="credattim"
              width="120px"
            ></el-table-column>
            <el-table-column
              label="PARTFLG"
              prop=""
              width="partflg"
            ></el-table-column>
            <el-table-column
              label="MSGTYP"
              prop="msgtyp"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="RELCUR"
              prop="relcur"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="RELAMT"
              prop="relamt"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="SYSNO"
              prop="sysno"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="STAFLG"
              prop="staflg"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="F20"
              prop="f20"
              width="auto"
            ></el-table-column>
            <el-table-column
              label="STP"
              prop="spt"
              width="auto"
            ></el-table-column>
          </c-table>
liushikai committed
348 349 350 351
          <!-- </el-form-item> -->
        </c-col>

        <c-col :span="24" style="height:24px;margin-top:20px">
liushikai committed
352
          <el-form-item label="工作流信息" class="messageLabel">
liushikai committed
353 354 355 356 357 358
          </el-form-item>
        </c-col>
        <c-col :span="24" style="height: 0px">
          <el-divider></el-divider>
        </c-col>

潘际乾 committed
359
        <c-col :span="24" style="">
liushikai committed
360 361
          <!-- <el-form-item label-width="500px"> -->
          <!-- <c-table :paginationShow="false" :border="true">
liushikai committed
362 363 364 365 366 367
            <el-table-column label="Start" width="auto"></el-table-column>
            <el-table-column label="Type" width="auto"></el-table-column>
            <el-table-column label="User" width="auto"></el-table-column>
            <el-table-column label="TRN" width="auto"></el-table-column>
            <el-table-column label="End" width="auto"></el-table-column>
            <el-table-column label="Text" width="auto"></el-table-column>
liushikai committed
368 369 370 371 372 373 374 375 376 377
          </c-table> -->
          <!-- </el-form-item> -->
          <c-istream-table :list="stmData2.data" :columns="stmData2.columns" :paginationShow="false" style="width:100%">
          </c-istream-table>
          
        </c-col>
      </el-form>
    </div>
    </c-content>
  </c-page>
378 379
</template>
<script>
潘际乾 committed
380
import Sptsel from "~/model/Sptsel";
liushikai committed
381
import Api from "~/service/Api";
wangren committed
382
import commonProcess from "~/mixin/commonProcess";
liushikai committed
383 384
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";
385 386

export default {
liushikai committed
387 388
  // inject: ['root'],
  // props:["model","codes"],
wangren committed
389
  mixins: [commonProcess],
liushikai committed
390 391 392
  data() {
    return {
      model: new Sptsel().data,
liushikai committed
393
      codes:{ hldflg: CodeTable.hldflg ,...CodeTable},
liushikai committed
394 395 396
      trnName:"sptsel",
      stmData2:{
        columns:[
liushikai committed
397
          // "7 1 \"Start\" 0",
liushikai committed
398 399 400 401 402
          {index:1,position:1,width:140,pattern:'time',label:'Start'},
          // "2 2 \"Type\" 0",
          {index:2,position:2,width:'auto',pattern:'code',label:'Type',code:CodeTable.sptDetSta},
          "3 3 \"User\" auto",
          "4 4 \"TRN\" auto",
liushikai committed
403
          // "7 5 \"End\" 0",
liushikai committed
404 405
          {index:5,position:5,width:140,pattern:'time',label:'End'},
          "8 6 \"Text\" auto",
liushikai committed
406 407 408
        ],
        data:[],
      }
liushikai committed
409 410
    };
  },
liushikai committed
411 412 413 414 415 416 417
  mounted() {
    this.loadData();
  },
  methods: {
    ...Event,
    loadData() {
      this.model = JSON.parse(sessionStorage.getItem("Sptpopup"));
liushikai committed
418
      let rtnmsg1 = this.executeRule("inc")
liushikai committed
419
      let rtnmsg2 = this.executeRule("sptp.butord")
liushikai committed
420
      this.executeRule("sptp.ordp0.butore").then((res) => {
liushikai committed
421
        this.stmData2.data=res.data.vals.rows;
liushikai committed
422 423 424 425 426 427 428 429
      });

    },
    exit() {
      this.$store.dispatch("TagsView/delView", this.$route);
      this.$router.history.push("/taskList");
    },
  },
liushikai committed
430 431
  created: function () {},
};
432
</script>
liushikai committed
433 434
<style scoped>
.el-col >>> .el-divider--horizontal {
liushikai committed
435 436 437 438 439 440
  margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
    text-align: left;
    font-weight:bold;
    font-size: 12px;
liushikai committed
441
}
442
</style>