Sptp0.vue 8.04 KB
Newer Older
1
<template>
wangna committed
2 3 4 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
  <el-dialog
    :visible.sync="initdialog2"
    :title="'Details of Pending Item'"
    append-to-body
    id="dialog2"
    @opened="opened"
  >
    <div class="eibs-tab">
      <c-col :span="24">
        <!------------------左边------------------>
        <c-col :span="11">
          <c-col :span="24">
            <el-form-item label="类型" prop="spt.sta">
              <c-select
                v-model="model.spt.sta"
                style="width: 100%"
                placeholder="请选择类型"
                :code="codes.sptrelstatus"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="业务编号" prop="spt.objnam">
              <c-input
                v-model="model.spt.objnam"
                maxlength="40"
                placeholder="请输入业务编号"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="交易关键字名称" prop="spt.txt">
              <c-input
                v-model="model.spt.txt"
                maxlength="40"
                placeholder="请输入交易关键字名称"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
        <!------------------右边------------------>
        <c-col :span="11" :offset="1">
          <c-col :span="24">
            <el-form-item label="交易状态" prop="spt.hldflg">
              <c-select
                v-model="model.spt.hldflg"
                style="width: 100%"
                placeholder="请选择交易状态"
                :code="codes.hldflg"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="身份证号码" prop="spt.inr">
              <c-input
                v-model="model.spt.inr"
                maxlength="8"
                placeholder="请输入身份证号码"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
zhujiazhan committed
71

wangna committed
72 73 74 75 76 77 78 79 80 81 82 83
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="交易 " prop="spt.frm">
              <c-input
                v-model="model.spt.frm"
                maxlength="6"
                placeholder="请输入交易 "
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
zhujiazhan committed
84

wangna committed
85 86 87 88 89 90 91 92 93 94
        <c-col :span="12">
          <el-form-item label="责任用户" prop="spt.ownusr">
            <c-input
              v-model="model.spt.ownusr"
              maxlength="8"
              placeholder="请输入责任用户"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhujiazhan committed
95

wangna committed
96 97 98 99 100 101 102 103 104 105 106
        <c-col :span="12">
          <el-form-item label="责任小组" prop="spt.ownusg">
            <c-select
              v-model="model.spt.ownusg"
              style="width: 100%"
              placeholder="请选择责任小组"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
zhujiazhan committed
107

wangna committed
108 109 110 111 112 113 114 115 116 117 118 119
        <c-col :span="24">
          <c-col :span="18">
            <el-form-item label="信息文本" prop="spt.inftxt">
              <c-input
                type="textarea"
                v-model="model.spt.inftxt"
                maxlength="65"
                show-word-limit
                placeholder="请输入信息文本"
                rows="5"
                disabled
              ></c-input>
zhujiazhan committed
120
            </el-form-item>
wangna committed
121
          </c-col>
zhujiazhan committed
122

wangna committed
123 124 125 126 127 128 129 130 131
          <c-col :span="6" :offset="-1">
            <el-form-item label="" prop="spt.infdsp" label-width="5px">
              <c-select
                v-model="model.spt.infdsp"
                placeholder="请选择"
                :code="codes.infdsp"
                disabled
              >
              </c-select>
zhujiazhan committed
132
            </el-form-item>
wangna committed
133 134
          </c-col>
        </c-col>
zhujiazhan committed
135

wangna committed
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
        <c-col :span="12">
          <c-col :span="12">
            <el-form-item label="经办柜员" prop="spt.usr">
              <c-input
                v-model="model.spt.usr"
                maxlength="8"
                placeholder="请输入经办人"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="at" prop="spt.dattim" label-width="50px">
              <c-input
                v-model="model.spt.dattim"
                placeholder="请输入"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
zhujiazhan committed
157

wangna committed
158 159 160 161 162 163 164 165 166 167 168
        <c-col :span="12">
          <c-col :span="12">
            <el-form-item label="创建交易" prop="spt.cretrn">
              <c-input
                v-model="model.spt.cretrn"
                maxlength="6"
                placeholder="请输入"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
zhujiazhan committed
169

wangna committed
170 171 172 173 174 175
          <c-col :span="12">
            <c-button size="small" type="primary" @click="onSptpButord">
              订单
            </c-button>
          </c-col>
        </c-col>
zhujiazhan committed
176

wangna committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
        <c-col :span="12">
          <c-col :span="12">
            <el-form-item label="完成目标" prop="" disabled>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="" prop="spt.tardattim" label-width="50px">
              <c-input
                v-model="model.spt.tardattim"
                placeholder="请输入完成目标"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
zhujiazhan committed
192

wangna committed
193 194 195 196 197 198 199 200 201 202
        <c-col :span="13">
          <el-form-item label="报文类型" prop="sptp.smh.msgtyp">
            <c-input
              v-model="model.sptp.smh.msgtyp"
              maxlength="20"
              placeholder="请输入报文类型"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhujiazhan committed
203

wangna committed
204 205 206 207 208 209 210 211 212 213
        <c-col :span="15">
          <el-form-item label="接收密钥" prop="sptp.smh.sndkey">
            <c-input
              v-model="model.sptp.smh.sndkey"
              maxlength="50"
              placeholder="请输入接收密钥"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhujiazhan committed
214

wangna committed
215 216 217 218 219 220 221 222 223
        <c-col :span="13">
          <c-col :span="13">
            <el-form-item label="相关金额" prop="sptp.smh.relcur">
              <c-input
                v-model="model.sptp.smh.relcur"
                maxlength="3"
                placeholder="请输入相关金额"
                disabled
              ></c-input>
zhujiazhan committed
224
            </el-form-item>
wangna committed
225
          </c-col>
zhujiazhan committed
226

wangna committed
227 228 229 230 231 232 233
          <c-col :span="11">
            <el-form-item label="" prop="sptp.smh.relamt" label-width="5px">
              <c-input
                v-model="model.sptp.smh.relamt"
                placeholder="请输入"
                disabled
              ></c-input>
zhujiazhan committed
234
            </el-form-item>
wangna committed
235 236 237 238 239
          </c-col>
        </c-col>
      </c-col>
    </div>
  </el-dialog>
240 241
</template>
<script>
wangna committed
242
import Api from "~/service/Api";
243
import commonProcess from "~/mixin/commonProcess";
wangna committed
244 245 246
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptneg/Event";
import Sptneg from "~/model/Sptneg";
zhujiazhan committed
247

248
export default {
wangna committed
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      initdialog2: false,
    };
  },
  mounted() {
    this.trnName = "sptneg";
    this.$nextTick(function () {
      this.$on("childmethods", async function () {
        let res = await this.executeRule("butspt");
        if (res.respCode == SUCCESS) {
          this.updateModel(res.data);
        } else {
265
        }
wangna committed
266 267 268 269 270 271 272
      });
    });
  },
  methods: {
    ...Event,
    opened() {
      this.$emit("childmethods");
273
    },
wangna committed
274 275
    async onSptpButord() {
      this.$emit("onSptp");
zhujiazhan committed
276
    },
wangna committed
277 278 279
  },
  created: function () {},
};
280 281
</script>
<style>
wangna committed
282 283 284 285
#dialog2 .el-dialog {
  width: 80%;
  height: 80%;
}
286
</style>