Brtdcrd.vue 6.58 KB
Newer Older
liuxin committed
1
<template>
liuxin committed
2
    <div class="eibs-tab">
3
        <c-col>
liuxin committed
4 5 6 7
        <c-col :span="12">
            <el-form-item label="Discrepancies" prop="brdgrp.blk.docdis">
                <c-fullbox>
                    <c-input
8
                        :disabled="model.advrefflg=='' && model.advdisflg==''"
liuxin committed
9 10
                        type="textarea"
                        v-model="model.brdgrp.blk.docdis"
11 12
                        maxlength="3500"
                        :rows="8"
liuxin committed
13 14 15 16
                        show-word-limit
                        placeholder="请输入Discrepancies"
                    ></c-input>
                    <template slot="footer">
17
                        <c-button  :disabled="model.advrefflg=='' && model.advdisflg==''" size="small" type="primary" icon="el-icon-search"
18
                @click="showGridPromptDialog('brtp.docdis.buttxmsel', null, null,{TXT: 'brdgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
liuxin committed
19 20 21 22 23 24
                        >
                            ...
                        </c-button>
                    </template>
                </c-fullbox>
            </el-form-item>
liuxin committed
25
        </c-col>
liuxin committed
26 27 28

        <c-col :span="12">
            <el-form-item>
29
                <c-checkbox  disabled v-model="model.brdgrp.blk.docdisflg"
liuxin committed
30 31 32 33
                    >discrepancies modified</c-checkbox
                >
            </el-form-item>
        </c-col>
34 35 36 37 38 39 40 41 42 43 44 45
        </c-col>

        <c-col :span="12">
        <c-docpre
        :model="model"
        :argadr="{
          path: 'brdgrp.blk.docpre',
          grp: 'brtp',
          code: 'docpre',
        }"
      ></c-docpre>
      </c-col>
liuxin committed
46

47
        <!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
liuxin committed
48 49 50
            <el-form-item :label="model.brtp.docgrdm.docdsclab" class="messageLabel">
                <c-button  style="float:right" @click="addTableValue" type="primary">新增单据</c-button>
            </el-form-item>
liuxin committed
51 52 53 54 55 56 57
        </c-col>
        <c-col :span="24" style="height: 0px">
            <el-divider></el-divider>
        </c-col>
        <c-col :span="24" style="">
            <c-table
                style="text-align: center"
liuxin committed
58
                :list="TableValue"
liuxin committed
59 60 61 62 63
                :paginationShow="false"
                :border="true"
            >
            <el-table-column label="1st" prop="cmail1" width="auto"></el-table-column>
            <el-table-column label="2nd" prop="cmail2" width="auto"></el-table-column>
liuxin committed
64 65
            <el-table-column label="Document" prop="docnam" width="auto">
                <template slot-scope="scope">
liuxin committed
66 67 68
                    <c-select
                    style="width: 100%"
                    placeholder="请选择"
liuxin committed
69 70 71
                    v-model="
                            scope.row.docnam
                        "
liuxin committed
72 73 74 75 76 77 78 79 80 81 82
                    >
                    <el-option
                        v-for="item in codeTable"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                    >
                    </el-option>
                    </c-select>
                </template>
            </el-table-column>
liuxin committed
83 84 85 86 87
            <el-table-column label="操作" width="170px" fixed="right">
                <template slot-scope="scope">
                    <c-button @click="deleteTable(scope.row)"  type="primary">删除</c-button>
                </template>
            </el-table-column>
liuxin committed
88
            </c-table>
89
        </c-col> -->
liuxin committed
90
    </div>
liuxin committed
91 92
</template>
<script>
liuxin committed
93
import Api from "~/service/Api";
liuxin committed
94
import commonProcess from "~/mixin/commonProcess";
liuxin committed
95 96
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdcr/Event";
97
import Docpre from "~/views/Public/Docpre";
liuxin committed
98 99

export default {
100 101 102
    components: {
    "c-docpre": Docpre,
  },
liuxin committed
103 104
    inject: ["root"],
    props: ["model", "codes"],
liuxin committed
105
    mixins: [commonProcess],
liuxin committed
106
    data() {
liuxin committed
107
        return {
108 109 110 111 112 113 114 115 116 117 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
            // TableValue:[
            //     {
            //         id:0,
            //         cmail1:"",
            //         cmail2:"",
            //         docnam:"10"
            //     },
            //     {
            //         id:1,
            //         cmail1:"",
            //         cmail2:"",
            //         docnam:"20"
            //     },
            //     {
            //         id:2,
            //         cmail1:"",
            //         cmail2:"",
            //         docnam:"17"
            //     },
            // ],
            // newValue:{
            //         id:0,
            //         cmail1:"",
            //         cmail2:"",
            //         docnam:""
            // },
            // 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" },
            //     { label: "Original Bills of Lading", value: "20" },  
            // ]
liuxin committed
156
        };
liuxin committed
157
    },
liuxin committed
158
    methods: { ...Event,
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
        // addTableValue(){
        //     var index = this.TableValue.length;
        //     var newTableValue = this.newValue;
        //     if(index > 0){
        //         newTableValue.id = this.TableValue[index - 1].id + 1;
        //     }
        //     this.TableValue.push(newTableValue);
        // },
        // deleteTable(row){
        //     for(let i = 0; i < this.TableValue.length; i++){
        //         if(this.TableValue[i].id == row.id){
        //             this.TableValue.splice(i, 1)
        //             break;
        //         }
        //     }
        // }
liuxin committed
175
    },
liuxin committed
176 177
    created: function () {},
};
liuxin committed
178 179
</script>
<style>
liuxin committed
180 181 182 183 184
.messageLabel >>> .el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
liuxin committed
185
</style>