Docpre.vue 7.12 KB
Newer Older
zhoutian committed
1 2
<template>
  <div class="eibs-tab">
lianyang committed
3

4
       <!--================================左边================================== -->
潘际乾 committed
5
   <c-col :span="12" class="col-left"> 
lianyang committed
6
    <c-col :span="21" >           
7
        <el-form-item label="不符点信息" prop="brdgrp.blk.docdis" >
lianyang committed
8
            <c-input type="textarea" v-model="model.brdgrp.blk.docdis" 
9
                maxlength="3500" show-word-limit placeholder="请输入不符点信息" rows="5"
10
                :disabled="!docdisflg">
lianyang committed
11
            </c-input>
12
            <!-- :disabled="!docdisflg" 任意非空串 取非后即为false,,空串取非后即为true -->
lianyang committed
13 14 15
        </el-form-item>
    </c-col>
    <c-col :span="3">
16 17 18
    <!-- @click="onDocdisButtxmsel" -->
        <c-button size="small" type="primary" icon="el-icon-search" 
        @click="showGridPromptDialog('brtp.docdis.buttxmsel', null, null,{TXT: 'brdgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
19
        :disabled="!docdisflg">
lianyang committed
20
            ...
zhoutian committed
21
        </c-button>
lianyang committed
22 23
    </c-col> 
    <c-col :span="24">
24 25
        <el-form-item label="注释和结论" prop="brdgrp.blk.comcon" >
            <c-input type="textarea" v-model="model.brdgrp.blk.comcon" maxlength="1950" show-word-limit placeholder="请输入注释和结论" 
lianyang committed
26 27
            rows="5"></c-input>
        </el-form-item>
zhoutian committed
28
        </c-col>
lianyang committed
29
    <c-col :span="21">
30 31
        <el-form-item label="结算指示" prop="brdgrp.blk.setinsbr">
            <c-input type="textarea" v-model="model.brdgrp.blk.setinsbr" maxlength="390" show-word-limit placeholder="请输入结算指示"
lianyang committed
32 33 34 35
            rows="5"></c-input>
        </el-form-item>
    </c-col>
    <c-col :span="3">
36
        <c-button size="small" type="primary" icon="el-icon-search" @click="showGridPromptDialog('brtp.setinstxm.buttxmsel', null, null,{TXT: 'brdgrp.blk.setinsbr'}, {TXT: false},'doxpDialog')">
lianyang committed
37 38 39
            ...
        </c-button>
    </c-col>
40 41


42
   
43 44 45 46 47 48
      <c-col :span="24">
        <c-docpre :model="model" :argadr="{
          path: 'brdgrp.blk.prsdoc',
          grp: 'brtp',
          code: 'docpre',
        }"></c-docpre>
49
      </c-col>
lianyang committed
50
   </c-col>
51
  
52
          <!--===========================右边============================== -->
潘际乾 committed
53
   <c-col :span="12" class="col-right"> 
lianyang committed
54
    <c-col :span="24">           
55
        <c-checkbox v-model="model.brdgrp.rec.igndisflg">忽略不符点</c-checkbox>
lianyang committed
56 57
    </c-col>
    <c-col :span="24">
58 59
        <c-checkbox v-model="docdisflg" @change="docdisDefault">不符点修改</c-checkbox>
        <!-- <c-checkbox v-model="model.brdgrp.blk.docdisflg">不符点修改</c-checkbox> -->
lianyang committed
60 61
    </c-col>
    <c-col :span="24">
62 63
        <el-form-item label="收到通知类型" prop="brdgrp.rec.advtyp" >
            <c-select v-model="model.brdgrp.rec.advtyp" style="width:100%" placeholder="请选择收到通知类型"
64 65
            :code="codes.advtyp"
            disabled>
lianyang committed
66
            </c-select>
zhoutian committed
67
        </el-form-item>
lianyang committed
68 69 70 71
    </c-col>
    <c-col :span="24">
        <el-form-item label="付款日期" prop="brdgrp.rec.totdat">
            <c-date-picker type="date"  v-model="model.brdgrp.rec.totdat" style="width:100%"  placeholder="请选择付款日期"></c-date-picker>
zhoutian committed
72
        </el-form-item>
lianyang committed
73 74
    </c-col>
    <c-col :span="24">
huangxin committed
75
        <el-form-item label="不符点通知日期" prop="brdgrp.rec.disdat">
76
            <c-date-picker type="date"  v-model="model.brdgrp.rec.disdat" style="width:100%"  placeholder="请选择不符点通知日期"
77
            disabled></c-date-picker>
zhoutian committed
78
        </el-form-item>
lianyang committed
79 80 81 82
    </c-col>
    <c-col :span="24">
        <c-checkbox v-model="model.brdgrp.rec.approvcod">Documents on Approval Basis</c-checkbox>
    </c-col>
lianyang committed
83

84
   
lianyang committed
85 86

    <c-col :span="24">
87
        <!-- <c-checkbox v-model="model.brtp.cre752flg">创建 MT752</c-checkbox> -->
lianyang committed
88 89
        <el-form-item label=" ">
        </el-form-item>
lianyang committed
90
    </c-col>
lianyang committed
91 92 93 94 95 96 97
    <c-col :span="24">
        <el-form-item label=" " prop="brtp.furide">
            <!-- <c-select v-model="model.brtp.furide" style="width:100%" placeholder="请选择Further Identification"> -->
            <!-- </c-select> -->
        </el-form-item>
    </c-col>

lianyang committed
98
    <c-col :span="24">
99
        <c-checkbox v-model="model.brtp.cre732flg" disabled>创建MT732</c-checkbox>
lianyang committed
100 101 102 103
    </c-col>
   </c-col>
   
  
zhoutian committed
104 105 106
  </div>
</template>
<script>
lianyang committed
107
import Api from "~/service/Api";
zhoutian committed
108
import commonProcess from "~/mixin/commonProcess";
lianyang committed
109 110
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdck/Event";
111
import Utils from "~/utils";
112
import Docpre from "~/views/Public/Docpre";
zhoutian committed
113 114

export default {
115 116 117 118
    components: {
    // "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
lianyang committed
119 120 121 122
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
123
    return {
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
      // TableValue: [
      //   {
      //     id: 0,
      //     cmail1: "",
      //     cmail2: "",
      //     docnam: "",
      //     description: "",
      //     serialNum: "",
      //     tableName: "",
      //     tcddoc: "",
      //   },
      // ],
      // newValue: {
      //   id: 0,
      //   cmail1: "",
      //   cmail2: "",
      //   docnam: "",
      //   description: "",
      //   serialNum: "",
      //   tableName: "",
      //   tcddoc: "",
      // },
      // codeTable: [
      //   { label: 'Airway Bills', value: '1' },
      //   { label: `Beneficiary's Declaration`, value: '2' },
      //   { label: 'Bill of Lading Copies', value: '3' },
      //   { label: 'Bill of Lading Originals', value: '4' },
      //   { label: 'Certificate', value: '5' },
      //   { label: 'Certificate of Analysis', value: '6' },
      //   { label: 'Certificate of Origin', value: '7' },
      //   { label: 'Certificate of Quality', value: '8' },
      //   { label: 'Certificate of Quantity', value: '9' },
      //   { label: 'Commercial Invoice', value: '10' },
      //   { label: 'Courier Receipt', value: '11' },
      //   { label: 'Draft', value: '12' },
      //   { label: 'Export Licence ', value: '13' },
      //   { label: 'Fax Report', value: '14' },
      //   { label: 'Inspection Cert', value: '15' },
      //   { label: 'Insurance Policy', value: '16' },
      //   { label: 'Packing List', value: '17' },
      //   { label: 'Shipment Advice', value: '18' },
      //   { label: 'Weight List', value: '19' },
      // ],
167 168 169 170
    };
  },
  methods: { 
    ...Event,
171 172 173 174 175 176 177
    async docdisDefault(){
      this.executeDefault("brdgrp.blk.docdis").then(res => {
          //TODO 处理数据逻辑
          if(res.respCode == SUCCESS)
          this.updateModel(res.data);
      })
  },
178 179 180 181 182 183 184 185 186 187
    // addTableValue(index) {
    //   var newTableValue = Object.assign({}, this.newValue);
    //   const serial=Utils.generateUUID();
    //   newTableValue.serialNum=serial;
    //   // this.model.brtp.docgrdm.docgrd.push(newTableValue);
    //   this.model.brtp.docgrdm.docgrd.splice(index-1,0,newTableValue);
    // },
    // deleteTable(index) {
    //   this.model.brtp.docgrdm.docgrd.splice(index, 1);
    // },
lianyang committed
188 189
  },
  created: function () {},
190 191 192 193 194 195 196 197 198 199
  computed: {
    docdisflg: {
      get() {
        return this.model.brdgrp.blk.docdisflg != ""
      },
      set(val) {
        this.model.brdgrp.blk.docdisflg = val ? "X" : ""
      }
    },
  },
lianyang committed
200
};
zhoutian committed
201 202
</script>
<style>
203 204 205 206 207
.messageLabel >>> .el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
zhoutian committed
208
</style>