Betdcrd.vue 9.17 KB
Newer Older
jinqian committed
1 2
<template>
  <div class="eibs-tab">
Eivi committed
3
    <!-- left -->
4
    <c-col :span="11">
Eivi 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 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
      <c-col :span="24">
        <el-form-item
          label="Internal Discrepancies"
          prop="bedgrp.blk.intdis"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.bedgrp.blk.intdis"
              maxlength="50"
              show-word-limit
              placeholder="Please input Internal Discrepancies"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="Discrepancies"
          prop="bedgrp.blk.docdis"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.bedgrp.blk.docdis"
              maxlength="65"
              show-word-limit
              placeholder="Please input Discrepancies"
              :disabled="!docdisflg"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
                :disabled="!docdisflg"
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-checkbox v-model="docdisflg" style="margin-left: 150px"
          >Discrepancies modified</c-checkbox
        >
      </c-col>
    </c-col>
    <!-- right -->
67
    <c-col :span="11" :offset="1">
Eivi committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
      <c-col :span="24">
        <el-form-item
          label="Reasons for Rejection"
          prop="bedgrp.blk.docins"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.bedgrp.blk.docins"
              maxlength="50"
              show-word-limit
              placeholder="Please input Reasons for Rejection"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="Disposal of Documents"
          prop="bedgrp.blk.disdoc"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.bedgrp.blk.disdoc"
              maxlength="65"
              show-word-limit
              placeholder="Please input Disposal of Documents"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
                disabled
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-checkbox v-model="rejpenins" style="margin-left: 150px"
          >Rejection Pending Instructions</c-checkbox
        >
      </c-col>
    </c-col>

    <!-- next part -->
Eivi committed
132
    <c-col :span="24">
Eivi committed
133 134 135 136 137
      <c-docpre
        :model="model"
        :argadr="{
          path:'bedgrp.blk.prsdoc',
          grp:'betp',
Eivi committed
138
          code:'docpre'
Eivi committed
139
        }"
Eivi committed
140
        
Eivi committed
141 142 143 144 145
      >
      </c-docpre>
    </c-col>

    <!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
Eivi committed
146 147 148 149 150 151 152 153 154
      <el-form-item :label="model.betp.docgrdm.docdsclab" class="messageLabel">
        <c-button style="float: right" @click="addTableValue" type="primary"
          >新增单据</c-button
        >
      </el-form-item>
    </c-col>
    <c-col :span="24" style="height: 0px">
      <el-divider></el-divider>
    </c-col>
155
    <c-col :span="24" style="margin-bottom: 30px">
Eivi committed
156 157 158 159 160 161 162
      <c-table
        height="200px"
        style="text-align: center"
        :list="this.model.betp.docgrdm.docgrd || []"
        :paginationShow="false"
        :border="true"
      >
163 164 165 166
        <el-table-column label="1st" width="auto">
          <template slot-scope="scope">
            <c-input v-model="scope.row.cmail1"></c-input>
          </template>
Eivi committed
167
        </el-table-column>
168 169 170 171
        <el-table-column label="2nd" width="auto">
          <template slot-scope="scope">
            <c-input v-model="scope.row.cmail2"></c-input>
          </template>
Eivi committed
172 173 174
        </el-table-column>
        <el-table-column label="Document" prop="docnam" width="auto">
          <template slot-scope="scope">
Eivi committed
175
             {{scope.row.docnam}}
Eivi committed
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
            <c-select
              style="width: 100%"
              placeholder="请选择"
              v-model="scope.row.docnam"
            >
              <el-option
                v-for="item in codeTable"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </template>
        </el-table-column>
        <el-table-column label="操作" width="170px" fixed="right">
          <template slot-scope="scope">
193
            <c-button @click="deleteTable(scope.$index)" type="primary"
Eivi committed
194 195 196 197 198
              >删除</c-button
            >
          </template>
        </el-table-column>
      </c-table>
Eivi committed
199
    </c-col> -->
Eivi committed
200
    <!-- <c-col :span="12">
201 202
        <el-form-item label="Internal Discrepancies" prop="bedgrp.blk.intdis">
            <c-input type="textarea" v-model="model.bedgrp.blk.intdis" maxlength="65" show-word-limit placeholder="请输入Internal Discrepancies" ></c-input>
jinqian committed
203
        </el-form-item>
204 205 206 207 208
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onIntdisButtxmsel">
            ...
jinqian committed
209
        </c-button>
210 211 212 213 214
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Reasons for Rejection" prop="bedgrp.blk.docins">
            <c-input type="textarea" v-model="model.bedgrp.blk.docins" maxlength="35" show-word-limit placeholder="请输入Reasons for Rejection" ></c-input>
jinqian committed
215
        </el-form-item>
216 217 218 219 220
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onResrejButtxmsel">
            ...
jinqian committed
221
        </c-button>
222 223 224 225 226
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Disposal of Documents" prop="bedgrp.blk.disdoc">
            <c-input type="textarea" v-model="model.bedgrp.blk.disdoc" maxlength="35" show-word-limit placeholder="请输入Disposal of Documents" ></c-input>
jinqian committed
227
        </el-form-item>
228 229 230 231 232
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onDisdocButtxmsel">
            ...
jinqian committed
233
        </c-button>
234 235 236 237 238
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Discrepancies" prop="bedgrp.blk.docdis">
            <c-input type="textarea" v-model="model.bedgrp.blk.docdis" maxlength="50" show-word-limit placeholder="请输入Discrepancies" ></c-input>
jinqian committed
239
        </el-form-item>
240 241 242 243 244
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel">
            ...
jinqian committed
245
        </c-button>
246 247 248 249 250 251 252 253 254 255 256 257
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.rejpenins">Rejection pending instructions</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.bedgrp.blk.docdisflg">Discrepancies modified</c-checkbox>
       </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.betp.docgrdm.docdsclab"   data-path=".betp.docgrdm.docdsclab" > </span>
Eivi committed
258
	</c-col> -->
jinqian committed
259 260 261
  </div>
</template>
<script>
Eivi committed
262
import Api from "~/service/Api";
263
import commonProcess from "~/mixin/commonProcess";
Eivi committed
264 265
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betdcr/Event";
Eivi committed
266 267
import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";
jinqian committed
268 269

export default {
Eivi committed
270
  components:{"c-docpre":Docpre},
Eivi committed
271
  inject: ["root"],
Eivi committed
272
  props: ["model", "codes"],
Eivi committed
273 274 275
  mixins: [commonProcess],
  data() {
    return {
276
      
Eivi committed
277 278 279 280 281
    };
  },
  computed: {
    docdisflg: {
      get() {
282 283
        if(this.model.bedgrp.blk.docdis==""){
          return this.model.bedgrp.blk.docdisflg != "";
284 285
        }else{
          return this.model.bedgrp.blk.docdisflg != "X";
286
        }
Eivi committed
287 288 289
      },
      set(val) {
        this.model.bedgrp.blk.docdisflg = val ? "X" : "";
290
        this.model.bedgrp.blk.docdis = "";
Eivi committed
291 292 293 294 295 296 297 298 299 300 301
      },
    },
    rejpenins: {
      get() {
        return this.model.rejpenins != "";
      },
      set(val) {
        this.model.rejpenins = val ? "X" : "";
      },
    },
  },
302 303
  methods: {
    ...Event,
Eivi committed
304 305 306
  },
  created: function () {},
};
jinqian committed
307 308 309
</script>
<style>
</style>