Docpre.vue 5.04 KB
Newer Older
lianyang committed
1
<template>
2
  <div class="eibs">
3
    <!--=== =================================左边======================================== -->
lianyang committed
4

Wuyuqiu committed
5
    <c-col :span="12" style="padding-right: 20px;">
lianyang committed
6
      <!-- Discrepancies -->
7
      <c-col :span="24">
jianglong committed
8
        <el-form-item label="不符点" prop="brdgrp.blk.docdis">
9
          <c-fullbox>
10
            <c-input type="textarea" v-model="model.brdgrp.blk.docdis" maxlength="3500" show-word-limit
11
              placeholder="请输入不符点信息" rows="5" :disabled="!docdisflg"></c-input>
12
            <!-- @click="onDocdisButtxmsel" -->
13
            <template slot="footer">
jianglong committed
14
              <c-button size="small" type="primary" icon="el-icon-more"
15
                @click="showGridPromptDialog('brtp.docdis.buttxmsel', null, null,{TXT: 'brdgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
16
                :disabled="!docdisflg">
jianglong committed
17
               
18 19 20
              </c-button>
            </template>
          </c-fullbox>
lianyang committed
21
        </el-form-item>
lianyang committed
22 23 24
      </c-col>
      <!-- Comments and Conclusion -->
      <c-col :span="24">
jianglong committed
25
        <el-form-item label="评论和结论" prop="brdgrp.blk.comcon">
26
          <c-input type="textarea" v-model="model.brdgrp.blk.comcon" maxlength="1950" show-word-limit
jianglong committed
27
            placeholder="请输入评论和结论内容" rows="5"></c-input>
lianyang committed
28
        </el-form-item>
lianyang committed
29 30
      </c-col>
      <!-- Settlement Instructions BR -->
31 32
      <!-- <c-col :span="21"> -->
      <c-col :span="24">
jianglong committed
33
        <el-form-item label="结算指示" prop="brdgrp.blk.setinsbr">
34
          <c-fullbox>
35
            <c-input type="textarea" v-model="model.brdgrp.blk.setinsbr" maxlength="390" show-word-limit
jianglong committed
36
              placeholder="请输入结算指示" rows="5"></c-input>
37
            <template slot="footer">
38
              <!-- @click="onSetinstxmButtxmsel" -->
jianglong committed
39
              <c-button size="small" type="primary" icon="el-icon-more" 
40 41
              @click="showGridPromptDialog('brtp.setinstxm.buttxmsel', null, null,{TXT: 'brdgrp.blk.setinsbr'}, {TXT: false},'doxpDialog')"
              >
42 43 44
              </c-button>
            </template>
          </c-fullbox>
lianyang committed
45
        </el-form-item>
lianyang committed
46
      </c-col>
47

lianyang committed
48 49
    </c-col>

50
    <!--=== ========================================右边======================================== -->
Wuyuqiu committed
51
    <c-col :span="12" style="padding-left: 20px;">
Wuyuqiu committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
      <c-col :span="12">
        <el-form-item
          label=""
          prop="brdgrp.rec.igndisflg"
          label-width="0px"
        >
        <c-checkbox
          style="margin: 0px 0 10px 120px;float: left;"
          v-model="model.brdgrp.rec.igndisflg"
          >忽略不符点</c-checkbox
        >
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item
          label=""
          prop="brdgrp.blk.docdis"
        >
        <c-checkbox
          style="margin: 0px 0 10px 150px;"
          v-model="docdisflg"
        @change="docdisDefault"
          >录入不符点</c-checkbox
        >
        </el-form-item>
lianyang committed
77 78 79
      </c-col>

      <c-col :span="24">
jianglong committed
80 81
        <el-form-item label="收到通知类型" prop="brdgrp.rec.advtyp">
          <c-select v-model="model.brdgrp.rec.advtyp" style="width: 100%" placeholder="请选择类型"
82
            :code="codes.advtyp0">
lianyang committed
83 84 85 86 87
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
jianglong committed
88
        <el-form-item label="付款日期" prop="brdgrp.rec.totdat">
89 90
          <c-date-picker type="date" v-model="model.brdgrp.rec.totdat" style="width: 100%" placeholder="请选择付款日期"
            disabled>
lianyang committed
91 92 93 94 95
          </c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
Wuyuqiu committed
96
        <el-form-item label="不符点通知日期" prop="brdgrp.rec.disdat">
lianyang committed
97
          <c-date-picker type="date" v-model="model.brdgrp.rec.disdat" style="width: 100%"
jianglong committed
98
            placeholder="请选择日期" disabled></c-date-picker>
lianyang committed
99 100 101 102 103 104
        </el-form-item>
      </c-col>


    </c-col>

Wuyuqiu committed
105 106 107 108 109 110 111 112 113 114 115
    <!-- 底部表格 -->
    <c-col :span="24" label-width="0px">
        <c-docpre
          :model="model"
          :argadr="{
            path: 'brdgrp.blk.prsdoc',
            grp: 'brtp',
            code: 'docpre',
          }"
        ></c-docpre>
      </c-col>
lianyang committed
116

jianglong committed
117
   
lianyang committed
118 119 120
  </div>
</template>
<script>
lianyang committed
121
import Api from "~/service/Api";
lianyang committed
122
import commonProcess from "~/mixin/commonProcess";
lianyang committed
123 124
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtudp/Event";
125
import Utils from "~/utils";
126
import Docpre from "~/views/Public/Docpre";
lianyang committed
127 128

export default {
129 130 131 132
  components: {
    // "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
lianyang committed
133 134 135 136
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
137 138
    return {
    };
lianyang committed
139
  },
140 141 142 143 144 145 146 147
  methods: { ...Event,
    async docdisDefault(){
      this.executeDefault("brdgrp.blk.docdis").then(res => {
          //TODO 处理数据逻辑
          if(res.respCode == SUCCESS)
          this.updateModel(res.data);
      })
  },
148
  },
lianyang committed
149
  created: function () { },
150 151 152 153 154 155 156 157 158 159
  computed: {
    docdisflg: {
      get() {
        return this.model.brdgrp.blk.docdisflg != ""
      },
      set(val) {
        this.model.brdgrp.blk.docdisflg = val ? "X" : ""
      }
    },
  },
160

lianyang committed
161
};
lianyang committed
162 163
</script>
<style>
164
</style>