updchk.vue 12.3 KB
Newer Older
fukai committed
1 2 3 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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 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 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
<template>
  <div class="eibs-tab">
    <el-divider content-position="left">付汇信息</el-divider>
    <el-row>
      <c-col :span="12">
        <el-form-item label="业务状态" prop="txfmod.txpaym.bsnsts">
          <c-select style="width:100%" v-model="dbwtxfDialogUpd.txfmod.txpaym.bsnsts" disabled dbCode="PYMSTA" uil="CN"
            sort="SRT">
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="付汇业务编号" prop="txfmod.txpaym.bsnsrlno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txpaym.bsnsrlno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="备案表编号" prop="txfmod.txpaym.rcrdno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txpaym.rcrdno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="验证码" prop="txfmod.txpaym.dataverfcd">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txpaym.dataverfcd"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="纳税人识别号" prop="txfmod.txpaym.taxpyidnfno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txpaym.taxpyidnfno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="机构名称或个人姓名" prop="txfmod.txpaym.pymtbnknm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txpaym.pymtbnknm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="已核验付汇金额(美元)" prop="txfmod.txpaym.beenchkverfamt">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txpaym.beenchkverfamt"></c-input>
        </el-form-item>
      </c-col>
    </el-row>

    <el-divider content-position="left">服务贸易等项目对外付汇税务备案表</el-divider>
    <el-row>
      <c-col :span="12">
        <el-form-item label="备案表编号" prop="txfmod.txform.rcrdno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.rcrdno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="备案日期" prop="txfmod.txform.rcrddt">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.rcrddt"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="机构名称或个人姓名" prop="txfmod.txform.payernm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.payernm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="地域或住所" prop="txfmod.txform.payeradr">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.payeradr"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="付汇银行" prop="txfmod.txform.pymtbnknm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.pymtbnknm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="付汇账号" prop="txfmod.txform.pymtacctno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.pymtacctno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="纳税人识别号" prop="txfmod.txform.taxpyidnfno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.taxpyidnfno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="主管税务机关代码" prop="txfmod.txform.satraptxtnofccd">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.satraptxtnofccd"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="主管税务机关" prop="txfmod.txform.satraptxtnofcnm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.satraptxtnofcnm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="联系人" prop="txfmod.txform.ctcprsnnm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.ctcprsnnm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="联系电话" prop="txfmod.txform.ctctelno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.ctctelno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="境外收款人名称" prop="txfmod.txform.payeenm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.payeenm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="所属国家或地区" prop="txfmod.txform.payeectrynm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.payeectrynm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="境外收款人地址" prop="txfmod.txform.payeeadr">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.payeeadr"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="收汇银行" prop="txfmod.txform.clctnbnknm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.clctnbnknm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="收汇账号" prop="txfmod.txform.clctnacctno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.clctnacctno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="合同名称" prop="txfmod.txform.ctrnm">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.ctrnm"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="合同号" prop="txfmod.txform.ctrno">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.ctrno"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12" class="custom-box-wrap" style="width:50%;">
        <div style="width: 200px;">
          <el-form-item label="合同总金额(或支付标准)" prop="txfmod.txform.ccy">
            <c-select-cur v-model="dbwtxfDialogUpd.txfmod.txform.ccy" style="width:100%" dbCode="CURTXT" sort="SRT"
              disabled :isShowKeyAndLabel="true">
            </c-select-cur>
          </el-form-item>
        </div>
        <div style="width: calc(100% - 200px);">
          <el-form-item label-width="5px" prop="txfmod.txform.ctramt">
            <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.ctramt"></c-input>
          </el-form-item>
        </div>
      </c-col>
      <c-col :span="12">
        <el-form-item label="合同签订日期" prop="txfmod.txform.sgntrdt">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.sgntrdt"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="合同执行期限(起)" prop="txfmod.txform.bgndt">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.bgndt"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="合同执行期限(止)" prop="txfmod.txform.enddt">
          <c-input disabled v-model="dbwtxfDialogUpd.txfmod.txform.enddt"></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-divider content-position="left">付汇登记信息</el-divider>
    <el-row>
      <c-col :span="12">
        <el-form-item prop="payflg" class="checkbox-left">
          <c-checkbox v-model="dbwtxfDialogUpd.payflg" true-label="X" false-label="">无国际收支申报号付汇</c-checkbox>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-table style="text-align: center" highlight-current-row @row-click="handleSetfogRowClick"
        :row-class-name="tableSetfogRowClassName" :list="dbwtxfDialogUpd.txfmod.reglst" :paginationShow="true"
        :border="true" :total="dbwtxfDialogUpd.txfmod.reglst.length">

        <el-table-column label="国际收支申报号" prop="itnlincmpaydclrtnno" min-width="30%">
          <template slot-scope="scope">
            <c-input v-model="scope.row.itnlincmpaydclrtnno"></c-input>
          </template>
        </el-table-column>
        <el-table-column label="交易编码" prop="txncd" min-width="15%">
          <template slot-scope="scope">
            <c-input v-model="scope.row.txncd"></c-input>
          </template>
        </el-table-column>
        <el-table-column label="付汇币种" prop="txnccy" min-width="15%">
          <template slot-scope="scope">
            <c-select :isFixed="true" v-model="scope.row.txnccy" dbCode="CURTXT"></c-select>
          </template>
        </el-table-column>
        <el-table-column label="付汇金额" prop="pymtamt" min-width="20%">
          <template slot-scope="scope">
            <el-form-item label-width="0">
              <c-input-currency v-model="scope.row.pymtamt" :currency="scope.row.txnccy"></c-input-currency>
            </el-form-item>
          </template>
        </el-table-column>
        <el-table-column label="备注" prop="rmk" min-width="20%">
          <template slot-scope="scope">
            <c-input v-model="scope.row.rmk"></c-input>
          </template>
        </el-table-column>
        <el-table-column label="" prop="det" width="150px" fixed="right">
          <template slot-scope="scope" slot="header">
            <c-button circle style="padding: 4px" class="el-icon-plus" size="mini" @click="addRowSetfol(scope)">
            </c-button>
            <c-button style="padding: 4px" circle class="el-icon-minus" size="mini" @click="removeRowSetfol(scope)">
            </c-button>
          </template>
        </el-table-column>
      </c-table>
    </el-row>
    <el-row>
      <div style="text-align: center;margin-top:20px;">
        <el-button type="info" size="small" @click="closeUpdchk()">关 闭</el-button>
        <el-button type="primary" size="small" @click="updpay()">付汇修改</el-button>
        <el-button type="primary" size="small" @click="downloadInfo(dbwtxfDialogUpd)">下 载</el-button>
        <a v-show="false" :download="`TXF_${dbwtxfDialogUpd.txfmod.txform.inr}.pdf`" :href="viewPdfUrl" title="下载"
          ref="downloadA">
          下载
        </a>
      </div>
    </el-row>
  </div>
</template>
<script>
  import Utils from "~/utils";
  import commonFunctions from "~/mixin/commonFunctions.js";
  import event from "../event";
  import Check from "../model/check";
  import Dbwtxf from "../model";
  export default {
    inject: ["root"],
    props: ["model", "codes", "reqUpd"],
    mixins: [event, Check, commonFunctions],
    data() {
      return {
        dbwtxfDialogUpd: new Dbwtxf().data,
        currentSetfolIndex: -1,
        viewPdfUrl: "",
      }
    },
    mounted() {
      this.upd(this.reqUpd);
    },
    methods: {
      closeUpdchk() {
        let reqData = {
          tabVal: "inflst",
          updChkIsCreate: "N",
          oldUpdChkBsnsrlno: "",
        }
        this.$emit("updateActiveName", reqData);
      },
      provideMethodUpd() {
        this.upd(this.reqUpd);
      },
      handleSetfogRowClick(row) {
        this.currentSetfolIndex = row.index;
      },
      tableSetfogRowClassName({
        row,
        rowIndex
      }) {
        row.index = rowIndex;
      },
      addRowSetfol(row) {
        let newRow = {
          itnlincmpaydclrtnno: "",
          txncd: "",
          txnccy: "",
          pymtamt: 0,
          rmk: "",
        };
        let start = 0;
        if (this.dbwtxfDialogUpd.txfmod.reglst) {
          start = this.dbwtxfDialogUpd.txfmod.reglst.length;
        }
        this.dbwtxfDialogUpd.txfmod.reglst.splice(start, 0, newRow);
      },
      removeRowSetfol() {
        if (this.currentSetfolIndex === -1) {
          this.$notify.error({
            title: "错误",
            message: "请选择一条数据删除!"
          });
          return;
        }
        this.dbwtxfDialogUpd.txfmod.reglst.splice(this.currentSetfolIndex, 1);
        this.currentSetfolIndex = -1;
      },
    }
  }
</script>
<style lang="less" scoped>
  .currentPage {
    .el-table--enable-row-hover {
      .el-table__body {
        tr:hover>td {
          background-color: #c694dc !important;
        }
      }
    }

    ::v-deep .el-checkbox {
      float: none;
    }
  }
</style>