Betdcrd.vue 10.4 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
      <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"
24 25 26 27 28 29 30 31 32 33
                @click="
                  showGridPromptDialog(
                    'betp.intdis.buttxmsel',
                    null,
                    null,
                    { TXT: 'bedgrp.blk.intdis' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
Eivi committed
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
              >
                ...
              </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"
63 64 65 66 67 68 69 70 71 72
                @click="
                  showGridPromptDialog(
                    'betp.docdis.buttxmsel',
                    null,
                    null,
                    { TXT: 'bedgrp.blk.docdis' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
Eivi committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86
              >
                ...
              </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 -->
87
    <c-col :span="11" :offset="1">
Eivi committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
      <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"
107 108 109 110 111 112 113 114 115 116
                @click="
                  showGridPromptDialog(
                    'betp.resrej.buttxmsel',
                    null,
                    null,
                    { TXT: 'bedgrp.blk.docins' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
Eivi committed
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
              >
                ...
              </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
146 147 148 149 150 151 152 153 154 155
                @click="
                  showGridPromptDialog(
                    'betp.disdoc.buttxmsel',
                    null,
                    null,
                    { TXT: 'bedgrp.blk.disdoc' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
Eivi committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
              >
                ...
              </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
172
    <c-col :span="24">
Eivi committed
173 174 175 176 177
      <c-docpre
        :model="model"
        :argadr="{
          path:'bedgrp.blk.prsdoc',
          grp:'betp',
Eivi committed
178
          code:'docpre'
Eivi committed
179
        }"
Eivi committed
180
        
Eivi committed
181 182 183 184 185
      >
      </c-docpre>
    </c-col>

    <!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
Eivi committed
186 187 188 189 190 191 192 193 194
      <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>
195
    <c-col :span="24" style="margin-bottom: 30px">
Eivi committed
196 197 198 199 200 201 202
      <c-table
        height="200px"
        style="text-align: center"
        :list="this.model.betp.docgrdm.docgrd || []"
        :paginationShow="false"
        :border="true"
      >
203 204 205 206
        <el-table-column label="1st" width="auto">
          <template slot-scope="scope">
            <c-input v-model="scope.row.cmail1"></c-input>
          </template>
Eivi committed
207
        </el-table-column>
208 209 210 211
        <el-table-column label="2nd" width="auto">
          <template slot-scope="scope">
            <c-input v-model="scope.row.cmail2"></c-input>
          </template>
Eivi committed
212 213 214
        </el-table-column>
        <el-table-column label="Document" prop="docnam" width="auto">
          <template slot-scope="scope">
Eivi committed
215
             {{scope.row.docnam}}
Eivi committed
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
            <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">
233
            <c-button @click="deleteTable(scope.$index)" type="primary"
Eivi committed
234 235 236 237 238
              >删除</c-button
            >
          </template>
        </el-table-column>
      </c-table>
Eivi committed
239
    </c-col> -->
Eivi committed
240
    <!-- <c-col :span="12">
241 242
        <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
243
        </el-form-item>
244 245 246 247 248
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onIntdisButtxmsel">
            ...
jinqian committed
249
        </c-button>
250 251 252 253 254
       </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
255
        </el-form-item>
256 257 258 259 260
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onResrejButtxmsel">
            ...
jinqian committed
261
        </c-button>
262 263 264 265 266
       </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
267
        </el-form-item>
268 269 270 271 272
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onDisdocButtxmsel">
            ...
jinqian committed
273
        </c-button>
274 275 276 277 278
       </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
279
        </el-form-item>
280 281 282 283 284
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel">
            ...
jinqian committed
285
        </c-button>
286 287 288 289 290 291 292 293 294 295 296 297
       </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
298
	</c-col> -->
jinqian committed
299 300 301
  </div>
</template>
<script>
Eivi committed
302
import Api from "~/service/Api";
303
import commonProcess from "~/mixin/commonProcess";
Eivi committed
304 305
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betdcr/Event";
Eivi committed
306 307
import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";
jinqian committed
308 309

export default {
Eivi committed
310
  components:{"c-docpre":Docpre},
Eivi committed
311
  inject: ["root"],
Eivi committed
312
  props: ["model", "codes"],
Eivi committed
313 314 315
  mixins: [commonProcess],
  data() {
    return {
316
      
Eivi committed
317 318 319 320 321
    };
  },
  computed: {
    docdisflg: {
      get() {
322 323
        if(this.model.bedgrp.blk.docdis==""){
          return this.model.bedgrp.blk.docdisflg != "";
324 325
        }else{
          return this.model.bedgrp.blk.docdisflg != "X";
326
        }
Eivi committed
327 328 329
      },
      set(val) {
        this.model.bedgrp.blk.docdisflg = val ? "X" : "";
330
        this.model.bedgrp.blk.docdis = "";
Eivi committed
331 332 333 334 335 336 337 338 339 340 341
      },
    },
    rejpenins: {
      get() {
        return this.model.rejpenins != "";
      },
      set(val) {
        this.model.rejpenins = val ? "X" : "";
      },
    },
  },
342 343
  methods: {
    ...Event,
Eivi committed
344 345 346
  },
  created: function () {},
};
jinqian committed
347 348 349
</script>
<style>
</style>