Brtdcrd.vue 3.39 KB
Newer Older
jianglong committed
1 2 3 4 5 6
<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="12">
        <c-row>
          <c-col :span="24">
lianyang committed
7
            <el-form-item label="不符点" prop="bddgrp.blk.docdis">
8 9
              <c-input type="textarea" :disabled="model.bddgrp.blk.docdisflg ? false : true" :rows="6"
                v-model="model.bddgrp.blk.docdis" maxlength="65" show-word-limit placeholder="请输入不符点"></c-input>
jianglong committed
10 11
            </el-form-item>
          </c-col>
jianglong committed
12
        </c-row>
lianyang committed
13
        <el-form-item label="快递单号" v-if="model.bddgrp.rec.advdocflg == 'X'" prop="expmno">
14 15
          <c-input type="textarea" :rows="2" v-model="model.expmno" maxlength="120" show-word-limit placeholder="请输入单号">
          </c-input>
jianglong committed
16
        </el-form-item>
wangna committed
17
        
18 19 20 21 22 23 24 25 26 27
        <c-docpre
        :model="model" 
        :argadr="{
          path: 'bddgrp.blk.prsdoc',
          grp: 'bdtp',
          code: 'bdtdck',
        }"></c-docpre>


        
jianglong committed
28 29 30 31 32
      </c-col>

      <c-col :span="12">
        <c-row>
          <c-col :span="24">
33 34 35
            <el-form-item label="" prop="bddgrp.blk.docdisflg">
                <c-checkbox v-model="docdisflg" @change="changed" disabled>录入不符点</c-checkbox>
            </el-form-item>
jianglong committed
36 37 38 39 40 41 42 43
          </c-col>
        </c-row>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
44
import commonProcess from "~/mixin/commonProcess";
jianglong committed
45
import CodeTable from "~/config/CodeTable";
46
import Utils from "~/utils";
jianglong committed
47
import Event from "~/model/Bdtdcr/Event";
48
import Docpre from "~/views/Public/Docpre";
jianglong committed
49 50

export default {
51 52 53
   components: {
    "c-docpre": Docpre,
  },
jianglong committed
54 55
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
56
  mixins: [commonProcess],
jianglong committed
57 58
  data() {
    return {
59 60 61
      TableValue: [
        {
          id: 0,
62 63 64 65 66 67
          cmail1: "",
          cmail2: "",
          docnam: "",
          description: "",
          serialNum: "",
          tableName: "",
68 69 70 71 72 73 74
        },
      ],
      newValue: {
        id: 0,
        cmail1: "",
        cmail2: "",
        docnam: "",
75 76 77
        description: "",
        serialNum: "",
        tableName: "",
78 79 80 81 82 83 84 85 86 87 88
      },
      codeTable: [
        { label: "增值税发票", value: "1" },
        { label: "发票", value: "2" },
        { label: "装箱单", value: "3" },
        { label: "空运单", value: "4" },
        { label: "海运提单", value: "5" },
        { label: "铁路运单", value: "6" },
        { label: "货物收据", value: "7" },
        { label: "邮政收据", value: "8" },
      ],
wangna committed
89
     
jianglong committed
90 91 92 93
    };
  },
  methods: {
    ...Event,
94 95 96 97 98
    addTableValue(index) {
      var newTableValue = Object.assign({}, this.newValue);
      const serial = Utils.generateUUID();
      newTableValue.serialNum = serial;
      this.model.bdtp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
wangna committed
99
     
100
    },
101 102
    deleteTable(index) {
      this.model.bdtp.docgrdm.docgrd.splice(index, 1);
103
    },
jianglong committed
104 105 106 107 108 109
    changed(e) {
      if (!e) {
        this.model.bddgrp.blk.docdis = "";
      }
    },
  },
110
  created: function () { },
111 112 113 114 115

  computed: {

    docdisflg: {
      get() {
116 117
        
        return this.model.advdisflg === "X" || this.model.advrefflg ==="X" ? true : false;
118 119 120 121 122 123 124
      },
      set(val) {
        this.model.bddgrp.blk.docdisflg = val ? "X" : "";
      },
    }

  }
jianglong committed
125 126 127 128 129 130 131 132
};
</script>
<style>
.c-checkbox {
  text-align: center;
  margin: 10px;
  font-size: 16px;
}
133 134

.messageLabel>>>.el-form-item__label {
135 136 137 138
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
jianglong committed
139
</style>