Docpre.vue 10.5 KB
Newer Older
1

2
<template>
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
  <c-row>
    <!-- 左边 -->
    <c-col :span="14">
      <c-col :span="20">
        <el-form-item label="不符点">
          <c-input type="textarea" :disabled="!model.bddgrp.rec.igndisflg && model.bddgrp.blk.docdisflg ? false : true"
            :rows="6" v-model="model.bddgrp.blk.docdis" maxlength="65" show-word-limit placeholder="请输入不符点"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel"
          :disabled="!model.bddgrp.rec.igndisflg && model.bddgrp.blk.docdisflg ? false : true">
          ...
        </c-button>
      </c-col>
19

20 21 22 23 24 25
      <c-col :span="24">
        <el-form-item label="Comments and Conclusions" prop="bddgrp.blk.comcon">
          <c-input type="textarea" v-model="model.bddgrp.blk.comcon" maxlength="65" show-word-limit
            placeholder="请输入Comments and Conclusions" :rows="12" style="width:95%"></c-input>
        </el-form-item>
      </c-col>
26

27 28 29 30 31 32
      <c-col :span="24">
        <el-form-item label="到期付款确认备注" prop="bddgrp.blk.accrmk">
          <c-input type="textarea" v-model="model.bddgrp.blk.accrmk" maxlength="65" show-word-limit
            placeholder="请输入到期付款确认备注" style="width:95%"></c-input>
        </el-form-item>
      </c-col>
33

34
      <!-- <c-col :span="24">
35
                <span  v-text="model.bdtp.docgrdm.docdsclab"   data-path=".bdtp.docgrdm.docdsclab" > </span>
36 37
            </c-col> -->

38
      <!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
        <el-form-item :label="model.bdtp.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="margin-bottom: 30px;">
        <c-table height="200px" style="text-align: center" :list="this.model.bdtp.docgrdm.docgrd || []"
          :paginationShow="false" :border="true">
          <el-table-column label="1st" width="auto">
            <template slot-scope="scope">
              <c-input v-model="scope.row.cmail1"></c-input>
            </template>

          </el-table-column>
          <el-table-column label="2st" width="auto">
            <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">
            <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">
wangyanjiao committed
67
              <c-button @click="deleteTable(scope.$index)" type="primary">删除</c-button>
68 69 70
            </template>
          </el-table-column>
        </c-table>
71 72 73 74 75 76 77 78 79 80
      </c-col> -->

      <c-col>
        <c-docpre
        :model="model" 
        :argadr="{
          path: 'bddgrp.blk.prsdoc',
          grp: 'bdtp',
          code: 'bdtdck',
        }"></c-docpre>
81
      </c-col>
82
    </c-col>
83 84 85 86 87 88 89 90

    <!-- 右边 -->
    <c-col :span="10">
      <c-row>
        <c-col :span="24" :offset="8">
          <c-checkbox v-model="model.bddgrp.rec.igndisflg">
            忽略不符点
          </c-checkbox>
91
        </c-col>
92 93 94 95 96 97 98 99 100 101
        <c-col :span="24" :offset="8">
          <c-checkbox v-model="model.bddgrp.blk.docdisflg" :disabled="model.bddgrp.rec.igndisflg ? true : false">
            录入不符点
          </c-checkbox>
        </c-col>
      </c-row>
      <br /><br /><br /><br />
      <c-row>
        <c-col :span="24">
          <el-form-item label="收到的通知类" prop="bddgrp.rec.advtyp">
wangyanjiao committed
102 103
            <c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received"
              :disabled="true">
104 105
            </c-select>
          </el-form-item>
106 107
        </c-col>

108 109 110 111 112 113
        <c-col :span="24">
          <el-form-item label="付款日期" prop="bddgrp.rec.totdat">
            <c-date-picker type="date" v-model="model.bddgrp.rec.totdat" style="width:100%" placeholder="请选择付款日期">
            </c-date-picker>
          </el-form-item>
        </c-col>
114

115 116
        <c-col :span="24">
          <el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
wangyanjiao committed
117 118
            <c-date-picker type="date" v-model="model.bddgrp.rec.disdat" style="width:100%" placeholder="请选择不符点通知日期"
              :disabled="true">
119 120 121
            </c-date-picker>
          </el-form-item>
        </c-col>
122

123 124 125
        <c-col :span="24" :offset="8">
          <c-checkbox v-model="model.bddgrp.rec.approvcod">议付行担保议付</c-checkbox>
        </c-col>
126

127
        <c-col :span="24" :offset="8" v-if="false">
128 129
          <c-checkbox v-model="model.bdtp.cre752flg">Create 752</c-checkbox>
        </c-col>
130

131
        <c-col :span="24" v-if="false">
132 133 134 135 136
          <el-form-item label="Further Identification" prop="bdtp.furide">
            <c-select v-model="model.bdtp.furide" style="width:100%" placeholder="请选择Further Identification">
            </c-select>
          </el-form-item>
        </c-col>
137

138
        <c-col :span="24" :offset="8">
wangyanjiao committed
139 140
          <c-checkbox v-model="model.bdtp.cre732flg" :disabled="!model.bddgrp.rec.acpnowflg != ''">Create MT 732
          </c-checkbox>
141
        </c-col>
142 143 144 145
      </c-row>
    </c-col>

    <!-- <c-col :span="12">
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
	    <c-checkbox v-model="model.bddgrp.rec.igndisflg">Ignore Discrepancies</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel">
            ...
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Discrepancies" prop="bddgrp.blk.docdis">
            <c-input type="textarea" v-model="model.bddgrp.blk.docdis" maxlength="50" show-word-limit placeholder="请输入Discrepancies" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.bddgrp.blk.docdisflg">discrepancies modified</c-checkbox>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Type of Advice Received" prop="bddgrp.rec.advtyp">
            <c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="付款日期" prop="bddgrp.rec.totdat">
            <c-date-picker type="date"  v-model="model.bddgrp.rec.totdat" style="width:100%"  placeholder="请选择付款日期"></c-date-picker>
        </el-form-item>
       </c-col>
                                                    
       <c-col :span="12">
        <el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
            <c-date-picker type="date"  v-model="model.bddgrp.rec.disdat" style="width:100%"  placeholder="请选择不符点通知日期"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Comments and Conclusions" prop="bddgrp.blk.comcon">
            <c-input type="textarea" v-model="model.bddgrp.blk.comcon" maxlength="65" show-word-limit placeholder="请输入Comments and Conclusions" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.bddgrp.rec.approvcod">Documents on Approval Basis</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.bdtp.cre752flg">Create 752</c-checkbox>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Further Identification" prop="bdtp.furide">
            <c-select v-model="model.bdtp.furide" style="width:100%" placeholder="请选择Further Identification">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
	    <c-checkbox v-model="model.bdtp.cre732flg">Create MT 732</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="到期付款确认备注" prop="bddgrp.blk.accrmk">
            <c-input type="textarea" v-model="model.bddgrp.blk.accrmk" maxlength="65" show-word-limit placeholder="请输入到期付款确认备注" ></c-input>
        </el-form-item>
        </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.bdtp.docgrdm.docdsclab"   data-path=".bdtp.docgrdm.docdsclab" > </span>
	</c-col> -->
218
  </c-row>
219 220 221
</template>
<script>
import Api from "~/service/Api"
wangren committed
222
import commonProcess from "~/mixin/commonProcess";
223 224
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bdtdck/Event"
225
import Docpre from "~/views/Public/Docpre";
wangyanjiao committed
226
import Utils from "~/utils";
227
export default {
228 229 230
   components: {
    "c-docpre": Docpre,
  },
231 232 233 234 235 236
  inject: ['root'],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      TableValue: [
237 238 239 240 241 242 243 244 245 246 247 248
        {
          id: 0,
          cmail1: "1",
          cmail2: "2",
          docnam: "1",
        },
      ],
      newValue: {
        id: 0,
        cmail1: "",
        cmail2: "",
        docnam: "",
wangyanjiao committed
249 250 251 252
        description: "",
        serialNum: "",
        tableName: "",
        tcddoc: "",
253 254 255 256 257 258 259 260 261 262 263
      },
      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" },
      ],
264

265 266 267 268
    }
  },
  methods: {
    ...Event,
wangyanjiao committed
269 270 271 272 273
    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);
274
    },
wangyanjiao committed
275 276
    deleteTable(index) {
      this.model.bdtp.docgrdm.docgrd.splice(index, 1);
277
    },
278
  },
279

280 281 282 283
  created: function () {


  }
284 285 286
}
</script>
<style>
287
.messageLabel>>>.el-form-item__label {
288 289 290 291
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
292
</style>