|
@@ -7,30 +7,15 @@
|
|
<div class="print-type-title">打印凭证</div>
|
|
<div class="print-type-title">打印凭证</div>
|
|
<div class="print-type-checkbox">
|
|
<div class="print-type-checkbox">
|
|
<el-checkbox-group v-model="ruleForm.type">
|
|
<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"></el-checkbox>
|
|
|
|
+ <el-checkbox label="打印银行卡(正反面)" name="type" class="label-width" @change="selectType"></el-checkbox>
|
|
<el-checkbox
|
|
<el-checkbox
|
|
label="打印结算凭证"
|
|
label="打印结算凭证"
|
|
name="type"
|
|
name="type"
|
|
class="label-width"
|
|
class="label-width"
|
|
@change="selectType($event)"
|
|
@change="selectType($event)"
|
|
></el-checkbox>
|
|
></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>
|
|
</el-checkbox-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -43,38 +28,27 @@
|
|
<template slot="left">
|
|
<template slot="left">
|
|
<!-- <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(0)">待审核</ws-button>
|
|
- <ws-button type="primary" @click="screen()">全部</ws-button> -->
|
|
|
|
|
|
+ <ws-button type="primary" @click="screen()">全部</ws-button>-->
|
|
<ws-button
|
|
<ws-button
|
|
:type="searchType == 0 ? 'primary' : ''"
|
|
:type="searchType == 0 ? 'primary' : ''"
|
|
@click="screen(1)"
|
|
@click="screen(1)"
|
|
v-if="isShowAdopt"
|
|
v-if="isShowAdopt"
|
|
- >待审核</ws-button
|
|
|
|
- >
|
|
|
|
- <ws-button
|
|
|
|
|
|
+ >待审核</ws-button>
|
|
|
|
+ <ws-button
|
|
:type="searchType == 0 ? 'primary' : ''"
|
|
:type="searchType == 0 ? 'primary' : ''"
|
|
@click="screen(7)"
|
|
@click="screen(7)"
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.pay`"
|
|
|
|
- >待付款</ws-button
|
|
|
|
- >
|
|
|
|
- <ws-button :type="searchType == 2 ? 'primary' : ''" @click="screen(2)"
|
|
|
|
- >待结算</ws-button
|
|
|
|
- >
|
|
|
|
- <ws-button :type="searchType == -1 ? 'primary' : ''" @click="screen(-1)"
|
|
|
|
- >全部</ws-button
|
|
|
|
- >
|
|
|
|
- <ws-button type="primary" @click="reject" v-if="isShowAdopt"
|
|
|
|
- >驳回</ws-button
|
|
|
|
- >
|
|
|
|
- <ws-button type="primary" @click="adopt" v-if="isShowAdopt"
|
|
|
|
- >通过</ws-button
|
|
|
|
- >
|
|
|
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.pay`"
|
|
|
|
+ >待付款</ws-button>
|
|
|
|
+ <ws-button :type="searchType == 2 ? 'primary' : ''" @click="screen(2)">待结算</ws-button>
|
|
|
|
+ <ws-button :type="searchType == -1 ? 'primary' : ''" @click="screen(-1)">全部</ws-button>
|
|
|
|
+ <ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
|
|
|
|
+ <ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
<ws-button
|
|
<ws-button
|
|
type="primary"
|
|
type="primary"
|
|
@click="payment"
|
|
@click="payment"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.pay`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.pay`"
|
|
- >付款</ws-button
|
|
|
|
- >
|
|
|
|
|
|
+ >付款</ws-button>
|
|
</template>
|
|
</template>
|
|
<template slot="right">
|
|
<template slot="right">
|
|
<el-select
|
|
<el-select
|
|
@@ -119,127 +93,54 @@
|
|
@row-click="handleRowClick"
|
|
@row-click="handleRowClick"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
- <el-table-column
|
|
|
|
- :selectable="selectInit"
|
|
|
|
- type="selection"
|
|
|
|
- width="55"
|
|
|
|
- ></el-table-column>
|
|
|
|
|
|
+ <el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
|
|
<el-table-column type="index" label="序号" width="50">
|
|
<el-table-column type="index" label="序号" width="50">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="paymentNo"
|
|
|
|
- width="150"
|
|
|
|
- label="编号"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="customerName"
|
|
|
|
- label="客户"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="carNo"
|
|
|
|
- label="车牌号"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="goodsName"
|
|
|
|
- label="货名"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- width="80"
|
|
|
|
- prop="type"
|
|
|
|
- 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="120"
|
|
|
|
- label="净重(公斤)"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="pureWeight"
|
|
|
|
- width="120"
|
|
|
|
- label="纯重(公斤)"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="amountIngPayable"
|
|
|
|
- label="应付款(元)"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="amountEdPayable"
|
|
|
|
- label="已付款(元)"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column class="table_td" prop="paymentNo" width="150" label="编号"></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="customerName" label="客户"></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="carNo" label="车牌号"></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="goodsName" label="货名"></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" width="80" prop="type" 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="120" label="净重(公斤)"></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="pureWeight" width="120" label="纯重(公斤)"></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="amountIngPayable" label="应付款(元)"></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="amountEdPayable" label="已付款(元)">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div @click="showPayImg(scope.row)">
|
|
|
|
- {{ scope.row.amountEdPayable }}
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div @click="showPayImg(scope.row)">{{ scope.row.amountEdPayable }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="updateDate"
|
|
|
|
- label="更新时间"
|
|
|
|
- width="140"
|
|
|
|
- ></el-table-column>
|
|
|
|
|
|
+ <el-table-column class="table_td" prop="updateDate" label="更新时间" width="140"></el-table-column>
|
|
<el-table-column class="table_td" prop="status" label="状态">
|
|
<el-table-column class="table_td" prop="status" label="状态">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
- <span v-if="scope.row.approveStatus">
|
|
|
|
- {{ scope.row.approveStatus }}
|
|
|
|
- </span>
|
|
|
|
|
|
+ <span v-if="scope.row.approveStatus">{{ scope.row.approveStatus }}</span>
|
|
<span v-else>{{ scope.row.status }}</span>
|
|
<span v-else>{{ scope.row.status }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- class="table_td"
|
|
|
|
- prop="collectionEdPayable"
|
|
|
|
- label="操作"
|
|
|
|
- width="350"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="350">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
- <el-button
|
|
|
|
- v-if="
|
|
|
|
- (!scope.row.approveStatus ||
|
|
|
|
- scope.row.approveStatus == '待结算') &&
|
|
|
|
- scope.row.status == '待结算'
|
|
|
|
- "
|
|
|
|
- @click="settlement(1, scope.row)"
|
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionPay.add`"
|
|
|
|
- >结算</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <span v-hasPermission="`acquisitionManagement.acquisitionPay.add`">
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="
|
|
|
|
+ (!scope.row.approveStatus ||
|
|
|
|
+ scope.row.approveStatus == '待结算') &&
|
|
|
|
+ scope.row.status == '待结算'
|
|
|
|
+ "
|
|
|
|
+ @click="settlement(1, scope.row)"
|
|
|
|
+ >结算</el-button>
|
|
|
|
+ </span>
|
|
|
|
+
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.approveStatus || scope.row.status == '已驳回'"
|
|
v-if="scope.row.approveStatus || scope.row.status == '已驳回'"
|
|
@click="settlement(2, scope.row)"
|
|
@click="settlement(2, scope.row)"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.view`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.view`"
|
|
- >查看</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >查看</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
scope.row.approveStatus ||
|
|
scope.row.approveStatus ||
|
|
@@ -247,8 +148,7 @@
|
|
"
|
|
"
|
|
@click="print(scope.row)"
|
|
@click="print(scope.row)"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
- >打印</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >打印</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="danger"
|
|
type="danger"
|
|
v-if="
|
|
v-if="
|
|
@@ -258,24 +158,20 @@
|
|
"
|
|
"
|
|
@click="del(scope.row)"
|
|
@click="del(scope.row)"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.delete`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.delete`"
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</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">
|
|
<div class="tanchuang">
|
|
<ws-form>
|
|
<ws-form>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
- <ws-form-item label="未付金额(元)" prop="amountNotPayable">{{
|
|
|
|
|
|
+ <ws-form-item label="未付金额(元)" prop="amountNotPayable">
|
|
|
|
+ {{
|
|
payments.amountNotPayable
|
|
payments.amountNotPayable
|
|
- }}</ws-form-item>
|
|
|
|
|
|
+ }}
|
|
|
|
+ </ws-form-item>
|
|
<ws-form-item label="本次付款金额(元)" prop="money">
|
|
<ws-form-item label="本次付款金额(元)" prop="money">
|
|
<ws-input
|
|
<ws-input
|
|
type="number"
|
|
type="number"
|
|
@@ -287,16 +183,9 @@
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="付款日期" prop=" paymentDate">
|
|
<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>
|
|
- <ws-form-item
|
|
|
|
- label="上传截图"
|
|
|
|
- prop=" paymentScreenshot"
|
|
|
|
- ></ws-form-item>
|
|
|
|
|
|
+ <ws-form-item label="上传截图" prop=" paymentScreenshot"></ws-form-item>
|
|
<div class="upLoad">
|
|
<div class="upLoad">
|
|
<el-upload
|
|
<el-upload
|
|
class="avatar-uploader"
|
|
class="avatar-uploader"
|
|
@@ -317,12 +206,7 @@
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</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">
|
|
<div v-for="(item, index) in payImg" :key="index" class="pay_img">
|
|
<img :src="item" alt class="img" />
|
|
<img :src="item" alt class="img" />
|
|
</div>
|
|
</div>
|
|
@@ -346,15 +230,9 @@
|
|
:visible.sync="isShowPrint"
|
|
:visible.sync="isShowPrint"
|
|
:title="printData.compName + '结算凭证'"
|
|
:title="printData.compName + '结算凭证'"
|
|
>
|
|
>
|
|
- <paymentPrint
|
|
|
|
- :printData="printData"
|
|
|
|
- :customerInfo="customerList"
|
|
|
|
- :showType="ruleForm.type"
|
|
|
|
- ></paymentPrint>
|
|
|
|
|
|
+ <paymentPrint :printData="printData" :customerInfo="customerList" :showType="ruleForm.type"></paymentPrint>
|
|
<div style="text-align: center">
|
|
<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="printSmall">打印小票</el-button> -->
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -371,7 +249,7 @@ import {
|
|
getpaymentexamine,
|
|
getpaymentexamine,
|
|
getCustomerLook,
|
|
getCustomerLook,
|
|
paymentCommit,
|
|
paymentCommit,
|
|
- getJurisdiction,
|
|
|
|
|
|
+ getJurisdiction
|
|
} from '@/model/houseSelfCollect/index'
|
|
} from '@/model/houseSelfCollect/index'
|
|
import { posthandle } from '@/model/purchasingManagement/index'
|
|
import { posthandle } from '@/model/purchasingManagement/index'
|
|
import paymentPrint from './component/paymentPrint.vue'
|
|
import paymentPrint from './component/paymentPrint.vue'
|
|
@@ -390,8 +268,8 @@ export default {
|
|
'打印身份证(正反面)',
|
|
'打印身份证(正反面)',
|
|
'打印银行卡(正反面)',
|
|
'打印银行卡(正反面)',
|
|
'打印结算凭证',
|
|
'打印结算凭证',
|
|
- '打印发票',
|
|
|
|
- ],
|
|
|
|
|
|
+ '打印发票'
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
row: {},
|
|
row: {},
|
|
isShowPrintType: false,
|
|
isShowPrintType: false,
|
|
@@ -403,7 +281,7 @@ export default {
|
|
customerName: '',
|
|
customerName: '',
|
|
customerNumberCard: '',
|
|
customerNumberCard: '',
|
|
bankCard: '',
|
|
bankCard: '',
|
|
- bankDeposit: '',
|
|
|
|
|
|
+ bankDeposit: ''
|
|
},
|
|
},
|
|
identity: [],
|
|
identity: [],
|
|
//分页
|
|
//分页
|
|
@@ -427,13 +305,13 @@ export default {
|
|
userJurisdiction: true,
|
|
userJurisdiction: true,
|
|
payments: {
|
|
payments: {
|
|
amountNotPayable: 0,
|
|
amountNotPayable: 0,
|
|
- paymentDate: '',
|
|
|
|
|
|
+ paymentDate: ''
|
|
},
|
|
},
|
|
showPayImgs: false,
|
|
showPayImgs: false,
|
|
isShowAdopt: false,
|
|
isShowAdopt: false,
|
|
//上传截图路径
|
|
//上传截图路径
|
|
imageUrl: '',
|
|
imageUrl: '',
|
|
- payImg: [],
|
|
|
|
|
|
+ payImg: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -468,10 +346,10 @@ export default {
|
|
// this.isShowPrint = true
|
|
// this.isShowPrint = true
|
|
getCustomerLook({
|
|
getCustomerLook({
|
|
id: this.row.identityAuthenticationInfo.id,
|
|
id: this.row.identityAuthenticationInfo.id,
|
|
- authenticationStatusKey: 7,
|
|
|
|
|
|
+ authenticationStatusKey: 7
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.customerList = response
|
|
this.customerList = response
|
|
this.identity = this.customerList.cardAddressUrl.split(',')
|
|
this.identity = this.customerList.cardAddressUrl.split(',')
|
|
this.bank = this.customerList.payeeAddressUrl.split(',')
|
|
this.bank = this.customerList.payeeAddressUrl.split(',')
|
|
@@ -481,7 +359,7 @@ export default {
|
|
this.imageUrl4 = this.bank[1]
|
|
this.imageUrl4 = this.bank[1]
|
|
getpaymentexamine({ id: this.row.id })
|
|
getpaymentexamine({ id: this.row.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.printData = response
|
|
this.printData = response
|
|
this.isShowPrint = true
|
|
this.isShowPrint = true
|
|
// if(this.printData.solidGrainPrice){
|
|
// if(this.printData.solidGrainPrice){
|
|
@@ -519,7 +397,7 @@ export default {
|
|
this.$confirm(`审核通过后,任务将发送给财务,是否确定通过?`, {
|
|
this.$confirm(`审核通过后,任务将发送给财务,是否确定通过?`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
that.audit(this.modification[0], 0, true, 2)
|
|
that.audit(this.modification[0], 0, true, 2)
|
|
})
|
|
})
|
|
@@ -530,7 +408,7 @@ export default {
|
|
if (!row.paymentScreenshot) {
|
|
if (!row.paymentScreenshot) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '暂无付款截图!',
|
|
message: '暂无付款截图!',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
@@ -542,10 +420,10 @@ export default {
|
|
let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
|
|
let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
|
|
_wareHouse = JSON.parse(_wareHouse)
|
|
_wareHouse = JSON.parse(_wareHouse)
|
|
selectWarehouseSelf({
|
|
selectWarehouseSelf({
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId')
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
if (_wareHouse) {
|
|
if (_wareHouse) {
|
|
this.warehouseNameKey = _wareHouse.id
|
|
this.warehouseNameKey = _wareHouse.id
|
|
@@ -586,7 +464,7 @@ export default {
|
|
getList() {
|
|
getList() {
|
|
this.payments = {
|
|
this.payments = {
|
|
amountNotPayable: 0,
|
|
amountNotPayable: 0,
|
|
- paymentDate: '',
|
|
|
|
|
|
+ paymentDate: ''
|
|
}
|
|
}
|
|
var searchParam = ''
|
|
var searchParam = ''
|
|
if (this.searchType != -1) {
|
|
if (this.searchType != -1) {
|
|
@@ -599,10 +477,10 @@ export default {
|
|
searchKeyWord: this.searchKeyWord,
|
|
searchKeyWord: this.searchKeyWord,
|
|
searchType: searchParam,
|
|
searchType: searchParam,
|
|
warehouseName: this.warehouseName,
|
|
warehouseName: this.warehouseName,
|
|
- managementType: 1,
|
|
|
|
|
|
+ managementType: 1
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.paymentList = response
|
|
this.paymentList = response
|
|
this.deptBudgetTotal = response.total
|
|
this.deptBudgetTotal = response.total
|
|
})
|
|
})
|
|
@@ -610,10 +488,10 @@ export default {
|
|
getJurisdiction({
|
|
getJurisdiction({
|
|
managementType: 1,
|
|
managementType: 1,
|
|
warehouseName: this.warehouseName,
|
|
warehouseName: this.warehouseName,
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId')
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.isShowAdopt = response
|
|
this.isShowAdopt = response
|
|
})
|
|
})
|
|
|
|
|
|
@@ -649,13 +527,13 @@ export default {
|
|
{
|
|
{
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
}
|
|
}
|
|
)
|
|
)
|
|
.then(() => {
|
|
.then(() => {
|
|
delpayment({ id: row.id })
|
|
delpayment({ id: row.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.$message.success('删除成功')
|
|
this.$message.success('删除成功')
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
@@ -675,7 +553,7 @@ export default {
|
|
if (row.goodsName)
|
|
if (row.goodsName)
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'settlement',
|
|
path: 'settlement',
|
|
- query: { type: index, id: row.id },
|
|
|
|
|
|
+ query: { type: index, id: row.id }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
payment() {
|
|
payment() {
|
|
@@ -696,28 +574,28 @@ export default {
|
|
if (!this.payments.money) {
|
|
if (!this.payments.money) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '付款金额不能为空',
|
|
message: '付款金额不能为空',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (this.payments.money > this.payments.amountNotPayable) {
|
|
if (this.payments.money > this.payments.amountNotPayable) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '付款金额不能超过未付金额',
|
|
message: '付款金额不能超过未付金额',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.payments.paymentDate) {
|
|
if (!this.payments.paymentDate) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '付款日期不能为空',
|
|
message: '付款日期不能为空',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.imageUrl) {
|
|
if (!this.imageUrl) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请上传付款截图 ',
|
|
message: '请上传付款截图 ',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -727,16 +605,16 @@ export default {
|
|
this.$confirm('确定提交付款信息?', '提示', {
|
|
this.$confirm('确定提交付款信息?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
//付款提交
|
|
//付款提交
|
|
paymentCommit(this.payments)
|
|
paymentCommit(this.payments)
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.$notify.success({
|
|
this.$notify.success({
|
|
title: '成功',
|
|
title: '成功',
|
|
- message: '付款成功',
|
|
|
|
|
|
+ message: '付款成功'
|
|
})
|
|
})
|
|
this.paymentForm = false
|
|
this.paymentForm = false
|
|
this.getList()
|
|
this.getList()
|
|
@@ -753,7 +631,7 @@ export default {
|
|
this.$confirm('是否确定驳回?', '提示', {
|
|
this.$confirm('是否确定驳回?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
this.audit(this.modification[0], 0, false, '', '')
|
|
this.audit(this.modification[0], 0, false, '', '')
|
|
@@ -768,10 +646,10 @@ export default {
|
|
if (status == true && item.status == '已驳回') {
|
|
if (status == true && item.status == '已驳回') {
|
|
auditpayment({
|
|
auditpayment({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
- id: item.id,
|
|
|
|
|
|
+ id: item.id
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.audit(
|
|
this.audit(
|
|
this.modification[index + 1],
|
|
this.modification[index + 1],
|
|
index + 1,
|
|
index + 1,
|
|
@@ -785,10 +663,10 @@ export default {
|
|
taskId: item.taskId,
|
|
taskId: item.taskId,
|
|
approved: status,
|
|
approved: status,
|
|
auditMind: reason != undefined ? '已驳回' : '34',
|
|
auditMind: reason != undefined ? '已驳回' : '34',
|
|
- needReapply: status2 != undefined ? true : false,
|
|
|
|
|
|
+ needReapply: status2 != undefined ? true : false
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.audit(
|
|
this.audit(
|
|
this.modification[index + 1],
|
|
this.modification[index + 1],
|
|
index + 1,
|
|
index + 1,
|
|
@@ -797,7 +675,7 @@ export default {
|
|
reason
|
|
reason
|
|
)
|
|
)
|
|
})
|
|
})
|
|
- .catch((req) => {
|
|
|
|
|
|
+ .catch(req => {
|
|
this.$message.warning(req.message)
|
|
this.$message.warning(req.message)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -819,7 +697,7 @@ export default {
|
|
this.$confirm('是否确定通过?', '提示', {
|
|
this.$confirm('是否确定通过?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
this.audit(this.modification[0], 0, true)
|
|
this.audit(this.modification[0], 0, true)
|
|
@@ -837,7 +715,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
getpaymentexamine({ id: row.id })
|
|
getpaymentexamine({ id: row.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.printData = response
|
|
this.printData = response
|
|
this.isShowPrint = true
|
|
this.isShowPrint = true
|
|
// if(this.printData.solidGrainPrice){
|
|
// if(this.printData.solidGrainPrice){
|
|
@@ -861,7 +739,7 @@ export default {
|
|
this.$confirm('审核通过后,任务将发送给财务,是否确定通过?', '提示', {
|
|
this.$confirm('审核通过后,任务将发送给财务,是否确定通过?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
- type: 'warning',
|
|
|
|
|
|
+ type: 'warning'
|
|
})
|
|
})
|
|
.then(() => {})
|
|
.then(() => {})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
@@ -910,8 +788,8 @@ export default {
|
|
this.currentPage = val
|
|
this.currentPage = val
|
|
console.log(`当前页: ${val}`)
|
|
console.log(`当前页: ${val}`)
|
|
this.getList()
|
|
this.getList()
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|