Ovwp1.vue 14.2 KB
Newer Older
tianxinyu committed
1 2 3
<template>
  <c-row>
    <!-- =================顶部====================== -->
hewei committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
<!--    <c-col :span="12" style="padding-right: 20px;">-->
<!--        <c-col :span="20">-->
<!--          <el-form-item-->
<!--            label="托收业务编号"-->
<!--            prop="bodgrp.rec.ownref"-->
<!--            style="width: 100%"-->
<!--          >-->
<!--            <c-input-->
<!--              v-model="model.bodgrp.rec.ownref"-->
<!--              maxlength="16"-->
<!--              placeholder="请输入托收业务编号"-->
<!--              style="width: 95%"-->
<!--              disabled-->
<!--            ></c-input>-->
<!--          </el-form-item>-->
<!--        </c-col>-->
<!--        <c-col :span="1">-->
<!--          <c-button-->
<!--            style="margin: 0 10px 0 0; padding: 0 10px"-->
<!--            size="small"-->
<!--            type="primary"-->
<!--            icon="el-icon-search"-->
<!--          ></c-button>-->
<!--        </c-col>-->
<!--        <c-col :span="3" style="text-align: right">-->
<!--          <c-button-->
<!--            style="margin: 0 0"-->
<!--            size="small"-->
<!--            type="primary"-->
<!--            :disabled="!this.flag && model.bodgrp.rec.ownref == ''? false:true"-->
<!--          >-->
<!--            获取-->
<!--          </c-button>-->
<!--        </c-col>-->
<!--      </c-col>-->
<!--      <c-col :span="12" style="padding-left: 20px;">-->
<!--        <el-form-item label="简略信息" prop="bodgrp.rec.nam">-->
<!--          <c-input-->
<!--            v-model="model.bodgrp.rec.nam"-->
<!--            maxlength="40"-->
<!--            disabled-->
<!--            placeholder="请输入"-->
<!--          ></c-input>-->
<!--        </el-form-item>-->
<!--      </c-col>-->
    <!-- ====================左边======================= -->
tianxinyu committed
50
    <c-col :span="12" style="padding-right: 20px;">
hewei committed
51 52
      <c-col :span="24">
        <el-form-item
tianxinyu committed
53 54 55
            label="托收业务编号"
            prop="bodgrp.rec.ownref"
            style="width: 100%"
hewei committed
56 57
        >
          <c-fullbox>
tianxinyu committed
58
            <c-input
hewei committed
59 60 61 62 63
                v-model="model.bodgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入托收业务编号"
                style="width: 100%"
                disabled
tianxinyu committed
64
            ></c-input>
hewei committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
            <template slot="footer">
              <c-button
                  style="margin: 0 10px 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  icon="el-icon-search"
              ></c-button>
              <c-button
                  style="margin: 0 0"
                  size="small"
                  type="primary"
                  :disabled="!this.flag && model.bodgrp.rec.ownref == ''? false:true"
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
tianxinyu committed
82 83 84
        </el-form-item>
      </c-col>
      <c-col :span="24">
hewei committed
85
        <c-col :span="16">
tianxinyu committed
86 87 88 89 90
          <el-form-item
            label="客户经理"
            prop="botp.usr.extkey"
            style="width: 100%"
          >
hewei committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
            <c-fullbox>
              <c-input
                  style="width: 100%"
                  v-model="model.botp.usr.extkey"
                  maxlength="8"
                  placeholder="请输入客户经理"
                  disabled
              ></c-input>
              <template slot="footer">
                <c-button
                    style="margin: 0 0 0 10px; padding: 0 12px"
                    size="small"
                    icon="el-icon-search"
                    type="primary"
                ></c-button>
              </template>
            </c-fullbox>
tianxinyu committed
108 109
          </el-form-item>
        </c-col>
hewei committed
110 111 112 113 114 115 116 117
<!--        <c-col :span="2">-->
<!--          <c-button-->
<!--            style="margin: 0 10px 0 0; padding: 0 10px"-->
<!--            size="small"-->
<!--            icon="el-icon-search"-->
<!--            type="primary"-->
<!--          ></c-button>-->
<!--        </c-col>-->
tianxinyu committed
118 119 120 121 122 123 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 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 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 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
        <c-col :span="8">
          <c-checkbox v-model="model.bodgrp.rec.dircolflg"
            >是否直接托收</c-checkbox
          >
        </c-col>
      </c-col>

      <c-col :span="12">
        <el-form-item label="托收金额" prop="bodgrp.cbs.max.cur">
          <c-select
            disabled
            v-model="model.bodgrp.cbs.max.cur"
            style="width: 100%"
            placeholder="请选择币种"
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item
          style="text-align: left"
          label-width="5px"
          prop="bodgrp.cbs.max.amt"
        >
          <c-input-currency
            disabled
            v-model="model.bodgrp.cbs.max.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入托收金额"
            @keyup.enter.native="
              defaultFunction('bodgrp.cbs.max.amt', model.bodgrp.cbs.max.amt)
            "
          ></c-input-currency>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="托收余额" prop="bodgrp.cbs.opn1.cur">
          <c-select
            disabled
            v-model="model.bodgrp.cbs.opn1.cur"
            style="width: 100%"
            placeholder="请选择币种"
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item
          style="text-align: left"
          label-width="5px"
          prop="bodgrp.cbs.opn1.amt"
        >
          <c-input-currency
            disabled
            v-model="model.bodgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入托收余额"
            @keyup.enter.native="
              defaultFunction('bodgrp.cbs.opn1.amt', model.bodgrp.cbs.opn1.amt)
            "
          ></c-input-currency>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="收单日期" prop="bodgrp.rec.rcvdat">
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.rcvdat"
            style="width: 100%"
            placeholder="请选择收单日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="装船日期" prop="bodgrp.rec.shpdat">
          <c-date-picker
            type="date"
            v-model="model.bodgrp.rec.shpdat"
            style="width: 100%"
            placeholder="请选择装船日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="寄单日期" prop="bodgrp.rec.predat">
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.predat"
            style="width: 100%"
            placeholder="请选择寄单日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="发货日期" prop="bodgrp.rec.advdat">
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.advdat"
            style="width: 100%"
            placeholder="请选择发货日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单条件" prop="bodgrp.rec.doctypcod">
          <c-select
            v-model="model.bodgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="请选择交单条件"
          >
            <el-option
              v-for="item in codes.doctypcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="单据到期日" prop="bodgrp.rec.matdat">
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.matdat"
            style="width: 100%"
            placeholder="请选择单据到期日"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="发票类型" prop="bodgrp.rec.invtyp">
          <c-select v-model="model.bodgrp.rec.invtyp" style="width: 100%">
            <el-option
              v-for="item in invtyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="单据期限" prop="bodgrp.rec.matpercnt">
          <c-input
            disabled
            v-model="model.bodgrp.rec.matpercnt"
            placeholder="请输入单据期限"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col v-if=" (model.trnmod.swiadd.Amatpertyp=='D')||(model.oldbodgrp.rec.matpertyp==''&&model.trnmod.swiadd.newmatpertyp=='')||(model.oldbodgrp.rec.matpertyp=='D' &&model.trnmod.swiadd.newmatpertyp=='')"   :span="1" style="margin-left:-10px">
        <el-form-item label="天"> </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="起始日期" prop="bodgrp.rec.matperbeg">
          <c-select
            disabled
            v-model="model.bodgrp.rec.matperbeg"
            style="width: 100%"
            placeholder="请选择起始日期"
          >
            <el-option
              v-for="item in codes.matperbeg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="单据到期描述" prop="bodgrp.blk.bogdet">
          <c-input
            type="textarea"
            :disabled="model.bodgrp.rec.doctypcod === 'P'"
            v-model="model.bodgrp.blk.bogdet"
            maxlength="43"
            show-word-limit
            placeholder="请输入单据到期描述"
          ></c-input>
        </el-form-item>
      </c-col>


      <!-- <c-col :span="24">
        <c-edit-table :model="model" v-bind="docgrd"> </c-edit-table>
      </c-col> -->
    </c-col>
    <!-- ====================右边======================= -->
    <c-col :span="12" style="padding-left: 20px;">
hewei committed
337 338 339 340 341 342 343 344 345 346
      <c-col :span="24">
        <el-form-item label="简略信息" prop="bodgrp.rec.nam">
          <c-input
              v-model="model.bodgrp.rec.nam"
              maxlength="40"
              disabled
              placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col>
tianxinyu committed
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495
      <c-ptap
        :model="model"
        :argadr="{
          title: '收款人',
          grp: 'bodgrp',
          rol: 'drr',
        }"
        :disabled="true"
        :disabledRef="true"
        :disabledExtkey="true"
      >
      </c-ptap>
      <c-ptap
        :model="model"
        :argadr="{
          title: '代收行',
          grp: 'bodgrp',
          rol: 'col',
        }"
        :disabled="this.flag2"
      >
      </c-ptap>

      <c-ptap
        :model="model"
        :argadr="{
          title: '付款人',
          grp: 'bodgrp',
          rol: 'dre',
        }"
        :disabled="this.flag3"
      >
      </c-ptap>

      
  
      <c-col :span="24">
        <el-form-item
          label="国家或地区代码"
          prop="bodgrp.rec.stacty"
        >
          <c-select
            v-model="model.bodgrp.rec.stacty"
            style="width: 100%"
            placeholder="请选择"
          >
            <el-option
              v-for="item in codes.stacty"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="货物类型" prop="bodgrp.rec.stagod">
          <c-select
            v-model="model.bodgrp.rec.stagod"
            style="width: 100%"
            placeholder="请选择货物类型"
          >
            <el-option
              v-for="item in codes.godcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
    <c-col :span="24">
      <c-docpre
        :model="model"
        :argadr="{
          path: 'bodgrp.blk.docpre',
          grp: 'botp',
          code: 'docpre',
        }"
      ></c-docpre>
    </c-col>
  </c-row>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Botame/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";
import Docpre from "~/views/Public/Docpre";
export default {
  components: {
    "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      flag2:false,
      flag3:false,

      invtyp: [{ label: "type1", value: "1" }],

     
    }
  },
  watch:{
      "model.bodgrp.col.pts.extkey" :{
        immediate:true,
        handler(val ,oldVal){
          if(this.model.bodgrp.col.pts.extkey!=''){
            this.flag2=true;
          }else{
            this.flag2=false;
          }
        }
      },
      "model.bodgrp.dre.pts.extkey" :{
        immediate:true,
        handler(val ,oldVal){
          if(this.model.bodgrp.dre.pts.extkey!=''){
            this.flag3=true;
          }else{
            this.flag3=false;
          }
        }
      },
  },
  methods: {
    ...Event,
  },

  computed: {
    flag() {
      return this.model.bodgrp.drr.pts.adrelc == "";
    },
  },
  created: function () {
  },
}
</script>
<style>
</style>