Dscinsp.vue 6.81 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
3
    <!-- left -->
4 5 6
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item
wangna committed
7
          label="不符点描述"
8 9 10 11 12 13 14 15 16
          prop="btdgrp.blk.docdis"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.docdis"
              maxlength="50"
              show-word-limit
wangna committed
17
              placeholder="请输入不符点描述"
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
              @change="defaultFunction()"
              :disabled="!docdisflg"
            ></c-input>
            <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>
42
        </el-form-item>
43 44 45 46
      </c-col>

      <c-col :span="24">
        <el-form-item
wangna committed
47
          label="国内不符点描述"
48 49 50 51 52 53 54 55 56
          prop="btdgrp.blk.intdis"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.intdis"
              maxlength="65"
              show-word-limit
wangna committed
57
              placeholder="请输入国内不符点描述"
58 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
            ></c-input>
            <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 89 90 91 92 93
          prop="btdgrp.blk.comcon"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.comcon"
              maxlength="65"
              show-word-limit
wangna committed
94
              placeholder="请输入评论和结论"
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
            ></c-input>
            <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>
116
        </el-form-item>
117 118 119 120
      </c-col>

      <c-col :span="24">
        <el-form-item
wangna committed
121
          label="此单据集的结算说明"
122 123 124 125 126 127 128 129 130
          prop="btdgrp.blk.setinsbt"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.setinsbt"
              maxlength="65"
              show-word-limit
wangna committed
131
              placeholder="请输入此单据集的结算说明"
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
            ></c-input>
            <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>
153
        </el-form-item>
154 155 156 157 158 159 160
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="4">
        <el-form-item label="" style="text-align: left" prop="docdisflg">
wangna committed
161
          <c-checkbox v-model="docdisflg">不符点描述修改</c-checkbox>
162
        </el-form-item>
163 164 165
      </c-col>
      <c-col :span="24">
        <el-form-item
wangna committed
166
          label="进一步处理"
167 168 169 170 171 172
          prop="bttp.futhndflg"
          style="width: 100%"
        >
          <c-select
            v-model="model.bttp.futhndflg"
            style="width: 100%"
wangna committed
173
            placeholder="请选择进一步处理"
174
            :code="codes.futhndflg"
175 176
          >
          </c-select>
177
        </el-form-item>
178 179 180
      </c-col>
      <c-col :span="24">
        <el-form-item
wangna committed
181
          label="单据状态"
182 183 184 185 186 187
          prop="btdgrp.rec.docsta"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.docsta"
            style="width: 100%"
wangna committed
188
            placeholder="请选择单据状态"
189 190 191 192 193 194 195 196 197 198
            disabled
          >
            <el-option
              v-for="item in codes.docsta2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
199
        </el-form-item>
200 201 202 203
      </c-col>
    </c-col>

    <!-- next part -->
204
    <c-docpre
205
      :model="model"
206
      rol="docgrdmbe1"
207 208 209 210 211 212 213 214 215
      :argadr="{
        path: 'btdgrp.blk.prsdocbe1',
        grp: 'bttp',
        code: 'docpre',
      }"
    >
    </c-docpre>
    <c-docpre
      :model="model"
216
      rol="docgrdmbe2"
217 218 219 220 221 222 223
      :argadr="{
        path: 'btdgrp.blk.prsdocbe2',
        grp: 'bttp',
        code: 'docpre',
      }"
    >
    </c-docpre>
224 225 226
  </div>
</template>
<script>
227
import Api from "~/service/Api";
wangren committed
228
import commonProcess from "~/mixin/commonProcess";
229 230
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdav/Event";
231 232

export default {
233 234 235 236 237 238 239 240 241 242 243 244 245 246
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  computed: {
    docdisflg: {
      get() {
        return this.model.btdgrp.blk.docdisflg != "";
      },
      set(val) {
        this.model.btdgrp.blk.docdisflg = val ? "X" : "";
      },
247
    },
248 249 250 251 252 253 254 255 256 257 258 259
    payrolFlag: {
      get() {
        return (
          this.model.btdgrp.rec.payrol == "AVB" ||
          this.model.btdgrp.rec.payrol == "ISS"
        );
      },
    },
  },
  methods: { ...Event },
  created: function () {},
};
260 261 262
</script>
<style>
</style>