Mainpnl2.vue 18 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 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
<template>
  <div class="eibs-tab">
    <c-col :span="8" class="col-left">
			<c-col :span="24">
				<el-form-item label="申报类型" prop="bopquep.boptyp">
					<c-select v-model="model.bopquep.boptyp" placeholder="请选择申报类型" dbCode="BPSTYP" @change="typChange" :clearable=false />
				</el-form-item>
			</c-col>
			<c-col :span="24">
				<el-form-item label="申报号码" prop="bopquep.rptno">
					<c-input v-model="model.bopquep.rptno" placeholder="申报号码" style="width:100%" />
				</el-form-item>
			</c-col>
			
      <c-col :span="24">
        <el-form-item label="客户类型" prop="bopquep.ptytyp">
          <c-select v-model="model.bopquep.ptytyp" style="width:100%" dbCode="SZPTY"  placeholder="请选择客户类型">
            </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="结算方式" prop="bopquep.medtyp">
          <c-select v-model="model.bopquep.medtyp" style="width:100%" dbCode="MEDTYP" placeholder="请输入结算方式">
            </c-select>
        </el-form-item>
      </c-col>
			
		</c-col>

    <c-col :span="8" class="col-left">
      <c-col :span="24">
				<el-form-item label="查询日期类型" prop="bopquep.dattyp">
					<el-radio-group v-model="model.bopquep.dattyp">
						<el-radio label="A">按收付汇日期</el-radio>
						<el-radio label="B">按经办日期</el-radio>
					</el-radio-group>
				</el-form-item>
			</c-col>

      <c-col :span="24">
				<el-form-item label="业务编号" prop="bopquep.ownref">
					<c-input v-model="model.bopquep.ownref" placeholder="请输入业务编号" style="width:100%" />
				</el-form-item>
			</c-col>

      <c-col :span="24">
        <el-form-item label="数据来源" prop="bopquep.datsrc">
          <c-select v-model="model.bopquep.datsrc" dbCode="datsrc" placeholder="请输入数据来源" style="width: 100%" >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="币种" prop="bopquep.bopcur">
          <c-select v-model="model.bopquep.bopcur" style="width:100%" dbCode="curtxt" placeholder="请输入申报币种">
            </c-select>
        </el-form-item>
      </c-col>

    </c-col>

		<c-col :span="8" class="col-right">
			<c-col :span="24">
				<el-form-item label="起止日期" style="width: 100%">
					<c-col :span="11">
						<c-date-picker type="date" v-model="model.bopquep.frmdat" style="width: 100%" placeholder="请选择起始日期" value-format="yyyy-MM-dd"></c-date-picker>
					</c-col>
					<c-col :span="2" style="text-align: center">
						<label style="display: inline-block; width: 100%">-</label>
					</c-col>
					<c-col :span="11">
						<c-date-picker type="date" v-model="model.bopquep.tildat" style="width: 100%" placeholder="请选择截止日期" value-format="yyyy-MM-dd"></c-date-picker>
					</c-col>
				</el-form-item>
			</c-col>
			<c-col :span="24">
				<el-form-item label="业务所属行" prop="bopquep.ownextkey">
					<c-select v-model="model.bopquep.ownextkey" style="width: 100%" placeholder="请选择业务所属行">
						<el-option v-for="item in model.bchtypList" :key="item.branch" :label="item.bchname" :value="item.branch">
						</el-option>
					</c-select>
				</el-form-item>
			</c-col>
      <c-col :span="24">
        <c-form-item label="客户名称" prop="bopquep.ptynam">
          <c-input v-model="model.bopquep.ptynam" placeholder="请输入客户名称"></c-input>
        </c-form-item>
       </c-col>
       
			<c-col :span="24">
				<el-form-item label="笔数" prop="bopquep.sum">
					<c-input v-model="model.bopquep.sum" disabled></c-input>
				</el-form-item>
			</c-col>
			
		</c-col>

    <c-col :span="24">
				<el-form-item label="业务状态" prop="bopquep.staflg">
					<el-radio-group v-model="model.bopquep.staflg">
						<el-radio label="">全部</el-radio>
						<el-radio label="P">待确认</el-radio>
            <el-radio label="W">待发送</el-radio>
						<el-radio label="S">已发送</el-radio>
						<el-radio label="D">已撤销</el-radio>
						<el-radio label="G">已删除</el-radio>
						<el-radio label="E">待修改</el-radio>
            <el-radio label="A">待补录</el-radio>
					</el-radio-group>
				</el-form-item>
		</c-col>


    <c-col :span="24" style="margin-bottom: 5px;">
      <c-col :span="12" style="text-align: left">
        <el-button type="primary" size="small" @click="toadd()" :disabled="model.bopquep.boptyp == 'ALL' ">新增</el-button>
        <c-button size="small" type="primary"  @click="exportExcel">导出EXCEL</c-button>
      	<c-button size="small" type="primary"  @click="exportToTxt">应急导出</c-button>
      </c-col>
      <c-col :span="12" style="text-align: right">
        <c-button size="small" type="primary" icon="el-icon-search" @click="query">查询</c-button>
        <c-button size="small" @click="reset" type="primary">重置</c-button>
      </c-col>
    </c-col>

    <c-col :span="24">
      <div class="e-table-wrapper">
        <el-table
          :data="model.bopsellst"
          style="width: 100%"
          :highlight-current-row="true"
        >

        <el-table-column label="申报类型" prop="objtyp" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
            <div>{{getCodelabel(scope.row.objtyp,'boptyplabes')}}</div>
					</template>
				</el-table-column>
        <el-table-column label="申报号码" prop="rptno" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
				<el-table-column label="客户" prop="custnm" align="left" min-width="250" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="主体标识码" prop="custcod" align="left" min-width="120" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="基础" prop="bassta" align="left" min-width="120" :show-overflow-tooltip="true" sortable>
					<template slot-scope="scope">
						<span v-if="scope.row.bassta == 'S'">已发送</span>
            <span v-if="scope.row.bassta == 'X'">已发送</span>
						<span v-if="scope.row.bassta == 'W'">待发送</span>
						<span v-if="scope.row.bassta == 'D'">已撤销</span>
						<span v-if="scope.row.bassta == 'G'&&(scope.row.objtyp == 'DBJ'||scope.row.objtyp == 'DBW')">已删除</span>
            <span v-if="scope.row.bassta == 'G'&& scope.row.objtyp !== 'DBJ'&& scope.row.objtyp !== 'DBW'">已撤销</span>
						<span v-if="scope.row.bassta == 'P'">待确认</span>
						<span v-if="scope.row.bassta == 'E'">待修改</span>
					</template>
				</el-table-column>
				
				<el-table-column label="银行业务编号" prop="buscode" align="left" min-width="150"  :show-overflow-tooltip="true" sortable>
				</el-table-column>
				<el-table-column label="收付汇日期" prop="reldat" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
				<el-table-column label="币种" prop="txccy" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="金额" prop="txamt" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="客户类型" prop="custype" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
            <div>{{getCodelabel(scope.row.custype,'custypelabes')}}</div>
					</template>
				</el-table-column>
        <el-table-column label="结算方式" prop="method" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
            <div>{{getCodelabel(scope.row.method,'methodlabes')}}</div>
					</template>
				</el-table-column>
        <el-table-column label="基础操作类型" prop="actiontype" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
            <div>{{getCodelabel(scope.row.actiontype,'actionlabels')}}</div>
					</template>
				</el-table-column>
        <el-table-column label="检核状态" prop="sndflg" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
            <span v-if="scope.row.dclsta == 'C'">已确认</span>
            <span v-if="scope.row.dclsta == 'W'">待确认</span>
						<span v-if="scope.row.dclsta == 'G'&&(scope.row.objtyp == 'DBJ'||scope.row.objtyp == 'DBW')">已删除</span>
            <span v-if="scope.row.dclsta == 'G'&& scope.row.objtyp !== 'DBJ'&& scope.row.objtyp !== 'DBW'">已撤销</span>
					</template>
				</el-table-column>
        <el-table-column label="申报" prop="dclsta" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
						<span v-if="scope.row.dclsta == 'S'">已发送</span>
            <span v-if="scope.row.dclsta == 'X'">已发送</span>
						<span v-if="scope.row.dclsta == 'W'">待发送</span>
						<span v-if="scope.row.dclsta == 'D'">已撤销</span>
						<span v-if="scope.row.dclsta == 'G'&&(scope.row.objtyp == 'DBJ'||scope.row.objtyp == 'DBW')">已删除</span>
            <span v-if="scope.row.dclsta == 'G'&& scope.row.objtyp !== 'DBJ'&& scope.row.objtyp !== 'DBW'">已撤销</span>
						<span v-if="scope.row.dclsta == 'P'">待确认</span>
						<span v-if="scope.row.dclsta == 'E'">待修改</span>
					</template>
				</el-table-column>
        <el-table-column label="管理" prop="vrfsta" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
						<span v-if="scope.row.vrfsta == 'S'">已发送</span>
            <span v-if="scope.row.vrfsta == 'X'">已发送</span>
						<span v-if="scope.row.vrfsta == 'W'">待发送</span>
						<span v-if="scope.row.vrfsta == 'D'">已撤销</span>
						<span v-if="scope.row.vrfsta == 'G'&&(scope.row.objtyp == 'DBJ'||scope.row.objtyp == 'DBW')">已删除</span>
            <span v-if="scope.row.vrfsta == 'G'&& scope.row.objtyp !== 'DBJ'&& scope.row.objtyp !== 'DBW'">已撤销</span>
						<span v-if="scope.row.vrfsta == 'P'">待确认</span>
						<span v-if="scope.row.vrfsta == 'E'">待修改</span>
					</template>
				</el-table-column>
        <el-table-column label="对方客户名称" prop="oppuser" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="结汇金额" prop="lcyamt" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="账号" prop="lcyacc" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="现汇金额" prop="fcyamt" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="账号" prop="fcyacc" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="其他金额" prop="othamt" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="账号" prop="othacc" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="牌价" prop="exrate" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="国内扣费金额" prop="inchargeamt" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="国外扣费金额" prop="outchargeamt" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="地区机构号" prop="ownextkey" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="外汇账户账号" prop="jfcyacc" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="人民币账户账号" prop="jlcyacc" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="外汇账户开户行" prop="foroppbank" align="left" min-width="250" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="人民币账户开户行" prop="cnyoppbank" align="left" min-width="250" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="交易编码" prop="txcode" align="left" min-width="150" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="外汇局批件号/备案表号/业务编号" prop="regno" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="结汇用途" prop="usetype" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
            <div>{{getCodelabel(scope.row.usetype,'usetypelabes')}}</div>
					</template>
				</el-table-column>
        <el-table-column label="结汇详细用途" prop="usedetail" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="填报人" prop="crtuser" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="填报人电话" prop="inptelc" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
				</el-table-column>
        <el-table-column label="补录状态" prop="addsta" align="left" min-width="200" :show-overflow-tooltip="true" sortable>
          <template slot-scope="scope">
						<span v-if="scope.row.addsta == '1'">待补录</span>
            <span v-if="scope.row.addsta == '2'">已补录</span>
					</template>
				</el-table-column>
        
      
           <el-table-column fixed="right" label="操作" width="300px">
              <template slot-scope="scope">
								<c-button v-if=" model.btnflg =='N'&& model.enableflg =='Y'" :disabled="scope.row.bassta =='G'||scope.row.bassta =='D'||scope.row.bassta =='X'||scope.row.dclsta =='X'||scope.row.vrfsta =='X'" style="margin-left: 0" type='text' size="small" @click="tomod(scope.row)" >修改</c-button>
                <c-button v-if=" model.btnflg =='N'&& model.enableflg =='Y'" :disabled="scope.row.bassta =='G'||scope.row.bassta =='D'||scope.row.bassta =='X'||scope.row.dclsta =='X'||scope.row.vrfsta =='X'" style="margin-left: 0" type='text' size="small" @click="todel(scope.row)" >删除</c-button>
                <c-button v-if="scope.row.addsta === '1'&& model.btnflg =='N'&& model.enableflg =='Y'" style="margin-left: 0" type='text' size="small" @click="tomod(scope.row)" >补录</c-button>
                <c-button style="margin-left: 0" type='text' size="small" @click="toDetail(scope.row)" >查看</c-button>
                <c-button v-if="(scope.row.objtyp === 'DBA' || scope.row.objtyp === 'DBB'||scope.row.objtyp === 'DBC' || scope.row.objtyp === 'DBD'||scope.row.objtyp === 'DBE' || scope.row.objtyp === 'DBF')" style="margin-left: 0" type='text' size="small" @click="topnt(scope.row)">打印</c-button>
                <c-button v-if="model.btnflg =='N'&& model.enableflg =='Y' && (scope.row.objtyp === 'DBA' || scope.row.objtyp === 'DBB'||scope.row.objtyp === 'DBC' || scope.row.objtyp === 'DBD'||scope.row.objtyp === 'DBE' || scope.row.objtyp === 'DBF')" :disabled="scope.row.bassta =='G'||scope.row.bassta =='X'||scope.row.dclsta =='X'||scope.row.vrfsta =='X'" style="margin-left: 0" type='text' size="small" @click="tohis(scope.row)">历史数据重建</c-button>
              </template>
           </el-table-column>
        </el-table>
        <el-pagination
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page.sync="pagination.pageNum"
              :page-sizes="[10, 20, 50, 100, 500]"
              :page-size="pagination.pageSize"
              layout="total, sizes, prev, pager, next, jumper"
              :total="pagination.total">
          </el-pagination>
      </div>
    </c-col>
  </div>
</template>
<script>
    import commonProcess from "~/mixin/commonProcess";
    import event from "../event";
    import moment from 'moment';

    export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess, event],
  data() {
    return {
      pagination: {
        pageNum: 1,
        pageSize: 10,
        total: 0,
      },
      dbCodes:{
       boptyplabes: [],
       custypelabes: [],
       methodlabes: [],
       usetypelabes: [],
       bpschklabels: [],
       actionlabels: [],
    },
    };
  },
  created: function () {
      this.model.bopquep.frmdat=moment().subtract(1,"days").format("YYYY-MM-DD");
      this.model.bopquep.tildat=moment().format("YYYY-MM-DD");
      this.model.bopquep.dattyp='A';
  },
  mounted() {
      this.getdbCode('bpstyp','CN','boptyplabes');
      this.getdbCode('szpty','CN','custypelabes');
      this.getdbCode('medtyp','CN','methodlabes');
      this.getdbCode('usetyp','CN','usetypelabes');
      this.getdbCode("bpschk", "CN", "bpschklabels");
      this.getdbCode("action", "CN", "actionlabels");
  },
   methods: {
            typChange() {
                this.model.bopsellst = []
            },
            reset() {
                this.model.bopsellst = [],
                this.model.bopquep.frmdat=moment().subtract(1,"days").format("YYYY-MM-DD");
                this.model.bopquep.tildat=moment().format("YYYY-MM-DD");
                this.model.bopquep.dattyp='A';
                this.model.bopquep.ownextkey='';
                this.model.bopquep.staflg='';
                this.model.bopquep.boptyp='ALL';
                this.model.bopquep.medtyp='';
                this.model.bopquep.rptno='';
                this.model.bopquep.ptytyp='';
                this.model.bopquep.ptynam='';
                this.model.bopquep.bopcur='';
                this.model.bopquep.ownref='';
                this.model.bopquep.datsrc='';

            },
        }
};
</script>
<style>
</style>