Dscinsp.vue 6.66 KB
Newer Older
fanyanyan committed
1
<template>
2
  <div class="eibs-tab">
3
    <!-- left -->
jianglong committed
4
    <c-col :span="12" style="padding-right:20px;">
5 6
      <c-col :span="24">
        <el-form-item
wangna committed
7
          label="不符点描述"
8 9 10 11
          prop="btdgrp.blk.docdis"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
12 13 14 15 16
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.docdis"
              maxlength="50"
              show-word-limit
wangna committed
17
              placeholder="请输入不符点描述"
18 19
              @change="defaultFunction()"
              :disabled="!docdisflg"
fanyanyan committed
20
            ></c-input>
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
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
                :disabled="!docdisflg"
                @click="
                  showGridPromptDialog(
                    'bttp.docdis.buttxmsel',
                    null,
                    null,
                    { TXT: 'btdgrp.blk.docdis' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
wangna committed
47
          label="国内不符点描述"
48 49 50 51
          prop="btdgrp.blk.intdis"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
52 53 54 55 56
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.intdis"
              maxlength="65"
              show-word-limit
wangna committed
57
              placeholder="请输入国内不符点描述"
fanyanyan committed
58
            ></c-input>
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
                @click="
                  showGridPromptDialog(
                    'bttp.intdis.buttxmsel',
                    null,
                    null,
                    { TXT: 'btdgrp.blk.intdis' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
wangna committed
84
          label="评论和结论"
85 86 87 88
          prop="btdgrp.blk.comcon"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
89 90 91 92 93
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.comcon"
              maxlength="65"
              show-word-limit
wangna committed
94
              placeholder="请输入评论和结论"
fanyanyan committed
95
            ></c-input>
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
                @click="
                  showGridPromptDialog(
                    'bttp.comcon.buttxmsel',
                    null,
                    null,
                    { TXT: 'btdgrp.blk.comcon' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
fanyanyan committed
117
      </c-col>
118 119 120

      <c-col :span="24">
        <el-form-item
wangna committed
121
          label="此单据集的结算说明"
122 123 124 125
          prop="btdgrp.blk.setinsbt"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
126 127
            <c-input
              type="textarea"
128 129
              v-model="model.btdgrp.blk.setinsbt"
              maxlength="65"
fanyanyan committed
130
              show-word-limit
wangna committed
131
              placeholder="请输入此单据集的结算说明"
fanyanyan committed
132
            ></c-input>
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                type="primary"
                @click="
                  showGridPromptDialog(
                    'bttp.setins.buttxmsel',
                    null,
                    null,
                    { TXT: 'btdgrp.blk.setinsbe' },
                    { TXT: false },
                    'doxpDialog'
                  )
                "
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
fanyanyan committed
154
      </c-col>
Wuyuqiu committed
155 156
      <c-col :span="24">
        <el-form-item
wangna committed
157
          label="单据状态"
Wuyuqiu committed
158 159 160 161 162 163
          prop="btdgrp.rec.docsta"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.docsta"
            style="width: 100%"
wangna committed
164
            placeholder="请选择单据状态"
Wuyuqiu committed
165 166 167 168 169 170 171 172 173 174 175 176 177
            disabled
          >
            <el-option
              v-for="item in codes.docsta2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

178
    </c-col>
fanyanyan committed
179

180
    <!-- right -->
jianglong committed
181
    <c-col :span="12" style="padding-left:20px;">
182 183 184
      <c-col :span="4">
        <el-form-item label="" style="text-align: left" prop="docdisflg">
          <c-checkbox v-model="docdisflg" @change="defaultFunction()"
185
            >不符点描述修改</c-checkbox
186 187
          >
        </el-form-item>
188
      </c-col>
189
    </c-col>
fanyanyan committed
190

191
    <!-- next part -->
192 193
     <c-docpre
      :model="model"
194
      rol="docgrdmbe1"
195 196 197 198
      :argadr="{
        path: 'btdgrp.blk.prsdocbe1',
        grp: 'bttp',
        code: 'docpre',
199
      }" 
200 201
    >
    </c-docpre>
202 203
    <c-docpre
      :model="model"
204
      rol="docgrdmbe2"
205
      :argadr="{
206
        path: 'btdgrp.blk.prsdocbe2',
207 208 209 210 211
        grp: 'bttp',
        code: 'docpre',
      }"
    >
    </c-docpre>
fanyanyan committed
212 213 214 215
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
216
import commonProcess from "~/mixin/commonProcess";
fanyanyan committed
217 218
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdck/Event";
219 220
import Ptap from "~/views/Public/Ptap";
import Docpre from "~/views/Public/Docpre";
fanyanyan committed
221 222

export default {
223 224
  name: "Docpre",
  components: { "c-ptap": Ptap, "c-docpre": Docpre },
fanyanyan committed
225 226
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
227
  mixins: [commonProcess],
fanyanyan committed
228 229 230
  data() {
    return {};
  },
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
  computed: {
    docdisflg: {
      get() {
        return this.model.btdgrp.blk.docdisflg != "";
      },
      set(val) {
        this.model.btdgrp.blk.docdisflg = val ? "X" : "";
      },
    },
    payrolFlag: {
      get() {
        return (
          this.model.btdgrp.rec.payrol == "AVB" ||
          this.model.btdgrp.rec.payrol == "ISS"
        );
      },
    },
  },
fanyanyan committed
249 250 251 252 253 254
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>