Docpre.vue 5.12 KB
Newer Older
zhengxiaokui committed
1 2
<template>
  <div class="eibs-tab">
3 4 5 6 7 8 9 10 11 12 13 14
    <!-- S0000065 : 不符点 -->
    <!--=== =================================左边======================================== -->
    <c-col :span="11">
      <!-- Discrepancies -->
      <c-col :span="24">
        <c-form-item label="不符点" prop="bddgrp.blk.docdis">
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.bddgrp.blk.docdis"
              maxlength="3500"
              show-word-limit
wangna committed
15
              placeholder="请输入不符点"
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
              rows="5"
              :disabled="!docdisflg"
            ></c-input>
            <!-- @click="onDocdisButtxmsel" -->
            <template slot="footer">
              <c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="
                  showGridPromptDialog(
                    'bdtp.docdis.buttxmsel',
                    null,
                    null,
                    { TXT: 'bddgrp.blk.docdis' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
                :disabled="!docdisflg"
              >
                <!-- ... -->
              </c-button>
            </template>
          </c-fullbox>
        </c-form-item>
      </c-col>
      <!-- S0000064 : 注释和结论 -->
      <!-- Comments and Conclusions -->
      <c-col :span="24">
        <c-form-item label="注释和结论" prop="bddgrp.blk.comcon">
          <c-input
            type="textarea"
            v-model="model.bddgrp.blk.comcon"
            maxlength="1950"
            show-word-limit
            rows="5"
wangna committed
53
            placeholder="请输入注释和结论"
54 55 56
          ></c-input>
        </c-form-item>
      </c-col>
zhengxiaokui committed
57

58 59 60 61 62 63 64 65 66 67 68 69
      <!-- SG000236 : 到期付款确认备注 -->
      <c-col :span="24">
        <c-form-item label="到期付款确认备注" prop="bddgrp.blk.accrmk">
          <c-input
            type="textarea"
            v-model="model.bddgrp.blk.accrmk"
            maxlength="1625"
            show-word-limit
            placeholder="到期付款确认备注"
            :rows="3"
          ></c-input>
        </c-form-item>
zhengxiaokui committed
70 71
      </c-col>

72 73 74 75 76 77 78 79 80 81 82 83
      <!-- 表格 -->
      <c-col :span="24">
        <c-docpre
          :model="model"
          :argadr="{
            path: 'bddgrp.blk.prsdoc',
            grp: 'bdtp',
            code: 'docpre',
          }"
        ></c-docpre>
      </c-col>
    </c-col>
zhengxiaokui committed
84

85 86 87 88 89
    <!--=== ========================================右边======================================== -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <c-checkbox v-model="model.bddgrp.rec.igndisflg">忽略不符点</c-checkbox>
      </c-col>
zhengxiaokui committed
90

91 92 93 94 95
      <c-col :span="24">
        <c-checkbox v-model="model.bddgrp.blk.docdisflg" @change="docdisDefault"
          >录入不符点</c-checkbox
        >
      </c-col>
zhengxiaokui committed
96

97 98 99 100 101 102
      <!-- SF000222 : 收到的通知类型 Type of Advice Received -->
      <c-col :span="24">
        <el-form-item label="收到的通知类型" prop="bddgrp.rec.advtyp">
          <c-select
            v-model="model.bddgrp.rec.advtyp"
            style="width: 100%"
wangna committed
103
            placeholder="请选择收到的通知类型"
104 105 106 107 108
            :code="codes.advtyp0"
          >
          </c-select>
        </el-form-item>
      </c-col>
zhengxiaokui committed
109

110 111 112 113 114 115 116 117 118 119 120 121 122
      <!-- S0000067 : 付款日期 -->
      <c-col :span="24">
        <el-form-item label="付款日期" prop="bddgrp.rec.totdat">
          <c-date-picker
            type="date"
            v-model="model.bddgrp.rec.totdat"
            style="width: 100%"
            placeholder="请选择付款日期"
            value-format="yyyy-MM-dd"
            disabled
          ></c-date-picker>
        </el-form-item>
      </c-col>
zhengxiaokui committed
123

124 125 126 127 128 129 130
      <!-- SF000163 : 不符点通知日期 -->
      <c-col :span="24">
        <el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
          <c-date-picker
            type="date"
            v-model="model.bddgrp.rec.disdat"
            style="width: 100%"
wangna committed
131
            placeholder="请选择不符点通知日期"
132 133 134 135 136 137
            value-format="yyyy-MM-dd"
            disabled
          ></c-date-picker>
        </el-form-item>
      </c-col>
    </c-col>
zhengxiaokui committed
138 139 140
  </div>
</template>
<script>
141 142 143 144 145 146
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Bdtudp/Event'
import Utils from '~/utils'
import Docpre from '~/views/Public/Docpre'
zhengxiaokui committed
147 148

export default {
149 150 151 152 153 154
  components: {
    // "c-ptap": Ptap,
    'c-docpre': Docpre,
  },
  inject: ['root'],
  props: ['model', 'codes'],
wangren committed
155
  mixins: [commonProcess],
zhengxiaokui committed
156
  data() {
157
    return {}
zhengxiaokui committed
158
  },
zhengxiaokui committed
159 160
  methods: {
    ...Event,
161 162 163 164 165
    async docdisDefault() {
      this.executeDefault('bddgrp.blk.docdis').then((res) => {
        //TODO 处理数据逻辑
        if (res.respCode == SUCCESS) this.updateModel(res.data)
      })
zhengxiaokui committed
166 167
    },
  },
zhengxiaokui committed
168
  created: function () {},
169 170 171 172 173 174 175 176 177 178
  computed: {
    docdisflg: {
      get() {
        return this.model.bddgrp.blk.docdisflg != ''
      },
      set(val) {
        this.model.bddgrp.blk.docdisflg = val ? 'X' : ''
      },
    },
  },
zhengxiaokui committed
179
}
180 181
</script>
<style></style>