|
@@ -7,11 +7,36 @@
|
|
|
<div class="print-type-title">打印凭证</div>
|
|
|
<div class="print-type-checkbox">
|
|
|
<el-checkbox-group v-model="ruleForm.type">
|
|
|
- <el-checkbox label="打印身份证" name="type" class="label-width" @change="selectType"></el-checkbox>
|
|
|
- <el-checkbox label="打印银行卡" name="type" class="label-width" @change="selectType"></el-checkbox>
|
|
|
- <el-checkbox label="打印结算凭证" name="type" class="label-width" @change="selectType($event)"></el-checkbox>
|
|
|
- <el-checkbox label="打印检斤单" name="type" class="label-width" @change="selectType($event)"></el-checkbox>
|
|
|
- <el-checkbox label="打印自产证明" name="type" class="label-width" @change="selectType($event)"></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ label="打印身份证"
|
|
|
+ name="type"
|
|
|
+ class="label-width"
|
|
|
+ @change="selectType"
|
|
|
+ ></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ label="打印银行卡"
|
|
|
+ name="type"
|
|
|
+ class="label-width"
|
|
|
+ @change="selectType"
|
|
|
+ ></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ label="打印结算凭证"
|
|
|
+ name="type"
|
|
|
+ class="label-width"
|
|
|
+ @change="selectType($event)"
|
|
|
+ ></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ label="打印检斤单"
|
|
|
+ name="type"
|
|
|
+ class="label-width"
|
|
|
+ @change="selectType($event)"
|
|
|
+ ></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ label="打印自产证明"
|
|
|
+ name="type"
|
|
|
+ class="label-width"
|
|
|
+ @change="selectType($event)"
|
|
|
+ ></el-checkbox>
|
|
|
<!-- <el-checkbox label="打印回执单" name="type" class="label-width" @change="selectType($event)"></el-checkbox> -->
|
|
|
<!-- <el-checkbox label="打印发票" name="type" class="label-width" @change="selectType($event)"></el-checkbox> -->
|
|
|
</el-checkbox-group>
|
|
@@ -27,77 +52,161 @@
|
|
|
<!-- <ws-button type="primary" @click="screen(2)">待结算</ws-button>
|
|
|
<ws-button type="primary" @click="screen(0)">待审核</ws-button>
|
|
|
<ws-button type="primary" @click="screen()">全部</ws-button>-->
|
|
|
- <ws-button :type="searchType == '' ? 'primary' : ''" @click="screen(-1)">全部</ws-button>
|
|
|
+ <ws-button :type="searchType == '' ? 'primary' : ''" @click="screen(-1)"
|
|
|
+ >全部</ws-button
|
|
|
+ >
|
|
|
<!-- <ws-button :type="searchType == 1 ? 'primary' : ''" @click="screen(1)">待审核</ws-button>
|
|
|
<div v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">
|
|
|
<ws-button :type="searchType == 7 ? 'primary' : ''" @click="screen(7)">待付款</ws-button>
|
|
|
</div> -->
|
|
|
- <ws-button :type="searchType == 2 ? 'primary' : ''" @click="screen(2)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.add`">待结算</ws-button>
|
|
|
- <ws-button :type="invoicing === 0 ? 'primary' : ''" @click="screen(0)">未开票</ws-button>
|
|
|
+ <ws-button
|
|
|
+ :type="searchType == 2 ? 'primary' : ''"
|
|
|
+ @click="screen(2)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.add`"
|
|
|
+ >待结算</ws-button
|
|
|
+ >
|
|
|
+ <ws-button :type="invoicing === 0 ? 'primary' : ''" @click="screen(0)"
|
|
|
+ >未开票</ws-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<template slot="right">
|
|
|
-
|
|
|
- <el-select class="warehouse_select" v-model="warehouseNameKey" placeholder="请选择仓库" @change="warehouseChange"
|
|
|
- filterable clearable style="margin: 0 10px">
|
|
|
- <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName" :value="item.id">
|
|
|
+ <el-select
|
|
|
+ class="warehouse_select"
|
|
|
+ v-model="warehouseNameKey"
|
|
|
+ placeholder="请选择仓库"
|
|
|
+ @change="warehouseChange"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ style="margin: 0 10px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in warehouseList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.warehouseName"
|
|
|
+ :value="item.id"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-select class="warehouse_select" v-model="goodNames" placeholder="请选择货名" @change="goodsNameChange" filterable
|
|
|
- clearable multiple :multiple-limit="multipleLimit" style="margin: 0 10px">
|
|
|
+ <el-select
|
|
|
+ class="warehouse_select"
|
|
|
+ v-model="goodNames"
|
|
|
+ placeholder="请选择货名"
|
|
|
+ @change="goodsNameChange"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ multiple
|
|
|
+ :multiple-limit="multipleLimit"
|
|
|
+ style="margin: 0 10px"
|
|
|
+ >
|
|
|
<el-option label="全部货名" value="全部货名"></el-option>
|
|
|
- <el-option v-for="item in goodnameList" :key="item.id" :label="item.constValue" :value="item.constValue">
|
|
|
+ <el-option
|
|
|
+ v-for="item in goodnameList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.constValue"
|
|
|
+ :value="item.constValue"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-date-picker style="margin: 0 10px 0 0" value-format="yyyy-MM-dd" v-model="value2" @change="datechange"
|
|
|
- type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="结算时间起"
|
|
|
- end-placeholder="结算时间止">
|
|
|
+ <el-date-picker
|
|
|
+ style="margin: 0 10px 0 0"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ v-model="value2"
|
|
|
+ @change="datechange"
|
|
|
+ type="daterange"
|
|
|
+ align="right"
|
|
|
+ unlink-panels
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="结算时间起"
|
|
|
+ end-placeholder="结算时间止"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
<div></div>
|
|
|
- <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="编号、合同号、客户名、车牌号"
|
|
|
- clearable maxlength="500" type="input">
|
|
|
+ <ws-input
|
|
|
+ class="findinput"
|
|
|
+ @keyup.enter.native="find()"
|
|
|
+ v-model="searchKeyWord"
|
|
|
+ placeholder="编号、合同号、客户名、车牌号"
|
|
|
+ clearable
|
|
|
+ maxlength="500"
|
|
|
+ type="input"
|
|
|
+ >
|
|
|
</ws-input>
|
|
|
<!-- v-hasPermission="'procurement.sparepart.directShip'" -->
|
|
|
<ws-button class="find" type="primary" @click="find()">
|
|
|
- <img width="16" height="16" style="vertical-align: text-top; position: relative; top: 0px;left:-8px;"
|
|
|
- src="../../../public/img/sousuo.png" alt />
|
|
|
+ <img
|
|
|
+ width="16"
|
|
|
+ height="16"
|
|
|
+ style="vertical-align: text-top; position: relative; top: 0px;left:-8px;"
|
|
|
+ src="../../../public/img/sousuo.png"
|
|
|
+ alt
|
|
|
+ />
|
|
|
</ws-button>
|
|
|
</template>
|
|
|
</BaseHeaderLayout>
|
|
|
<el-row>
|
|
|
<el-col :span="20">
|
|
|
- <!-- <ws-button type="primary" @click="screen(2)">待结算</ws-button>
|
|
|
+ <!-- <ws-button type="primary" @click="screen(2)">待结算</ws-button>
|
|
|
<ws-button type="primary" @click="screen(0)">待审核</ws-button>
|
|
|
<ws-button type="primary" @click="screen()">全部</ws-button>-->
|
|
|
|
|
|
<!-- <ws-button type="primary" @click="reject">驳回</ws-button>
|
|
|
<ws-button type="primary" @click="adopt">通过</ws-button> -->
|
|
|
- <ws-button type="primary" @click="invoicingClick"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">开票</ws-button>
|
|
|
- <ws-button type="primary" @click="exportlist" v-hasPermission="`acquisitionManagement.acquisitionPay.print`">导出
|
|
|
+ <ws-button
|
|
|
+ type="primary"
|
|
|
+ @click="invoicingClick"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
|
|
|
+ >开票</ws-button
|
|
|
+ >
|
|
|
+ <ws-button
|
|
|
+ type="primary"
|
|
|
+ @click="exportlist"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
|
+ >导出
|
|
|
</ws-button>
|
|
|
- <ws-button type="primary" v-show='warehouseName=="丹东港"' @click="generateClick()">生成入库单</ws-button>
|
|
|
- <el-upload style="margin-left: 8px;" class="upload-demo inline-block margin-right-10" action=""
|
|
|
- :on-change="importClick" :show-file-list="false"
|
|
|
+ <ws-button
|
|
|
+ type="primary"
|
|
|
+ v-show="warehouseName == '丹东港'"
|
|
|
+ @click="generateClick()"
|
|
|
+ >生成入库单</ws-button
|
|
|
+ >
|
|
|
+ <el-upload
|
|
|
+ style="margin-left: 8px;"
|
|
|
+ class="upload-demo inline-block margin-right-10"
|
|
|
+ action=""
|
|
|
+ :on-change="importClick"
|
|
|
+ :show-file-list="false"
|
|
|
accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
|
|
|
- :auto-upload="false">
|
|
|
+ :auto-upload="false"
|
|
|
+ >
|
|
|
<ws-button type="primary">导入</ws-button>
|
|
|
</el-upload>
|
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
|
<!-- <ws-button type="primary" @click="payment" v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">付款 -->
|
|
|
<!-- </ws-button> -->
|
|
|
<!-- v-hasPermission="`acquisitionManagement.acquisitionPay.finace`" -->
|
|
|
- <ws-button type="primary" @click="selectPrint(1)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">财务批量打印
|
|
|
+ <ws-button
|
|
|
+ type="primary"
|
|
|
+ @click="selectPrint(1)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
|
|
|
+ >财务批量打印
|
|
|
</ws-button>
|
|
|
- <ws-button type="primary" @click="selectPrint(2)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.yeda`">业务批量打印
|
|
|
+ <ws-button
|
|
|
+ type="primary"
|
|
|
+ @click="selectPrint(2)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.yeda`"
|
|
|
+ >业务批量打印
|
|
|
</ws-button>
|
|
|
- <ws-button type="primary" @click="selectPrint(3)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.yeda`">身份证银行卡打印
|
|
|
+ <ws-button
|
|
|
+ type="primary"
|
|
|
+ @click="selectPrint(3)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.yeda`"
|
|
|
+ >身份证银行卡打印
|
|
|
</ws-button>
|
|
|
- <ws-button type="primary" @click="agreementPrint()"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.dow`">下载结算单
|
|
|
+ <ws-button
|
|
|
+ type="primary"
|
|
|
+ @click="agreementPrint()"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.dow`"
|
|
|
+ >下载结算单
|
|
|
</ws-button>
|
|
|
<!-- <el-upload :on-change="importClick" action="" :show-file-list="false" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" :auto-upload="false"
|
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.dow`"><el-button type="primary">导入</el-button>
|
|
@@ -115,8 +224,7 @@
|
|
|
<el-button type="primary">自产证明模板</el-button>
|
|
|
</el-link>
|
|
|
</el-col>
|
|
|
- <el-col :span="4">
|
|
|
- </el-col>
|
|
|
+ <el-col :span="4"> </el-col>
|
|
|
</el-row>
|
|
|
<!-- <BaseHeaderLayout :leftSpan="10">
|
|
|
<template slot="left">
|
|
@@ -125,92 +233,245 @@
|
|
|
</template>
|
|
|
<template slot="right"></template>
|
|
|
</BaseHeaderLayout> -->
|
|
|
- <el-table :data="paymentList" ref="table" style="width: 100%; margin-top: 20px" border height="calc(100% - 170px)"
|
|
|
- @row-click="handleRowClick" @selection-change="handleSelectionChange" :summary-method="getSummaries" show-summary>
|
|
|
+ <el-table
|
|
|
+ :data="paymentList"
|
|
|
+ ref="table"
|
|
|
+ style="width: 100%; margin-top: 20px"
|
|
|
+ border
|
|
|
+ height="calc(100% - 170px)"
|
|
|
+ @row-click="handleRowClick"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ :summary-method="getSummaries"
|
|
|
+ show-summary
|
|
|
+ >
|
|
|
<!-- <el-table-column :selectable="selectInit" type="selection" width="30"></el-table-column> -->
|
|
|
- <el-table-column type="selection" width="30"></el-table-column>
|
|
|
+ <el-table-column type="selection" width="30"></el-table-column>
|
|
|
<el-table-column fixed type="index" label="序号" width="50">
|
|
|
<template scope="scope">
|
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed class="table_td" prop="paymentNo" width="90" label="编号" sortable></el-table-column>
|
|
|
- <el-table-column fixed class="table_td" prop="customerName" label="客户" sortable>
|
|
|
+ <el-table-column
|
|
|
+ fixed
|
|
|
+ class="table_td"
|
|
|
+ prop="paymentNo"
|
|
|
+ width="90"
|
|
|
+ label="编号"
|
|
|
+ sortable
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ fixed
|
|
|
+ class="table_td"
|
|
|
+ prop="customerName"
|
|
|
+ label="客户"
|
|
|
+ sortable
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<div @click.stop="customer(scope.row)">
|
|
|
<span class="text_css">{{ scope.row.customerName }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed class="table_td" prop="carNo" label="车牌号"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="contractNo" label="合同号"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ fixed
|
|
|
+ class="table_td"
|
|
|
+ prop="carNo"
|
|
|
+ label="车牌号"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="contractNo"
|
|
|
+ label="合同号"
|
|
|
+ ></el-table-column>
|
|
|
<!-- <el-table-column class="table_td" v-show='warehouseName=="鲅鱼圈金信库"' width='140' prop="actualWeighingFee"
|
|
|
label="卸车过磅费(元)"></el-table-column> -->
|
|
|
- <el-table-column class="table_td" prop="goodsName" width="70" label="货名"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="type" width="60" label="类型"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="tidalGrainPrice" width="140" label="净重单价(元/公斤)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="unitDeduction" width="130" label="扣单价(元/公斤)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="solidGrainPrice" width="140" label="纯重单价(元/公斤)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="netWeight" width="100" label="净重(公斤)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="pureWeight" width="100" label="纯重(公斤)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="bulkDensity" width="60" label="容重"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="waterContent" width="60" label="水分"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="mildewGrain" width="50" label="霉变"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="amountIngPayable" width="80" label="应付款(元)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="amountEdPayable" width="80" label="已付款(元)">
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="goodsName"
|
|
|
+ width="70"
|
|
|
+ label="货名"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="type"
|
|
|
+ width="60"
|
|
|
+ label="类型"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="tidalGrainPrice"
|
|
|
+ width="140"
|
|
|
+ label="净重单价(元/公斤)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="unitDeduction"
|
|
|
+ width="130"
|
|
|
+ label="扣单价(元/公斤)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="solidGrainPrice"
|
|
|
+ width="140"
|
|
|
+ label="纯重单价(元/公斤)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="netWeight"
|
|
|
+ width="100"
|
|
|
+ label="净重(公斤)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="pureWeight"
|
|
|
+ width="100"
|
|
|
+ label="纯重(公斤)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="bulkDensity"
|
|
|
+ width="60"
|
|
|
+ label="容重"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="waterContent"
|
|
|
+ width="60"
|
|
|
+ label="水分"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="mildewGrain"
|
|
|
+ width="50"
|
|
|
+ label="霉变"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="amountIngPayable"
|
|
|
+ width="80"
|
|
|
+ label="应付款(元)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="amountEdPayable"
|
|
|
+ width="80"
|
|
|
+ label="已付款(元)"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<div @click="showPayImg(scope.row)">
|
|
|
{{ scope.row.amountEdPayable }}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="accountPaymentDate" width="120" label="总账付款日期"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="paymentVoucherNumber" width="120" label="付款凭证编号"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="amountIngPayable" width="80" label="自产证明">
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="accountPaymentDate"
|
|
|
+ width="120"
|
|
|
+ label="总账付款日期"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="paymentVoucherNumber"
|
|
|
+ width="120"
|
|
|
+ label="付款凭证编号"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="amountIngPayable"
|
|
|
+ width="80"
|
|
|
+ label="自产证明"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
- src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
|
|
|
+ <img
|
|
|
+ width="18"
|
|
|
+ height="20"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/fujian.png"
|
|
|
+ @click="fujian(scope.row)"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<span v-if="scope.row.selfCertificate != null">1</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="updateDate" label="更新时间" width="150" sortable></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="updateDate"
|
|
|
+ label="更新时间"
|
|
|
+ width="150"
|
|
|
+ sortable
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column class="table_td" prop="status" width="80" label="状态">
|
|
|
<template scope="scope">
|
|
|
- <span v-if="scope.row.approveStatus&&scope.row.reverseFlag!=1">{{
|
|
|
+ <span v-if="scope.row.approveStatus && scope.row.reverseFlag != 1">{{
|
|
|
scope.row.approveStatus
|
|
|
}}</span>
|
|
|
|
|
|
<span v-else>{{ scope.row.status }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="status" width="80" label="是否开票">
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="status"
|
|
|
+ width="80"
|
|
|
+ label="是否开票"
|
|
|
+ >
|
|
|
<template scope="scope">
|
|
|
<span v-if="scope.row.invoicing == '0'">未开票</span>
|
|
|
<span v-else>已开票</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="600">
|
|
|
+ <el-table-column
|
|
|
+ class="table_td"
|
|
|
+ prop="collectionEdPayable"
|
|
|
+ label="操作"
|
|
|
+ width="600"
|
|
|
+ >
|
|
|
<template scope="scope">
|
|
|
<span v-hasPermission="`acquisitionManagement.acquisitionPay.add`">
|
|
|
- <el-button v-show="
|
|
|
- (!scope.row.approveStatus ||scope.row.approveStatus == '待结算') &&
|
|
|
- (scope.row.status == '待结算' || scope.row.status == '已驳回' )||scope.row.approveStatus&&scope.row.reverseFlag==1
|
|
|
- " @click="settlement(1, scope.row)">结算</el-button>
|
|
|
+ <el-button
|
|
|
+ v-show="
|
|
|
+ ((!scope.row.approveStatus ||
|
|
|
+ scope.row.approveStatus == '待结算') &&
|
|
|
+ (scope.row.status == '待结算' ||
|
|
|
+ scope.row.status == '已驳回')) ||
|
|
|
+ (scope.row.approveStatus && scope.row.reverseFlag == 1)
|
|
|
+ "
|
|
|
+ @click="settlement(1, scope.row)"
|
|
|
+ >结算</el-button
|
|
|
+ >
|
|
|
</span>
|
|
|
- <el-button @click="settlement(2, scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.view`">查看
|
|
|
+ <el-button
|
|
|
+ @click="settlement(2, scope.row)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.view`"
|
|
|
+ >查看
|
|
|
</el-button>
|
|
|
- <el-button v-show="scope.row.approveStatus&&scope.row.reverseFlag!=1" @click="settleaccounts(scope.row)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.seet`">反结算
|
|
|
+ <el-button
|
|
|
+ v-show="scope.row.approveStatus && scope.row.reverseFlag != 1"
|
|
|
+ @click="settleaccounts(scope.row)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.seet`"
|
|
|
+ >反结算
|
|
|
</el-button>
|
|
|
- <el-button v-show="
|
|
|
+ <el-button
|
|
|
+ v-show="
|
|
|
scope.row.approveStatus ||
|
|
|
- (scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
- " @click="print(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.print`">打印</el-button>
|
|
|
- <el-button v-show="
|
|
|
+ (scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
+ "
|
|
|
+ @click="print(scope.row)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
|
+ >打印</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-show="
|
|
|
(scope.row.approveStatus ||
|
|
|
- (scope.row.status != '待结算' && !scope.row.approveStatus))&&(compId=='6a713699e08c4cbc97a87f7648a95e3d'||compId=='5d164edcef03476dba6630f86dc96496')
|
|
|
- " @click="printPY(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.print`">三方打印</el-button>
|
|
|
+ (scope.row.status != '待结算' && !scope.row.approveStatus)) &&
|
|
|
+ (compId == '6a713699e08c4cbc97a87f7648a95e3d' ||
|
|
|
+ compId == 'd4031a7c77694a749058ec87da1a4ff1')
|
|
|
+ "
|
|
|
+ @click="printPY(scope.row)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
|
+ >三方打印</el-button
|
|
|
+ >
|
|
|
<!-- <el-button v-show="
|
|
|
scope.row.approveStatus ||
|
|
|
(scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
@@ -218,24 +479,39 @@
|
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
|
|
|
>财务打印
|
|
|
</el-button> -->
|
|
|
- <el-button v-show="
|
|
|
+ <el-button
|
|
|
+ v-show="
|
|
|
scope.row.approveStatus ||
|
|
|
- (scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
- " @click="print1(scope.row,2)" v-hasPermission="`acquisitionManagement.acquisitionPay.yeda`">业务打印
|
|
|
+ (scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
+ "
|
|
|
+ @click="print1(scope.row, 2)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.yeda`"
|
|
|
+ >业务打印
|
|
|
</el-button>
|
|
|
<!-- <el-button @click="previewPayOrder(scope.row)" class="my-pre"
|
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">预览付款单
|
|
|
</el-button> -->
|
|
|
- <el-button type="danger" v-show="
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ v-show="
|
|
|
(!scope.row.approveStatus ||
|
|
|
scope.row.approveStatus == '待结算') &&
|
|
|
- scope.row.status == '待结算'
|
|
|
- " @click="del(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.delete`">删除</el-button>
|
|
|
+ scope.row.status == '待结算'
|
|
|
+ "
|
|
|
+ @click="del(scope.row)"
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.delete`"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<!-- 付款弹窗 -->
|
|
|
- <el-dialog width="40%" :visible.sync="paymentForm" :append-to-body="true" title="付款">
|
|
|
+ <el-dialog
|
|
|
+ width="40%"
|
|
|
+ :visible.sync="paymentForm"
|
|
|
+ :append-to-body="true"
|
|
|
+ title="付款"
|
|
|
+ >
|
|
|
<div class="tanchuang">
|
|
|
<ws-form>
|
|
|
<ws-info-table>
|
|
@@ -243,16 +519,33 @@
|
|
|
{{ payments.amountNotPayable }}
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="本次付款金额(元)" prop="money">
|
|
|
- <ws-input type="number" @mousewheel.native.prevent v-model="payments.money" placeholder="请输入本次付款金额(元)"
|
|
|
- maxlength="100" size="small" />
|
|
|
+ <ws-input
|
|
|
+ type="number"
|
|
|
+ @mousewheel.native.prevent
|
|
|
+ v-model="payments.money"
|
|
|
+ placeholder="请输入本次付款金额(元)"
|
|
|
+ maxlength="100"
|
|
|
+ size="small"
|
|
|
+ />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="付款日期" prop=" paymentDate">
|
|
|
- <el-date-picker v-model="payments.paymentDate" type="date" placeholder="选择日期"></el-date-picker>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="payments.paymentDate"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期"
|
|
|
+ ></el-date-picker>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="上传截图" prop="paymentScreenshot"></ws-form-item>
|
|
|
+ <ws-form-item
|
|
|
+ label="上传截图"
|
|
|
+ prop="paymentScreenshot"
|
|
|
+ ></ws-form-item>
|
|
|
<div class="upLoad">
|
|
|
- <el-upload class="avatar-uploader" :action="global.uploadPath" :show-file-list="false"
|
|
|
- :on-success="handleAvatarSuccess">
|
|
|
+ <el-upload
|
|
|
+ class="avatar-uploader"
|
|
|
+ :action="global.uploadPath"
|
|
|
+ :show-file-list="false"
|
|
|
+ :on-success="handleAvatarSuccess"
|
|
|
+ >
|
|
|
<img v-if="imageUrl" :src="imageUrl" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
@@ -266,21 +559,38 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 付款截图 -->
|
|
|
- <el-dialog width="50%" :visible.sync="showPayImgs" :append-to-body="true" title="付款截图">
|
|
|
+ <el-dialog
|
|
|
+ width="50%"
|
|
|
+ :visible.sync="showPayImgs"
|
|
|
+ :append-to-body="true"
|
|
|
+ title="付款截图"
|
|
|
+ >
|
|
|
<!-- <div v-for="(item, index) in payImg" :key="index" class="pay_img">
|
|
|
<img :src="item" alt class="img" />
|
|
|
</div> -->
|
|
|
- <el-upload :action="global.uploadPath" list-type="picture-card"
|
|
|
- :on-success="handleAvatarSuccess1" :file-list='payImg' :limit='1'>
|
|
|
+ <el-upload
|
|
|
+ :action="global.uploadPath"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-success="handleAvatarSuccess1"
|
|
|
+ :file-list="payImg"
|
|
|
+ :limit="1"
|
|
|
+ >
|
|
|
<i slot="default" class="el-icon-plus"></i>
|
|
|
- <div slot="file" slot-scope="{file}">
|
|
|
- <img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
|
|
|
+ <div slot="file" slot-scope="{ file }">
|
|
|
+ <img class="el-upload-list__item-thumbnail" :src="file.url" alt="" />
|
|
|
|
|
|
<span class="el-upload-list__item-actions">
|
|
|
- <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
|
|
+ <span
|
|
|
+ class="el-upload-list__item-preview"
|
|
|
+ @click="handlePictureCardPreview(file)"
|
|
|
+ >
|
|
|
<i class="el-icon-zoom-in"></i>
|
|
|
</span>
|
|
|
- <span v-show="!disabled" class="el-upload-list__item-delete" @click="_handleRemove(file)">
|
|
|
+ <span
|
|
|
+ v-show="!disabled"
|
|
|
+ class="el-upload-list__item-delete"
|
|
|
+ @click="_handleRemove(file)"
|
|
|
+ >
|
|
|
<i class="el-icon-delete"></i>
|
|
|
</span>
|
|
|
</span>
|
|
@@ -298,16 +608,33 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<div style="text-align: center">
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
- :page-sizes="[10, 30, 50, 100, 500, 1000, 9999]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="deptBudgetTotal"></el-pagination>
|
|
|
- <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint"
|
|
|
- :title="printData.compName + '结算凭证'">
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-sizes="[10, 30, 50, 100, 500, 1000, 9999]"
|
|
|
+ :page-size="pageSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="deptBudgetTotal"
|
|
|
+ ></el-pagination>
|
|
|
+ <el-dialog
|
|
|
+ width="70%"
|
|
|
+ class="table-content"
|
|
|
+ center
|
|
|
+ :visible.sync="isShowPrint"
|
|
|
+ :title="printData.compName + '结算凭证'"
|
|
|
+ >
|
|
|
<!-- selectCustomerList:[],
|
|
|
selectPrintList: [], -->
|
|
|
- <paymentPrint :printData="printData" :customerInfo="customerList" :showType="ruleForm.type"></paymentPrint>
|
|
|
+ <paymentPrint
|
|
|
+ :printData="printData"
|
|
|
+ :customerInfo="customerList"
|
|
|
+ :showType="ruleForm.type"
|
|
|
+ ></paymentPrint>
|
|
|
<div style="text-align: center">
|
|
|
- <el-button type="primary" @click="isShowPrint = false">关闭</el-button>
|
|
|
+ <el-button type="primary" @click="isShowPrint = false"
|
|
|
+ >关闭</el-button
|
|
|
+ >
|
|
|
<!-- <el-button type="primary" @click="printSmall">打印小票</el-button> -->
|
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
|
<el-button type="primary" @click="printExtra">打印额外单据</el-button>
|
|
@@ -315,19 +642,35 @@
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
|
- <img width="100%" :src="dialogImageUrl" alt="">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt="" />
|
|
|
</el-dialog>
|
|
|
<!--客户信息-->
|
|
|
- <el-dialog width="50%" title="客户信息" :visible.sync="customerInfo" :append-to-body="true" :close="customerclose">
|
|
|
+ <el-dialog
|
|
|
+ width="50%"
|
|
|
+ title="客户信息"
|
|
|
+ :visible.sync="customerInfo"
|
|
|
+ :append-to-body="true"
|
|
|
+ :close="customerclose"
|
|
|
+ >
|
|
|
<el-form class="customer">
|
|
|
<div class="flex">
|
|
|
<div style="flex: 1; text-align: center">
|
|
|
<h4>身份证正面</h4>
|
|
|
- <img width="100%" :src="customerlist.cardAddressUrl1" alt class="img_css" />
|
|
|
+ <img
|
|
|
+ width="100%"
|
|
|
+ :src="customerlist.cardAddressUrl1"
|
|
|
+ alt
|
|
|
+ class="img_css"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div style="flex: 1; text-align: center">
|
|
|
<h4>身份证反面</h4>
|
|
|
- <img width="100%" :src="customerlist.cardAddressUrl2" alt class="img_css" />
|
|
|
+ <img
|
|
|
+ width="100%"
|
|
|
+ :src="customerlist.cardAddressUrl2"
|
|
|
+ alt
|
|
|
+ class="img_css"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-form-item label="姓名">
|
|
@@ -339,11 +682,21 @@
|
|
|
<div class="flex">
|
|
|
<div style="flex: 1; text-align: center">
|
|
|
<h4>银行卡正面</h4>
|
|
|
- <img width="100%" :src="customerlist.payeeAddressUrls[0]" alt class="img_css" />
|
|
|
+ <img
|
|
|
+ width="100%"
|
|
|
+ :src="customerlist.payeeAddressUrls[0]"
|
|
|
+ alt
|
|
|
+ class="img_css"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div style="flex: 1; text-align: center">
|
|
|
<h4>银行卡反面</h4>
|
|
|
- <img width="100%" :src="customerlist.payeeAddressUrls[1]" alt class="img_css" />
|
|
|
+ <img
|
|
|
+ width="100%"
|
|
|
+ :src="customerlist.payeeAddressUrls[1]"
|
|
|
+ alt
|
|
|
+ class="img_css"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-form-item label="银行卡号" label-width="100px">
|
|
@@ -355,10 +708,18 @@
|
|
|
<el-form-item label="开户支行" label-width="100px">
|
|
|
{{ customerlist.bankDepositBranch }}
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="收款人姓名" label-width="100px" v-show="customerlist.customerTypeFlag == '1'">
|
|
|
+ <el-form-item
|
|
|
+ label="收款人姓名"
|
|
|
+ label-width="100px"
|
|
|
+ v-show="customerlist.customerTypeFlag == '1'"
|
|
|
+ >
|
|
|
{{ customerlist.payeeName }}
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="收款人身份证号" label-width="120px" v-show="customerlist.customerTypeFlag == '1'">
|
|
|
+ <el-form-item
|
|
|
+ label="收款人身份证号"
|
|
|
+ label-width="120px"
|
|
|
+ v-show="customerlist.customerTypeFlag == '1'"
|
|
|
+ >
|
|
|
{{ customerlist.payeeNumberCard }}
|
|
|
</el-form-item>
|
|
|
<el-form-item label="手机号" label-width="100px">
|
|
@@ -372,18 +733,48 @@
|
|
|
<el-button @click="customerclose">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog width="50%" title="付款回执单" :visible.sync="isPreviewPayOrder" :close="paymentReceiptClose">
|
|
|
+ <el-dialog
|
|
|
+ width="50%"
|
|
|
+ title="付款回执单"
|
|
|
+ :visible.sync="isPreviewPayOrder"
|
|
|
+ :close="paymentReceiptClose"
|
|
|
+ >
|
|
|
<div class="no-messege" v-show="!paymentReceipt">暂未上传付款回执单</div>
|
|
|
- <el-image class="my-img" ref="myImg" v-show="paymentReceipt" :src="paymentReceipt"
|
|
|
- :preview-src-list="[paymentReceipt]">
|
|
|
+ <el-image
|
|
|
+ class="my-img"
|
|
|
+ ref="myImg"
|
|
|
+ v-show="paymentReceipt"
|
|
|
+ :src="paymentReceipt"
|
|
|
+ :preview-src-list="[paymentReceipt]"
|
|
|
+ >
|
|
|
</el-image>
|
|
|
</el-dialog>
|
|
|
- <el-dialog width="30%" title="开票信息" :visible.sync="invoicingshow" :close="invoicingClose">
|
|
|
- <el-form :label-position="labelposition" label-width="200px" style='text-align:center;' class="customer">
|
|
|
+ <el-dialog
|
|
|
+ width="30%"
|
|
|
+ title="开票信息"
|
|
|
+ :visible.sync="invoicingshow"
|
|
|
+ :close="invoicingClose"
|
|
|
+ >
|
|
|
+ <el-form
|
|
|
+ :label-position="labelposition"
|
|
|
+ label-width="200px"
|
|
|
+ style="text-align:center;"
|
|
|
+ class="customer"
|
|
|
+ >
|
|
|
<el-form-item label="税控盘:">
|
|
|
- <el-select v-model="invoiceFlag" placeholder="请选择税控盘" filterable clearable style="margin: 0 10px">
|
|
|
- <el-option v-for="item in invoicingList" :key="'invoicing'+item.value" :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ <el-select
|
|
|
+ v-model="invoiceFlag"
|
|
|
+ placeholder="请选择税控盘"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ style="margin: 0 10px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in invoicingList"
|
|
|
+ :key="'invoicing' + item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -393,14 +784,28 @@
|
|
|
<el-button type="primary" @click="invoicingconfirm">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')">
|
|
|
+ <WinseaContentModal
|
|
|
+ v-model="accessoryTFs"
|
|
|
+ :title="$t('system.noticeCircular.information')"
|
|
|
+ >
|
|
|
<div v-if="!appendixIdss">
|
|
|
- <ws-upload ref="upload" :size-limit="size" @onChange="onChange" :comp-id="compId" :appendix-ids="appendixIdss"
|
|
|
- accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .zip, .rar"
|
|
|
+ <ws-upload
|
|
|
+ ref="upload"
|
|
|
+ :size-limit="size"
|
|
|
+ @onChange="onChange"
|
|
|
+ :comp-id="compId"
|
|
|
+ :appendix-ids="appendixIdss"
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .zip, .rar"
|
|
|
/>
|
|
|
</div>
|
|
|
- <ws-upload v-else ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :editable="false"
|
|
|
- accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
|
|
|
+ <ws-upload
|
|
|
+ v-else
|
|
|
+ ref="upload"
|
|
|
+ :comp-id="compId"
|
|
|
+ :appendix-ids="appendixIdss"
|
|
|
+ :editable="false"
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
|
|
|
+ />
|
|
|
</WinseaContentModal>
|
|
|
<div class="mask1" v-show="isShowPrintTypeBills"></div>
|
|
|
<div class="print-type1" v-show="isShowPrintTypeBills">
|
|
@@ -413,34 +818,74 @@
|
|
|
</el-radio-group> -->
|
|
|
</div>
|
|
|
|
|
|
- <div class="shdw-style1" v-if="checked||(!ddchecked&&!checked)">
|
|
|
+ <div class="shdw-style1" v-if="checked || (!ddchecked && !checked)">
|
|
|
<div>收货单位:</div>
|
|
|
<!-- <div>{{companyName}}</div> -->
|
|
|
- <el-select v-model="companyName" placeholder="请选择" style="width: 75%;">
|
|
|
- <el-option v-for="item in companyNameOptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ <el-select
|
|
|
+ v-model="companyName"
|
|
|
+ placeholder="请选择"
|
|
|
+ style="width: 75%;"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyNameOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <div v-if="warehouseName1=='鲅鱼圈金信库'||warehouseName1=='白城内陆港'||warehouseName1=='杜尔伯特家禾库'||warehouseName1=='洮南新友谊兴旺库'||warehouseName1=='甘南宏旗库'||warehouseName1=='哈尔滨依兰库'||warehouseName1=='山东园丰库'">
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ warehouseName1 == '鲅鱼圈金信库' ||
|
|
|
+ warehouseName1 == '白城内陆港' ||
|
|
|
+ warehouseName1 == '杜尔伯特家禾库' ||
|
|
|
+ warehouseName1 == '洮南新友谊兴旺库' ||
|
|
|
+ warehouseName1 == '甘南宏旗库' ||
|
|
|
+ warehouseName1 == '哈尔滨依兰库' ||
|
|
|
+ warehouseName1 == '山东园丰库'
|
|
|
+ "
|
|
|
+ >
|
|
|
<div class="print-type-ew">
|
|
|
- <el-checkbox v-model="checked" @change="changeEw">打印额外票据</el-checkbox>
|
|
|
- <el-checkbox v-model="ddchecked" @change="changeEwDD">单独打印额外票据</el-checkbox>
|
|
|
+ <el-checkbox v-model="checked" @change="changeEw"
|
|
|
+ >打印额外票据</el-checkbox
|
|
|
+ >
|
|
|
+ <el-checkbox v-model="ddchecked" @change="changeEwDD"
|
|
|
+ >单独打印额外票据</el-checkbox
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="ew-print" v-if="printSeparately">
|
|
|
<div class="row">
|
|
|
<div>额外客户姓名:</div>
|
|
|
<!-- <div>{{companyName}}</div> -->
|
|
|
- <el-select v-model="ewCustomer" placeholder="请选择" style="width: 75%;">
|
|
|
- <el-option v-for="item in ewCustomerOptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ <el-select
|
|
|
+ v-model="ewCustomer"
|
|
|
+ placeholder="请选择"
|
|
|
+ style="width: 75%;"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in ewCustomerOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div>额外收货单位:</div>
|
|
|
<!-- <div>{{companyNameEW}}</div> -->
|
|
|
- <el-select v-model="companyNameEW" placeholder="请选择" style="width: 75%;">
|
|
|
- <el-option v-for="item in companyNameEWOptions" :key="item.value" :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ <el-select
|
|
|
+ v-model="companyNameEW"
|
|
|
+ placeholder="请选择"
|
|
|
+ style="width: 75%;"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyNameEWOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
@@ -455,2118 +900,2203 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import {
|
|
|
- dayjs,
|
|
|
- EventBus
|
|
|
- } from 'base-core-lib'
|
|
|
- import {
|
|
|
- packList,
|
|
|
- } from '@/model/contarct/index'
|
|
|
- import {
|
|
|
- downloadFile
|
|
|
- } from '@/utils/batchDown'
|
|
|
- import JSZip from 'jszip'
|
|
|
- import FileSaver from 'file-saver'
|
|
|
- import {
|
|
|
- getpayment,
|
|
|
- selectWarehouseSelf,
|
|
|
- delpayment,
|
|
|
- auditpayment,
|
|
|
- getpaymentexamine,
|
|
|
- getCustomerLook,
|
|
|
- paymentCommit,
|
|
|
- dandongOrder,
|
|
|
- invoicing,
|
|
|
- export1,
|
|
|
- settlementEdit,
|
|
|
- workflowcontent,
|
|
|
- suspendinstance,
|
|
|
- importWord,
|
|
|
- getPrint,
|
|
|
- getwarehouse,
|
|
|
- uploadself
|
|
|
- } from '@/model/houseSelfCollect/index'
|
|
|
- import {
|
|
|
- posthandle,
|
|
|
- postqueryhandle
|
|
|
- } from '@/model/purchasingManagement/index'
|
|
|
- import paymentPrint from './component/paymentPrint.vue'
|
|
|
- import {
|
|
|
- getHp
|
|
|
- } from '@/utils/getHasPermission'
|
|
|
- import { getFileList } from '@/model/upload'
|
|
|
- import download from '../../components/WsDownload/download'
|
|
|
- import WsUpload from '@/components/WsUpload'
|
|
|
- export default {
|
|
|
- components: {
|
|
|
- paymentPrint,
|
|
|
- WsUpload
|
|
|
- },
|
|
|
- watch: {},
|
|
|
- data() {
|
|
|
- return {
|
|
|
- paymentReceipt: '',
|
|
|
- isPreviewPayOrder: false,
|
|
|
- printType: 0,
|
|
|
- invoiceFlag: '',
|
|
|
- isShowPrintType1: true,
|
|
|
- isShowPrintType2: true,
|
|
|
- isShowPrintType3: true,
|
|
|
- isShowPrintType4: true,
|
|
|
- isShowPrintType5:false,
|
|
|
- customerInfo: false,
|
|
|
- form: {},
|
|
|
- labelposition: 'right',
|
|
|
- multipleLimit:0,
|
|
|
- invoicingList: [{
|
|
|
+import { dayjs, EventBus } from 'base-core-lib'
|
|
|
+import { packList } from '@/model/contarct/index'
|
|
|
+import { downloadFile } from '@/utils/batchDown'
|
|
|
+import JSZip from 'jszip'
|
|
|
+import FileSaver from 'file-saver'
|
|
|
+import {
|
|
|
+ getpayment,
|
|
|
+ selectWarehouseSelf,
|
|
|
+ delpayment,
|
|
|
+ auditpayment,
|
|
|
+ getpaymentexamine,
|
|
|
+ getCustomerLook,
|
|
|
+ paymentCommit,
|
|
|
+ dandongOrder,
|
|
|
+ invoicing,
|
|
|
+ export1,
|
|
|
+ settlementEdit,
|
|
|
+ workflowcontent,
|
|
|
+ suspendinstance,
|
|
|
+ importWord,
|
|
|
+ getPrint,
|
|
|
+ getwarehouse,
|
|
|
+ uploadself
|
|
|
+} from '@/model/houseSelfCollect/index'
|
|
|
+import { posthandle, postqueryhandle } from '@/model/purchasingManagement/index'
|
|
|
+import paymentPrint from './component/paymentPrint.vue'
|
|
|
+import { getHp } from '@/utils/getHasPermission'
|
|
|
+import { getFileList } from '@/model/upload'
|
|
|
+import download from '../../components/WsDownload/download'
|
|
|
+import WsUpload from '@/components/WsUpload'
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ paymentPrint,
|
|
|
+ WsUpload
|
|
|
+ },
|
|
|
+ watch: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ paymentReceipt: '',
|
|
|
+ isPreviewPayOrder: false,
|
|
|
+ printType: 0,
|
|
|
+ invoiceFlag: '',
|
|
|
+ isShowPrintType1: true,
|
|
|
+ isShowPrintType2: true,
|
|
|
+ isShowPrintType3: true,
|
|
|
+ isShowPrintType4: true,
|
|
|
+ isShowPrintType5: false,
|
|
|
+ customerInfo: false,
|
|
|
+ form: {},
|
|
|
+ labelposition: 'right',
|
|
|
+ multipleLimit: 0,
|
|
|
+ invoicingList: [
|
|
|
+ {
|
|
|
label: '航天信息',
|
|
|
value: 1
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '百旺',
|
|
|
value: 2
|
|
|
- }],
|
|
|
- formLabelWidth: '300px',
|
|
|
- invoicing: '',
|
|
|
- deleteshow: false,
|
|
|
- customerlist: {
|
|
|
- payeeAddressUrls: [],
|
|
|
- bankCard:'',
|
|
|
- bankDeposit:'',
|
|
|
- bankDepositBranch:''
|
|
|
- },
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ formLabelWidth: '300px',
|
|
|
+ invoicing: '',
|
|
|
+ deleteshow: false,
|
|
|
+ customerlist: {
|
|
|
+ payeeAddressUrls: [],
|
|
|
+ bankCard: '',
|
|
|
+ bankDeposit: '',
|
|
|
+ bankDepositBranch: ''
|
|
|
+ },
|
|
|
|
|
|
- ruleForm: {
|
|
|
- type: [
|
|
|
- '打印身份证',
|
|
|
- '打印银行卡',
|
|
|
- '打印结算凭证',
|
|
|
- '打印检斤单',
|
|
|
- // '打印回执单'
|
|
|
- // '打印发票'
|
|
|
- ],
|
|
|
- },
|
|
|
- row: {},
|
|
|
- isShowPrintType: false,
|
|
|
- isShowPrintTypeBills:false,
|
|
|
- customerList: {
|
|
|
- customerName: '',
|
|
|
- customerNumberCard: '',
|
|
|
- bankCard: '',
|
|
|
- bankDeposit: '',
|
|
|
- },
|
|
|
- selectCustomerList: [],
|
|
|
- selectPrintList: [],
|
|
|
- identity: [],
|
|
|
- //分页
|
|
|
- currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
- paymentList: [],
|
|
|
- deptCircularPage: {},
|
|
|
- deptBudgetTotal: 0,
|
|
|
- paymentForm: false,
|
|
|
- searchType: '',
|
|
|
- searchTypeText: '',
|
|
|
- searchKeyWord: '',
|
|
|
- warehouseList: [],
|
|
|
- warehouseNameKey: '',
|
|
|
- warehouseName: '',
|
|
|
- warehouseName1:'',
|
|
|
- isShowPrint: false,
|
|
|
- invoicingshow: false,
|
|
|
- printData: {},
|
|
|
- warehouse: [],
|
|
|
- disabled: false,
|
|
|
- dialogImageUrl: '',
|
|
|
- dialogVisible: false,
|
|
|
- value1: '', //付款日期
|
|
|
- modification: [],
|
|
|
- userJurisdiction: true,
|
|
|
- payments: {
|
|
|
- amountNotPayable: 0,
|
|
|
- paymentDate: '',
|
|
|
- },
|
|
|
- showPayImgs: false,
|
|
|
- isShowAdopt: false,
|
|
|
- //上传截图路径
|
|
|
- imageUrl: '',
|
|
|
- payImg: [],
|
|
|
- rowData: {},
|
|
|
- value2: [],
|
|
|
- date: {
|
|
|
- year: dayjs().format('YYYY'),
|
|
|
- month: dayjs().format('MM'),
|
|
|
- },
|
|
|
- accessoryTFs: false,
|
|
|
- fileList: [],
|
|
|
- appendixIdsAdd: '',
|
|
|
- excelFreightspace: [],
|
|
|
- goodnameList: [],
|
|
|
- goodNames: [],
|
|
|
- goodsName: '',
|
|
|
- printTips:'',
|
|
|
- compId:'',
|
|
|
- ddchecked: false,
|
|
|
- checked: false,
|
|
|
- ewCustomerOptions: [{
|
|
|
+ ruleForm: {
|
|
|
+ type: [
|
|
|
+ '打印身份证',
|
|
|
+ '打印银行卡',
|
|
|
+ '打印结算凭证',
|
|
|
+ '打印检斤单'
|
|
|
+ // '打印回执单'
|
|
|
+ // '打印发票'
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ row: {},
|
|
|
+ isShowPrintType: false,
|
|
|
+ isShowPrintTypeBills: false,
|
|
|
+ customerList: {
|
|
|
+ customerName: '',
|
|
|
+ customerNumberCard: '',
|
|
|
+ bankCard: '',
|
|
|
+ bankDeposit: ''
|
|
|
+ },
|
|
|
+ selectCustomerList: [],
|
|
|
+ selectPrintList: [],
|
|
|
+ identity: [],
|
|
|
+ //分页
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ paymentList: [],
|
|
|
+ deptCircularPage: {},
|
|
|
+ deptBudgetTotal: 0,
|
|
|
+ paymentForm: false,
|
|
|
+ searchType: '',
|
|
|
+ searchTypeText: '',
|
|
|
+ searchKeyWord: '',
|
|
|
+ warehouseList: [],
|
|
|
+ warehouseNameKey: '',
|
|
|
+ warehouseName: '',
|
|
|
+ warehouseName1: '',
|
|
|
+ isShowPrint: false,
|
|
|
+ invoicingshow: false,
|
|
|
+ printData: {},
|
|
|
+ warehouse: [],
|
|
|
+ disabled: false,
|
|
|
+ dialogImageUrl: '',
|
|
|
+ dialogVisible: false,
|
|
|
+ value1: '', //付款日期
|
|
|
+ modification: [],
|
|
|
+ userJurisdiction: true,
|
|
|
+ payments: {
|
|
|
+ amountNotPayable: 0,
|
|
|
+ paymentDate: ''
|
|
|
+ },
|
|
|
+ showPayImgs: false,
|
|
|
+ isShowAdopt: false,
|
|
|
+ //上传截图路径
|
|
|
+ imageUrl: '',
|
|
|
+ payImg: [],
|
|
|
+ rowData: {},
|
|
|
+ value2: [],
|
|
|
+ date: {
|
|
|
+ year: dayjs().format('YYYY'),
|
|
|
+ month: dayjs().format('MM')
|
|
|
+ },
|
|
|
+ accessoryTFs: false,
|
|
|
+ fileList: [],
|
|
|
+ appendixIdsAdd: '',
|
|
|
+ excelFreightspace: [],
|
|
|
+ goodnameList: [],
|
|
|
+ goodNames: [],
|
|
|
+ goodsName: '',
|
|
|
+ printTips: '',
|
|
|
+ compId: '',
|
|
|
+ ddchecked: false,
|
|
|
+ checked: false,
|
|
|
+ ewCustomerOptions: [
|
|
|
+ {
|
|
|
value: '天津建源供应链管理有限公司',
|
|
|
label: '天津建源供应链管理有限公司'
|
|
|
- },{
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江中天昊元贸易有限公司',
|
|
|
label: '黑龙江中天昊元贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江利润元粮食贸易有限公司',
|
|
|
label: '黑龙江利润元粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江众利合粮食贸易有限公司',
|
|
|
label: '黑龙江众利合粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- },{
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '厦门建发物产有限公司',
|
|
|
label: '厦门建发物产有限公司'
|
|
|
- },{
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江谷香粮食贸易有限公司',
|
|
|
label: '黑龙江谷香粮食贸易有限公司'
|
|
|
- },{
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江秋收有限公司',
|
|
|
label: '黑龙江秋收有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江启兴粮食贸易有限公司',
|
|
|
label: '黑龙江启兴粮食贸易有限公司'
|
|
|
- }],
|
|
|
- companyNameOptions: [{
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ companyNameOptions: [
|
|
|
+ {
|
|
|
value: '黑龙江中天昊元贸易有限公司',
|
|
|
label: '黑龙江中天昊元贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江利润元粮食贸易有限公司',
|
|
|
label: '黑龙江利润元粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江众利合粮食贸易有限公司',
|
|
|
label: '黑龙江众利合粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- },{
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江谷香粮食贸易有限公司',
|
|
|
label: '黑龙江谷香粮食贸易有限公司'
|
|
|
- },{
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江秋收有限公司',
|
|
|
label: '黑龙江秋收有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '黑龙江启兴粮食贸易有限公司',
|
|
|
label: '黑龙江启兴粮食贸易有限公司'
|
|
|
- }],
|
|
|
- companyNameEWOptions: [{
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ companyNameEWOptions: [
|
|
|
+ {
|
|
|
value: '天津建源供应链管理有限公司',
|
|
|
label: '天津建源供应链管理有限公司'
|
|
|
- },{
|
|
|
+ },
|
|
|
+ {
|
|
|
value: '厦门建发物产有限公司',
|
|
|
label: '厦门建发物产有限公司'
|
|
|
- }],
|
|
|
- companyName: '黑龙江中天昊元贸易有限公司',
|
|
|
- companyNameEW: '厦门建发物产有限公司',
|
|
|
- ewCustomer: '黑龙江利润元粮食贸易有限公司',
|
|
|
- printSeparately:false,
|
|
|
- onePrint:false,
|
|
|
- dialogDataList:[],
|
|
|
- id:'',
|
|
|
- accessoryTFs:false,
|
|
|
- appendixIdss:'',
|
|
|
- deptBudgetList:{}
|
|
|
- }
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
- this.currentPage = sessionStorage.getItem('currenPage') || 1;
|
|
|
- this.pageSize =Number(sessionStorage.getItem('pageSize') ) || 10;
|
|
|
- console.log( this.currentPage,this.pageSize)
|
|
|
- this.getPassYearFormatDate()
|
|
|
- // 货名
|
|
|
- packList({
|
|
|
- constId: 'CON2'
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.goodnameList = response
|
|
|
- })
|
|
|
- this.getWarehouse()
|
|
|
- this.compId=localStorage.getItem('ws-pf_compId')
|
|
|
- localStorage.setItem('pengyuPrint', false)
|
|
|
- if(localStorage.getItem('compNameoptions')){
|
|
|
- var company=JSON.parse(localStorage.getItem('compNameoptions'))
|
|
|
-
|
|
|
- var extra=company.filter((item)=>{
|
|
|
- return item!='黑龙江中天昊元贸易有限公司'
|
|
|
- &&item!='黑龙江利润元粮食贸易有限公司'
|
|
|
- &&item!= '黑龙江众利合粮食贸易有限公司'
|
|
|
- &&item!='黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- &&item!='黑龙江谷香粮食贸易有限公司'
|
|
|
- &&item!='黑龙江秋收有限公司'
|
|
|
- &&item!= '黑龙江欣洋粮食贸易有限公司'
|
|
|
- &&item!='黑龙江益储益运粮食贸易有限公司'
|
|
|
- &&item!='黑龙江启兴粮食贸易有限公司'
|
|
|
- })
|
|
|
- if(extra.length>0){
|
|
|
- this.companyNameOptions=[
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ companyName: '黑龙江中天昊元贸易有限公司',
|
|
|
+ companyNameEW: '厦门建发物产有限公司',
|
|
|
+ ewCustomer: '黑龙江利润元粮食贸易有限公司',
|
|
|
+ printSeparately: false,
|
|
|
+ onePrint: false,
|
|
|
+ dialogDataList: [],
|
|
|
+ id: '',
|
|
|
+ accessoryTFs: false,
|
|
|
+ appendixIdss: '',
|
|
|
+ deptBudgetList: {}
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
+ this.currentPage = sessionStorage.getItem('currenPage') || 1
|
|
|
+ this.pageSize = Number(sessionStorage.getItem('pageSize')) || 10
|
|
|
+ console.log(this.currentPage, this.pageSize)
|
|
|
+ this.getPassYearFormatDate()
|
|
|
+ // 货名
|
|
|
+ packList({
|
|
|
+ constId: 'CON2'
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.goodnameList = response
|
|
|
+ })
|
|
|
+ this.getWarehouse()
|
|
|
+ this.compId = localStorage.getItem('ws-pf_compId')
|
|
|
+ localStorage.setItem('pengyuPrint', false)
|
|
|
+ if (localStorage.getItem('compNameoptions')) {
|
|
|
+ var company = JSON.parse(localStorage.getItem('compNameoptions'))
|
|
|
+
|
|
|
+ var extra = company.filter(item => {
|
|
|
+ return (
|
|
|
+ item != '黑龙江中天昊元贸易有限公司' &&
|
|
|
+ item != '黑龙江利润元粮食贸易有限公司' &&
|
|
|
+ item != '黑龙江众利合粮食贸易有限公司' &&
|
|
|
+ item != '黑龙江鑫满仓粮食贸易有限公司' &&
|
|
|
+ item != '黑龙江谷香粮食贸易有限公司' &&
|
|
|
+ item != '黑龙江秋收有限公司' &&
|
|
|
+ item != '黑龙江欣洋粮食贸易有限公司' &&
|
|
|
+ item != '黑龙江益储益运粮食贸易有限公司' &&
|
|
|
+ item != '黑龙江启兴粮食贸易有限公司'
|
|
|
+ )
|
|
|
+ })
|
|
|
+ if (extra.length > 0) {
|
|
|
+ this.companyNameOptions = [
|
|
|
{
|
|
|
- value: '黑龙江中天昊元贸易有限公司',
|
|
|
- label: '黑龙江中天昊元贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江利润元粮食贸易有限公司',
|
|
|
- label: '黑龙江利润元粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江众利合粮食贸易有限公司',
|
|
|
- label: '黑龙江众利合粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
- label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
- label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江谷香粮食贸易有限公司',
|
|
|
- label: '黑龙江谷香粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江秋收有限公司',
|
|
|
- label: '黑龙江秋收有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
- label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江启兴粮食贸易有限公司',
|
|
|
- label: '黑龙江启兴粮食贸易有限公司'
|
|
|
- }]
|
|
|
-
|
|
|
- this.ewCustomerOptions= [
|
|
|
+ value: '黑龙江中天昊元贸易有限公司',
|
|
|
+ label: '黑龙江中天昊元贸易有限公司'
|
|
|
+ },
|
|
|
{
|
|
|
- value: '天津建源供应链管理有限公司',
|
|
|
- label: '天津建源供应链管理有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江中天昊元贸易有限公司',
|
|
|
- label: '黑龙江中天昊元贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江利润元粮食贸易有限公司',
|
|
|
- label: '黑龙江利润元粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江众利合粮食贸易有限公司',
|
|
|
- label: '黑龙江众利合粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
- label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
- label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江谷香粮食贸易有限公司',
|
|
|
- label: '黑龙江谷香粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江秋收有限公司',
|
|
|
- label: '黑龙江秋收有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
- label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江启兴粮食贸易有限公司',
|
|
|
- label: '黑龙江启兴粮食贸易有限公司'
|
|
|
- }]
|
|
|
- this.companyNameEWOptions=[
|
|
|
+ value: '黑龙江利润元粮食贸易有限公司',
|
|
|
+ label: '黑龙江利润元粮食贸易有限公司'
|
|
|
+ },
|
|
|
{
|
|
|
- value: '天津建源供应链管理有限公司',
|
|
|
- label: '天津建源供应链管理有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江中天昊元贸易有限公司',
|
|
|
- label: '黑龙江中天昊元贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江利润元粮食贸易有限公司',
|
|
|
- label: '黑龙江利润元粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江众利合粮食贸易有限公司',
|
|
|
- label: '黑龙江众利合粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
- label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
- label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江谷香粮食贸易有限公司',
|
|
|
- label: '黑龙江谷香粮食贸易有限公司'
|
|
|
- },{
|
|
|
- value: '黑龙江秋收有限公司',
|
|
|
- label: '黑龙江秋收有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
- label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
- }, {
|
|
|
- value: '黑龙江启兴粮食贸易有限公司',
|
|
|
- label: '黑龙江启兴粮食贸易有限公司'
|
|
|
- }]
|
|
|
- if(localStorage.getItem('print_company_name')){
|
|
|
- this.companyName=localStorage.getItem('print_company_name')
|
|
|
- }else{
|
|
|
- this.companyName=extra[0]
|
|
|
- }
|
|
|
- if(localStorage.getItem('print_company_name_ew')){
|
|
|
- this.companyNameEW=localStorage.getItem('print_company_name_ew')
|
|
|
- }else{
|
|
|
- this.companyNameEW=extra[0]
|
|
|
+ value: '黑龙江众利合粮食贸易有限公司',
|
|
|
+ label: '黑龙江众利合粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
+ label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
+ label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江谷香粮食贸易有限公司',
|
|
|
+ label: '黑龙江谷香粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江秋收有限公司',
|
|
|
+ label: '黑龙江秋收有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
+ label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江启兴粮食贸易有限公司',
|
|
|
+ label: '黑龙江启兴粮食贸易有限公司'
|
|
|
}
|
|
|
- if(localStorage.getItem('print_customer_name_ew')){
|
|
|
- this.ewCustomer=localStorage.getItem('print_customer_name_ew')
|
|
|
- }else{
|
|
|
- this.ewCustomer=extra[0]
|
|
|
+ ]
|
|
|
+
|
|
|
+ this.ewCustomerOptions = [
|
|
|
+ {
|
|
|
+ value: '天津建源供应链管理有限公司',
|
|
|
+ label: '天津建源供应链管理有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江中天昊元贸易有限公司',
|
|
|
+ label: '黑龙江中天昊元贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江利润元粮食贸易有限公司',
|
|
|
+ label: '黑龙江利润元粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江众利合粮食贸易有限公司',
|
|
|
+ label: '黑龙江众利合粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
+ label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
+ label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江谷香粮食贸易有限公司',
|
|
|
+ label: '黑龙江谷香粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江秋收有限公司',
|
|
|
+ label: '黑龙江秋收有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
+ label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江启兴粮食贸易有限公司',
|
|
|
+ label: '黑龙江启兴粮食贸易有限公司'
|
|
|
}
|
|
|
- for (let i = 0; i < extra.length; i++) {
|
|
|
- this.ewCustomerOptions.push({value: extra[i],label:extra[i]})
|
|
|
- this.companyNameOptions.push({value: extra[i],label:extra[i]})
|
|
|
- this.companyNameEWOptions.push({value: extra[i],label:extra[i]})
|
|
|
+ ]
|
|
|
+ this.companyNameEWOptions = [
|
|
|
+ {
|
|
|
+ value: '天津建源供应链管理有限公司',
|
|
|
+ label: '天津建源供应链管理有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江中天昊元贸易有限公司',
|
|
|
+ label: '黑龙江中天昊元贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江利润元粮食贸易有限公司',
|
|
|
+ label: '黑龙江利润元粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江众利合粮食贸易有限公司',
|
|
|
+ label: '黑龙江众利合粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
+ label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江欣洋粮食贸易有限公司',
|
|
|
+ label: '黑龙江欣洋粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江谷香粮食贸易有限公司',
|
|
|
+ label: '黑龙江谷香粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江秋收有限公司',
|
|
|
+ label: '黑龙江秋收有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江益储益运粮食贸易有限公司',
|
|
|
+ label: '黑龙江益储益运粮食贸易有限公司'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '黑龙江启兴粮食贸易有限公司',
|
|
|
+ label: '黑龙江启兴粮食贸易有限公司'
|
|
|
}
|
|
|
+ ]
|
|
|
+ if (localStorage.getItem('print_company_name')) {
|
|
|
+ this.companyName = localStorage.getItem('print_company_name')
|
|
|
+ } else {
|
|
|
+ this.companyName = extra[0]
|
|
|
+ }
|
|
|
+ if (localStorage.getItem('print_company_name_ew')) {
|
|
|
+ this.companyNameEW = localStorage.getItem('print_company_name_ew')
|
|
|
+ } else {
|
|
|
+ this.companyNameEW = extra[0]
|
|
|
}
|
|
|
+ if (localStorage.getItem('print_customer_name_ew')) {
|
|
|
+ this.ewCustomer = localStorage.getItem('print_customer_name_ew')
|
|
|
+ } else {
|
|
|
+ this.ewCustomer = extra[0]
|
|
|
+ }
|
|
|
+ for (let i = 0; i < extra.length; i++) {
|
|
|
+ this.ewCustomerOptions.push({ value: extra[i], label: extra[i] })
|
|
|
+ this.companyNameOptions.push({ value: extra[i], label: extra[i] })
|
|
|
+ this.companyNameEWOptions.push({ value: extra[i], label: extra[i] })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // activated() {
|
|
|
+ // this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
+
|
|
|
+ // this.getPassYearFormatDate()
|
|
|
+ // this.getWarehouse()
|
|
|
+ // // this.getList()
|
|
|
+ // },
|
|
|
+ updated() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs['table'].doLayout()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ onChange() {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async response => {
|
|
|
+ this.deptBudgetList.selfCertificate = response
|
|
|
+ this.deptBudgetList.id = this.id
|
|
|
+ uploadself(this.deptBudgetList)
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.accessoryTFs = false
|
|
|
+ this.$message.success('上传成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fujian(row) {
|
|
|
+ this.id = row.id
|
|
|
+ this.accessoryTFs = true
|
|
|
+ this.appendixIdss = row.selfCertificate
|
|
|
+ console.log(this.appendixIdss)
|
|
|
+ },
|
|
|
+ changeEw(e) {
|
|
|
+ this.ddchecked = false
|
|
|
+ if (e) {
|
|
|
+ this.printSeparately = true
|
|
|
+ } else {
|
|
|
+ this.printSeparately = false
|
|
|
}
|
|
|
},
|
|
|
- // activated() {
|
|
|
- // this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
-
|
|
|
- // this.getPassYearFormatDate()
|
|
|
- // this.getWarehouse()
|
|
|
- // // this.getList()
|
|
|
- // },
|
|
|
- updated() {
|
|
|
-
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs['table'].doLayout()
|
|
|
- })
|
|
|
+ changeEwDD(e) {
|
|
|
+ this.checked = false
|
|
|
+ if (e) {
|
|
|
+ this.printSeparately = true
|
|
|
+ } else {
|
|
|
+ this.printSeparately = false
|
|
|
+ }
|
|
|
},
|
|
|
- methods: {
|
|
|
- onChange() {
|
|
|
- this.$refs.upload
|
|
|
- .handleSaveBill()
|
|
|
- .then(async (response) => {
|
|
|
- this.deptBudgetList.selfCertificate = response
|
|
|
- this.deptBudgetList.id = this.id
|
|
|
- uploadself(this.deptBudgetList)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.accessoryTFs = false
|
|
|
- this.$message.success('上传成功')
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- })
|
|
|
- .catch((res) => {
|
|
|
- EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
- })
|
|
|
- },
|
|
|
- fujian(row) {
|
|
|
- this.id = row.id
|
|
|
- this.accessoryTFs = true
|
|
|
- this.appendixIdss = row.selfCertificate
|
|
|
- console.log(this.appendixIdss)
|
|
|
- },
|
|
|
- changeEw(e) {
|
|
|
- this.ddchecked = false
|
|
|
- if (e) {
|
|
|
- this.printSeparately = true
|
|
|
+ makeEWjjSelectPrintList() {
|
|
|
+ let _selectPrint_EWjjSelectPrintList = JSON.parse(
|
|
|
+ JSON.stringify(this.jjSelectPrintList)
|
|
|
+ )
|
|
|
+ for (let i = 0; i < _selectPrint_EWjjSelectPrintList.length; i++) {
|
|
|
+ let _data = _selectPrint_EWjjSelectPrintList[i]
|
|
|
+ _data.compName = this.companyNameEW
|
|
|
+ _data.customer = this.ewCustomer
|
|
|
+ }
|
|
|
+ localStorage.setItem(
|
|
|
+ 'selectPrint_EWjjSelectPrintList',
|
|
|
+ JSON.stringify(_selectPrint_EWjjSelectPrintList)
|
|
|
+ )
|
|
|
+ },
|
|
|
+ printBig1(type, radioType) {
|
|
|
+ this.printData.extra1 = true
|
|
|
+ localStorage.setItem('print_company_name', this.companyName)
|
|
|
+ localStorage.setItem('print_company_name_ew', this.companyNameEW)
|
|
|
+ localStorage.setItem('print_customer_name_ew', this.ewCustomer)
|
|
|
+ localStorage.removeItem('print_in_data')
|
|
|
+ // 打印额外
|
|
|
+ if (this.checked || this.ddchecked) {
|
|
|
+ this.printData.extra2 = true
|
|
|
+ if (this.ddchecked) {
|
|
|
+ localStorage.setItem('print_alone_extra', true)
|
|
|
} else {
|
|
|
- this.printSeparately = false
|
|
|
+ localStorage.setItem('print_alone_extra', false)
|
|
|
}
|
|
|
- },
|
|
|
- changeEwDD(e) {
|
|
|
- this.checked = false
|
|
|
- if (e) {
|
|
|
- this.printSeparately = true
|
|
|
+ // this.selectEW = true;
|
|
|
+ } else {
|
|
|
+ this.printData.extra2 = false
|
|
|
+ }
|
|
|
+ let _list1 = []
|
|
|
+ let _list2 = []
|
|
|
+
|
|
|
+ localStorage.setItem('printData1', _list1)
|
|
|
+ _list1 = JSON.stringify(this.printData)
|
|
|
+ _list2 = JSON.stringify(this.customerList)
|
|
|
+ localStorage.setItem('print_pay_data', _list1)
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint1.html?type=2&customerList=' +
|
|
|
+ _list2 +
|
|
|
+ '&printTypeList=' +
|
|
|
+ this.ruleForm.type,
|
|
|
+ '结算凭证'
|
|
|
+ )
|
|
|
+ // if (type == 1) {
|
|
|
+ // localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.jjSelectPrintList))
|
|
|
+ // window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType + '&selectEW=' + this
|
|
|
+ // .checked + '&selectEWDD=' + this.ddchecked)
|
|
|
+ // } else if (type == 2) {
|
|
|
+ // localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.excelPrintData))
|
|
|
+ // window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType)
|
|
|
+ // } else {
|
|
|
+ // console.log(this.dialogDataList)
|
|
|
+
|
|
|
+ // localStorage.setItem('print_in_data',JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
|
|
|
+ // // window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
|
|
|
+ // window.open('../../../../static/weightCheck.html?type=2&tableData=' )
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ typePrintCannelClick1() {
|
|
|
+ this.dialogDataList = [] //打个打印取消时数组至空
|
|
|
+ this.isShowPrintTypeBills = false
|
|
|
+ },
|
|
|
+ goodsNameChange(e) {
|
|
|
+ if (e.indexOf('全部货名') != -1) {
|
|
|
+ this.multipleLimit = 1
|
|
|
+ this.goodNames = ['全部货名']
|
|
|
+ this.goodsName = ''
|
|
|
+ } else {
|
|
|
+ this.goodsName = this.goodNames.toString()
|
|
|
+ this.multipleLimit = this.goodnameList.length
|
|
|
+ }
|
|
|
+ // this.getList()
|
|
|
+ },
|
|
|
+ importClick(file, fileList) {
|
|
|
+ this.fileTemp = file.raw
|
|
|
+ let fileName = file.raw.name
|
|
|
+ let fileType = fileName.substring(fileName.lastIndexOf('.') + 1)
|
|
|
+ // 判断上传文件格式
|
|
|
+ if (this.fileTemp) {
|
|
|
+ if (fileType == 'xlsx' || fileType == 'xls') {
|
|
|
+ this.importf(this.fileTemp)
|
|
|
} else {
|
|
|
- this.printSeparately = false
|
|
|
- }
|
|
|
- },
|
|
|
- makeEWjjSelectPrintList() {
|
|
|
- let _selectPrint_EWjjSelectPrintList = JSON.parse(JSON.stringify(this.jjSelectPrintList));
|
|
|
- for (let i = 0; i < _selectPrint_EWjjSelectPrintList.length; i++) {
|
|
|
- let _data = _selectPrint_EWjjSelectPrintList[i];
|
|
|
- _data.compName = this.companyNameEW;
|
|
|
- _data.customer = this.ewCustomer
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '附件格式错误,请删除后重新上传!'
|
|
|
+ })
|
|
|
}
|
|
|
- localStorage.setItem('selectPrint_EWjjSelectPrintList', JSON.stringify(_selectPrint_EWjjSelectPrintList))
|
|
|
- },
|
|
|
- printBig1(type, radioType) {
|
|
|
- this.printData.extra1=true
|
|
|
- localStorage.setItem('print_company_name',this.companyName)
|
|
|
- localStorage.setItem('print_company_name_ew',this.companyNameEW)
|
|
|
- localStorage.setItem('print_customer_name_ew',this.ewCustomer)
|
|
|
- localStorage.removeItem('print_in_data')
|
|
|
- // 打印额外
|
|
|
- if (this.checked || this.ddchecked) {
|
|
|
- this.printData.extra2=true
|
|
|
- if(this.ddchecked){
|
|
|
- localStorage.setItem('print_alone_extra',true)
|
|
|
- }else{
|
|
|
- localStorage.setItem('print_alone_extra',false)
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请上传附件!'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ importf(obj) {
|
|
|
+ this.excelFreightspace = []
|
|
|
+ // this.dialogVisible = true;
|
|
|
+ let _this = this
|
|
|
+ let inputDOM = this.$refs.inputer // 通过DOM取文件数据
|
|
|
+ this.file = event.currentTarget.files[0]
|
|
|
+ var rABS = false //是否将文件读取为二进制字符串
|
|
|
+ var f = this.file
|
|
|
+ var reader = new FileReader()
|
|
|
+ //if (!FileReader.prototype.readAsBinaryString) {
|
|
|
+ FileReader.prototype.readAsBinaryString = function(f) {
|
|
|
+ var binary = ''
|
|
|
+ var rABS = false //是否将文件读取为二进制字符串
|
|
|
+ var pt = this
|
|
|
+ var wb //读取完成的数据
|
|
|
+ var outdata
|
|
|
+ var reader = new FileReader()
|
|
|
+ reader.onload = function(e) {
|
|
|
+ var bytes = new Uint8Array(reader.result)
|
|
|
+ var length = bytes.byteLength
|
|
|
+ for (var i = 0; i < length; i++) {
|
|
|
+ binary += String.fromCharCode(bytes[i])
|
|
|
}
|
|
|
- // this.selectEW = true;
|
|
|
- }else{
|
|
|
- this.printData.extra2=false
|
|
|
- }
|
|
|
- let _list1 = []
|
|
|
- let _list2 = []
|
|
|
-
|
|
|
- localStorage.setItem('printData1',_list1)
|
|
|
- _list1 = JSON.stringify(this.printData)
|
|
|
- _list2 = JSON.stringify(this.customerList)
|
|
|
- localStorage.setItem('print_pay_data',_list1)
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint1.html?type=2&customerList=' +
|
|
|
- _list2 +
|
|
|
- '&printTypeList=' +
|
|
|
- this.ruleForm.type,
|
|
|
- '结算凭证'
|
|
|
- )
|
|
|
- // if (type == 1) {
|
|
|
- // localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.jjSelectPrintList))
|
|
|
- // window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType + '&selectEW=' + this
|
|
|
- // .checked + '&selectEWDD=' + this.ddchecked)
|
|
|
- // } else if (type == 2) {
|
|
|
- // localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.excelPrintData))
|
|
|
- // window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType)
|
|
|
- // } else {
|
|
|
- // console.log(this.dialogDataList)
|
|
|
-
|
|
|
- // localStorage.setItem('print_in_data',JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
|
|
|
- // // window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
|
|
|
- // window.open('../../../../static/weightCheck.html?type=2&tableData=' )
|
|
|
- // }
|
|
|
- },
|
|
|
- typePrintCannelClick1() {
|
|
|
- this.dialogDataList = [] //打个打印取消时数组至空
|
|
|
- this.isShowPrintTypeBills= false
|
|
|
- },
|
|
|
- goodsNameChange(e) {
|
|
|
- if(e.indexOf('全部货名')!=-1){
|
|
|
- this.multipleLimit=1
|
|
|
- this.goodNames=['全部货名']
|
|
|
- this.goodsName = ''
|
|
|
- }else{
|
|
|
- this.goodsName=this.goodNames.toString()
|
|
|
- this.multipleLimit=this.goodnameList.length
|
|
|
- }
|
|
|
- // this.getList()
|
|
|
- },
|
|
|
- importClick(file, fileList) {
|
|
|
- this.fileTemp = file.raw
|
|
|
- let fileName = file.raw.name
|
|
|
- let fileType = fileName.substring(fileName.lastIndexOf('.') + 1)
|
|
|
- // 判断上传文件格式
|
|
|
- if (this.fileTemp) {
|
|
|
- if (fileType == 'xlsx' || fileType == 'xls') {
|
|
|
- this.importf(this.fileTemp)
|
|
|
+ var XLSX = require('xlsx')
|
|
|
+ if (rABS) {
|
|
|
+ wb = XLSX.read(btoa(fixdata(binary)), {
|
|
|
+ //手动转化
|
|
|
+ type: 'base64',
|
|
|
+ cellDates: true
|
|
|
+ })
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '附件格式错误,请删除后重新上传!',
|
|
|
+ wb = XLSX.read(binary, {
|
|
|
+ type: 'binary'
|
|
|
})
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请上传附件!',
|
|
|
+ // outdata就是你想要的东西 excel导入的数据
|
|
|
+ outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]])
|
|
|
+ // excel 数据再处理
|
|
|
+ let arr = []
|
|
|
+ outdata.map(v => {
|
|
|
+ // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
|
|
|
+ let jsonString = JSON.stringify(v)
|
|
|
+ .replace(/\//g, '')
|
|
|
+ .replace(/\s/gi, '')
|
|
|
+ v = JSON.parse(jsonString)
|
|
|
+ let obj = {}
|
|
|
+ //xxx代表列名
|
|
|
+ obj.qualityNo = v.业务编号
|
|
|
+ obj.binNumber = v.仓位编号
|
|
|
+ obj.contractNo = v.合同编号
|
|
|
+ obj.customerName = v.客户姓名
|
|
|
+ obj.customerNumberCard = v.身份证号
|
|
|
+ obj.customerPhone = v.客户手机号
|
|
|
+ obj.carNumber = v.车牌号
|
|
|
+ obj.grossWeight = v.毛重
|
|
|
+ obj.pureWeight =
|
|
|
+ v.纯重 && _this.warehouseName == '榆树库' ? v.纯重 : ''
|
|
|
+ obj.tare = v.皮重
|
|
|
+ obj.netWeight = v.净重
|
|
|
+ obj.dryGrainPrice = v.单价
|
|
|
+ obj.money = v.粮款
|
|
|
+ console.log(v.日期)
|
|
|
+ obj.qualityDate = _this.formatDate(v.日期, '-')
|
|
|
+ obj.deductionAmount = v.扣款
|
|
|
+ obj.goodsName = v.货名
|
|
|
+ _this.excelFreightspace.push(obj)
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
- importf(obj) {
|
|
|
- this.excelFreightspace = []
|
|
|
- // this.dialogVisible = true;
|
|
|
- let _this = this;
|
|
|
- let inputDOM = this.$refs.inputer; // 通过DOM取文件数据
|
|
|
- this.file = event.currentTarget.files[0];
|
|
|
- var rABS = false; //是否将文件读取为二进制字符串
|
|
|
- var f = this.file;
|
|
|
- var reader = new FileReader();
|
|
|
- //if (!FileReader.prototype.readAsBinaryString) {
|
|
|
- FileReader.prototype.readAsBinaryString = function(f) {
|
|
|
- var binary = '';
|
|
|
- var rABS = false; //是否将文件读取为二进制字符串
|
|
|
- var pt = this;
|
|
|
- var wb; //读取完成的数据
|
|
|
- var outdata;
|
|
|
- var reader = new FileReader();
|
|
|
- reader.onload = function(e) {
|
|
|
- var bytes = new Uint8Array(reader.result);
|
|
|
- var length = bytes.byteLength;
|
|
|
- for (var i = 0; i < length; i++) {
|
|
|
- binary += String.fromCharCode(bytes[i]);
|
|
|
- }
|
|
|
- var XLSX = require('xlsx');
|
|
|
- if (rABS) {
|
|
|
- wb = XLSX.read(btoa(fixdata(binary)), { //手动转化
|
|
|
- type: 'base64',
|
|
|
- cellDates: true
|
|
|
- });
|
|
|
- } else {
|
|
|
- wb = XLSX.read(binary, {
|
|
|
- type: 'binary'
|
|
|
- });
|
|
|
- }
|
|
|
- // outdata就是你想要的东西 excel导入的数据
|
|
|
- outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
|
|
|
- // excel 数据再处理
|
|
|
- let arr = []
|
|
|
- outdata.map(v => {
|
|
|
- // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
|
|
|
- let jsonString = JSON.stringify(v).replace(/\//g, '').replace(/\s/ig, '');
|
|
|
- v = JSON.parse(jsonString);
|
|
|
- let obj = {}
|
|
|
- //xxx代表列名
|
|
|
- obj.qualityNo = v.业务编号
|
|
|
- obj.binNumber = v.仓位编号
|
|
|
- obj.contractNo = v.合同编号
|
|
|
- obj.customerName = v.客户姓名
|
|
|
- obj.customerNumberCard = v.身份证号
|
|
|
- obj.customerPhone = v.客户手机号
|
|
|
- obj.carNumber = v.车牌号
|
|
|
- obj.grossWeight = v.毛重
|
|
|
- obj.pureWeight = v.纯重&&_this.warehouseName=='榆树库'?v.纯重:''
|
|
|
- obj.tare = v.皮重
|
|
|
- obj.netWeight = v.净重
|
|
|
- obj.dryGrainPrice = v.单价
|
|
|
- obj.money = v.粮款
|
|
|
- console.log(v.日期)
|
|
|
- obj.qualityDate = _this.formatDate(v.日期, '-')
|
|
|
- obj.deductionAmount = v.扣款
|
|
|
- obj.goodsName = v.货名
|
|
|
- _this.excelFreightspace.push(obj)
|
|
|
+ if (_this.excelFreightspace) {
|
|
|
+ importWord({
|
|
|
+ warehouseName: _this.warehouseName,
|
|
|
+ qualityInspectionManagementList: _this.excelFreightspace
|
|
|
})
|
|
|
- if (_this.excelFreightspace) {
|
|
|
- importWord({
|
|
|
- warehouseName: _this.warehouseName,
|
|
|
- qualityInspectionManagementList: _this.excelFreightspace
|
|
|
- }).toPromise()
|
|
|
- .then((response) => {
|
|
|
- if (response == 'ok') {
|
|
|
- _this.getList()
|
|
|
- _this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '导入成功',
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ if (response == 'ok') {
|
|
|
+ _this.getList()
|
|
|
+ _this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '导入成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- reader.readAsArrayBuffer(f);
|
|
|
}
|
|
|
- if (rABS) {
|
|
|
- reader.readAsArrayBuffer(f);
|
|
|
- } else {
|
|
|
- reader.readAsBinaryString(f);
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- formatDate(numb, format) {
|
|
|
- const old = numb - 1;
|
|
|
- const t = Math.round((old - Math.floor(old)) * 24 * 60 * 60);
|
|
|
- const time = new Date(1900, 0, old, 0, 0, t)
|
|
|
- const year = time.getFullYear();
|
|
|
- const month = time.getMonth() + 1;
|
|
|
- const date = time.getDate();
|
|
|
- return year + format + (month < 10 ? '0' + month : month) + format + (date < 10 ? '0' + date : date) +
|
|
|
- ' 00:00:00'
|
|
|
- },
|
|
|
- invoicingClose() {
|
|
|
- this.invoicingshow = false
|
|
|
- },
|
|
|
- settleaccounts(row) {
|
|
|
- this.$confirm('确定将该笔业务进行反结算操作?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
-
|
|
|
+ reader.readAsArrayBuffer(f)
|
|
|
+ }
|
|
|
+ if (rABS) {
|
|
|
+ reader.readAsArrayBuffer(f)
|
|
|
+ } else {
|
|
|
+ reader.readAsBinaryString(f)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ formatDate(numb, format) {
|
|
|
+ const old = numb - 1
|
|
|
+ const t = Math.round((old - Math.floor(old)) * 24 * 60 * 60)
|
|
|
+ const time = new Date(1900, 0, old, 0, 0, t)
|
|
|
+ const year = time.getFullYear()
|
|
|
+ const month = time.getMonth() + 1
|
|
|
+ const date = time.getDate()
|
|
|
+ return (
|
|
|
+ year +
|
|
|
+ format +
|
|
|
+ (month < 10 ? '0' + month : month) +
|
|
|
+ format +
|
|
|
+ (date < 10 ? '0' + date : date) +
|
|
|
+ ' 00:00:00'
|
|
|
+ )
|
|
|
+ },
|
|
|
+ invoicingClose() {
|
|
|
+ this.invoicingshow = false
|
|
|
+ },
|
|
|
+ settleaccounts(row) {
|
|
|
+ this.$confirm('确定将该笔业务进行反结算操作?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
suspendinstance({
|
|
|
- workflowId: row.workflowId,
|
|
|
- id: row.id
|
|
|
- }).toPromise()
|
|
|
- .then((response) => {
|
|
|
+ workflowId: row.workflowId,
|
|
|
+ id: row.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: '反结算成功!'
|
|
|
- });
|
|
|
+ })
|
|
|
this.getList()
|
|
|
})
|
|
|
- }).catch(() => {
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
return false
|
|
|
- });
|
|
|
-
|
|
|
- },
|
|
|
- imgshow() {
|
|
|
- this.deleteshow = false
|
|
|
- },
|
|
|
- handlePictureCardPreview(file) {
|
|
|
- this.dialogImageUrl = file.url;
|
|
|
- this.dialogVisible = true;
|
|
|
- },
|
|
|
- previewPayOrder(val) {
|
|
|
- this.paymentReceipt = val.paymentScreenshot
|
|
|
- this.isPreviewPayOrder = true
|
|
|
- },
|
|
|
- paymentReceiptClose() {},
|
|
|
- datechange() {
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- getPassYearFormatDate() {
|
|
|
- var nowDate = new Date()
|
|
|
- nowDate.setTime(nowDate.getTime() - 24 * 60 * 60 * 1000 * 30)
|
|
|
- var seperator1 = '-'
|
|
|
- var year = nowDate.getFullYear()
|
|
|
- var month = nowDate.getMonth() + 1
|
|
|
- var strDate = nowDate.getDate()
|
|
|
- if (month >= 1 && month <= 9) {
|
|
|
- month = '0' + month
|
|
|
- }
|
|
|
- if (strDate >= 0 && strDate <= 9) {
|
|
|
- strDate = '0' + strDate
|
|
|
- }
|
|
|
- var formatDate = year + seperator1 + month + seperator1 + strDate
|
|
|
- this.getNowFormatDate(formatDate)
|
|
|
- },
|
|
|
- /* 获取现在时间,并接受过去时间的值 */
|
|
|
- getNowFormatDate(formatDate) {
|
|
|
- var date = new Date()
|
|
|
- date.setTime(date.getTime() + 24 * 60 * 60 * 1000)
|
|
|
- var seperator1 = '-'
|
|
|
- var year = date.getFullYear()
|
|
|
- var month = date.getMonth() + 1
|
|
|
- var strDate = date.getDate()
|
|
|
- if (month >= 1 && month <= 9) {
|
|
|
- month = '0' + month
|
|
|
- }
|
|
|
- if (strDate >= 0 && strDate <= 9) {
|
|
|
- strDate = '0' + strDate
|
|
|
- }
|
|
|
- var nowData = year + seperator1 + month + seperator1 + strDate
|
|
|
- this.value2 = [formatDate, nowData] // 默认赋值一年时间
|
|
|
- },
|
|
|
- selectPrint(num) {
|
|
|
- if(num == 2){
|
|
|
- this.printTips = 2
|
|
|
- }else if(num==3){
|
|
|
- this.printTips = 3
|
|
|
- }
|
|
|
- this.printType = 1
|
|
|
- this.isShowPrintType = true
|
|
|
- },
|
|
|
- generateClick() {
|
|
|
- this.$confirm(`确定生成入库单?`, {
|
|
|
- cancelButtonText: '取消',
|
|
|
- confirmButtonText: '确定',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- dandongOrder({}).toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$notify.success({
|
|
|
- title: '成功',
|
|
|
- message: '生成入库单成功',
|
|
|
- })
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
- },
|
|
|
- agreementPrint() {
|
|
|
- var arr = []
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- if (this.modification[i].pictureAddress) {
|
|
|
- arr.push({
|
|
|
- fileUrl: this.modification[i].pictureAddress,
|
|
|
- renameFileName: '结算单' + i + '.png',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ imgshow() {
|
|
|
+ this.deleteshow = false
|
|
|
+ },
|
|
|
+ handlePictureCardPreview(file) {
|
|
|
+ this.dialogImageUrl = file.url
|
|
|
+ this.dialogVisible = true
|
|
|
+ },
|
|
|
+ previewPayOrder(val) {
|
|
|
+ this.paymentReceipt = val.paymentScreenshot
|
|
|
+ this.isPreviewPayOrder = true
|
|
|
+ },
|
|
|
+ paymentReceiptClose() {},
|
|
|
+ datechange() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ getPassYearFormatDate() {
|
|
|
+ var nowDate = new Date()
|
|
|
+ nowDate.setTime(nowDate.getTime() - 24 * 60 * 60 * 1000 * 30)
|
|
|
+ var seperator1 = '-'
|
|
|
+ var year = nowDate.getFullYear()
|
|
|
+ var month = nowDate.getMonth() + 1
|
|
|
+ var strDate = nowDate.getDate()
|
|
|
+ if (month >= 1 && month <= 9) {
|
|
|
+ month = '0' + month
|
|
|
+ }
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
+ strDate = '0' + strDate
|
|
|
+ }
|
|
|
+ var formatDate = year + seperator1 + month + seperator1 + strDate
|
|
|
+ this.getNowFormatDate(formatDate)
|
|
|
+ },
|
|
|
+ /* 获取现在时间,并接受过去时间的值 */
|
|
|
+ getNowFormatDate(formatDate) {
|
|
|
+ var date = new Date()
|
|
|
+ date.setTime(date.getTime() + 24 * 60 * 60 * 1000)
|
|
|
+ var seperator1 = '-'
|
|
|
+ var year = date.getFullYear()
|
|
|
+ var month = date.getMonth() + 1
|
|
|
+ var strDate = date.getDate()
|
|
|
+ if (month >= 1 && month <= 9) {
|
|
|
+ month = '0' + month
|
|
|
+ }
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
+ strDate = '0' + strDate
|
|
|
+ }
|
|
|
+ var nowData = year + seperator1 + month + seperator1 + strDate
|
|
|
+ this.value2 = [formatDate, nowData] // 默认赋值一年时间
|
|
|
+ },
|
|
|
+ selectPrint(num) {
|
|
|
+ if (num == 2) {
|
|
|
+ this.printTips = 2
|
|
|
+ } else if (num == 3) {
|
|
|
+ this.printTips = 3
|
|
|
+ }
|
|
|
+ this.printType = 1
|
|
|
+ this.isShowPrintType = true
|
|
|
+ },
|
|
|
+ generateClick() {
|
|
|
+ this.$confirm(`确定生成入库单?`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ dandongOrder({})
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '生成入库单成功'
|
|
|
+ })
|
|
|
+ this.getList()
|
|
|
})
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- if (arr.length > 0) {
|
|
|
- this.filesToRar(arr, '结算单文件')
|
|
|
- }else{
|
|
|
- this.$message.error('当前勾选的条目未生成结算单!')
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- async exportlist() {
|
|
|
- let _data = {
|
|
|
- paymentManagementList: this.modification,
|
|
|
- }
|
|
|
- const {
|
|
|
- data
|
|
|
- } = await export1(
|
|
|
- _data, {}, {
|
|
|
- responseType: 'blob',
|
|
|
- }
|
|
|
- ).toPromise()
|
|
|
- downloadFile({
|
|
|
- res: data,
|
|
|
- fileName: `${
|
|
|
- this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
- }结算凭证`,
|
|
|
- type: 'xls',
|
|
|
})
|
|
|
- },
|
|
|
- /**文件打包
|
|
|
- * arrImages:文件list:[{fileUrl:文件url,renameFileName:文件名}]
|
|
|
- * filename 压缩包名
|
|
|
- * */
|
|
|
- filesToRar(arrImages, filename) {
|
|
|
- let _this = this
|
|
|
- let zip = new JSZip()
|
|
|
- let cache = {}
|
|
|
- let promises = []
|
|
|
- _this.title = '正在加载压缩文件'
|
|
|
- for (let item of arrImages) {
|
|
|
- const promise = _this.getImgArrayBuffer(item.fileUrl).then((data) => {
|
|
|
- // 下载文件, 并存成ArrayBuffer对象(blob)
|
|
|
- zip.file(item.renameFileName, data, {
|
|
|
- binary: true
|
|
|
- }) // 逐个添加文件
|
|
|
- cache[item.renameFileName] = data
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ agreementPrint() {
|
|
|
+ var arr = []
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ if (this.modification[i].pictureAddress) {
|
|
|
+ arr.push({
|
|
|
+ fileUrl: this.modification[i].pictureAddress,
|
|
|
+ renameFileName: '结算单' + i + '.png'
|
|
|
})
|
|
|
- promises.push(promise)
|
|
|
}
|
|
|
- Promise.all(promises)
|
|
|
- .then(() => {
|
|
|
- zip.generateAsync({
|
|
|
+ }
|
|
|
+ if (arr.length > 0) {
|
|
|
+ this.filesToRar(arr, '结算单文件')
|
|
|
+ } else {
|
|
|
+ this.$message.error('当前勾选的条目未生成结算单!')
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ async exportlist() {
|
|
|
+ let _data = {
|
|
|
+ paymentManagementList: this.modification
|
|
|
+ }
|
|
|
+ const { data } = await export1(
|
|
|
+ _data,
|
|
|
+ {},
|
|
|
+ {
|
|
|
+ responseType: 'blob'
|
|
|
+ }
|
|
|
+ ).toPromise()
|
|
|
+ downloadFile({
|
|
|
+ res: data,
|
|
|
+ fileName: `${this.date.year +
|
|
|
+ (this.date.month ? `-${this.date.month}` : '')}结算凭证`,
|
|
|
+ type: 'xls'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /**文件打包
|
|
|
+ * arrImages:文件list:[{fileUrl:文件url,renameFileName:文件名}]
|
|
|
+ * filename 压缩包名
|
|
|
+ * */
|
|
|
+ filesToRar(arrImages, filename) {
|
|
|
+ let _this = this
|
|
|
+ let zip = new JSZip()
|
|
|
+ let cache = {}
|
|
|
+ let promises = []
|
|
|
+ _this.title = '正在加载压缩文件'
|
|
|
+ for (let item of arrImages) {
|
|
|
+ const promise = _this.getImgArrayBuffer(item.fileUrl).then(data => {
|
|
|
+ // 下载文件, 并存成ArrayBuffer对象(blob)
|
|
|
+ zip.file(item.renameFileName, data, {
|
|
|
+ binary: true
|
|
|
+ }) // 逐个添加文件
|
|
|
+ cache[item.renameFileName] = data
|
|
|
+ })
|
|
|
+ promises.push(promise)
|
|
|
+ }
|
|
|
+ Promise.all(promises)
|
|
|
+ .then(() => {
|
|
|
+ zip
|
|
|
+ .generateAsync({
|
|
|
type: 'blob'
|
|
|
- }).then((content) => {
|
|
|
+ })
|
|
|
+ .then(content => {
|
|
|
_this.title = '正在压缩'
|
|
|
// 生成二进制流
|
|
|
FileSaver.saveAs(content, filename) // 利用file-saver保存文件 自定义文件名
|
|
|
_this.title = '压缩完成'
|
|
|
})
|
|
|
- })
|
|
|
- .catch((res) => {
|
|
|
- console.log(res)
|
|
|
- _this.$message.error('文件压缩失败')
|
|
|
- })
|
|
|
- },
|
|
|
- //获取文件blob
|
|
|
- getImgArrayBuffer(url) {
|
|
|
- let _this = this
|
|
|
- return new Promise((resolve, reject) => {
|
|
|
- //通过请求获取文件blob格式
|
|
|
- let xmlhttp = new XMLHttpRequest()
|
|
|
- xmlhttp.open('GET', url, true)
|
|
|
- xmlhttp.responseType = 'blob'
|
|
|
- xmlhttp.onload = function() {
|
|
|
- if (this.status == 200) {
|
|
|
- resolve(this.response)
|
|
|
- } else {
|
|
|
- reject(this.status)
|
|
|
- }
|
|
|
- }
|
|
|
- xmlhttp.send()
|
|
|
})
|
|
|
- },
|
|
|
- invoicingconfirm() {
|
|
|
- let data = {
|
|
|
- paymentManagementList: this.modification,
|
|
|
- }
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- this.modification[i].invoiceFlag = this.invoiceFlag
|
|
|
- if (
|
|
|
- this.modification[i].status != '全部付款' &&
|
|
|
- this.modification[i].status != '部分付款' &&
|
|
|
- this.modification[i].status != '已通过'
|
|
|
- ) {
|
|
|
- this.$message.error('开票只能选择全部付款或部分付款或已通过!')
|
|
|
- return
|
|
|
+ .catch(res => {
|
|
|
+ console.log(res)
|
|
|
+ _this.$message.error('文件压缩失败')
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //获取文件blob
|
|
|
+ getImgArrayBuffer(url) {
|
|
|
+ let _this = this
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ //通过请求获取文件blob格式
|
|
|
+ let xmlhttp = new XMLHttpRequest()
|
|
|
+ xmlhttp.open('GET', url, true)
|
|
|
+ xmlhttp.responseType = 'blob'
|
|
|
+ xmlhttp.onload = function() {
|
|
|
+ if (this.status == 200) {
|
|
|
+ resolve(this.response)
|
|
|
+ } else {
|
|
|
+ reject(this.status)
|
|
|
}
|
|
|
}
|
|
|
- //开票
|
|
|
- invoicing(data)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- if (response.length > 0) {
|
|
|
- var arr = []
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
- let _name = response[i].replace('https://taohaoliang.oss-cn-beijing.aliyuncs.com/FP/', '')
|
|
|
- arr.push({
|
|
|
- fileUrl: response[i],
|
|
|
- renameFileName: _name,
|
|
|
- })
|
|
|
- }
|
|
|
- this.filesToRar(arr, '开票XML文件')
|
|
|
- } else {
|
|
|
- this.$message.error('暂无数据')
|
|
|
- return
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
- },
|
|
|
- invoicingClick() {
|
|
|
- this.invoicingshow = true
|
|
|
- // let data = JSON.stringify({
|
|
|
- // paymentManagementList : this.modification
|
|
|
- // })
|
|
|
- // //开票
|
|
|
- // invoicing(data)
|
|
|
- // .toPromise()
|
|
|
- // .then(response => {
|
|
|
- // console.log(response)
|
|
|
- // })
|
|
|
-
|
|
|
- },
|
|
|
- customer(row) {
|
|
|
-
|
|
|
- getCustomerLook({
|
|
|
- id: row.identityId,
|
|
|
- authenticationStatusKey: 7,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.customerInfo = true
|
|
|
- this.customerlist = response
|
|
|
- this.customerlist.cardAddressUrl1 =
|
|
|
- this.customerlist.cardAddressUrl.split(',')[0]
|
|
|
- this.customerlist.cardAddressUrl2 =
|
|
|
- this.customerlist.cardAddressUrl.split(',')[1]
|
|
|
- if(row.payeeAddressUrl){
|
|
|
- this.customerlist.payeeAddressUrls = row.payeeAddressUrl.split(',')
|
|
|
- }
|
|
|
- else{
|
|
|
- this.customerlist.payeeAddressUrls = this.customerlist.payeeAddressUrl.split(',')
|
|
|
- }
|
|
|
- if(row.bankCard){
|
|
|
- this.customerlist.bankCard = row.bankCard
|
|
|
- }
|
|
|
- if(row.bankDeposit){
|
|
|
- this.customerlist.bankDeposit = row.bankDeposit
|
|
|
- }
|
|
|
- if(row.bankDepositBranch){
|
|
|
- this.customerlist.bankDepositBranch = row.bankDepositBranch
|
|
|
+ xmlhttp.send()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ invoicingconfirm() {
|
|
|
+ let data = {
|
|
|
+ paymentManagementList: this.modification
|
|
|
+ }
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ this.modification[i].invoiceFlag = this.invoiceFlag
|
|
|
+ if (
|
|
|
+ this.modification[i].status != '全部付款' &&
|
|
|
+ this.modification[i].status != '部分付款' &&
|
|
|
+ this.modification[i].status != '已通过'
|
|
|
+ ) {
|
|
|
+ this.$message.error('开票只能选择全部付款或部分付款或已通过!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //开票
|
|
|
+ invoicing(data)
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ if (response.length > 0) {
|
|
|
+ var arr = []
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ let _name = response[i].replace(
|
|
|
+ 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/FP/',
|
|
|
+ ''
|
|
|
+ )
|
|
|
+ arr.push({
|
|
|
+ fileUrl: response[i],
|
|
|
+ renameFileName: _name
|
|
|
+ })
|
|
|
}
|
|
|
- })
|
|
|
- },
|
|
|
- customerclose(e) {
|
|
|
- // row.textcss = false
|
|
|
- this.customerInfo = false
|
|
|
- },
|
|
|
- //合计
|
|
|
- getSummaries(param) {
|
|
|
- const {
|
|
|
- columns,
|
|
|
- data
|
|
|
- } = param
|
|
|
- const sums = []
|
|
|
- var _number = [11,12, 16, 17]
|
|
|
- if (this.modification.length > 0) {
|
|
|
- columns.forEach((column, index) => {
|
|
|
- if (index === 0) {
|
|
|
- sums[index] = '合计'
|
|
|
-
|
|
|
- } else if (index === _number[0] || index === _number[1] || index === _number[2] || index === _number[
|
|
|
- 3] || index === _number[4]) {
|
|
|
- const values = this.modification.map((item) => Number(item[column.property]))
|
|
|
- if (!values.every((value) => isNaN(value))) {
|
|
|
- sums[index] = values.reduce((prev, curr) => {
|
|
|
- const value = Number(curr)
|
|
|
- if (!isNaN(value)) {
|
|
|
- return prev + curr
|
|
|
- } else {
|
|
|
- return prev
|
|
|
- }
|
|
|
- }, 0)
|
|
|
- sums[index] = sums[index].toFixed(3)
|
|
|
- } else {
|
|
|
- // sums[index] = '元'
|
|
|
- }
|
|
|
+ this.filesToRar(arr, '开票XML文件')
|
|
|
+ } else {
|
|
|
+ this.$message.error('暂无数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {})
|
|
|
+ },
|
|
|
+ invoicingClick() {
|
|
|
+ this.invoicingshow = true
|
|
|
+ // let data = JSON.stringify({
|
|
|
+ // paymentManagementList : this.modification
|
|
|
+ // })
|
|
|
+ // //开票
|
|
|
+ // invoicing(data)
|
|
|
+ // .toPromise()
|
|
|
+ // .then(response => {
|
|
|
+ // console.log(response)
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ customer(row) {
|
|
|
+ getCustomerLook({
|
|
|
+ id: row.identityId,
|
|
|
+ authenticationStatusKey: 7
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.customerInfo = true
|
|
|
+ this.customerlist = response
|
|
|
+ this.customerlist.cardAddressUrl1 = this.customerlist.cardAddressUrl.split(
|
|
|
+ ','
|
|
|
+ )[0]
|
|
|
+ this.customerlist.cardAddressUrl2 = this.customerlist.cardAddressUrl.split(
|
|
|
+ ','
|
|
|
+ )[1]
|
|
|
+ if (row.payeeAddressUrl) {
|
|
|
+ this.customerlist.payeeAddressUrls = row.payeeAddressUrl.split(',')
|
|
|
+ } else {
|
|
|
+ this.customerlist.payeeAddressUrls = this.customerlist.payeeAddressUrl.split(
|
|
|
+ ','
|
|
|
+ )
|
|
|
+ }
|
|
|
+ if (row.bankCard) {
|
|
|
+ this.customerlist.bankCard = row.bankCard
|
|
|
+ }
|
|
|
+ if (row.bankDeposit) {
|
|
|
+ this.customerlist.bankDeposit = row.bankDeposit
|
|
|
+ }
|
|
|
+ if (row.bankDepositBranch) {
|
|
|
+ this.customerlist.bankDepositBranch = row.bankDepositBranch
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ customerclose(e) {
|
|
|
+ // row.textcss = false
|
|
|
+ this.customerInfo = false
|
|
|
+ },
|
|
|
+ //合计
|
|
|
+ getSummaries(param) {
|
|
|
+ const { columns, data } = param
|
|
|
+ const sums = []
|
|
|
+ var _number = [11, 12, 16, 17]
|
|
|
+ if (this.modification.length > 0) {
|
|
|
+ columns.forEach((column, index) => {
|
|
|
+ if (index === 0) {
|
|
|
+ sums[index] = '合计'
|
|
|
+ } else if (
|
|
|
+ index === _number[0] ||
|
|
|
+ index === _number[1] ||
|
|
|
+ index === _number[2] ||
|
|
|
+ index === _number[3] ||
|
|
|
+ index === _number[4]
|
|
|
+ ) {
|
|
|
+ const values = this.modification.map(item =>
|
|
|
+ Number(item[column.property])
|
|
|
+ )
|
|
|
+ if (!values.every(value => isNaN(value))) {
|
|
|
+ sums[index] = values.reduce((prev, curr) => {
|
|
|
+ const value = Number(curr)
|
|
|
+ if (!isNaN(value)) {
|
|
|
+ return prev + curr
|
|
|
+ } else {
|
|
|
+ return prev
|
|
|
+ }
|
|
|
+ }, 0)
|
|
|
+ sums[index] = sums[index].toFixed(3)
|
|
|
} else {
|
|
|
- sums[index] = '--'
|
|
|
+ // sums[index] = '元'
|
|
|
}
|
|
|
- })
|
|
|
- } else {
|
|
|
- columns.forEach((column, index) => {
|
|
|
- if (index === 0) {
|
|
|
- sums[index] = '合计'
|
|
|
- } else if (index === _number[0] || index === _number[1] || index === _number[2] || index === _number[
|
|
|
- 3] || index === _number[4]) {
|
|
|
- const values = data.map((item) => Number(item[column.property]))
|
|
|
- if (!values.every((value) => isNaN(value))) {
|
|
|
- sums[index] = values.reduce((prev, curr) => {
|
|
|
- const value = Number(curr)
|
|
|
- if (!isNaN(value)) {
|
|
|
- return prev + curr
|
|
|
- } else {
|
|
|
- return prev
|
|
|
- }
|
|
|
- }, 0)
|
|
|
- sums[index] = sums[index].toFixed(3)
|
|
|
- } else {
|
|
|
- // sums[index] = '元'
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ sums[index] = '--'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ columns.forEach((column, index) => {
|
|
|
+ if (index === 0) {
|
|
|
+ sums[index] = '合计'
|
|
|
+ } else if (
|
|
|
+ index === _number[0] ||
|
|
|
+ index === _number[1] ||
|
|
|
+ index === _number[2] ||
|
|
|
+ index === _number[3] ||
|
|
|
+ index === _number[4]
|
|
|
+ ) {
|
|
|
+ const values = data.map(item => Number(item[column.property]))
|
|
|
+ if (!values.every(value => isNaN(value))) {
|
|
|
+ sums[index] = values.reduce((prev, curr) => {
|
|
|
+ const value = Number(curr)
|
|
|
+ if (!isNaN(value)) {
|
|
|
+ return prev + curr
|
|
|
+ } else {
|
|
|
+ return prev
|
|
|
+ }
|
|
|
+ }, 0)
|
|
|
+ sums[index] = sums[index].toFixed(3)
|
|
|
} else {
|
|
|
- sums[index] = '--'
|
|
|
+ // sums[index] = '元'
|
|
|
}
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- // sums[6]=sums[6].toFixed(2)
|
|
|
- // sums[sums.length-2]=sums[sums.length-2].toFixed(2)
|
|
|
- return sums
|
|
|
- },
|
|
|
- selectType(val) {
|
|
|
- for (let i = 0; i < this.ruleForm.type.length; i++) {
|
|
|
- switch (this.ruleForm.type[i]) {
|
|
|
- case '打印身份证':
|
|
|
- this.isShowPrintType1 = !this.isShowPrintType1
|
|
|
- break
|
|
|
- case '打印银行卡':
|
|
|
- this.isShowPrintType2 = !this.isShowPrintType2
|
|
|
- break
|
|
|
- case '打印结算凭证':
|
|
|
- this.isShowPrintType3 = !this.isShowPrintType3
|
|
|
- break
|
|
|
- case '打印检斤单':
|
|
|
- this.isShowPrintType4 = !this.isShowPrintType4
|
|
|
- break
|
|
|
- case '打印自产证明':
|
|
|
- this.isShowPrintType5 = !this.isShowPrintType5
|
|
|
- break
|
|
|
- // case '打印回执单':
|
|
|
- // this.isShowPrintType5 = !this.isShowPrintType5
|
|
|
- // break
|
|
|
+ } else {
|
|
|
+ sums[index] = '--'
|
|
|
}
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ // sums[6]=sums[6].toFixed(2)
|
|
|
+ // sums[sums.length-2]=sums[sums.length-2].toFixed(2)
|
|
|
+ return sums
|
|
|
+ },
|
|
|
+ selectType(val) {
|
|
|
+ for (let i = 0; i < this.ruleForm.type.length; i++) {
|
|
|
+ switch (this.ruleForm.type[i]) {
|
|
|
+ case '打印身份证':
|
|
|
+ this.isShowPrintType1 = !this.isShowPrintType1
|
|
|
+ break
|
|
|
+ case '打印银行卡':
|
|
|
+ this.isShowPrintType2 = !this.isShowPrintType2
|
|
|
+ break
|
|
|
+ case '打印结算凭证':
|
|
|
+ this.isShowPrintType3 = !this.isShowPrintType3
|
|
|
+ break
|
|
|
+ case '打印检斤单':
|
|
|
+ this.isShowPrintType4 = !this.isShowPrintType4
|
|
|
+ break
|
|
|
+ case '打印自产证明':
|
|
|
+ this.isShowPrintType5 = !this.isShowPrintType5
|
|
|
+ break
|
|
|
+ // case '打印回执单':
|
|
|
+ // this.isShowPrintType5 = !this.isShowPrintType5
|
|
|
+ // break
|
|
|
}
|
|
|
- },
|
|
|
- typePrintCannelClick() {
|
|
|
- this.isShowPrintType = false
|
|
|
- },
|
|
|
- async typePrintClick(type) {
|
|
|
- // type 1批量打印 0单个打印
|
|
|
- // this.isShowPrint = true
|
|
|
- this.selectCustomerList = []
|
|
|
- this.selectPrintList = []
|
|
|
- if (type == 1) {
|
|
|
- let index1 = 0
|
|
|
- let index2 = 0
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- // getCustomerLook({
|
|
|
- // id: this.modification[i].identityId,
|
|
|
- // authenticationStatusKey: 7,
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // this.selectCustomerList.push(response)
|
|
|
- // index2++
|
|
|
- // if (
|
|
|
- // index1 == this.modification.length &&
|
|
|
- // index2 == this.modification.length
|
|
|
- // ) {
|
|
|
- // this.printData.compName = ''
|
|
|
- // // this.isShowPrint = true
|
|
|
- // this.printBig()
|
|
|
- // }
|
|
|
- var response=await getpaymentexamine({
|
|
|
- id: this.modification[i].id,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- if (response.compName == '黑龙江秋收有限公司') {
|
|
|
- response.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
- }
|
|
|
- if(response.selfCertificate){
|
|
|
- let ttt =await getFileList({ appendixIds:response.selfCertificate }).toPromise()
|
|
|
- if(ttt.length > 0){
|
|
|
- response.selfCertificateURL = ttt[0].appendixPath
|
|
|
- }
|
|
|
- }
|
|
|
- console.log("111",response)
|
|
|
- index1++
|
|
|
- let date = new Date()
|
|
|
- response.currentTime =
|
|
|
- date.getFullYear() +
|
|
|
- '年' +
|
|
|
- Number(date.getMonth() + 1) +
|
|
|
- '月' +
|
|
|
- date.getDate() +
|
|
|
- '日'
|
|
|
- this.selectCustomerList.push(response)
|
|
|
- this.selectPrintList.push(response)
|
|
|
- if (
|
|
|
- index1 == this.modification.length
|
|
|
- ) {
|
|
|
- this.printData.compName = ''
|
|
|
- // this.isShowPrint = true
|
|
|
- this.printBig()
|
|
|
- }
|
|
|
- // })
|
|
|
- }
|
|
|
- } else {
|
|
|
- await getpaymentexamine({
|
|
|
- id: this.rowData.id,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- if(response.selfCertificate){
|
|
|
- response.selfCertificateURL= getFileList({ appendixIds:response.selfCertificate }).toPromise()
|
|
|
- }
|
|
|
- this.printData = response
|
|
|
- console.log(this.printData)
|
|
|
- if (response.compName == '黑龙江秋收有限公司') {
|
|
|
- this.printData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
- }
|
|
|
- this.isShowPrint = true
|
|
|
- // if(this.printData.solidGrainPrice){
|
|
|
- // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
- // }
|
|
|
- let date = new Date()
|
|
|
- this.printData.currentTime =
|
|
|
- date.getFullYear() +
|
|
|
- '年' +
|
|
|
- Number(date.getMonth() + 1) +
|
|
|
- '月' +
|
|
|
- date.getDate() +
|
|
|
- '日'
|
|
|
- })
|
|
|
- // let _url1 = process.env.VUE_APP_BASE_API + '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo'
|
|
|
- // let _url2 = process.env.VUE_APP_BASE_API + '/paymentManagement/getInfo'
|
|
|
- // this.$axios.all([
|
|
|
- // this.$axios.get(_url1, {
|
|
|
- // params: {
|
|
|
- // id: this.rowData.identityId,
|
|
|
- // authenticationStatusKey: 7,
|
|
|
- // }
|
|
|
- // }).then(res => res.data),
|
|
|
- // this.$axios.get(_url2, {
|
|
|
- // params: {
|
|
|
- // id: this.rowData.id
|
|
|
- // }
|
|
|
- // }).then(res => res.data)
|
|
|
- // ]).then(
|
|
|
- // this.$axios.spread((val1, val2) => {
|
|
|
- // // val 是数组中每个接口返回的值 res.data
|
|
|
- // console.log('两个接口全部加载完成', val1, val2);
|
|
|
-
|
|
|
- // })
|
|
|
- // ).catch(err => {
|
|
|
- // console.log(err);
|
|
|
- // })
|
|
|
- // getCustomerLook({
|
|
|
- // id: this.rowData.identityId,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ typePrintCannelClick() {
|
|
|
+ this.isShowPrintType = false
|
|
|
+ },
|
|
|
+ async typePrintClick(type) {
|
|
|
+ // type 1批量打印 0单个打印
|
|
|
+ // this.isShowPrint = true
|
|
|
+ this.selectCustomerList = []
|
|
|
+ this.selectPrintList = []
|
|
|
+ if (type == 1) {
|
|
|
+ let index1 = 0
|
|
|
+ let index2 = 0
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ // getCustomerLook({
|
|
|
+ // id: this.modification[i].identityId,
|
|
|
// authenticationStatusKey: 7,
|
|
|
// })
|
|
|
// .toPromise()
|
|
|
// .then((response) => {
|
|
|
- // this.customerList = response
|
|
|
- // getpaymentexamine({
|
|
|
- // id: this.rowData.id,
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // this.printData = response
|
|
|
- // this.isShowPrint = true
|
|
|
- // // if(this.printData.solidGrainPrice){
|
|
|
- // // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
- // // }
|
|
|
- // let date = new Date()
|
|
|
- // this.printData.currentTime =
|
|
|
- // date.getFullYear() +
|
|
|
- // '年' +
|
|
|
- // Number(date.getMonth() + 1) +
|
|
|
- // '月' +
|
|
|
- // date.getDate() +
|
|
|
- // '日'
|
|
|
- // })
|
|
|
- // })
|
|
|
- }
|
|
|
- },
|
|
|
- handleRowClick(row) {
|
|
|
- // if (row.status != '已驳回') {
|
|
|
- // if (
|
|
|
- // row.taskId == null &&
|
|
|
- // row.status != '已通过' &&
|
|
|
- // row.status != '部分付款'
|
|
|
- // ) {
|
|
|
- // return false
|
|
|
- // } else {
|
|
|
- // this.$refs.paymentList.toggleRowSelection(row)
|
|
|
- // return true
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // this.$refs.paymentList.toggleRowSelection(row)
|
|
|
- // return true
|
|
|
- // }
|
|
|
- return true
|
|
|
- },
|
|
|
- handlepass() {
|
|
|
- var that = this
|
|
|
- if (this.modification.length == 0) {
|
|
|
- this.$message.warning('请选择要通过的条目')
|
|
|
- } else {
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- if (!this.modification[i].taskId) {
|
|
|
- this.$message.warning('勾选数据中存在超出账号权限的审核条目,请重新勾选!')
|
|
|
- return
|
|
|
+ // this.selectCustomerList.push(response)
|
|
|
+ // index2++
|
|
|
+ // if (
|
|
|
+ // index1 == this.modification.length &&
|
|
|
+ // index2 == this.modification.length
|
|
|
+ // ) {
|
|
|
+ // this.printData.compName = ''
|
|
|
+ // // this.isShowPrint = true
|
|
|
+ // this.printBig()
|
|
|
+ // }
|
|
|
+ var response = await getpaymentexamine({
|
|
|
+ id: this.modification[i].id
|
|
|
+ }).toPromise()
|
|
|
+ if (response.compName == '黑龙江秋收有限公司') {
|
|
|
+ response.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
+ }
|
|
|
+ if (response.selfCertificate) {
|
|
|
+ let ttt = await getFileList({
|
|
|
+ appendixIds: response.selfCertificate
|
|
|
+ }).toPromise()
|
|
|
+ if (ttt.length > 0) {
|
|
|
+ response.selfCertificateURL = ttt[0].appendixPath
|
|
|
}
|
|
|
}
|
|
|
- this.$confirm(`审核通过后,任务将发送给财务,是否确定通过?`, {
|
|
|
- cancelButtonText: '取消',
|
|
|
- confirmButtonText: '确定',
|
|
|
- type: 'warning',
|
|
|
- }).then(() => {
|
|
|
- that.audit(this.modification[0], 0, true, 2)
|
|
|
- })
|
|
|
+ console.log('111', response)
|
|
|
+ index1++
|
|
|
+ let date = new Date()
|
|
|
+ response.currentTime =
|
|
|
+ date.getFullYear() +
|
|
|
+ '年' +
|
|
|
+ Number(date.getMonth() + 1) +
|
|
|
+ '月' +
|
|
|
+ date.getDate() +
|
|
|
+ '日'
|
|
|
+ this.selectCustomerList.push(response)
|
|
|
+ this.selectPrintList.push(response)
|
|
|
+ if (index1 == this.modification.length) {
|
|
|
+ this.printData.compName = ''
|
|
|
+ // this.isShowPrint = true
|
|
|
+ this.printBig()
|
|
|
+ }
|
|
|
+ // })
|
|
|
}
|
|
|
- },
|
|
|
- //查看付款截图
|
|
|
- showPayImg(row) {
|
|
|
- // if (!row.paymentScreenshot) {
|
|
|
- // this.$message({
|
|
|
- // message: '暂无付款截图!',
|
|
|
- // type: 'warning',
|
|
|
+ } else {
|
|
|
+ await getpaymentexamine({
|
|
|
+ id: this.rowData.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ if (response.selfCertificate) {
|
|
|
+ response.selfCertificateURL = getFileList({
|
|
|
+ appendixIds: response.selfCertificate
|
|
|
+ }).toPromise()
|
|
|
+ }
|
|
|
+ this.printData = response
|
|
|
+ console.log(this.printData)
|
|
|
+ if (response.compName == '黑龙江秋收有限公司') {
|
|
|
+ this.printData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
+ }
|
|
|
+ this.isShowPrint = true
|
|
|
+ // if(this.printData.solidGrainPrice){
|
|
|
+ // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
+ // }
|
|
|
+ let date = new Date()
|
|
|
+ this.printData.currentTime =
|
|
|
+ date.getFullYear() +
|
|
|
+ '年' +
|
|
|
+ Number(date.getMonth() + 1) +
|
|
|
+ '月' +
|
|
|
+ date.getDate() +
|
|
|
+ '日'
|
|
|
+ })
|
|
|
+ // let _url1 = process.env.VUE_APP_BASE_API + '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo'
|
|
|
+ // let _url2 = process.env.VUE_APP_BASE_API + '/paymentManagement/getInfo'
|
|
|
+ // this.$axios.all([
|
|
|
+ // this.$axios.get(_url1, {
|
|
|
+ // params: {
|
|
|
+ // id: this.rowData.identityId,
|
|
|
+ // authenticationStatusKey: 7,
|
|
|
+ // }
|
|
|
+ // }).then(res => res.data),
|
|
|
+ // this.$axios.get(_url2, {
|
|
|
+ // params: {
|
|
|
+ // id: this.rowData.id
|
|
|
+ // }
|
|
|
+ // }).then(res => res.data)
|
|
|
+ // ]).then(
|
|
|
+ // this.$axios.spread((val1, val2) => {
|
|
|
+ // // val 是数组中每个接口返回的值 res.data
|
|
|
+ // console.log('两个接口全部加载完成', val1, val2);
|
|
|
+
|
|
|
+ // })
|
|
|
+ // ).catch(err => {
|
|
|
+ // console.log(err);
|
|
|
+ // })
|
|
|
+ // getCustomerLook({
|
|
|
+ // id: this.rowData.identityId,
|
|
|
+ // authenticationStatusKey: 7,
|
|
|
// })
|
|
|
- // return
|
|
|
- // } else {
|
|
|
- this.showPayImgs = true
|
|
|
- this.id = row.id
|
|
|
- var arr = row.paymentScreenshot.split('$')
|
|
|
- console.log(arr)
|
|
|
- this.payImg = []
|
|
|
- for (let i = 0; i < arr.length; i++) {
|
|
|
- if (arr[i] != '') {
|
|
|
- this.payImg.push({
|
|
|
- url: arr[i]
|
|
|
- })
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.customerList = response
|
|
|
+ // getpaymentexamine({
|
|
|
+ // id: this.rowData.id,
|
|
|
+ // })
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.printData = response
|
|
|
+ // this.isShowPrint = true
|
|
|
+ // // if(this.printData.solidGrainPrice){
|
|
|
+ // // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
+ // // }
|
|
|
+ // let date = new Date()
|
|
|
+ // this.printData.currentTime =
|
|
|
+ // date.getFullYear() +
|
|
|
+ // '年' +
|
|
|
+ // Number(date.getMonth() + 1) +
|
|
|
+ // '月' +
|
|
|
+ // date.getDate() +
|
|
|
+ // '日'
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleRowClick(row) {
|
|
|
+ // if (row.status != '已驳回') {
|
|
|
+ // if (
|
|
|
+ // row.taskId == null &&
|
|
|
+ // row.status != '已通过' &&
|
|
|
+ // row.status != '部分付款'
|
|
|
+ // ) {
|
|
|
+ // return false
|
|
|
+ // } else {
|
|
|
+ // this.$refs.paymentList.toggleRowSelection(row)
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.$refs.paymentList.toggleRowSelection(row)
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ return true
|
|
|
+ },
|
|
|
+ handlepass() {
|
|
|
+ var that = this
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要通过的条目')
|
|
|
+ } else {
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ if (!this.modification[i].taskId) {
|
|
|
+ this.$message.warning(
|
|
|
+ '勾选数据中存在超出账号权限的审核条目,请重新勾选!'
|
|
|
+ )
|
|
|
+ return
|
|
|
}
|
|
|
}
|
|
|
- // }
|
|
|
- },
|
|
|
- getWarehouse() {
|
|
|
- let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
|
|
|
- _wareHouse = JSON.parse(_wareHouse)
|
|
|
- getwarehouse({
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ this.$confirm(`审核通过后,任务将发送给财务,是否确定通过?`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ that.audit(this.modification[0], 0, true, 2)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //查看付款截图
|
|
|
+ showPayImg(row) {
|
|
|
+ // if (!row.paymentScreenshot) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '暂无付款截图!',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // } else {
|
|
|
+ this.showPayImgs = true
|
|
|
+ this.id = row.id
|
|
|
+ var arr = row.paymentScreenshot.split('$')
|
|
|
+ console.log(arr)
|
|
|
+ this.payImg = []
|
|
|
+ for (let i = 0; i < arr.length; i++) {
|
|
|
+ if (arr[i] != '') {
|
|
|
+ this.payImg.push({
|
|
|
+ url: arr[i]
|
|
|
})
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.warehouseList = response
|
|
|
- if (this.$route.query.warehouseName) {
|
|
|
- //判断是否在任务页面进来
|
|
|
- this.warehouseName = this.$route.query.warehouseName
|
|
|
- this.warehouseNameKey = this.$route.query.warehouseName
|
|
|
- this.getList()
|
|
|
- } else {
|
|
|
- for (let index = 0; index < this.warehouseList.length; index++) {
|
|
|
- if (_wareHouse && _wareHouse.value == this.warehouseList[index].warehouseName) {
|
|
|
- this.warehouseName = this.warehouseList[index].warehouseName
|
|
|
- this.warehouseNameKey = this.warehouseList[index].warehouseName
|
|
|
- break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ getWarehouse() {
|
|
|
+ let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
|
|
|
+ _wareHouse = JSON.parse(_wareHouse)
|
|
|
+ getwarehouse({
|
|
|
+ compId: localStorage.getItem('ws-pf_compId')
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.warehouseList = response
|
|
|
+ if (this.$route.query.warehouseName) {
|
|
|
+ //判断是否在任务页面进来
|
|
|
+ this.warehouseName = this.$route.query.warehouseName
|
|
|
+ this.warehouseNameKey = this.$route.query.warehouseName
|
|
|
+ this.getList()
|
|
|
+ } else {
|
|
|
+ for (let index = 0; index < this.warehouseList.length; index++) {
|
|
|
+ if (
|
|
|
+ _wareHouse &&
|
|
|
+ _wareHouse.value == this.warehouseList[index].warehouseName
|
|
|
+ ) {
|
|
|
+ this.warehouseName = this.warehouseList[index].warehouseName
|
|
|
+ this.warehouseNameKey = this.warehouseList[index].warehouseName
|
|
|
+ break
|
|
|
+ } else {
|
|
|
+ this.warehouseNameKey = this.warehouseList[0].id
|
|
|
+ if (this.warehouseName) {
|
|
|
+ this.warehouseNameKey = this.WAREHOUSE[3].payname
|
|
|
} else {
|
|
|
- this.warehouseNameKey = this.warehouseList[0].id
|
|
|
- if (this.warehouseName) {
|
|
|
- this.warehouseNameKey = this.WAREHOUSE[3].payname
|
|
|
- } else {
|
|
|
- this.WAREHOUSE[3].payname = this.warehouseList[0].id
|
|
|
- this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
- }
|
|
|
+ this.WAREHOUSE[3].payname = this.warehouseList[0].id
|
|
|
+ this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- },
|
|
|
- //上传付款截图
|
|
|
- handleAvatarSuccess(e) {
|
|
|
- this.imageUrl = e.data.url
|
|
|
- },
|
|
|
- handleAvatarSuccess1(file) {
|
|
|
- if (this.payImg[0]) {
|
|
|
- this.$set(this.payImg[0], 'url', file.data.url)
|
|
|
- } else {
|
|
|
- this.payImg[0] = {
|
|
|
- url: file.data.url
|
|
|
}
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //上传付款截图
|
|
|
+ handleAvatarSuccess(e) {
|
|
|
+ this.imageUrl = e.data.url
|
|
|
+ },
|
|
|
+ handleAvatarSuccess1(file) {
|
|
|
+ if (this.payImg[0]) {
|
|
|
+ this.$set(this.payImg[0], 'url', file.data.url)
|
|
|
+ } else {
|
|
|
+ this.payImg[0] = {
|
|
|
+ url: file.data.url
|
|
|
}
|
|
|
- settlementEdit({
|
|
|
- id: this.id,
|
|
|
- paymentScreenshot: this.payImg[0].url
|
|
|
- }).toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.showPayImgs = false
|
|
|
- this.$message.success('修改成功')
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- },
|
|
|
- _handleRemove() {
|
|
|
- this.payImg[0].url = ''
|
|
|
- settlementEdit({
|
|
|
- id: this.id,
|
|
|
- paymentScreenshot: this.payImg[0].url
|
|
|
- }).toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.showPayImgs = false
|
|
|
- this.$message.success('修改成功')
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- },
|
|
|
- printSmall() {
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint.html?type=1&dataList=' +
|
|
|
+ }
|
|
|
+ settlementEdit({
|
|
|
+ id: this.id,
|
|
|
+ paymentScreenshot: this.payImg[0].url
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.showPayImgs = false
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ _handleRemove() {
|
|
|
+ this.payImg[0].url = ''
|
|
|
+ settlementEdit({
|
|
|
+ id: this.id,
|
|
|
+ paymentScreenshot: this.payImg[0].url
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.showPayImgs = false
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ printSmall() {
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint.html?type=1&dataList=' +
|
|
|
JSON.stringify(this.printData)
|
|
|
+ )
|
|
|
+ },
|
|
|
+ printExtra() {
|
|
|
+ this.isShowPrint = false
|
|
|
+ this.isShowPrintTypeBills = true
|
|
|
+ },
|
|
|
+ printBig() {
|
|
|
+ localStorage.setItem('print_alone_extra', false)
|
|
|
+ let _list1 = []
|
|
|
+ let _list2 = []
|
|
|
+ if (this.printType == 1) {
|
|
|
+ localStorage.setItem('cwprint', true)
|
|
|
+ // if(localStorage.getItem('ws-pf_staffName') == '全能账号'||localStorage.getItem('ws-pf_staffName') == '单金龙'){
|
|
|
+ // // 财务批量打印数据
|
|
|
+ // for (let i = 0; i < this.selectPrintList.length; i++) {
|
|
|
+ // if (this.selectPrintList[i].warehouseName.indexOf('鑫满仓') > -1) {
|
|
|
+ // this.selectPrintList[i].compName = '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
+ // this.selectPrintList[i].taxRegistrationNo = '91230230MA1CCQ0H5R'
|
|
|
+ // } else {
|
|
|
+ // this.selectPrintList[i].compName = '黑龙江利润元粮食贸易有限公司'
|
|
|
+ // this.selectPrintList[i].taxRegistrationNo = '91230230MA1C08CC6B'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ localStorage.setItem(
|
|
|
+ 'selectPrint_selectPrintList',
|
|
|
+ JSON.stringify(this.selectPrintList)
|
|
|
)
|
|
|
- },
|
|
|
- printExtra(){
|
|
|
- this.isShowPrint=false
|
|
|
- this.isShowPrintTypeBills=true
|
|
|
- },
|
|
|
- printBig() {
|
|
|
- localStorage.setItem('print_alone_extra',false)
|
|
|
- let _list1 = []
|
|
|
- let _list2 = []
|
|
|
- if (this.printType == 1) {
|
|
|
- localStorage.setItem('cwprint', true)
|
|
|
- // if(localStorage.getItem('ws-pf_staffName') == '全能账号'||localStorage.getItem('ws-pf_staffName') == '单金龙'){
|
|
|
- // // 财务批量打印数据
|
|
|
- // for (let i = 0; i < this.selectPrintList.length; i++) {
|
|
|
- // if (this.selectPrintList[i].warehouseName.indexOf('鑫满仓') > -1) {
|
|
|
- // this.selectPrintList[i].compName = '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- // this.selectPrintList[i].taxRegistrationNo = '91230230MA1CCQ0H5R'
|
|
|
- // } else {
|
|
|
- // this.selectPrintList[i].compName = '黑龙江利润元粮食贸易有限公司'
|
|
|
- // this.selectPrintList[i].taxRegistrationNo = '91230230MA1C08CC6B'
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- localStorage.setItem(
|
|
|
- 'selectPrint_selectPrintList',
|
|
|
- JSON.stringify(this.selectPrintList)
|
|
|
- )
|
|
|
- localStorage.setItem(
|
|
|
- 'selectPrint_selectCustomerList',
|
|
|
- JSON.stringify(this.selectCustomerList)
|
|
|
- )
|
|
|
-
|
|
|
-
|
|
|
+ localStorage.setItem(
|
|
|
+ 'selectPrint_selectCustomerList',
|
|
|
+ JSON.stringify(this.selectCustomerList)
|
|
|
+ )
|
|
|
+ } else if (this.printType == 0) {
|
|
|
+ localStorage.setItem('cwprint', true)
|
|
|
+ _list1 = JSON.stringify(this.printData)
|
|
|
+ localStorage.setItem('printData1', _list1)
|
|
|
+ _list2 = JSON.stringify(this.customerList)
|
|
|
+ } else {
|
|
|
+ localStorage.setItem('printData1', _list1)
|
|
|
+ _list1 = JSON.stringify(this.printData)
|
|
|
+ _list2 = JSON.stringify(this.customerList)
|
|
|
+ }
|
|
|
+ // if(localStorage.getItem('ws-pf_staffName') == '全能账号'||localStorage.getItem('ws-pf_staffName') == '单金龙'){
|
|
|
+ // window.open(
|
|
|
+ // '../../../../../static/payprint.html?type=2&dataList=' +
|
|
|
+ // _list1 +
|
|
|
+ // '&customerList=' +
|
|
|
+ // _list2 +
|
|
|
+ // '&printTypeList=' +
|
|
|
+ // this.ruleForm.type,
|
|
|
+ // '结算凭证'
|
|
|
+ // )
|
|
|
+ // }
|
|
|
+ // else{
|
|
|
+
|
|
|
+ localStorage.setItem('print_pay_data', _list1)
|
|
|
+ if (this.printTips == 2) {
|
|
|
+ //业务批量打印
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint2.html?type=2&customerList=' +
|
|
|
+ _list2 +
|
|
|
+ '&printTypeList=' +
|
|
|
+ this.ruleForm.type,
|
|
|
+ '结算凭证'
|
|
|
+ )
|
|
|
+ } else if (this.printTips == 3) {
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint3.html?type=2&customerList=' +
|
|
|
+ _list2 +
|
|
|
+ '&printTypeList=' +
|
|
|
+ this.ruleForm.type,
|
|
|
+ '结算凭证'
|
|
|
+ )
|
|
|
+ } else {
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint1.html?type=2&customerList=' +
|
|
|
+ _list2 +
|
|
|
+ '&printTypeList=' +
|
|
|
+ this.ruleForm.type,
|
|
|
+ '结算凭证'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ detailpage() {
|
|
|
+ sessionStorage.setItem('currentPage', this.currentPage)
|
|
|
+ sessionStorage.setItem('pageSize', this.pageSize)
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ for (let _temp = 0; _temp < this.warehouseList.length; _temp++) {
|
|
|
+ if (this.warehouseName == this.warehouseList[_temp].warehouseName) {
|
|
|
+ // if(this.warehouseList[_temp].goodsNameInfos){
|
|
|
+ // for (let _num = 0; _num < this.warehouseList[_temp].goodsNameInfos.length; _num++) {
|
|
|
+ // const res = new Map()
|
|
|
+ // this.goodnameList = this.warehouseList[_temp].goodsNameInfos.filter((arr) => !res.has(arr.goodsName) &&
|
|
|
+ // res.set(arr.goodsName, 1))
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.payments = {
|
|
|
+ amountNotPayable: 0,
|
|
|
+ paymentDate: ''
|
|
|
+ }
|
|
|
+ var searchParam = ''
|
|
|
+ if (this.searchType != -1) {
|
|
|
+ searchParam = this.searchType
|
|
|
+ }
|
|
|
+ var startDate = ''
|
|
|
+ var endDate = ''
|
|
|
+ if (this.value2) {
|
|
|
+ startDate = this.value2[0] ? this.value2[0] : ''
|
|
|
+ endDate = this.value2[1] ? this.value2[1] : ''
|
|
|
+ }
|
|
|
|
|
|
- } else if (this.printType == 0) {
|
|
|
- localStorage.setItem('cwprint', true)
|
|
|
- _list1 = JSON.stringify(this.printData)
|
|
|
- localStorage.setItem('printData1',_list1)
|
|
|
- _list2 = JSON.stringify(this.customerList)
|
|
|
- } else {
|
|
|
- localStorage.setItem('printData1',_list1)
|
|
|
- _list1 = JSON.stringify(this.printData)
|
|
|
- _list2 = JSON.stringify(this.customerList)
|
|
|
+ getpayment({
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ startDate: startDate,
|
|
|
+ endDate: endDate,
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
+ searchType: searchParam,
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
+ managementType: 1,
|
|
|
+ invoicing: this.invoicing,
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ goodsName: this.goodsName == '全部货名' ? '' : this.goodsName
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.paymentList = response.records
|
|
|
+ this.deptBudgetTotal = response.total
|
|
|
+ })
|
|
|
+ // getJurisdiction({
|
|
|
+ // managementType: 1,
|
|
|
+ // warehouseName: this.warehouseName,
|
|
|
+ // compId: localStorage.getItem('ws-pf_compId')
|
|
|
+ // })
|
|
|
+ // .toPromise()
|
|
|
+ // .then(response => {
|
|
|
+ // this.isShowAdopt = response
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ del(row) {
|
|
|
+ this.$confirm(
|
|
|
+ '对应的质检和检斤记录将一并删除,是否确定删除操作?',
|
|
|
+ '提示',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
}
|
|
|
- // if(localStorage.getItem('ws-pf_staffName') == '全能账号'||localStorage.getItem('ws-pf_staffName') == '单金龙'){
|
|
|
- // window.open(
|
|
|
- // '../../../../../static/payprint.html?type=2&dataList=' +
|
|
|
- // _list1 +
|
|
|
- // '&customerList=' +
|
|
|
- // _list2 +
|
|
|
- // '&printTypeList=' +
|
|
|
- // this.ruleForm.type,
|
|
|
- // '结算凭证'
|
|
|
- // )
|
|
|
- // }
|
|
|
- // else{
|
|
|
-
|
|
|
- localStorage.setItem('print_pay_data',_list1)
|
|
|
- if(this.printTips == 2){//业务批量打印
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint2.html?type=2&customerList=' +
|
|
|
- _list2 +
|
|
|
- '&printTypeList=' +
|
|
|
- this.ruleForm.type,
|
|
|
- '结算凭证'
|
|
|
- )
|
|
|
- } else if(this.printTips == 3){
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint3.html?type=2&customerList=' +
|
|
|
- _list2 +
|
|
|
- '&printTypeList=' +
|
|
|
- this.ruleForm.type,
|
|
|
- '结算凭证'
|
|
|
- )
|
|
|
- } else{
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint1.html?type=2&customerList=' +
|
|
|
- _list2 +
|
|
|
- '&printTypeList=' +
|
|
|
- this.ruleForm.type,
|
|
|
- '结算凭证'
|
|
|
- )
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ delpayment({
|
|
|
+ id: row.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.$message.success('删除成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ screen(num) {
|
|
|
+ if (num == 0) {
|
|
|
+ this.searchType = -1
|
|
|
+ this.invoicing = num
|
|
|
+ } else {
|
|
|
+ this.invoicing = ''
|
|
|
+ this.searchType = num
|
|
|
+ }
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ find() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ settlement(index, row) {
|
|
|
+ this.detailpage()
|
|
|
+ if (row.goodsName) {
|
|
|
+ localStorage.setItem('paymentManagementReturn', false)
|
|
|
+ this.$router.push({
|
|
|
+ path: 'settlement',
|
|
|
+ query: {
|
|
|
+ type: index,
|
|
|
+ id: row.id
|
|
|
}
|
|
|
- // }
|
|
|
-
|
|
|
- },
|
|
|
- detailpage(){
|
|
|
- sessionStorage.setItem('currentPage',this.currentPage)
|
|
|
- sessionStorage.setItem('pageSize',this.pageSize)
|
|
|
- },
|
|
|
- getList() {
|
|
|
- for (let _temp = 0; _temp < this.warehouseList.length; _temp++) {
|
|
|
- if (this.warehouseName == this.warehouseList[_temp].warehouseName) {
|
|
|
- // if(this.warehouseList[_temp].goodsNameInfos){
|
|
|
- // for (let _num = 0; _num < this.warehouseList[_temp].goodsNameInfos.length; _num++) {
|
|
|
- // const res = new Map()
|
|
|
- // this.goodnameList = this.warehouseList[_temp].goodsNameInfos.filter((arr) => !res.has(arr.goodsName) &&
|
|
|
- // res.set(arr.goodsName, 1))
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ payment() {
|
|
|
+ this.imageUrl = ''
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要付款的条目')
|
|
|
+ } else {
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ if (this.modification[i].status != '已驳回') {
|
|
|
+ if (
|
|
|
+ this.modification[i].approveStatus == '待决策人审核' ||
|
|
|
+ this.modification[i].approveStatus == '待财务审核' ||
|
|
|
+ this.modification[i].status == '全部付款'
|
|
|
+ ) {
|
|
|
+ this.$message.error(
|
|
|
+ '请选择状态为已通过且待结算或者部分付款的条目'
|
|
|
+ )
|
|
|
+ return false
|
|
|
+ } else {
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error('状态为已驳回的条目不能付款')
|
|
|
+ return false
|
|
|
}
|
|
|
}
|
|
|
- this.payments = {
|
|
|
- amountNotPayable: 0,
|
|
|
- paymentDate: '',
|
|
|
- }
|
|
|
- var searchParam = ''
|
|
|
- if (this.searchType != -1) {
|
|
|
- searchParam = this.searchType
|
|
|
+ let sum = 0
|
|
|
+ let count = 0
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ sum += this.modification[i].amountIngPayable
|
|
|
+ count += this.modification[i].amountEdPayable
|
|
|
}
|
|
|
- var startDate = ''
|
|
|
- var endDate = ''
|
|
|
- if (this.value2) {
|
|
|
- startDate = this.value2[0] ? this.value2[0] : ''
|
|
|
- endDate = this.value2[1] ? this.value2[1] : ''
|
|
|
+ this.payments.amountNotPayable = (sum - count).toFixed(2)
|
|
|
+ this.paymentForm = true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ paymentSubmit() {
|
|
|
+ if (!this.payments.money) {
|
|
|
+ this.$message({
|
|
|
+ message: '付款金额不能为空',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ Number(this.payments.money) > Number(this.payments.amountNotPayable)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '付款金额不能超过未付金额',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.payments.paymentDate) {
|
|
|
+ this.$message({
|
|
|
+ message: '付款日期不能为空',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.imageUrl) {
|
|
|
+ this.$message({
|
|
|
+ message: '请上传付款截图 ',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.payments.paymentScreenshot = this.imageUrl
|
|
|
+ this.payments.cashier = localStorage.getItem('ws-pf_staffName')
|
|
|
+ this.payments.paymentManagementList = this.modification
|
|
|
+ this.$confirm('确定提交付款信息?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ //付款提交
|
|
|
+ paymentCommit(this.payments)
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '付款成功'
|
|
|
+ })
|
|
|
+ this.paymentForm = false
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ reject() {
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要驳回的条目')
|
|
|
+ } else {
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ if (!this.modification[i].taskId) {
|
|
|
+ this.$message.warning(
|
|
|
+ '勾选数据中存在超出账号权限的审核条目,请重新勾选!'
|
|
|
+ )
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- getpayment({
|
|
|
- currentPage: this.currentPage,
|
|
|
- pageSize: this.pageSize,
|
|
|
- startDate: startDate,
|
|
|
- endDate: endDate,
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
- searchType: searchParam,
|
|
|
- warehouseName: this.warehouseName,
|
|
|
- managementType: 1,
|
|
|
- invoicing: this.invoicing,
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- goodsName: this.goodsName == '全部货名' ? '' : this.goodsName
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.paymentList = response.records
|
|
|
- this.deptBudgetTotal = response.total
|
|
|
- })
|
|
|
- // getJurisdiction({
|
|
|
- // managementType: 1,
|
|
|
- // warehouseName: this.warehouseName,
|
|
|
- // compId: localStorage.getItem('ws-pf_compId')
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then(response => {
|
|
|
- // this.isShowAdopt = response
|
|
|
- // })
|
|
|
- },
|
|
|
- del(row) {
|
|
|
- this.$confirm(
|
|
|
- '对应的质检和检斤记录将一并删除,是否确定删除操作?',
|
|
|
- '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }
|
|
|
- )
|
|
|
+ this.$confirm('是否确定驳回?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
.then(() => {
|
|
|
- delpayment({
|
|
|
- id: row.id,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$message.success('删除成功')
|
|
|
- this.getList()
|
|
|
- })
|
|
|
+ this.audit(this.modification[0], 0, false, '', '')
|
|
|
})
|
|
|
.catch(() => {
|
|
|
return false
|
|
|
})
|
|
|
- },
|
|
|
- screen(num) {
|
|
|
- if (num == 0) {
|
|
|
- this.searchType = -1
|
|
|
- this.invoicing = num
|
|
|
- } else {
|
|
|
- this.invoicing = ''
|
|
|
- this.searchType = num
|
|
|
- }
|
|
|
- this.currentPage = 1
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- find() {
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- settlement(index, row) {
|
|
|
- this.detailpage()
|
|
|
- if (row.goodsName) {
|
|
|
- localStorage.setItem('paymentManagementReturn', false)
|
|
|
- this.$router.push({
|
|
|
- path: 'settlement',
|
|
|
- query: {
|
|
|
- type: index,
|
|
|
- id: row.id,
|
|
|
- },
|
|
|
+ }
|
|
|
+ },
|
|
|
+ audit(item, index, status, status2, reason) {
|
|
|
+ if (index < this.modification.length) {
|
|
|
+ if (status == true && item.status == '已驳回') {
|
|
|
+ auditpayment({
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ id: item.id
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
- payment() {
|
|
|
- this.imageUrl = ''
|
|
|
- if (this.modification.length == 0) {
|
|
|
- this.$message.warning('请选择要付款的条目')
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ if (index == 0) {
|
|
|
+ workflowcontent({
|
|
|
+ workflowId: item.workflowId,
|
|
|
+ businessKey: item.id,
|
|
|
+ type: '付款管理'
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response1 => {
|
|
|
+ console.log(response1)
|
|
|
+ // this.$message.success('审核成功')
|
|
|
+ // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.audit(
|
|
|
+ this.modification[index + 1],
|
|
|
+ index + 1,
|
|
|
+ status,
|
|
|
+ status2,
|
|
|
+ reason
|
|
|
+ )
|
|
|
+ })
|
|
|
} else {
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- if (this.modification[i].status != '已驳回') {
|
|
|
- if (
|
|
|
- this.modification[i].approveStatus == '待决策人审核' || this.modification[i].approveStatus == '待财务审核' ||
|
|
|
- this.modification[i].status == '全部付款'
|
|
|
- ) {
|
|
|
- this.$message.error(
|
|
|
- '请选择状态为已通过且待结算或者部分付款的条目'
|
|
|
- )
|
|
|
- return false
|
|
|
- } else {}
|
|
|
- } else {
|
|
|
- this.$message.error('状态为已驳回的条目不能付款')
|
|
|
- return false
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- let sum = 0
|
|
|
- let count = 0
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- sum += this.modification[i].amountIngPayable
|
|
|
- count += this.modification[i].amountEdPayable
|
|
|
- }
|
|
|
- this.payments.amountNotPayable = (sum - count).toFixed(2)
|
|
|
- this.paymentForm = true
|
|
|
- }
|
|
|
- },
|
|
|
- paymentSubmit() {
|
|
|
- if (!this.payments.money) {
|
|
|
- this.$message({
|
|
|
- message: '付款金额不能为空',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- Number(this.payments.money) > Number(this.payments.amountNotPayable)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '付款金额不能超过未付金额',
|
|
|
- type: 'warning',
|
|
|
+ posthandle({
|
|
|
+ taskId: item.taskId,
|
|
|
+ approved: status,
|
|
|
+ auditMind: reason != undefined ? '已驳回' : '',
|
|
|
+ needReapply: status2 != undefined ? true : false
|
|
|
})
|
|
|
- return
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ if (index == 0) {
|
|
|
+ workflowcontent({
|
|
|
+ workflowId: item.workflowId,
|
|
|
+ businessKey: item.id,
|
|
|
+ type: '付款管理'
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response1 => {
|
|
|
+ console.log(response1)
|
|
|
+ // this.$message.success('审核成功')
|
|
|
+ // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // postqueryhandle({workflowId:item.workflowId}).toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ this.audit(
|
|
|
+ this.modification[index + 1],
|
|
|
+ index + 1,
|
|
|
+ status,
|
|
|
+ status2,
|
|
|
+ reason
|
|
|
+ )
|
|
|
+ // })
|
|
|
+ })
|
|
|
+ .catch(req => {
|
|
|
+ this.$message.warning(req.message)
|
|
|
+ })
|
|
|
}
|
|
|
- if (!this.payments.paymentDate) {
|
|
|
- this.$message({
|
|
|
- message: '付款日期不能为空',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
+ } else {
|
|
|
+ if (status == true) {
|
|
|
+ this.$message.success('通过成功')
|
|
|
+ this.getList()
|
|
|
+ } else if (status == false) {
|
|
|
+ this.$message.success('驳回成功')
|
|
|
+ this.getList()
|
|
|
}
|
|
|
- if (!this.imageUrl) {
|
|
|
- this.$message({
|
|
|
- message: '请上传付款截图 ',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
+ }
|
|
|
+ },
|
|
|
+ adopt() {
|
|
|
+ var that = this
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要通过的条目')
|
|
|
+ } else {
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ if (!this.modification[i].taskId) {
|
|
|
+ this.$message.warning(
|
|
|
+ '勾选数据中存在超出账号权限的审核条目,请重新勾选!'
|
|
|
+ )
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- this.payments.paymentScreenshot = this.imageUrl
|
|
|
- this.payments.cashier = localStorage.getItem('ws-pf_staffName')
|
|
|
- this.payments.paymentManagementList = this.modification
|
|
|
- this.$confirm('确定提交付款信息?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
+ this.$confirm('是否确定通过?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
.then(() => {
|
|
|
- //付款提交
|
|
|
- paymentCommit(this.payments)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$notify.success({
|
|
|
- title: '成功',
|
|
|
- message: '付款成功',
|
|
|
- })
|
|
|
- this.paymentForm = false
|
|
|
- this.getList()
|
|
|
- })
|
|
|
+ this.audit(this.modification[0], 0, true)
|
|
|
})
|
|
|
.catch(() => {
|
|
|
return false
|
|
|
})
|
|
|
- },
|
|
|
- reject() {
|
|
|
- if (this.modification.length == 0) {
|
|
|
- this.$message.warning('请选择要驳回的条目')
|
|
|
- } else {
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- if (!this.modification[i].taskId) {
|
|
|
- this.$message.warning('勾选数据中存在超出账号权限的审核条目,请重新勾选!')
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- this.$confirm('是否确定驳回?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.audit(this.modification[0], 0, false, '', '')
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- audit(item, index, status, status2, reason) {
|
|
|
- if (index < this.modification.length) {
|
|
|
- if (status == true && item.status == '已驳回') {
|
|
|
- auditpayment({
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- id: item.id,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- if (index == 0) {
|
|
|
- workflowcontent({
|
|
|
- workflowId: item.workflowId,
|
|
|
- businessKey: item.id,
|
|
|
- type: '付款管理'
|
|
|
- }).toPromise()
|
|
|
- .then((response1) => {
|
|
|
- console.log(response1)
|
|
|
- // this.$message.success('审核成功')
|
|
|
- // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
- })
|
|
|
- }
|
|
|
- this.audit(
|
|
|
- this.modification[index + 1],
|
|
|
- index + 1,
|
|
|
- status,
|
|
|
- status2,
|
|
|
- reason
|
|
|
- )
|
|
|
- })
|
|
|
- } else {
|
|
|
- posthandle({
|
|
|
- taskId: item.taskId,
|
|
|
- approved: status,
|
|
|
- auditMind: reason != undefined ? '已驳回' : '',
|
|
|
- needReapply: status2 != undefined ? true : false,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- if (index == 0) {
|
|
|
- workflowcontent({
|
|
|
- workflowId: item.workflowId,
|
|
|
- businessKey: item.id,
|
|
|
- type: '付款管理'
|
|
|
- }).toPromise()
|
|
|
- .then((response1) => {
|
|
|
- console.log(response1)
|
|
|
- // this.$message.success('审核成功')
|
|
|
- // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
- })
|
|
|
- }
|
|
|
- // postqueryhandle({workflowId:item.workflowId}).toPromise()
|
|
|
- // .then((response) => {
|
|
|
- this.audit(
|
|
|
- this.modification[index + 1],
|
|
|
- index + 1,
|
|
|
- status,
|
|
|
- status2,
|
|
|
- reason
|
|
|
- )
|
|
|
- // })
|
|
|
- })
|
|
|
- .catch((req) => {
|
|
|
- this.$message.warning(req.message)
|
|
|
- })
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (status == true) {
|
|
|
- this.$message.success('通过成功')
|
|
|
- this.getList()
|
|
|
- } else if (status == false) {
|
|
|
- this.$message.success('驳回成功')
|
|
|
- this.getList()
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- adopt() {
|
|
|
- var that = this
|
|
|
- if (this.modification.length == 0) {
|
|
|
- this.$message.warning('请选择要通过的条目')
|
|
|
- } else {
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- if (!this.modification[i].taskId) {
|
|
|
- this.$message.warning('勾选数据中存在超出账号权限的审核条目,请重新勾选!')
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- this.$confirm('是否确定通过?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.audit(this.modification[0], 0, true)
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- print1(row,num) {
|
|
|
+ }
|
|
|
+ },
|
|
|
+ print1(row, num) {
|
|
|
localStorage.setItem('pengyuPrint', false)
|
|
|
- if(num == 2){
|
|
|
- this.printTips = 2
|
|
|
- }
|
|
|
- this.printType = 0
|
|
|
- this.isShowPrintType = true
|
|
|
- this.rowData = row
|
|
|
- localStorage.setItem('cwprint', true)
|
|
|
- },
|
|
|
- print(row) {
|
|
|
- this.warehouseName1=row.warehouseName
|
|
|
+ if (num == 2) {
|
|
|
+ this.printTips = 2
|
|
|
+ }
|
|
|
+ this.printType = 0
|
|
|
+ this.isShowPrintType = true
|
|
|
+ this.rowData = row
|
|
|
+ localStorage.setItem('cwprint', true)
|
|
|
+ },
|
|
|
+ print(row) {
|
|
|
+ this.warehouseName1 = row.warehouseName
|
|
|
localStorage.setItem('pengyuPrint', false)
|
|
|
- this.printType = 2
|
|
|
- localStorage.setItem('cwprint', false)
|
|
|
- getpaymentexamine({
|
|
|
- id: row.id,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.printData = response
|
|
|
- if (response.compName == '黑龙江秋收有限公司') {
|
|
|
- this.printData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
- }
|
|
|
- this.isShowPrint = true
|
|
|
- // if(this.printData.solidGrainPrice){
|
|
|
- // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
- // }
|
|
|
- let date = new Date()
|
|
|
- this.printData.currentTime =
|
|
|
- date.getFullYear() +
|
|
|
- '年' +
|
|
|
- Number(date.getMonth() + 1) +
|
|
|
- '月' +
|
|
|
- date.getDate() +
|
|
|
- '日'
|
|
|
- })
|
|
|
- },
|
|
|
- printPY(row) {
|
|
|
- this.printType = 2
|
|
|
- localStorage.setItem('cwprint', false)
|
|
|
- localStorage.setItem('pengyuPrint', true)
|
|
|
- getpaymentexamine({
|
|
|
- id: row.id,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.printData = response
|
|
|
- if (response.compName == '黑龙江秋收有限公司') {
|
|
|
- this.printData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
- }
|
|
|
- this.isShowPrint = true
|
|
|
- // if(this.printData.solidGrainPrice){
|
|
|
- // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
- // }
|
|
|
- let date = new Date()
|
|
|
- this.printData.currentTime =
|
|
|
- date.getFullYear() +
|
|
|
- '年' +
|
|
|
- Number(date.getMonth() + 1) +
|
|
|
- '月' +
|
|
|
- date.getDate() +
|
|
|
- '日'
|
|
|
- })
|
|
|
- },
|
|
|
- examine() {
|
|
|
- if (this.modification.length == 0) {
|
|
|
- this.$message.warning('请选择要审核的条目')
|
|
|
- } else {
|
|
|
- this.$confirm('审核通过后,任务将发送给财务,是否确定通过?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {})
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- selectInit(row) {
|
|
|
- //在这里一定要记得类型匹配的上。
|
|
|
- // if (row.status != '已驳回') {
|
|
|
- if (
|
|
|
- row.taskId == null ) {
|
|
|
- return false
|
|
|
- } else {
|
|
|
- return true
|
|
|
+ this.printType = 2
|
|
|
+ localStorage.setItem('cwprint', false)
|
|
|
+ getpaymentexamine({
|
|
|
+ id: row.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.printData = response
|
|
|
+ if (response.compName == '黑龙江秋收有限公司') {
|
|
|
+ this.printData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
}
|
|
|
- // } else {
|
|
|
- // return true
|
|
|
- // }
|
|
|
- // return true
|
|
|
- },
|
|
|
- handleSelectionChange(val) {
|
|
|
- this.modification = val
|
|
|
- },
|
|
|
- warehouseChange(e) {
|
|
|
- for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
- if (this.warehouseList[i].id == this.warehouseNameKey) {
|
|
|
- this.warehouseName = this.warehouseList[i].warehouseName
|
|
|
-
|
|
|
-
|
|
|
- localStorage.setItem('houseSelfCollect_house1',
|
|
|
- JSON.stringify({
|
|
|
- value: this.warehouseList[i].warehouseName,
|
|
|
- warehouseId: this.warehouseList[i].id,
|
|
|
- allowEdit: this.warehouseList[i].allowEdit,
|
|
|
- monitorUrl1: this.warehouseList[i].monitorUrl1,
|
|
|
- monitorUrl2: this.warehouseList[i].monitorUrl2,
|
|
|
- warehouseNo: this.warehouseList[i].commonWarehouseNo,
|
|
|
- compId: localStorage.getItem('ws-pf_compId')
|
|
|
- })
|
|
|
- )
|
|
|
- this.WAREHOUSE[3].payname = this.warehouseList[i].id
|
|
|
+ this.isShowPrint = true
|
|
|
+ // if(this.printData.solidGrainPrice){
|
|
|
+ // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
+ // }
|
|
|
+ let date = new Date()
|
|
|
+ this.printData.currentTime =
|
|
|
+ date.getFullYear() +
|
|
|
+ '年' +
|
|
|
+ Number(date.getMonth() + 1) +
|
|
|
+ '月' +
|
|
|
+ date.getDate() +
|
|
|
+ '日'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ printPY(row) {
|
|
|
+ this.printType = 2
|
|
|
+ localStorage.setItem('cwprint', false)
|
|
|
+ localStorage.setItem('pengyuPrint', true)
|
|
|
+ getpaymentexamine({
|
|
|
+ id: row.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.printData = response
|
|
|
+ if (response.compName == '黑龙江秋收有限公司') {
|
|
|
+ this.printData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
}
|
|
|
+ this.isShowPrint = true
|
|
|
+ // if(this.printData.solidGrainPrice){
|
|
|
+ // this.printData.solidGrainPrice = (this.printData.tidalGrainPrice * this.printData.netWeight)/this.printData.pureWeight
|
|
|
+ // }
|
|
|
+ let date = new Date()
|
|
|
+ this.printData.currentTime =
|
|
|
+ date.getFullYear() +
|
|
|
+ '年' +
|
|
|
+ Number(date.getMonth() + 1) +
|
|
|
+ '月' +
|
|
|
+ date.getDate() +
|
|
|
+ '日'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ examine() {
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要审核的条目')
|
|
|
+ } else {
|
|
|
+ this.$confirm('审核通过后,任务将发送给财务,是否确定通过?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ selectInit(row) {
|
|
|
+ //在这里一定要记得类型匹配的上。
|
|
|
+ // if (row.status != '已驳回') {
|
|
|
+ if (row.taskId == null) {
|
|
|
+ return false
|
|
|
+ } else {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ // } else {
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ // return true
|
|
|
+ },
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.modification = val
|
|
|
+ },
|
|
|
+ warehouseChange(e) {
|
|
|
+ for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
+ if (this.warehouseList[i].id == this.warehouseNameKey) {
|
|
|
+ this.warehouseName = this.warehouseList[i].warehouseName
|
|
|
+
|
|
|
+ localStorage.setItem(
|
|
|
+ 'houseSelfCollect_house1',
|
|
|
+ JSON.stringify({
|
|
|
+ value: this.warehouseList[i].warehouseName,
|
|
|
+ warehouseId: this.warehouseList[i].id,
|
|
|
+ allowEdit: this.warehouseList[i].allowEdit,
|
|
|
+ monitorUrl1: this.warehouseList[i].monitorUrl1,
|
|
|
+ monitorUrl2: this.warehouseList[i].monitorUrl2,
|
|
|
+ warehouseNo: this.warehouseList[i].commonWarehouseNo,
|
|
|
+ compId: localStorage.getItem('ws-pf_compId')
|
|
|
+ })
|
|
|
+ )
|
|
|
+ this.WAREHOUSE[3].payname = this.warehouseList[i].id
|
|
|
}
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- handleSizeChange(val) {
|
|
|
- console.log(`每页 ${val} 条`)
|
|
|
- this.pageSize = val
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- handleCurrentChange(val) {
|
|
|
- this.currentPage = val
|
|
|
- console.log(`当前页: ${val}`)
|
|
|
- this.getList()
|
|
|
- },
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
},
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
+ this.pageSize = val
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.currentPage = val
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
}
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
- .ws-info-table {
|
|
|
- border: none;
|
|
|
- }
|
|
|
-
|
|
|
- .ws-info-table .el-form-item {
|
|
|
- width: 50%;
|
|
|
- border: none;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
|
- width: 30%;
|
|
|
- min-width: 125px;
|
|
|
- text-align: center;
|
|
|
- background: #ffffff;
|
|
|
- color: #8890b1;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
- border: none;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.el-dialog__title {
|
|
|
- font-size: 24px !important;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.el-dialog__header {
|
|
|
- text-align: center !important;
|
|
|
- padding: 10px 0 !important;
|
|
|
- height: auto !important;
|
|
|
- // border-bottom: none !important;
|
|
|
- border-top-left-radius: 3px;
|
|
|
- border-top-right-radius: 3px;
|
|
|
- }
|
|
|
-
|
|
|
- .title {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 600;
|
|
|
- }
|
|
|
-
|
|
|
- table,
|
|
|
- table tr th,
|
|
|
- table tr td {
|
|
|
- border: 2px solid #333333;
|
|
|
- padding: 5px 0;
|
|
|
- }
|
|
|
-
|
|
|
- table {
|
|
|
- width: 100%;
|
|
|
- min-height: 25px;
|
|
|
- line-height: 25px;
|
|
|
- text-align: center;
|
|
|
- border-collapse: collapse;
|
|
|
- border: 3px solid #333333;
|
|
|
- }
|
|
|
-
|
|
|
- .formItem {
|
|
|
- width: 70% !important;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.el-table .el-table__header .cell,
|
|
|
- /deep/.el-table .cell {
|
|
|
- text-align: center;
|
|
|
- line-height: 15px;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.el-table--enable-row-transition .el-table__body td {
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .title {
|
|
|
- padding: 10px;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .tanchuang {
|
|
|
- margin: 0 auto;
|
|
|
- }
|
|
|
-
|
|
|
- .tanchuang .ws-info-table {
|
|
|
- display: initial;
|
|
|
- }
|
|
|
-
|
|
|
- .tanchuang .ws-info-table .el-form-item {
|
|
|
- margin: 0 auto;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .upLoad {
|
|
|
- width: 40%;
|
|
|
- margin: 0 auto;
|
|
|
- // border: 1px solid #8890b1;
|
|
|
- // border-radius: 3px;
|
|
|
- }
|
|
|
-
|
|
|
- // .avatar{
|
|
|
- // width: 150px;
|
|
|
- // height: 150px;
|
|
|
- // }
|
|
|
- .avatar-uploader {
|
|
|
- position: relative;
|
|
|
- width: 178px;
|
|
|
- }
|
|
|
-
|
|
|
- .avatar-uploader .el-upload {
|
|
|
- border: 1px dashed #d9d9d9;
|
|
|
- border-radius: 6px;
|
|
|
- cursor: pointer;
|
|
|
- position: relative;
|
|
|
- overflow: hidden;
|
|
|
- width: 178px;
|
|
|
- }
|
|
|
-
|
|
|
- .avatar-uploader .el-upload:hover {
|
|
|
- border-color: #409eff;
|
|
|
- }
|
|
|
-
|
|
|
- .avatar-uploader-icon {
|
|
|
- font-size: 28px;
|
|
|
- color: #8c939d;
|
|
|
- width: 178px;
|
|
|
- height: 178px;
|
|
|
- line-height: 178px;
|
|
|
- text-align: center;
|
|
|
- border: 1px solid #8890b1;
|
|
|
- border-radius: 5px;
|
|
|
- }
|
|
|
-
|
|
|
- .avatar {
|
|
|
- width: 178px;
|
|
|
- height: 178px;
|
|
|
- border: 1px solid #8890b1;
|
|
|
- border-radius: 5px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
- .inline-block{
|
|
|
- display:inline-block;
|
|
|
- }
|
|
|
- .pay_img {
|
|
|
- width: 50%;
|
|
|
- // display: flex;
|
|
|
- display: inline-block;
|
|
|
-
|
|
|
- .img {
|
|
|
- height: 350px;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .print-type {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- margin: auto;
|
|
|
- width: 200px;
|
|
|
- height: 250px;
|
|
|
- background: white;
|
|
|
- border-radius: 10px;
|
|
|
- z-index: 999;
|
|
|
- }
|
|
|
-
|
|
|
- .label-width {
|
|
|
+.ws-info-table {
|
|
|
+ border: none;
|
|
|
+}
|
|
|
+
|
|
|
+.ws-info-table .el-form-item {
|
|
|
+ width: 50%;
|
|
|
+ border: none;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
|
+ width: 30%;
|
|
|
+ min-width: 125px;
|
|
|
+ text-align: center;
|
|
|
+ background: #ffffff;
|
|
|
+ color: #8890b1;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
+ border: none;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-dialog__title {
|
|
|
+ font-size: 24px !important;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-dialog__header {
|
|
|
+ text-align: center !important;
|
|
|
+ padding: 10px 0 !important;
|
|
|
+ height: auto !important;
|
|
|
+ // border-bottom: none !important;
|
|
|
+ border-top-left-radius: 3px;
|
|
|
+ border-top-right-radius: 3px;
|
|
|
+}
|
|
|
+
|
|
|
+.title {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
+
|
|
|
+table,
|
|
|
+table tr th,
|
|
|
+table tr td {
|
|
|
+ border: 2px solid #333333;
|
|
|
+ padding: 5px 0;
|
|
|
+}
|
|
|
+
|
|
|
+table {
|
|
|
+ width: 100%;
|
|
|
+ min-height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
+ text-align: center;
|
|
|
+ border-collapse: collapse;
|
|
|
+ border: 3px solid #333333;
|
|
|
+}
|
|
|
+
|
|
|
+.formItem {
|
|
|
+ width: 70% !important;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-table .el-table__header .cell,
|
|
|
+/deep/.el-table .cell {
|
|
|
+ text-align: center;
|
|
|
+ line-height: 15px;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-table--enable-row-transition .el-table__body td {
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.title {
|
|
|
+ padding: 10px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.tanchuang {
|
|
|
+ margin: 0 auto;
|
|
|
+}
|
|
|
+
|
|
|
+.tanchuang .ws-info-table {
|
|
|
+ display: initial;
|
|
|
+}
|
|
|
+
|
|
|
+.tanchuang .ws-info-table .el-form-item {
|
|
|
+ margin: 0 auto;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.upLoad {
|
|
|
+ width: 40%;
|
|
|
+ margin: 0 auto;
|
|
|
+ // border: 1px solid #8890b1;
|
|
|
+ // border-radius: 3px;
|
|
|
+}
|
|
|
+
|
|
|
+// .avatar{
|
|
|
+// width: 150px;
|
|
|
+// height: 150px;
|
|
|
+// }
|
|
|
+.avatar-uploader {
|
|
|
+ position: relative;
|
|
|
+ width: 178px;
|
|
|
+}
|
|
|
+
|
|
|
+.avatar-uploader .el-upload {
|
|
|
+ border: 1px dashed #d9d9d9;
|
|
|
+ border-radius: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ width: 178px;
|
|
|
+}
|
|
|
+
|
|
|
+.avatar-uploader .el-upload:hover {
|
|
|
+ border-color: #409eff;
|
|
|
+}
|
|
|
+
|
|
|
+.avatar-uploader-icon {
|
|
|
+ font-size: 28px;
|
|
|
+ color: #8c939d;
|
|
|
+ width: 178px;
|
|
|
+ height: 178px;
|
|
|
+ line-height: 178px;
|
|
|
+ text-align: center;
|
|
|
+ border: 1px solid #8890b1;
|
|
|
+ border-radius: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+.avatar {
|
|
|
+ width: 178px;
|
|
|
+ height: 178px;
|
|
|
+ border: 1px solid #8890b1;
|
|
|
+ border-radius: 5px;
|
|
|
+ display: block;
|
|
|
+}
|
|
|
+.inline-block {
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+.pay_img {
|
|
|
+ width: 50%;
|
|
|
+ // display: flex;
|
|
|
+ display: inline-block;
|
|
|
+
|
|
|
+ .img {
|
|
|
+ height: 350px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
-
|
|
|
- .mask {
|
|
|
- background: black;
|
|
|
- width: 100vw;
|
|
|
- height: 100vh;
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- z-index: 99;
|
|
|
- opacity: 0.3;
|
|
|
- }
|
|
|
-
|
|
|
- .print-type-title {
|
|
|
- text-align: center;
|
|
|
- font-size: 18px;
|
|
|
- margin: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .bottom-btn {
|
|
|
- margin: 20px 0;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .print-type-checkbox {
|
|
|
- padding-left: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .img_css {
|
|
|
- width: 90%;
|
|
|
- height: 220px;
|
|
|
+}
|
|
|
+
|
|
|
+.print-type {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ margin: auto;
|
|
|
+ width: 200px;
|
|
|
+ height: 250px;
|
|
|
+ background: white;
|
|
|
+ border-radius: 10px;
|
|
|
+ z-index: 999;
|
|
|
+}
|
|
|
+
|
|
|
+.label-width {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+.mask {
|
|
|
+ background: black;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ z-index: 99;
|
|
|
+ opacity: 0.3;
|
|
|
+}
|
|
|
+
|
|
|
+.print-type-title {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 18px;
|
|
|
+ margin: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.bottom-btn {
|
|
|
+ margin: 20px 0;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.print-type-checkbox {
|
|
|
+ padding-left: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.img_css {
|
|
|
+ width: 90%;
|
|
|
+ height: 220px;
|
|
|
+}
|
|
|
+
|
|
|
+.text_css {
|
|
|
+ color: #5878e8;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.base_header_layout {
|
|
|
+ height: 48px;
|
|
|
+}
|
|
|
+
|
|
|
+.warehouse_select {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+.el-button {
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+.no-messege {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 30px;
|
|
|
+ padding: 50px;
|
|
|
+}
|
|
|
+
|
|
|
+.my-img {
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+}
|
|
|
+
|
|
|
+.el-icon-delete {
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.base_header_layout .find.el-button--primary {
|
|
|
+ width: 30px;
|
|
|
+ margin: 0;
|
|
|
+ border-top-left-radius: 0px;
|
|
|
+ border-bottom-left-radius: 0px;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.base_header_layout .findinput input {
|
|
|
+ border-top-right-radius: 0px;
|
|
|
+ border-bottom-right-radius: 0px;
|
|
|
+}
|
|
|
+.mask1 {
|
|
|
+ background: black;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ z-index: 1001;
|
|
|
+ opacity: 0.3;
|
|
|
+}
|
|
|
+
|
|
|
+.print-type-title1 {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 18px;
|
|
|
+ margin: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.print-type-checkbox1 {
|
|
|
+ // padding-left: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.print-type1 {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ margin: auto;
|
|
|
+ width: 440px;
|
|
|
+ height: 320px;
|
|
|
+ background: white;
|
|
|
+ border-radius: 10px;
|
|
|
+ z-index: 1001;
|
|
|
+}
|
|
|
+.shdw-style1 {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 20px;
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+.print-type-ew {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 20px;
|
|
|
+
|
|
|
+ /deep/.el-radio__label {
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
|
|
|
- .text_css {
|
|
|
- color: #5878e8;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.base_header_layout {
|
|
|
- height: 48px;
|
|
|
- }
|
|
|
-
|
|
|
- .warehouse_select {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .el-button {
|
|
|
- margin: 5px;
|
|
|
- }
|
|
|
-
|
|
|
- .no-messege {
|
|
|
- text-align: center;
|
|
|
- font-size: 30px;
|
|
|
- padding: 50px;
|
|
|
- }
|
|
|
-
|
|
|
- .my-img {
|
|
|
- width: 200px;
|
|
|
- height: 200px;
|
|
|
- }
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
+.ew-print {
|
|
|
+ padding: 0 20px;
|
|
|
+ margin-top: 10px;
|
|
|
|
|
|
- .el-icon-delete {
|
|
|
- font-size: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.base_header_layout .find.el-button--primary {
|
|
|
- width: 30px;
|
|
|
- margin: 0;
|
|
|
- border-top-left-radius: 0px;
|
|
|
- border-bottom-left-radius: 0px;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.base_header_layout .findinput input {
|
|
|
- border-top-right-radius: 0px;
|
|
|
- border-bottom-right-radius: 0px;
|
|
|
- }
|
|
|
- .mask1 {
|
|
|
- background: black;
|
|
|
- width: 100vw;
|
|
|
- height: 100vh;
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- z-index: 1001;
|
|
|
- opacity: 0.3;
|
|
|
- }
|
|
|
-
|
|
|
- .print-type-title1 {
|
|
|
- text-align: center;
|
|
|
- font-size: 18px;
|
|
|
- margin: 20px;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- .print-type-checkbox1 {
|
|
|
- // padding-left: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .print-type1 {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- margin: auto;
|
|
|
- width: 440px;
|
|
|
- height: 320px;
|
|
|
- background: white;
|
|
|
- border-radius: 10px;
|
|
|
- z-index: 1001;
|
|
|
- }
|
|
|
- .shdw-style1 {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- padding: 0 20px;
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
- .print-type-ew {
|
|
|
+ // display: flex;
|
|
|
+ // justify-content: space-between;
|
|
|
+ // align-content: center;
|
|
|
+ .row {
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- padding: 0 20px;
|
|
|
-
|
|
|
- /deep/.el-radio__label {
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
-
|
|
|
- margin-top: 10px;
|
|
|
- }
|
|
|
- .ew-print {
|
|
|
- padding: 0 20px;
|
|
|
margin-top: 10px;
|
|
|
-
|
|
|
- // display: flex;
|
|
|
- // justify-content: space-between;
|
|
|
- // align-content: center;
|
|
|
- .row {
|
|
|
- display: flex;
|
|
|
- margin-top: 10px;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
- // /deep/.el-select-dropdown{
|
|
|
- // z-index:2036;
|
|
|
- // }
|
|
|
-</style>
|
|
|
+}
|
|
|
+// /deep/.el-select-dropdown{
|
|
|
+// z-index:2036;
|
|
|
+// }
|
|
|
+</style>
|