Betdcrd.vue 4.27 KB
Newer Older
liumin committed
1 2
<template>
  <div class="eibs-tab">
Wuyuqiu committed
3
    <c-col :span="18">
4 5 6 7 8 9 10
      <el-form-item label="单据内部不符点" prop="bfdgrp.blk.intdis">
        <c-input
          type="textarea"
          v-model="model.bfdgrp.blk.intdis"
          maxlength="65"
          show-word-limit
          placeholder="请输入单据不符点"
Eivi committed
11
          
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="2">
      <c-button
        size="small"
        type="primary"
        icon="el-icon-search"
        @click="onIntdisButtxmsel"
      >
        ...
      </c-button>
    </c-col>

Wuyuqiu committed
27
    <c-col :span="18">
28 29 30 31 32 33 34 35
      <el-form-item label="不符点" prop="bfdgrp.blk.docdis">
        <c-input
          type="textarea"
          style="float: left"
          v-model="model.bfdgrp.blk.docdis"
          maxlength="65"
          show-word-limit
          placeholder="请输入不符点"
Eivi committed
36
          :disabled="!docdisflg"
37 38 39 40 41 42 43 44 45 46
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="2">
      <c-button
        size="small"
        type="primary"
        icon="el-icon-search"
        @click="onDocdisButtxmsel"
Eivi committed
47
        :disabled="!docdisflg"
48 49 50 51 52
      >
        ...
      </c-button>
    </c-col>

Wuyuqiu committed
53
    <c-col :span="4">
54 55 56
      <c-checkbox v-model="model.rejpenins">保留单据,等候指示</c-checkbox>
    </c-col>

Wuyuqiu committed
57
    <c-col :span="4">
Eivi committed
58
      <c-checkbox v-model="docdisflg">不符点修改</c-checkbox>
59 60
    </c-col>

61 62 63 64 65 66 67 68 69 70
    <c-docpre
      :model="model"
      :argadr="{
        path: 'bfdgrp.blk.prsdoc',
        grp: 'bftp',
        code: 'prsdoc',
      }"
    >
    </c-docpre>
    <!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
71 72 73 74 75 76 77 78 79
      <el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
        <c-button style="float: right" @click="addTableValue" type="primary"
          >新增单据</c-button
        >
      </el-form-item>
    </c-col>
    <c-col :span="24" style="height: 0px">
      <el-divider></el-divider>
    </c-col>
80
    <c-col :span="24" style="margin-bottom: 30px;">
81
      <c-table
82
        height="200px"
83
        style="text-align: center"
84
        :list="this.model.bftp.docgrdm.docgrd || []"
85 86 87 88 89 90
        :paginationShow="false"
        :border="true"
      >
        <el-table-column
          label="1st"
          width="auto"
91 92 93 94 95 96 97 98
        >
        <template slot-scope="scope"> 
          <c-input
            v-model="scope.row.cmail1"
          ></c-input>
        </template>
        
        </el-table-column>
99
        <el-table-column
100
          label="2nd"
101
          width="auto"
102 103 104 105 106 107 108
        >
        <template slot-scope="scope">
          <c-input
            v-model="scope.row.cmail2"
          ></c-input>
        </template>
        </el-table-column>
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
        <el-table-column label="Document" prop="docnam" width="auto">
          <template slot-scope="scope">
            <c-select
              style="width: 100%"
              placeholder="请选择"
              v-model="scope.row.docnam"
            >
              <el-option
                v-for="item in codeTable"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </template>
        </el-table-column>
        <el-table-column label="操作" width="170px" fixed="right">
          <template slot-scope="scope">
Eivi committed
128
            <c-button @click="deleteTable(scope.$index)" type="primary"
129 130 131 132 133
              >删除</c-button
            >
          </template>
        </el-table-column>
      </c-table>
134
    </c-col> -->
liumin committed
135 136 137
  </div>
</template>
<script>
138
import Api from "~/service/Api";
wangren committed
139
import commonProcess from "~/mixin/commonProcess";
140 141
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftdcr/Event";
Eivi committed
142
import Utils from "~/utils";
143
import Docpre from "~/views/Public/Docpre";
liumin committed
144 145

export default {
146 147
  name:'Docpre',
  components:{"c-docpre": Docpre,},
148 149 150 151
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
152 153
    return {
    };
154
  },
Eivi committed
155 156 157 158 159 160 161
  computed:{
    docdisflg: {
      get() {
        return this.model.bfdgrp.blk.docdisflg != "";
      },
      set(val) {
        this.model.bfdgrp.blk.docdisflg = val ? "X" : "";
Eivi committed
162
        this.model.bfdgrp.blk.docdis = "";
Eivi committed
163 164 165 166
      },
    },

  },
167 168
  methods: { ...Event,
  },
169 170
  created: function () {},
};
liumin committed
171 172 173
</script>
<style>
</style>