|
@@ -7,24 +7,11 @@
|
|
|
<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"></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-group>
|
|
|
</div>
|
|
@@ -39,74 +26,32 @@
|
|
|
<!-- <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 == 1 ? '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
|
|
|
- >
|
|
|
+ <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"
|
|
|
- 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"
|
|
|
+ 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-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
|
|
|
- v-model="searchKeyWord"
|
|
|
- placeholder="可按编号、客户名、车牌号查找"
|
|
|
- clearable
|
|
|
- maxlength="500"
|
|
|
- type="input"
|
|
|
- >
|
|
|
+ <ws-input 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"
|
|
|
- src="../../../public/img/sousuo.png"
|
|
|
- alt
|
|
|
- />
|
|
|
+ <img width="16" height="16" style="vertical-align: text-top; position: relative; top: 0px"
|
|
|
+ src="../../../public/img/sousuo.png" alt />
|
|
|
</ws-button>
|
|
|
</template>
|
|
|
</BaseHeaderLayout>
|
|
@@ -118,163 +63,56 @@
|
|
|
|
|
|
<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" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
|
- <ws-button
|
|
|
- type="primary"
|
|
|
- @click="payment"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.pay`"
|
|
|
- >付款
|
|
|
+ <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)"
|
|
|
- >财务批量打印
|
|
|
+ <ws-button type="primary" @click="selectPrint(1)" v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">财务批量打印
|
|
|
</ws-button>
|
|
|
</template>
|
|
|
<template slot="right"> </template>
|
|
|
</BaseHeaderLayout>
|
|
|
- <el-table
|
|
|
- :data="paymentList"
|
|
|
- ref="table"
|
|
|
- style="width: 100%; margin-top: 20px"
|
|
|
- border
|
|
|
- height="600"
|
|
|
- @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 :data="paymentList" ref="table" style="width: 100%; margin-top: 20px" border height="600"
|
|
|
+ @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="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
|
|
|
- class="table_td"
|
|
|
- prop="paymentNo"
|
|
|
- width="90"
|
|
|
- label="编号"
|
|
|
- sortable
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- class="table_td"
|
|
|
- prop="customerName"
|
|
|
- label="客户"
|
|
|
- sortable
|
|
|
- >
|
|
|
+ <el-table-column class="table_td" prop="paymentNo" width="90" label="编号" sortable></el-table-column>
|
|
|
+ <el-table-column 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
|
|
|
- class="table_td"
|
|
|
- prop="carNo"
|
|
|
- label="车牌号"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- class="table_td"
|
|
|
- prop="goodsName"
|
|
|
- width="60"
|
|
|
- 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="carNo" label="车牌号"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="goodsName" width="60" 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="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">{{
|
|
@@ -283,79 +121,44 @@
|
|
|
<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="300"
|
|
|
- >
|
|
|
+ <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="300">
|
|
|
<template scope="scope">
|
|
|
<span v-hasPermission="`acquisitionManagement.acquisitionPay.add`">
|
|
|
- <el-button
|
|
|
- v-if="
|
|
|
+ <el-button v-if="
|
|
|
(!scope.row.approveStatus ||
|
|
|
scope.row.approveStatus == '待结算') &&
|
|
|
(scope.row.status == '待结算' || scope.row.status == '已驳回' )
|
|
|
- "
|
|
|
- @click="settlement(1, scope.row)"
|
|
|
- >结算</el-button
|
|
|
- >
|
|
|
+ " @click="settlement(1, scope.row)">结算</el-button>
|
|
|
</span>
|
|
|
- <el-button
|
|
|
- @click="settlement(2, scope.row)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.view`"
|
|
|
- >查看</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-if="
|
|
|
+ <el-button @click="settlement(2, scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.view`">查看
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="
|
|
|
scope.row.approveStatus ||
|
|
|
(scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
- "
|
|
|
- @click="print(scope.row)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
|
- >打印</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-if="
|
|
|
+ " @click="print(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.print`">打印</el-button>
|
|
|
+ <el-button v-if="
|
|
|
scope.row.approveStatus ||
|
|
|
(scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
- "
|
|
|
- @click="print1(scope.row)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
|
|
|
- >财务打印
|
|
|
+ " @click="print1(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">财务打印
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- v-if="
|
|
|
+ <!-- <el-button @click="previewPayOrder(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">预览付款单
|
|
|
+ </el-button> -->
|
|
|
+ <el-button type="danger" v-if="
|
|
|
(!scope.row.approveStatus ||
|
|
|
scope.row.approveStatus == '待结算') &&
|
|
|
scope.row.status == '待结算'
|
|
|
- "
|
|
|
- @click="del(scope.row)"
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.delete`"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ " @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>
|
|
@@ -363,33 +166,16 @@
|
|
|
{{ 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="https://www.zthymaoyi.com/upload/admin"
|
|
|
- :show-file-list="false"
|
|
|
- :on-success="handleAvatarSuccess"
|
|
|
- >
|
|
|
+ <el-upload class="avatar-uploader" action="https://www.zthymaoyi.com/upload/admin" :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>
|
|
@@ -403,12 +189,7 @@
|
|
|
</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>
|
|
@@ -417,64 +198,32 @@
|
|
|
</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]"
|
|
|
- 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]" 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>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
<!--客户信息-->
|
|
|
- <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="姓名">
|
|
@@ -486,21 +235,11 @@
|
|
|
<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">
|
|
@@ -512,18 +251,10 @@
|
|
|
<el-form-item label="开户支行" label-width="100px">
|
|
|
{{ customerlist.bankDepositBranch }}
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- label="收款人姓名"
|
|
|
- label-width="100px"
|
|
|
- v-if="customerlist.customerTypeFlag == '1'"
|
|
|
- >
|
|
|
+ <el-form-item label="收款人姓名" label-width="100px" v-if="customerlist.customerTypeFlag == '1'">
|
|
|
{{ customerlist.payeeName }}
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- label="收款人身份证号"
|
|
|
- label-width="120px"
|
|
|
- v-if="customerlist.customerTypeFlag == '1'"
|
|
|
- >
|
|
|
+ <el-form-item label="收款人身份证号" label-width="120px" v-if="customerlist.customerTypeFlag == '1'">
|
|
|
{{ customerlist.payeeNumberCard }}
|
|
|
</el-form-item>
|
|
|
<el-form-item label="手机号" label-width="100px">
|
|
@@ -540,1096 +271,1155 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { dayjs, EventBus } from 'base-core-lib'
|
|
|
-import { downloadFile } from '@/utils/batchDown'
|
|
|
-import JSZip from 'jszip'
|
|
|
-import FileSaver from 'file-saver'
|
|
|
-import {
|
|
|
- getpayment,
|
|
|
- selectWarehouseSelf,
|
|
|
- delpayment,
|
|
|
- auditpayment,
|
|
|
- getpaymentexamine,
|
|
|
- getCustomerLook,
|
|
|
- paymentCommit,
|
|
|
- getJurisdiction,
|
|
|
- invoicing,
|
|
|
- export1,
|
|
|
-} from '@/model/houseSelfCollect/index'
|
|
|
-import { posthandle } from '@/model/purchasingManagement/index'
|
|
|
-import paymentPrint from './component/paymentPrint.vue'
|
|
|
-import { getHp } from '@/utils/getHasPermission'
|
|
|
-import download from '../../components/WsDownload/download'
|
|
|
-export default {
|
|
|
- components: {
|
|
|
- paymentPrint,
|
|
|
- },
|
|
|
- watch: {},
|
|
|
- data() {
|
|
|
- return {
|
|
|
- printType: 0,
|
|
|
- isShowPrintType1: true,
|
|
|
- isShowPrintType2: true,
|
|
|
- isShowPrintType3: true,
|
|
|
- isShowPrintType4: true,
|
|
|
- customerInfo: false,
|
|
|
- form: {},
|
|
|
- formLabelWidth: '300px',
|
|
|
- invoicing: '',
|
|
|
- customerlist: {
|
|
|
- payeeAddressUrls: [],
|
|
|
- },
|
|
|
- ruleForm: {
|
|
|
- type: [
|
|
|
- '打印身份证(正反面)',
|
|
|
- '打印银行卡(正反面)',
|
|
|
- '打印结算凭证',
|
|
|
- // '打印发票'
|
|
|
- ],
|
|
|
- },
|
|
|
- row: {},
|
|
|
- isShowPrintType: 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: '',
|
|
|
- isShowPrint: false,
|
|
|
- printData: {},
|
|
|
- warehouse: [],
|
|
|
- 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'),
|
|
|
- },
|
|
|
- }
|
|
|
- },
|
|
|
- activated() {
|
|
|
- this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
- this.getPassYearFormatDate()
|
|
|
- this.getWarehouse()
|
|
|
-
|
|
|
- // this.getList()
|
|
|
- },
|
|
|
- updated() {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs['table'].doLayout()
|
|
|
- })
|
|
|
- },
|
|
|
- methods: {
|
|
|
- datechange() {
|
|
|
- this.getList()
|
|
|
+ import {
|
|
|
+ dayjs,
|
|
|
+ EventBus
|
|
|
+ } from 'base-core-lib'
|
|
|
+ import {
|
|
|
+ downloadFile
|
|
|
+ } from '@/utils/batchDown'
|
|
|
+ import JSZip from 'jszip'
|
|
|
+ import FileSaver from 'file-saver'
|
|
|
+ import {
|
|
|
+ getpayment,
|
|
|
+ selectWarehouseSelf,
|
|
|
+ delpayment,
|
|
|
+ auditpayment,
|
|
|
+ getpaymentexamine,
|
|
|
+ getCustomerLook,
|
|
|
+ paymentCommit,
|
|
|
+ getJurisdiction,
|
|
|
+ invoicing,
|
|
|
+ export1,
|
|
|
+ } from '@/model/houseSelfCollect/index'
|
|
|
+ import {
|
|
|
+ posthandle
|
|
|
+ } from '@/model/purchasingManagement/index'
|
|
|
+ import paymentPrint from './component/paymentPrint.vue'
|
|
|
+ import {
|
|
|
+ getHp
|
|
|
+ } from '@/utils/getHasPermission'
|
|
|
+ import download from '../../components/WsDownload/download'
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ paymentPrint,
|
|
|
},
|
|
|
- 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
|
|
|
+ watch: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ printType: 0,
|
|
|
+ isShowPrintType1: true,
|
|
|
+ isShowPrintType2: true,
|
|
|
+ isShowPrintType3: true,
|
|
|
+ isShowPrintType4: true,
|
|
|
+ customerInfo: false,
|
|
|
+ form: {},
|
|
|
+ formLabelWidth: '300px',
|
|
|
+ invoicing: '',
|
|
|
+ customerlist: {
|
|
|
+ payeeAddressUrls: [],
|
|
|
+ },
|
|
|
+ ruleForm: {
|
|
|
+ type: [
|
|
|
+ '打印身份证(正反面)',
|
|
|
+ '打印银行卡(正反面)',
|
|
|
+ '打印结算凭证',
|
|
|
+ '打印检斤单',
|
|
|
+ '打印付款单'
|
|
|
+ // '打印发票'
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ row: {},
|
|
|
+ isShowPrintType: 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: '',
|
|
|
+ isShowPrint: false,
|
|
|
+ printData: {},
|
|
|
+ warehouse: [],
|
|
|
+ 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'),
|
|
|
+ },
|
|
|
}
|
|
|
- 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] // 默认赋值一年时间
|
|
|
+ activated() {
|
|
|
+ this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
+ this.getPassYearFormatDate()
|
|
|
+ this.getWarehouse()
|
|
|
+
|
|
|
+ // this.getList()
|
|
|
},
|
|
|
- selectPrint() {
|
|
|
- console.log('批量打印数据', this.modification)
|
|
|
- this.printType = 1
|
|
|
- this.isShowPrintType = true
|
|
|
+ updated() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs['table'].doLayout()
|
|
|
+ })
|
|
|
},
|
|
|
- async exportlist() {
|
|
|
- console.log('导出数据', this.modification)
|
|
|
- let _data = {
|
|
|
- paymentManagementList: this.modification,
|
|
|
- }
|
|
|
- const { data } = await export1(
|
|
|
- _data,
|
|
|
- {},
|
|
|
- {
|
|
|
- responseType: 'blob',
|
|
|
+ methods: {
|
|
|
+ previewPayOrder(val){
|
|
|
+
|
|
|
+ },
|
|
|
+ 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
|
|
|
}
|
|
|
- ).toPromise()
|
|
|
- downloadFile({
|
|
|
- res: data,
|
|
|
- fileName: `${
|
|
|
+ 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() {
|
|
|
+ console.log('批量打印数据', this.modification)
|
|
|
+ this.printType = 1
|
|
|
+ this.isShowPrintType = true
|
|
|
+ },
|
|
|
+ async exportlist() {
|
|
|
+ console.log('导出数据', this.modification)
|
|
|
+ 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
|
|
|
+ type: 'xls',
|
|
|
})
|
|
|
- promises.push(promise)
|
|
|
- }
|
|
|
- Promise.all(promises)
|
|
|
- .then(() => {
|
|
|
- zip.generateAsync({ type: 'blob' }).then((content) => {
|
|
|
- _this.title = '正在压缩'
|
|
|
- // 生成二进制流
|
|
|
- FileSaver.saveAs(content, filename) // 利用file-saver保存文件 自定义文件名
|
|
|
- _this.title = '压缩完成'
|
|
|
+ },
|
|
|
+ /**文件打包
|
|
|
+ * 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((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)
|
|
|
- }
|
|
|
+ promises.push(promise)
|
|
|
}
|
|
|
- xmlhttp.send()
|
|
|
- })
|
|
|
- },
|
|
|
- invoicingClick() {
|
|
|
- // let data = JSON.stringify({
|
|
|
- // paymentManagementList : this.modification
|
|
|
- // })
|
|
|
- // //开票
|
|
|
- // invoicing(data)
|
|
|
- // .toPromise()
|
|
|
- // .then(response => {
|
|
|
- // console.log(response)
|
|
|
- // })
|
|
|
-
|
|
|
- let data = {
|
|
|
- paymentManagementList: this.modification,
|
|
|
- }
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- 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++) {
|
|
|
- arr.push({
|
|
|
- fileUrl: response[i],
|
|
|
- renameFileName: '发票' + i + '.xml',
|
|
|
- })
|
|
|
+ Promise.all(promises)
|
|
|
+ .then(() => {
|
|
|
+ zip.generateAsync({
|
|
|
+ type: 'blob'
|
|
|
+ }).then((content) => {
|
|
|
+ _this.title = '正在压缩'
|
|
|
+ // 生成二进制流
|
|
|
+ FileSaver.saveAs(content, filename) // 利用file-saver保存文件 自定义文件名
|
|
|
+ _this.title = '压缩完成'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch((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)
|
|
|
}
|
|
|
- this.filesToRar(arr, '开票XML文件')
|
|
|
}
|
|
|
+ xmlhttp.send()
|
|
|
})
|
|
|
- .catch(() => {})
|
|
|
- },
|
|
|
- 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]
|
|
|
- this.customerlist.payeeAddressUrls =
|
|
|
- this.customerlist.payeeAddressUrl.split(',')
|
|
|
- })
|
|
|
- },
|
|
|
- customerclose(e) {
|
|
|
- // row.textcss = false
|
|
|
- this.customerInfo = false
|
|
|
- },
|
|
|
- //合计
|
|
|
- getSummaries(param) {
|
|
|
- const { columns, data } = param
|
|
|
- const sums = []
|
|
|
- columns.forEach((column, index) => {
|
|
|
- if (index === 0) {
|
|
|
- sums[index] = '合计'
|
|
|
- } else if (
|
|
|
- index === 10 ||
|
|
|
- index === 11 ||index === 15 || index === 16
|
|
|
+ },
|
|
|
+ invoicingClick() {
|
|
|
+ // let data = JSON.stringify({
|
|
|
+ // paymentManagementList : this.modification
|
|
|
+ // })
|
|
|
+ // //开票
|
|
|
+ // invoicing(data)
|
|
|
+ // .toPromise()
|
|
|
+ // .then(response => {
|
|
|
+ // console.log(response)
|
|
|
+ // })
|
|
|
|
|
|
- ) {
|
|
|
- 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] = '--'
|
|
|
+ let data = {
|
|
|
+ paymentManagementList: this.modification,
|
|
|
}
|
|
|
- })
|
|
|
- // 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
|
|
|
- case '打印发票':
|
|
|
- this.isShowPrintType4 = !this.isShowPrintType4
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- typePrintCannelClick() {
|
|
|
- this.isShowPrintType = false
|
|
|
- },
|
|
|
- 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()
|
|
|
- }
|
|
|
- getpaymentexamine({
|
|
|
- id: this.modification[i].id,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- index1++
|
|
|
- let date = new Date()
|
|
|
- response.currentTime =
|
|
|
- date.getFullYear() +
|
|
|
- '年' +
|
|
|
- Number(date.getMonth() + 1) +
|
|
|
- '月' +
|
|
|
- date.getDate() +
|
|
|
- '日'
|
|
|
- this.selectPrintList.push(response)
|
|
|
- if (
|
|
|
- index1 == this.modification.length &&
|
|
|
- index2 == this.modification.length
|
|
|
- ) {
|
|
|
- this.printData.compName = ''
|
|
|
- // this.isShowPrint = true
|
|
|
- this.printBig()
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
+ if (
|
|
|
+ this.modification[i].status != '全部付款' &&
|
|
|
+ this.modification[i].status != '部分付款' &&
|
|
|
+ this.modification[i].status != '已通过'
|
|
|
+ ) {
|
|
|
+ this.$message.error('开票只能选择全部付款或部分付款或已通过!')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- } else {
|
|
|
+ //开票
|
|
|
+ invoicing(data)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ if (response.length > 0) {
|
|
|
+ var arr = []
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ arr.push({
|
|
|
+ fileUrl: response[i],
|
|
|
+ renameFileName: '发票' + i + '.xml',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.filesToRar(arr, '开票XML文件')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {})
|
|
|
+ },
|
|
|
+ customer(row) {
|
|
|
getCustomerLook({
|
|
|
- id: this.rowData.identityId,
|
|
|
- authenticationStatusKey: 7,
|
|
|
- })
|
|
|
+ id: row.identityId,
|
|
|
+ authenticationStatusKey: 7,
|
|
|
+ })
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- this.customerList = response
|
|
|
- getpaymentexamine({
|
|
|
- id: this.rowData.id,
|
|
|
- })
|
|
|
+ this.customerInfo = true
|
|
|
+ this.customerlist = response
|
|
|
+ this.customerlist.cardAddressUrl1 =
|
|
|
+ this.customerlist.cardAddressUrl.split(',')[0]
|
|
|
+ this.customerlist.cardAddressUrl2 =
|
|
|
+ this.customerlist.cardAddressUrl.split(',')[1]
|
|
|
+ this.customerlist.payeeAddressUrls =
|
|
|
+ this.customerlist.payeeAddressUrl.split(',')
|
|
|
+ })
|
|
|
+ },
|
|
|
+ customerclose(e) {
|
|
|
+ // row.textcss = false
|
|
|
+ this.customerInfo = false
|
|
|
+ },
|
|
|
+ //合计
|
|
|
+ getSummaries(param) {
|
|
|
+ const {
|
|
|
+ columns,
|
|
|
+ data
|
|
|
+ } = param
|
|
|
+ const sums = []
|
|
|
+ columns.forEach((column, index) => {
|
|
|
+ if (index === 0) {
|
|
|
+ sums[index] = '合计'
|
|
|
+ } else if (
|
|
|
+ index === 10 ||
|
|
|
+ index === 11 || index === 15 || index === 16
|
|
|
+
|
|
|
+ ) {
|
|
|
+ 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] = '--'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 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
|
|
|
+ case '打印检斤单':
|
|
|
+ this.isShowPrintType4 = !this.isShowPrintType4
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ typePrintCannelClick() {
|
|
|
+ this.isShowPrintType = false
|
|
|
+ },
|
|
|
+ typePrintClick(type) {
|
|
|
+ debugger
|
|
|
+ // 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.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() +
|
|
|
- '日'
|
|
|
+ this.selectCustomerList.push(response)
|
|
|
+ index2++
|
|
|
+ if (
|
|
|
+ index1 == this.modification.length &&
|
|
|
+ index2 == this.modification.length
|
|
|
+ ) {
|
|
|
+ this.printData.compName = ''
|
|
|
+ // this.isShowPrint = true
|
|
|
+ this.printBig()
|
|
|
+ }
|
|
|
+ getpaymentexamine({
|
|
|
+ id: this.modification[i].id,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ index1++
|
|
|
+ let date = new Date()
|
|
|
+ response.currentTime =
|
|
|
+ date.getFullYear() +
|
|
|
+ '年' +
|
|
|
+ Number(date.getMonth() + 1) +
|
|
|
+ '月' +
|
|
|
+ date.getDate() +
|
|
|
+ '日'
|
|
|
+ this.selectPrintList.push(response)
|
|
|
+ if (
|
|
|
+ index1 == this.modification.length &&
|
|
|
+ index2 == this.modification.length
|
|
|
+ ) {
|
|
|
+ this.printData.compName = ''
|
|
|
+ // this.isShowPrint = true
|
|
|
+ this.printBig()
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ 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);
|
|
|
+ this.printData = val2.data
|
|
|
+ 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() +
|
|
|
+ '日'
|
|
|
+ })
|
|
|
+ ).catch(err => {
|
|
|
+ console.log(err);
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
- 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 {
|
|
|
- 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.payImg = row.paymentScreenshot.split('$')
|
|
|
- }
|
|
|
- },
|
|
|
- getWarehouse() {
|
|
|
- let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
|
|
|
- _wareHouse = JSON.parse(_wareHouse)
|
|
|
- selectWarehouseSelf({
|
|
|
- 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
|
|
|
- } else {
|
|
|
- if (_wareHouse) {
|
|
|
- this.warehouseNameKey = _wareHouse.value
|
|
|
- this.warehouseName = _wareHouse.value
|
|
|
+ // getCustomerLook({
|
|
|
+ // id: this.rowData.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 {
|
|
|
+ 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.payImg = row.paymentScreenshot.split('$')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getWarehouse() {
|
|
|
+ let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
|
|
|
+ _wareHouse = JSON.parse(_wareHouse)
|
|
|
+ selectWarehouseSelf({
|
|
|
+ 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
|
|
|
} else {
|
|
|
- this.warehouseNameKey = this.warehouseList[0].id
|
|
|
- if (this.warehouseName) {
|
|
|
- this.warehouseNameKey = this.WAREHOUSE[3].payname
|
|
|
+ if (_wareHouse) {
|
|
|
+ this.warehouseNameKey = _wareHouse.value
|
|
|
+ this.warehouseName = _wareHouse.value
|
|
|
} else {
|
|
|
- this.WAREHOUSE[3].payname = this.warehouseList[0].id
|
|
|
- this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
+ 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.getList()
|
|
|
- })
|
|
|
- },
|
|
|
- //上传付款截图
|
|
|
- handleAvatarSuccess(e) {
|
|
|
- this.imageUrl = e.url
|
|
|
- },
|
|
|
- printSmall() {
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint.html?type=1&dataList=' +
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //上传付款截图
|
|
|
+ handleAvatarSuccess(e) {
|
|
|
+ this.imageUrl = e.url
|
|
|
+ },
|
|
|
+ printSmall() {
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint.html?type=1&dataList=' +
|
|
|
JSON.stringify(this.printData)
|
|
|
- )
|
|
|
- },
|
|
|
- printBig() {
|
|
|
- let _list1 = []
|
|
|
- let _list2 = []
|
|
|
- if (this.printType == 1) {
|
|
|
- localStorage.setItem('cwprint', true)
|
|
|
- // 财务批量打印数据
|
|
|
- localStorage.setItem(
|
|
|
- 'selectPrint_selectPrintList',
|
|
|
- JSON.stringify(this.selectPrintList)
|
|
|
)
|
|
|
- localStorage.setItem(
|
|
|
- 'selectPrint_selectCustomerList',
|
|
|
- JSON.stringify(this.selectCustomerList)
|
|
|
- )
|
|
|
- } else if (this.printType == 0) {
|
|
|
- localStorage.setItem('cwprint', true)
|
|
|
- _list1 = JSON.stringify(this.printData)
|
|
|
- _list2 = JSON.stringify(this.customerList)
|
|
|
- } else {
|
|
|
- _list1 = JSON.stringify(this.printData)
|
|
|
- _list2 = JSON.stringify(this.customerList)
|
|
|
- }
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint.html?type=2&dataList=' +
|
|
|
+ },
|
|
|
+ printBig() {
|
|
|
+ let _list1 = []
|
|
|
+ let _list2 = []
|
|
|
+ if (this.printType == 1) {
|
|
|
+ localStorage.setItem('cwprint', true)
|
|
|
+ // 财务批量打印数据
|
|
|
+ localStorage.setItem(
|
|
|
+ 'selectPrint_selectPrintList',
|
|
|
+ JSON.stringify(this.selectPrintList)
|
|
|
+ )
|
|
|
+ localStorage.setItem(
|
|
|
+ 'selectPrint_selectCustomerList',
|
|
|
+ JSON.stringify(this.selectCustomerList)
|
|
|
+ )
|
|
|
+ } else if (this.printType == 0) {
|
|
|
+ localStorage.setItem('cwprint', true)
|
|
|
+ _list1 = JSON.stringify(this.printData)
|
|
|
+ _list2 = JSON.stringify(this.customerList)
|
|
|
+ } else {
|
|
|
+ _list1 = JSON.stringify(this.printData)
|
|
|
+ _list2 = JSON.stringify(this.customerList)
|
|
|
+ }
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint.html?type=2&dataList=' +
|
|
|
_list1 +
|
|
|
'&customerList=' +
|
|
|
_list2 +
|
|
|
'&printTypeList=' +
|
|
|
this.ruleForm.type,
|
|
|
- '结算凭证'
|
|
|
- )
|
|
|
- },
|
|
|
- getList() {
|
|
|
- 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] : ''
|
|
|
- }
|
|
|
-
|
|
|
- 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'),
|
|
|
- })
|
|
|
- .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',
|
|
|
+ '结算凭证'
|
|
|
+ )
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ this.payments = {
|
|
|
+ amountNotPayable: 0,
|
|
|
+ paymentDate: '',
|
|
|
}
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- delpayment({
|
|
|
- id: row.id,
|
|
|
+ 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] : ''
|
|
|
+ }
|
|
|
+
|
|
|
+ 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'),
|
|
|
})
|
|
|
- .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) {
|
|
|
- if (row.goodsName) {
|
|
|
- localStorage.setItem('paymentManagementReturn', false)
|
|
|
- this.$router.push({
|
|
|
- path: 'settlement',
|
|
|
- query: {
|
|
|
- type: index,
|
|
|
- id: row.id,
|
|
|
- },
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- 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 {
|
|
|
+ .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',
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$message.error('状态为已驳回的条目不能付款')
|
|
|
+ )
|
|
|
+ .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) {
|
|
|
+ if (row.goodsName) {
|
|
|
+ localStorage.setItem('paymentManagementReturn', false)
|
|
|
+ this.$router.push({
|
|
|
+ path: 'settlement',
|
|
|
+ query: {
|
|
|
+ type: index,
|
|
|
+ id: row.id,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 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
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
+ 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
|
|
|
}
|
|
|
- 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
|
|
|
+ },
|
|
|
+ paymentSubmit() {
|
|
|
+ if (!this.payments.money) {
|
|
|
+ this.$message({
|
|
|
+ message: '付款金额不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
- 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 {
|
|
|
- this.$confirm('是否确定驳回?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
+ 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(() => {
|
|
|
- this.audit(this.modification[0], 0, false, '', '')
|
|
|
+ //付款提交
|
|
|
+ paymentCommit(this.payments)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '付款成功',
|
|
|
+ })
|
|
|
+ this.paymentForm = false
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
})
|
|
|
.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) => {
|
|
|
- this.audit(
|
|
|
- this.modification[index + 1],
|
|
|
- index + 1,
|
|
|
- status,
|
|
|
- status2,
|
|
|
- reason
|
|
|
- )
|
|
|
- })
|
|
|
+ },
|
|
|
+ reject() {
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要驳回的条目')
|
|
|
} else {
|
|
|
- posthandle({
|
|
|
- taskId: item.taskId,
|
|
|
- approved: status,
|
|
|
- auditMind: reason != undefined ? '已驳回' : '34',
|
|
|
- needReapply: status2 != undefined ? true : false,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.audit(
|
|
|
- this.modification[index + 1],
|
|
|
- index + 1,
|
|
|
- status,
|
|
|
- status2,
|
|
|
- reason
|
|
|
- )
|
|
|
+ this.$confirm('是否确定驳回?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
})
|
|
|
- .catch((req) => {
|
|
|
- this.$message.warning(req.message)
|
|
|
+ .then(() => {
|
|
|
+ this.audit(this.modification[0], 0, false, '', '')
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
})
|
|
|
}
|
|
|
- } else {
|
|
|
- if (status == true) {
|
|
|
- this.$message.success('通过成功')
|
|
|
- this.getList()
|
|
|
- } else if (status == false) {
|
|
|
- this.$message.success('驳回成功')
|
|
|
- this.getList()
|
|
|
+ },
|
|
|
+ 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) => {
|
|
|
+ this.audit(
|
|
|
+ this.modification[index + 1],
|
|
|
+ index + 1,
|
|
|
+ status,
|
|
|
+ status2,
|
|
|
+ reason
|
|
|
+ )
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ posthandle({
|
|
|
+ taskId: item.taskId,
|
|
|
+ approved: status,
|
|
|
+ auditMind: reason != undefined ? '已驳回' : '34',
|
|
|
+ needReapply: status2 != undefined ? true : false,
|
|
|
+ })
|
|
|
+ .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 {
|
|
|
- this.$confirm('是否确定通过?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.audit(this.modification[0], 0, true)
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
+ },
|
|
|
+ adopt() {
|
|
|
+ var that = this
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要通过的条目')
|
|
|
+ } else {
|
|
|
+ this.$confirm('是否确定通过?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.audit(this.modification[0], 0, true)
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ print1(row) {
|
|
|
+ this.printType = 0
|
|
|
+ this.isShowPrintType = true
|
|
|
+ this.rowData = row
|
|
|
+ localStorage.setItem('cwprint', true)
|
|
|
+ },
|
|
|
+ print(row) {
|
|
|
+ this.printType = 2
|
|
|
+ localStorage.setItem('cwprint', false)
|
|
|
+ getpaymentexamine({
|
|
|
+ id: row.id,
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
- print1(row) {
|
|
|
- this.printType = 0
|
|
|
- this.isShowPrintType = true
|
|
|
- this.rowData = row
|
|
|
- localStorage.setItem('cwprint', true)
|
|
|
- },
|
|
|
- print(row) {
|
|
|
- this.printType = 2
|
|
|
- localStorage.setItem('cwprint', false)
|
|
|
- getpaymentexamine({
|
|
|
- id: row.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() +
|
|
|
- '日'
|
|
|
- })
|
|
|
- },
|
|
|
- examine() {
|
|
|
- if (this.modification.length == 0) {
|
|
|
- this.$message.warning('请选择要审核的条目')
|
|
|
- } else {
|
|
|
- this.$confirm('审核通过后,任务将发送给财务,是否确定通过?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {})
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
+ .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() +
|
|
|
+ '日'
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
- selectInit(row) {
|
|
|
- //在这里一定要记得类型匹配的上。
|
|
|
- // if (row.status != '已驳回') {
|
|
|
- // if (
|
|
|
- // row.taskId == null &&
|
|
|
- // row.status != '已通过' &&
|
|
|
- // row.status != '部分付款'
|
|
|
- // ) {
|
|
|
- // 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,
|
|
|
+ },
|
|
|
+ examine() {
|
|
|
+ if (this.modification.length == 0) {
|
|
|
+ this.$message.warning('请选择要审核的条目')
|
|
|
+ } else {
|
|
|
+ this.$confirm('审核通过后,任务将发送给财务,是否确定通过?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
})
|
|
|
- )
|
|
|
- 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()
|
|
|
+ },
|
|
|
+ selectInit(row) {
|
|
|
+ //在这里一定要记得类型匹配的上。
|
|
|
+ // if (row.status != '已驳回') {
|
|
|
+ // if (
|
|
|
+ // row.taskId == null &&
|
|
|
+ // row.status != '已通过' &&
|
|
|
+ // row.status != '部分付款'
|
|
|
+ // ) {
|
|
|
+ // 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,
|
|
|
+ })
|
|
|
+ )
|
|
|
+ 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()
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
-}
|
|
|
+ }
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-.ws-info-table {
|
|
|
- border: none;
|
|
|
-}
|
|
|
+ .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;
|
|
|
+ }
|
|
|
|
|
|
-.ws-info-table .el-form-item {
|
|
|
- width: 50%;
|
|
|
- border: none;
|
|
|
-}
|
|
|
+ /deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
+ 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/.el-dialog__title {
|
|
|
+ font-size: 24px !important;
|
|
|
+ }
|
|
|
|
|
|
-/deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
- border: none;
|
|
|
-}
|
|
|
+ /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;
|
|
|
+ }
|
|
|
|
|
|
-/deep/.el-dialog__title {
|
|
|
- font-size: 24px !important;
|
|
|
-}
|
|
|
+ .title {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
|
|
|
-/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;
|
|
|
-}
|
|
|
+ table,
|
|
|
+ table tr th,
|
|
|
+ table tr td {
|
|
|
+ border: 2px solid #333333;
|
|
|
+ padding: 5px 0;
|
|
|
+ }
|
|
|
|
|
|
-.title {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 600;
|
|
|
-}
|
|
|
+ table {
|
|
|
+ width: 100%;
|
|
|
+ min-height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
+ text-align: center;
|
|
|
+ border-collapse: collapse;
|
|
|
+ border: 3px solid #333333;
|
|
|
+ }
|
|
|
|
|
|
-table,
|
|
|
-table tr th,
|
|
|
-table tr td {
|
|
|
- border: 2px solid #333333;
|
|
|
- padding: 5px 0;
|
|
|
-}
|
|
|
+ .formItem {
|
|
|
+ width: 70% !important;
|
|
|
+ }
|
|
|
|
|
|
-table {
|
|
|
- width: 100%;
|
|
|
- min-height: 25px;
|
|
|
- line-height: 25px;
|
|
|
- text-align: center;
|
|
|
- border-collapse: collapse;
|
|
|
- border: 3px solid #333333;
|
|
|
-}
|
|
|
+ /deep/.el-table .el-table__header .cell,
|
|
|
+ /deep/.el-table .cell {
|
|
|
+ text-align: center;
|
|
|
+ line-height: 15px;
|
|
|
+ }
|
|
|
|
|
|
-.formItem {
|
|
|
- width: 70% !important;
|
|
|
-}
|
|
|
+ /deep/.el-table--enable-row-transition .el-table__body td {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
|
|
|
-/deep/.el-table .el-table__header .cell,
|
|
|
-/deep/.el-table .cell {
|
|
|
- text-align: center;
|
|
|
- line-height: 15px;
|
|
|
-}
|
|
|
+ .title {
|
|
|
+ padding: 10px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
|
|
|
-/deep/.el-table--enable-row-transition .el-table__body td {
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
+ .tanchuang {
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
|
|
|
-.title {
|
|
|
- padding: 10px;
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
+ .tanchuang .ws-info-table {
|
|
|
+ display: initial;
|
|
|
+ }
|
|
|
|
|
|
-.tanchuang {
|
|
|
- margin: 0 auto;
|
|
|
-}
|
|
|
+ .tanchuang .ws-info-table .el-form-item {
|
|
|
+ margin: 0 auto;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
|
|
|
-.tanchuang .ws-info-table {
|
|
|
- display: initial;
|
|
|
-}
|
|
|
+ .upLoad {
|
|
|
+ width: 40%;
|
|
|
+ margin: 0 auto;
|
|
|
+ // border: 1px solid #8890b1;
|
|
|
+ // border-radius: 3px;
|
|
|
+ }
|
|
|
|
|
|
-.tanchuang .ws-info-table .el-form-item {
|
|
|
- margin: 0 auto;
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
+ // .avatar{
|
|
|
+ // width: 150px;
|
|
|
+ // height: 150px;
|
|
|
+ // }
|
|
|
+ .avatar-uploader .el-upload {
|
|
|
+ border: 1px dashed #d9d9d9;
|
|
|
+ border-radius: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
|
|
|
-.upLoad {
|
|
|
- width: 40%;
|
|
|
- margin: 0 auto;
|
|
|
- // border: 1px solid #8890b1;
|
|
|
- // border-radius: 3px;
|
|
|
-}
|
|
|
+ .avatar-uploader .el-upload:hover {
|
|
|
+ border-color: #409eff;
|
|
|
+ }
|
|
|
|
|
|
-// .avatar{
|
|
|
-// width: 150px;
|
|
|
-// height: 150px;
|
|
|
-// }
|
|
|
-.avatar-uploader .el-upload {
|
|
|
- border: 1px dashed #d9d9d9;
|
|
|
- border-radius: 6px;
|
|
|
- cursor: pointer;
|
|
|
- position: relative;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
+ .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-uploader .el-upload:hover {
|
|
|
- border-color: #409eff;
|
|
|
-}
|
|
|
+ .avatar {
|
|
|
+ width: 178px;
|
|
|
+ height: 178px;
|
|
|
+ border: 1px solid #8890b1;
|
|
|
+ border-radius: 5px;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
|
|
|
-.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;
|
|
|
-}
|
|
|
+ .pay_img {
|
|
|
+ width: 50%;
|
|
|
+ // display: flex;
|
|
|
+ display: inline-block;
|
|
|
|
|
|
-.avatar {
|
|
|
- width: 178px;
|
|
|
- height: 178px;
|
|
|
- border: 1px solid #8890b1;
|
|
|
- border-radius: 5px;
|
|
|
- display: block;
|
|
|
-}
|
|
|
+ .img {
|
|
|
+ height: 350px;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-.pay_img {
|
|
|
- width: 50%;
|
|
|
- // display: flex;
|
|
|
- display: inline-block;
|
|
|
+ .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;
|
|
|
+ }
|
|
|
|
|
|
- .img {
|
|
|
- height: 350px;
|
|
|
+ .label-width {
|
|
|
width: 100%;
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-.print-type {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- margin: auto;
|
|
|
- width: 200px;
|
|
|
- height: 200px;
|
|
|
- background: white;
|
|
|
- border-radius: 10px;
|
|
|
- z-index: 999;
|
|
|
-}
|
|
|
+ .mask {
|
|
|
+ background: black;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ z-index: 99;
|
|
|
+ opacity: 0.3;
|
|
|
+ }
|
|
|
|
|
|
-.label-width {
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
+ .print-type-title {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 18px;
|
|
|
+ margin: 20px;
|
|
|
+ }
|
|
|
|
|
|
-.mask {
|
|
|
- background: black;
|
|
|
- width: 100vw;
|
|
|
- height: 100vh;
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- z-index: 99;
|
|
|
- opacity: 0.3;
|
|
|
-}
|
|
|
+ .bottom-btn {
|
|
|
+ margin: 20px 0;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
|
|
|
-.print-type-title {
|
|
|
- text-align: center;
|
|
|
- font-size: 18px;
|
|
|
- margin: 20px;
|
|
|
-}
|
|
|
+ .print-type-checkbox {
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
|
|
|
-.bottom-btn {
|
|
|
- margin: 20px;
|
|
|
-}
|
|
|
+ .img_css {
|
|
|
+ width: 90%;
|
|
|
+ height: 220px;
|
|
|
+ }
|
|
|
|
|
|
-.print-type-checkbox {
|
|
|
- padding-left: 20px;
|
|
|
-}
|
|
|
+ .text_css {
|
|
|
+ color: #5878e8;
|
|
|
+ }
|
|
|
|
|
|
-.img_css {
|
|
|
- width: 90%;
|
|
|
- height: 220px;
|
|
|
-}
|
|
|
+ /deep/.base_header_layout {
|
|
|
+ height: 48px;
|
|
|
+ }
|
|
|
|
|
|
-.text_css {
|
|
|
- color: #5878e8;
|
|
|
-}
|
|
|
-/deep/.base_header_layout {
|
|
|
- height: 48px;
|
|
|
-}
|
|
|
-.warehouse_select {
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
-.el-button {
|
|
|
- margin: 5px;
|
|
|
-}
|
|
|
+ .warehouse_select {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-button {
|
|
|
+ margin: 5px;
|
|
|
+ }
|
|
|
</style>
|