Tk.vue 4.21 KB
Newer Older
liuxin committed
1 2
<template>
  <div class="eibs-tab">
wangna committed
3

liuxin committed
4
    <c-col :span="15">
5
        <c-col :span="24">
liushikai committed
6
        <el-form-item label="货物描述" prop="didgrp.blk.lcrgod">
wangna committed
7
            <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}"  v-model="model.didgrp.blk.lcrgod" style="margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入货物描述" ></c-input>
8
       </el-form-item>
潘际乾 committed
9
       </c-col>
liuxin committed
10
                  
潘际乾 committed
11
       <c-col :span="24">
liushikai committed
12
        <el-form-item label="单据要求" prop="didgrp.blk.lcrdoc">
liuxin committed
13
            <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}"  v-model="model.didgrp.blk.lcrdoc" maxlength="1950" style="margin-right:20px;" show-word-limit placeholder="请输入单据要求" ></c-input>
14
       </el-form-item>
潘际乾 committed
15
       </c-col>
liuxin committed
16
                                                    
潘际乾 committed
17
       <c-col :span="24">
liushikai committed
18
        <el-form-item label="附加条款" prop="didgrp.blk.adlcnd">
liuxin committed
19
            <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.adlcnd" style="margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入附加条款" ></c-input>
20
       </el-form-item>
潘际乾 committed
21
       </c-col>
liuxin committed
22
                                                    
潘际乾 committed
23
       <c-col :span="24">
liushikai committed
24
        <el-form-item label="给付款、承兑、议付行的指示" prop="didgrp.blk.insbnk">
liuxin committed
25
            <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.insbnk" style="margin-right:20px;" maxlength="325" show-word-limit placeholder="请输入付行的指示" ></c-input>
26
       </el-form-item>
潘际乾 committed
27
       </c-col>
28 29
    </c-col>          

liuxin committed
30
    <c-col :span="7" :offset="1">
liuxin committed
31 32 33 34
        <c-col :offset="1">
            <el-form-item label="单据模板智能识别:" class="messageLabel">
            </el-form-item>
        </c-col>
liuxin committed
35
        <IntellectIcon :IconList="IconList" :spanVal="spanVal" v-on:deleteIcon="deleteIcon" v-on:insertIcon="insertIcon"></IntellectIcon>
36
    </c-col>
liuxin committed
37 38 39 40 41
                  
  </div>
</template>
<script>
import Api from "~/service/Api"
wangren committed
42
import commonProcess from "~/mixin/commonProcess";
liuxin committed
43
import CodeTable from "~/config/CodeTable"
liuxin committed
44
import Event from "~/model/Ditopn/Event"
45
import IntellectIcon from "~/components/IntellectIcon"
liuxin committed
46 47

export default {
48
    inject: ['root'],
liuxin committed
49
    props:["model","codes"],
wangren committed
50
    mixins: [commonProcess],
51
    components: { IntellectIcon },
liuxin committed
52 53
    data(){
        return {
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
            TKdialog: false,
            tkData:[
                {
                    id:"invoice",
                    src: require("~/assets/invoice.png"),
                    name:"发票",
                    show:true
                },
                {
                    id:"receipt",
                    src: require("~/assets/receipt.png"),
                    name:"货物收据",
                    show:true
                },
                {
                    id:"oceanShipping",
                    src: require("~/assets/oceanShipping.png"),
                    name:"海运提单",
                    show:true
                },
            ],
            IconList:[
                "invoice","receipt",
            ],
liuxin committed
78
            spanVal:7,
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
        }
    },
    methods:{
        ...Event,
        deleteIcon(id){
            const arr = []
            for (let i = 0; i < this.IconList.length; i++) {
                const icon = this.IconList[i];
                if (icon != id) {
                    arr.push(icon)
                }
            }
            this.IconList = arr;
        },
        insertIcon(id){
            this.IconList = [...this.IconList, id];
        }
    },
    watch: {
        IconList(){
            sessionStorage.setItem('IconList', JSON.stringify(this.IconList));
liuxin committed
100 101 102
        }
    },
    created:function(){
liuxin committed
103 104 105 106
        var IconList = JSON.parse(sessionStorage.getItem("IconList"));
        if(IconList == null){
            sessionStorage.setItem('IconList', JSON.stringify(this.IconList));
        }
liuxin committed
107 108 109 110
    }
}
</script>
<style>
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
  .bottom {
    margin-top: 6px;
    line-height: 5px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    height: 100%;
    display: block;
  }
liuxin committed
126 127 128 129 130
  .messageLabel >>> .el-form-item__label{
    /* text-align: left; */
    font-weight:bold;
    font-size: 12px;
}
liuxin committed
131
</style>