Docpre.vue 5.59 KB
Newer Older
1
<template>
Wuyuqiu committed
2
  <div class="eibs">
3
    <c-col :span="12" style="padding-right: 20px;">
4
      <c-col :span="24">
jianglong committed
5
        <el-form-item label="不符点" prop="brdgrp.blk.docdis">
6 7 8 9
          <c-fullbox>
            <c-input
              :disabled="this.typ1"
              type="textarea"
10
              :rows="5"
11
              v-model="model.brdgrp.blk.docdis"
12
              maxlength="500"
13
              show-word-limit
jianglong committed
14
              placeholder="请输入不符点内容"
15
            ></c-input>
16
            <template slot="footer">
17 18 19
              <c-button
                size="small"
                type="primary"
jianglong committed
20
                icon="el-icon-more"
21 22
                @click="showGridPromptDialog('brtp.docdis.buttxmsel', null, null,{TXT: 'brdgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
                :disabled="this.typ1"
23
              >
jianglong committed
24
                
25
              </c-button>
26
            </template>
27
          </c-fullbox>
28
        </el-form-item>
29 30
      </c-col>
      <c-col :span="24">
jianglong committed
31
        <el-form-item label="评论和结论" prop="brdgrp.blk.comcon">
32 33 34 35 36
          <c-input
            type="textarea"
            v-model="model.brdgrp.blk.comcon"
            maxlength="65"
            show-word-limit
jianglong committed
37
            placeholder="请输入评论和结论内容"
38
          ></c-input>
39
        </el-form-item>
40 41 42
      </c-col>
      <c-col :span="24">
        <el-form-item
jianglong committed
43
          label="结算指示"
44 45 46 47
          prop="brdgrp.blk.setinsbr"
        >
          <c-fullbox>
            <c-input
48
            :rows="6"
49 50
              type="textarea"
              v-model="model.brdgrp.blk.setinsbr"
51
              maxlength="500"
52
              show-word-limit
jianglong committed
53
              placeholder="请输入结算指示内容"
54
            ></c-input>
55
            <template slot="footer">
56 57 58
              <c-button
                size="small"
                type="primary"
jianglong committed
59
                icon="el-icon-more"
60
                @click="showGridPromptDialog('brtp.setinstxm.buttxmsel', null, null,{TXT: 'brdgrp.blk.setinsbr'}, {TXT: false},'doxpDialog')"
61
              >
jianglong committed
62
                
63
              </c-button>
64
            </template>
65
          </c-fullbox>
66
        </el-form-item>
67
      </c-col>
68
    </c-col>
69

70 71
    <!-- 右边 -->
    <c-col :span="12" style="padding-left: 20px;">
72
      <c-col :span="12">
73 74 75 76 77
        <el-form-item
          label=""
          prop="brdgrp.rec.igndisflg"
          label-width="0px"
        >
78
        <c-checkbox
79
          style="margin: 0px 0 10px 120px;float: left;"
80
          v-model="model.brdgrp.rec.igndisflg"
jianglong committed
81
          >忽略不符点</c-checkbox
82
        >
83
        </el-form-item>
84 85 86
      </c-col>
      <c-col :span="12">
        <c-checkbox
87
          style="margin: 0px 0 10px 150px;"
88
          v-model="model.brdgrp.blk.docdisflg"
jianglong committed
89
          >录入不符点</c-checkbox
90 91 92
        >
      </c-col>
      <c-col :span="24">
jianglong committed
93
        <el-form-item label="收到通知类型" prop="brdgrp.rec.advtyp">
94 95 96 97
          <c-input
            disabled
            v-model="model.brdgrp.rec.advtyp"
            style="width: 100%"
jianglong committed
98
            placeholder="请选择通知类型"
99 100
          >
          </c-input>
101
        </el-form-item>
102 103
      </c-col>
      <c-col :span="24">
104
        <el-form-item label="付款日期" prop="brdgrp.rec.totdat">
105 106 107 108 109 110 111
          <c-date-picker
            disabled
            type="date"
            v-model="model.brdgrp.rec.totdat"
            style="width: 100%"
            placeholder="请选择付款日期"
          ></c-date-picker>
112
        </el-form-item>
113 114 115
      </c-col>
      <c-col :span="24">
        <el-form-item
jianglong committed
116
          label="不符点通知日期"
117
          label-width="120px"
118 119 120 121 122 123 124
          prop="brdgrp.rec.disdat"
        >
          <c-date-picker
            disabled
            type="date"
            v-model="model.brdgrp.rec.disdat"
            style="width: 100%"
jianglong committed
125
            placeholder="请选择日期"
126
          ></c-date-picker>
127
        </el-form-item>
128 129 130
      </c-col>
      <c-col :span="12">
        <c-checkbox
131
          style="margin: 0px 0 10px 120px;float: left;"
132
          v-model="model.brdgrp.rec.approvcod"
133
          label-width="0px"
jianglong committed
134
          >审批文件</c-checkbox
135 136 137 138 139 140 141
        >
      </c-col>
      <c-col :span="12">
        <c-checkbox
          style="margin: 0px 0 10px 150px"
          disabled
          v-model="model.brtp.cre732flg"
jianglong committed
142
          >创建MT 732</c-checkbox
143 144
        >
      </c-col>
145
    </c-col>
146

147 148 149 150 151 152 153 154 155 156 157
    <!-- 底部表格 -->
    <c-col :span="24" label-width="0px">
        <c-docpre
          :model="model"
          :argadr="{
            path: 'brdgrp.blk.prsdoc',
            grp: 'brtp',
            code: 'docpre',
          }"
        ></c-docpre>
      </c-col>
158 159 160
  </div>
</template>
<script>
161
import Api from "~/service/Api";
162
import commonProcess from "~/mixin/commonProcess";
163 164 165
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litdck/Event";
import Docpre from "~/views/Public/Docpre";
166
export default {
167 168 169 170 171 172 173 174
  components: {
    "c-docpre": Docpre,
  },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
175
      typ1: true,
176 177 178
    };
  },
  watch: {
179 180 181 182 183 184 185 186 187 188 189 190 191
        "model.brdgrp.blk.docdisflg": {
          immediate: true,
          handler(val, oldval) {
            if (this.model.brdgrp.blk.docdisflg != "X") {
              this.typ1 = true;
              this.model.brdgrp.blk.docdis = "";
              this.changeFormItemRequired("brdgrp.blk.docdis", false);
            } else {
              this.typ1 = false;
              this.changeFormItemRequired("brdgrp.blk.docdis", true);
            }
          },
        },
192 193 194
      },
  methods: {
    ...Event,
195

196 197 198 199 200 201 202
    addRow() {},
    removeRow() {},
  },
  created: function () {},
};
</script>
<style></style>