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

4
       <!--================================左边================================== -->
lianyang committed
5 6 7 8
   <c-col :span="11"> 
    <c-col :span="21" >           
        <el-form-item label="Discrepancies" prop="brdgrp.blk.docdis" >
            <c-input type="textarea" v-model="model.brdgrp.blk.docdis" 
9
                maxlength="3500" show-word-limit placeholder="请输入Discrepancies" 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 24
    </c-col> 
    <c-col :span="24">
        <el-form-item label="Comments and Conclusions" prop="brdgrp.blk.comcon" >
25
            <c-input type="textarea" v-model="model.brdgrp.blk.comcon" maxlength="1950" show-word-limit placeholder="请输入Comments and Conclusions" 
lianyang committed
26 27
            rows="5"></c-input>
        </el-form-item>
zhoutian committed
28
        </c-col>
lianyang committed
29 30
    <c-col :span="21">
        <el-form-item label="Settlement Instructions BR" prop="brdgrp.blk.setinsbr">
31
            <c-input type="textarea" v-model="model.brdgrp.blk.setinsbr" maxlength="390" show-word-limit placeholder="请输入Settlement Instructions BR" 
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 49 50 51 52


    <!-- <c-col :span="12">
        <c-button size="small" type="primary" 
        icon="el-icon-search" @click="onSetinstxmButtxmsel">
            ...
        </c-button>
    </c-col>
    
    <c-col :span="12">
          <span  v-text="model.brtp.docgrdm.docdsclab"   data-path=".brtp.docgrdm.docdsclab" > </span>
    </c-col> -->
              <!-- Documents Presdented 已交单据 -->
53
    <!-- <c-col :span="24" style="height: 24px; margin-top: 5px"> -->
54 55 56 57
      <!-- <el-form-item
        :label="model.brtp.docgrdm.docdsclab"
        class="messageLabel"
      > -->
58
      <!-- <el-form-item
59 60 61 62 63 64
        label="Documents Presdented"
        class="messageLabel">
        <c-button style="float: right" @click="addTableValue" type="primary"
          >新增单据</c-button
        >
      </el-form-item>
65
    </c-col> -->
66

67
    <!-- <c-col :span="24" style="margin-bottom: 30px;margin-top: -10px;">
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
        <c-table
          height="200px"
          style="text-align: center"
          :list="this.model.brtp.docgrdm.docgrd || []"
          :paginationShow="false"
          :border="true"
        >
          <el-table-column label="1st" width="auto" sortable>
            <template slot-scope="scope">
              <c-input v-model="scope.row.cmail1"></c-input>
            </template>
          </el-table-column>
          <el-table-column label="2st" width="auto" sortable>
            <template slot-scope="scope">
              <c-input v-model="scope.row.cmail2"></c-input>
            </template>
          </el-table-column>
          <el-table-column label="Document" prop="docnam" width="auto" sortable>
86
            <template slot-scope="scope"> -->
87
              <!-- {{scope.row.docnam}} -->
88
              <!-- <c-select
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
                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">
              <c-button @click="deleteTable(scope.$index)" type="primary"
                >删除</c-button
              >
            </template>
          </el-table-column>
        </c-table>
111 112 113 114 115 116 117
      </c-col> -->
      <c-col :span="24">
        <c-docpre :model="model" :argadr="{
          path: 'brdgrp.blk.prsdoc',
          grp: 'brtp',
          code: 'docpre',
        }"></c-docpre>
118
      </c-col>
lianyang committed
119
   </c-col>
120
  
121
          <!--===========================右边============================== -->
lianyang committed
122 123 124 125 126
   <c-col :span="11" :offset="1"> 
    <c-col :span="24">           
        <c-checkbox v-model="model.brdgrp.rec.igndisflg">Ignore Discrepancies</c-checkbox>
    </c-col>
    <c-col :span="24">
127
        <c-checkbox v-model="docdisflg" @change="docdisDefault">discrepancies modified</c-checkbox>
128
        <!-- <c-checkbox v-model="model.brdgrp.blk.docdisflg">discrepancies modified</c-checkbox> -->
lianyang committed
129 130 131
    </c-col>
    <c-col :span="24">
        <el-form-item label="Type of Advice Received" prop="brdgrp.rec.advtyp" >
lianyang committed
132
            <c-select v-model="model.brdgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received"
133 134
            :code="codes.advtyp"
            disabled>
lianyang committed
135
            </c-select>
zhoutian committed
136
        </el-form-item>
lianyang committed
137 138 139 140
    </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
141
        </el-form-item>
lianyang committed
142 143 144
    </c-col>
    <c-col :span="24">
        <el-form-item label="Discrepancy Advice Dated" prop="brdgrp.rec.disdat" label-width="155px">
145 146
            <c-date-picker type="date"  v-model="model.brdgrp.rec.disdat" style="width:100%"  placeholder="请选择Discrepancy Advice Dated"
            disabled></c-date-picker>
zhoutian committed
147
        </el-form-item>
lianyang committed
148 149 150 151
    </c-col>
    <c-col :span="24">
        <c-checkbox v-model="model.brdgrp.rec.approvcod">Documents on Approval Basis</c-checkbox>
    </c-col>
lianyang committed
152 153

    <!-- <c-col :span="24">
lianyang committed
154 155 156 157 158 159
        <c-checkbox v-model="model.brtp.cre752flg">Create 752</c-checkbox>
    </c-col>
    <c-col :span="24">
        <el-form-item label="Further Identification" prop="brtp.furide">
            <c-select v-model="model.brtp.furide" style="width:100%" placeholder="请选择Further Identification">
            </c-select>
zhoutian committed
160
        </el-form-item>
lianyang committed
161 162 163 164 165 166
    </c-col> -->

    <c-col :span="24">
        <!-- <c-checkbox v-model="model.brtp.cre752flg">Create 752</c-checkbox> -->
        <el-form-item label=" ">
        </el-form-item>
lianyang committed
167
    </c-col>
lianyang committed
168 169 170 171 172 173 174
    <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
175
    <c-col :span="24">
176
        <c-checkbox v-model="model.brtp.cre732flg" disabled>Create MT 732</c-checkbox>
lianyang committed
177 178 179 180
    </c-col>
   </c-col>
   
  
zhoutian committed
181 182 183
  </div>
</template>
<script>
lianyang committed
184
import Api from "~/service/Api";
zhoutian committed
185
import commonProcess from "~/mixin/commonProcess";
lianyang committed
186 187
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdck/Event";
188
import Utils from "~/utils";
189
import Docpre from "~/views/Public/Docpre";
zhoutian committed
190 191

export default {
192 193 194 195
    components: {
    // "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
lianyang committed
196 197 198 199
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
200
    return {
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
      // 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' },
      // ],
244 245 246 247
    };
  },
  methods: { 
    ...Event,
248 249 250 251 252 253 254
    async docdisDefault(){
      this.executeDefault("brdgrp.blk.docdis").then(res => {
          //TODO 处理数据逻辑
          if(res.respCode == SUCCESS)
          this.updateModel(res.data);
      })
  },
255 256 257 258 259 260 261 262 263 264
    // 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
265 266
  },
  created: function () {},
267 268 269 270 271 272 273 274 275 276
  computed: {
    docdisflg: {
      get() {
        return this.model.brdgrp.blk.docdisflg != ""
      },
      set(val) {
        this.model.brdgrp.blk.docdisflg = val ? "X" : ""
      }
    },
  },
lianyang committed
277
};
zhoutian committed
278 279
</script>
<style>
280 281 282 283 284
.messageLabel >>> .el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
zhoutian committed
285
</style>