|
@@ -23,7 +23,7 @@
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="bg-right">
|
|
|
- <el-button class="bg-bottom" type="primary" size="small" @click="adjustment()">
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="adjustmentchange()">
|
|
|
调整</el-button>
|
|
|
<el-button class="bg-bottom" type="primary" size="small" @click="print()">
|
|
|
打印</el-button>
|
|
@@ -31,11 +31,12 @@
|
|
|
</el-row>
|
|
|
<el-table
|
|
|
class="wenzi"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
:data="recordList"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-table-column
|
|
|
- :selectable="selectInit"
|
|
|
+
|
|
|
type="selection"
|
|
|
width="55"
|
|
|
></el-table-column>
|
|
@@ -64,7 +65,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="operatorMajorRoleName" label="结算单">
|
|
|
<template scope="scope">
|
|
|
- <el-button @click='handleLook(2,scope.row)' v-if="scope.row.settlementSheet">查看</el-button>
|
|
|
+ <el-button @click='handleLook(2,scope.row)' v-if="scope.row.inOutType=='收购入库'">查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="inOutDate" label="出入库日期">
|
|
@@ -73,11 +74,15 @@
|
|
|
<el-dialog :visible.sync="isShowadjustment" title="收款截图">
|
|
|
<div>
|
|
|
<el-input
|
|
|
- v-model="deptBudgetList.goodsName"
|
|
|
+ v-model="adjustment"
|
|
|
placeholder="输入申请金额"
|
|
|
size="small"
|
|
|
></el-input>
|
|
|
+
|
|
|
</div>
|
|
|
+ <div class="bottom-btn">
|
|
|
+ <el-button @click="adjustmentClick()">确定</el-button>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
<div class="mask" v-show="isShowPrintType"></div>
|
|
|
<div class="print-type" v-show="isShowPrintType">
|
|
@@ -91,13 +96,9 @@
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bottom-btn">
|
|
|
- <el-button @click="typePrintClick(printType)">确定</el-button>
|
|
|
- <el-button @click="typePrintCannelClick">取消</el-button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<el-dialog :visible.sync="isCountShow" title="磅单">
|
|
|
- <div class="content" v-if="true">
|
|
|
+ <div id="printTest" class="content" v-if="true">
|
|
|
<div class="title">磅码单</div>
|
|
|
<div class="title">{{tableData.code}}</div>
|
|
|
<table class="table">
|
|
@@ -134,76 +135,194 @@
|
|
|
<div class="config">毛检:{{tableData.secretaryWeigher}}皮检:{{tableData.skinInspector}}</div>
|
|
|
<div class="autograph">日期:{{tableData.inOutDate}}</div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
- </el-dialog>
|
|
|
- <el-dialog :visible.sync="isCountShow1" title="结算单">
|
|
|
- <div class="content" v-if="true">
|
|
|
- <div class="title">磅码单</div>
|
|
|
- <div class="title">{{tableData.code}}</div>
|
|
|
- <table class="table">
|
|
|
- <tr class="row">
|
|
|
- <td class="col col-bgc">单位</td>
|
|
|
- <td class="col" colspan="4">{{tableData.companyName}}</td>
|
|
|
- <td class="col col-bgc">类型</td>
|
|
|
- <td class="col"colspan="1">{{tableData.inOutType}}</td>
|
|
|
- <td class="col col-bgc">车牌号</td>
|
|
|
- <td class="col" colspan="1">{{tableData.carNo}}</td>
|
|
|
-
|
|
|
- </tr>
|
|
|
- <tr class="row">
|
|
|
- <td class="col col-bgc">仓库</td>
|
|
|
- <td class="col" colspan="4">{{tableData.warehouseName}}</td>
|
|
|
- <td class="col col-bgc">仓位</td>
|
|
|
- <td class="col" colspan="1">{{tableData.binNumber}}</td>
|
|
|
- <td class="col col-bgc">货名</td>
|
|
|
- <td class="col" colspan="1">{{tableData.goodsName}}</td>
|
|
|
- </tr>
|
|
|
- <tr class="row">
|
|
|
- <td class="col col-bgc">毛重(公斤)</td>
|
|
|
- <td class="col" colspan="1">{{tableData.grossWeight}}</td>
|
|
|
- <td class="col col-bgc">皮重(公斤)</td>
|
|
|
- <td class="col" colspan="2">{{tableData.tare}}</td>
|
|
|
- <td class="col col-bgc">扣重(公斤)</td>
|
|
|
- <td class="col" colspan="1">{{tableData.weight}}</td>
|
|
|
- <td class="col col-bgc">净重(公斤)</td>
|
|
|
- <td class="col" colspan="1">{{tableData.netWeight}}</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <div class="bottom">
|
|
|
- <div style='justify-content: space-between;' class="bottom-row1">
|
|
|
- <div class="config">毛检:{{tableData.secretaryWeigher}}皮检:{{tableData.skinInspector}}</div>
|
|
|
- <div class="autograph">日期:{{tableData.inOutDate}}</div>
|
|
|
- </div>
|
|
|
+ <div style="text-align: center">
|
|
|
+ <el-button type="primary" @click="isShowPrint = false">关闭</el-button>
|
|
|
+ <el-button type="primary" v-print="'#printTest'" @click='isShowPrint = false'>打印单据</el-button>
|
|
|
</div>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog width="70%" :visible.sync="isShowPrint" title="结算单">
|
|
|
+ <div class="center">
|
|
|
+ <!-- {{customerInfo}} -->
|
|
|
+ <div class="header">
|
|
|
+ <div>单位名称:{{ printData.compName}}</div>
|
|
|
+ <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
|
|
|
+ </div>
|
|
|
+ <div class="header-top">
|
|
|
+ <div>单位:公斤、元</div>
|
|
|
+ <div>No.</div>
|
|
|
+ </div>
|
|
|
+ <div class="header-top">
|
|
|
+ <!-- <div>开票日期:{{printData.createDate}}</div> -->
|
|
|
+ <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
|
|
|
+ <!-- <div class="number">{{dealNo(printData.paymentNo)}}</div> -->
|
|
|
+ </div>
|
|
|
+ <table class="table">
|
|
|
+ <tr class="row">
|
|
|
+ <td rowspan="4" class="col col-bgc">买方</td>
|
|
|
+ <td class="col col-bgc">单位名称</td>
|
|
|
+ <!-- <td class="col" colspan="3">{{ printData.compName}}</td> -->
|
|
|
+ <td rowspan="4" class="col col-bgc">卖方</td>
|
|
|
+ <td class="col col-bgc">姓名</td>
|
|
|
+ <!-- <td class="col" colspan="4">{{ printData.customerName}}</td> -->
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="col col-bgc">税务登记号</td>
|
|
|
+ <!-- <td class="col" colspan="3">{{ printData.taxRegistrationNo}}</td> -->
|
|
|
+ <td class="col col-bgc">身份证号</td>
|
|
|
+ <!-- <td class="col" colspan="4">{{ printData.identityAuthenticationInfo.customerNumberCard}}</td> -->
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="col col-bgc">业务编号</td>
|
|
|
+ <!-- <td class="col" colspan="3">{{ printData.paymentNo}}</td> -->
|
|
|
+ <td class="col col-bgc">卡号</td>
|
|
|
+ <!-- <td class="col" colspan="4">{{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}</td> -->
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="col col-bgc">收货仓库</td>
|
|
|
+ <!-- <td class="col" colspan="3">{{printData.warehouseName}}</td> -->
|
|
|
+ <td class="col col-bgc">地址</td>
|
|
|
+ <!-- <td class="col" colspan="4">{{printData.identityAuthenticationInfo.compAddress}}</td> -->
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="col col-bgc">货名</td>
|
|
|
+ <td class="col col-bgc">类型</td>
|
|
|
+ <td class="col col-bgc">等级</td>
|
|
|
+ <td class="col col-bgc">水分%</td>
|
|
|
+ <td class="col col-bgc">杂质%</td>
|
|
|
+ <td class="col col-bgc">毛重</td>
|
|
|
+ <td class="col col-bgc">皮重</td>
|
|
|
+ <td class="col col-bgc">扣杂重</td>
|
|
|
+ <td class="col col-bgc">净重</td>
|
|
|
+ <td class="col col-bgc">纯重</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <!-- <td class="col">{{ printData.goodsName}}</td>
|
|
|
+ <td class="col">{{ printData.type}}</td>
|
|
|
+ <td class="col">{{ printData.qualityInspectionManagement.grade}}</td>
|
|
|
+ <td class="col">{{ printData.qualityInspectionManagement.waterContent}}</td>
|
|
|
+ <td class="col">{{ printData.qualityInspectionManagement.impurity}}</td>
|
|
|
+ <td class="col">{{ printData.grossWeight}}</td>
|
|
|
+ <td class="col">{{ printData.tare}}</td>
|
|
|
+ <td class="col">{{ printData.weighingManagement.buckleMiscellaneous}}</td>
|
|
|
+ <td class="col">{{ printData.netWeight}}</td>
|
|
|
+ <td class="col">{{ printData.pureWeight}}</td> -->
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="col col-bgc" v-if="printData.type == '潮粮'">净重单价</td>
|
|
|
+ <td class="col col-bgc" v-if="printData.type == '干粮'">单价</td>
|
|
|
+ <td class="col col-bgc">扣单价</td>
|
|
|
+ <td class="col col-bgc">粮款</td>
|
|
|
+ <td class="col col-bgc">称重补助</td>
|
|
|
+ <td class="col col-bgc">运费补助</td>
|
|
|
+ <td class="col col-bgc">卸车补助</td>
|
|
|
+ <td class="col col-bgc">其他补助</td>
|
|
|
+ <td class="col col-bgc">称重扣款</td>
|
|
|
+ <td class="col col-bgc">运费扣款</td>
|
|
|
+ <td class="col col-bgc">卸车扣款</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <!-- <td class="col " v-if="printData.type == '潮粮'">{{printData.tidalGrainPrice}}</td>
|
|
|
+ <td class="col " v-if="printData.type == '干粮'">{{printData.qualityInspectionManagement.dryGrainPrice}}</td>
|
|
|
+ <td class="col ">{{ printData.unitDeduction}}</td>
|
|
|
+ <td class="col ">{{ printData.grainMoney}}</td>
|
|
|
+ <td class="col ">{{ printData.weighingSubsidy}}</td>
|
|
|
+ <td class="col ">{{ printData.freightSubsidy}}</td>
|
|
|
+ <td class="col ">{{ printData.unloadSubsidy}}</td>
|
|
|
+ <td class="col ">{{ printData.otherSubsidy}}</td>
|
|
|
+ <td class="col ">{{ printData.weighingDeduction}}</td>
|
|
|
+ <td class="col ">{{ printData.freightDeduction}}</td>
|
|
|
+ <td class="col ">{{ printData.unloadDeduction}}</td> -->
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="col col-bgc">质量扣款</td>
|
|
|
+ <td class="col col-bgc">其他扣款</td>
|
|
|
+ <td class="col col-bgc" v-if="printData.type == '潮粮'">纯重单价</td>
|
|
|
+ <td class="col col-bgc">合计应付</td>
|
|
|
+ <td class="col col-bgc">购粮性质</td>
|
|
|
+ <td class="col col-bgc">车牌号</td>
|
|
|
+ <td class="col col-bgc" colspan="5">记事</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <!-- <td class="col ">{{ printData.qualityDeduction}}</td>
|
|
|
+ <td class="col ">{{ printData.otherDeduction}}</td>
|
|
|
+ <td class="col " v-if="printData.type == '潮粮'">{{ printData.solidGrainPrice}}</td>
|
|
|
+ <td class="col ">{{ printData.calculationPayable}}</td>
|
|
|
+ <td class="col ">{{ printData.qualityInspectionManagement.natureOfGrainPurchase}}</td>
|
|
|
+ <td class="col ">{{ printData.carNo}}</td>
|
|
|
+ <td class="col " colspan="5">{{ printData.remarks}}</td> -->
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="col col-bgc">实付金额</td>
|
|
|
+ <td class="col " colspan="2">{{printData.actualPayment}}</td>
|
|
|
+ <td class="col col-bgc" colspan="3">人民币(大写)</td>
|
|
|
+ <td class="col " colspan="4">{{printData.capitalize}}</td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div class="bottom">
|
|
|
+ <div class="bottom-row1">
|
|
|
+ <!-- <div>质检:{{ printData.qualityInspectionManagement.qualityInspector}}</div>
|
|
|
+ <div>毛检:{{ printData.weighingManagement.secretaryWeigher}}</div>
|
|
|
+ <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
|
|
|
+ <div>结算:{{ printData.settlementClerk}}</div>
|
|
|
+ <div>付款:{{ printData.cashier}}</div>
|
|
|
+ <div>复点:{{ }}</div> -->
|
|
|
+ <div></div>
|
|
|
+ </div>
|
|
|
+ <div class="bottom-row2">
|
|
|
+ <!-- <div class="left">
|
|
|
+ <img src="../../../../public/img/add.png" alt="" />
|
|
|
+ </div> -->
|
|
|
+ <div class="config">收货单位签名或盖章</div>
|
|
|
+ <div class="">客户签名</div>
|
|
|
</div>
|
|
|
+ <!-- <div class="bottom-row3">扫一扫</div> -->
|
|
|
+ <!-- <div class="bottom-row4">
|
|
|
+ <el-button type="primary">关闭</el-button>
|
|
|
+ <el-button type="primary" @click="printSmall">打印小票</el-button>
|
|
|
+ <el-button type="primary" @click="printBig">打印单据</el-button>
|
|
|
+ </div> -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="text-align: center">
|
|
|
+ <el-button type="primary" @click="isShowPrint = false">关闭</el-button>
|
|
|
+ <el-button type="primary" v-print="'#printTest'">打印单据</el-button>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
- <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>
|
|
|
+ <!-- <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint"
|
|
|
+ :title="tableData.companyName + '结算凭证'">
|
|
|
+ <paymentPrint :printData="tableData" :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="printSmall">打印小票</el-button> -->
|
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
|
</div>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
|
getList,
|
|
|
getrecord,
|
|
|
- getwarehousecount
|
|
|
+ getwarehousecount,
|
|
|
+ postwarehouseadjustment,
|
|
|
+ getsettleaccout
|
|
|
} from '@/model/tradeServicesManagement/index'
|
|
|
+ import paymentPrint from './component/paymentPrint.vue'
|
|
|
export default {
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ paymentPrint
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
recordList:[],
|
|
|
value2:'',
|
|
|
+ customerList:{},
|
|
|
isShowadjustment:false,
|
|
|
+ adjustment:'',
|
|
|
+ id:0,
|
|
|
ruleForm: {
|
|
|
type: [
|
|
|
'打印磅单',
|
|
@@ -218,22 +337,27 @@
|
|
|
isShowPrintType:false,
|
|
|
deptBudgetList:{},
|
|
|
pickerOptions:[],
|
|
|
- tableData:{}
|
|
|
+ tableData:{},
|
|
|
+ selection:[],
|
|
|
+ printData:{}
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.deptBudgetList.baseId=this.$route.query.baseId
|
|
|
+ this.deptBudgetList.positionId=this.$route.query.positionId
|
|
|
+ this.deptBudgetList.warehouseName=this.$route.query.warehouseName
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
getList(){
|
|
|
getrecord({
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- // baseId: this.deptBudgetList.baseId,
|
|
|
- // positionId: this.deptBudgetList.positionId,
|
|
|
- // warehouseName: this.deptBudgetList.warehouseName,
|
|
|
- baseId: "264d297cffb543f9a2d5004b11efc124",
|
|
|
-positionId: "6a46921d2f7a468d9c73663d6c28e294",
|
|
|
-warehouseName: "erp测试库",
|
|
|
+ baseId: this.deptBudgetList.baseId,
|
|
|
+ positionId: this.deptBudgetList.positionId,
|
|
|
+ warehouseName: this.deptBudgetList.warehouseName,
|
|
|
+// baseId: "264d297cffb543f9a2d5004b11efc124",
|
|
|
+// positionId: "6a46921d2f7a468d9c73663d6c28e294",
|
|
|
+// warehouseName: "erp测试库",
|
|
|
searchType: this.searchType,
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
@@ -261,38 +385,75 @@ warehouseName: "erp测试库",
|
|
|
returnsales() {
|
|
|
this.$router.go(-1)
|
|
|
},
|
|
|
- adjustment(){
|
|
|
- this.isShowadjustment=true
|
|
|
+ adjustmentchange(){
|
|
|
+ // console.log(this.selection)
|
|
|
+ if(this.selection.length>0){
|
|
|
+ this.isShowadjustment=true
|
|
|
+ }else{
|
|
|
+ this.$message.error('请勾选要调整的条目');
|
|
|
+ }
|
|
|
},
|
|
|
print(){
|
|
|
this.isShowPrintType=true
|
|
|
},
|
|
|
+ adjustmentClick(){
|
|
|
+ postwarehouseadjustment({warehouseInOutInfoList:this.selection,adjustment:this.adjustment}).toPromise()
|
|
|
+ .then((res) => {
|
|
|
+ this.isShowadjustment=false
|
|
|
+ this.$message.success('调整成功');
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
selectType(){
|
|
|
|
|
|
},
|
|
|
typePrintClick(){
|
|
|
|
|
|
},
|
|
|
- selectInit(){
|
|
|
+ handleSelectionChange(val){
|
|
|
+ this.selection=val
|
|
|
+ console.log(val)
|
|
|
+ },
|
|
|
+ printBig(){
|
|
|
|
|
|
+ },
|
|
|
+ print(){
|
|
|
+
|
|
|
+ },
|
|
|
+ verifyinit() {
|
|
|
+ var arr = []
|
|
|
+ for (var i = 48; i < 57; i++) {
|
|
|
+ arr.push(String.fromCharCode(i))
|
|
|
+ }
|
|
|
+ arr.sort(function() {
|
|
|
+ return Math.random() - 0.5
|
|
|
+ })
|
|
|
+ arr.length = 4
|
|
|
+
|
|
|
+ return arr.join('')
|
|
|
},
|
|
|
handleLook(status,item){
|
|
|
if(status==1){
|
|
|
- this.isCountShow=true
|
|
|
this.tableData=item
|
|
|
- getwarehousecount({
|
|
|
- // positionId:this.deptBudgetList.positionId,
|
|
|
- positionId: "6a46921d2f7a468d9c73663d6c28e294",
|
|
|
- inOutFlag:item.inOutFlag
|
|
|
- }).toPromise()
|
|
|
+ // getwarehousecount({
|
|
|
+ // positionId:this.deptBudgetList.positionId,
|
|
|
+ // // positionId: "6a46921d2f7a468d9c73663d6c28e294",
|
|
|
+ // inOutFlag:item.inOutFlag
|
|
|
+ // }).toPromise()
|
|
|
+ // .then((res) => {
|
|
|
+ // var count='000'+(res+1)
|
|
|
+ // count=count.substring(count.length-3)
|
|
|
+ this.tableData.code=this.getdate()+item.commonWarehouseNo+this.verifyinit()
|
|
|
+ this.isCountShow=true
|
|
|
+ // })
|
|
|
+ }else{
|
|
|
+
|
|
|
+ printData({id:item.id}).toPromise()
|
|
|
.then((res) => {
|
|
|
- console.log(res)
|
|
|
+ this.printData=res
|
|
|
+ this.isShowPrint=true
|
|
|
})
|
|
|
- this.tableData.code=this.getdate()+item.commonWarehouseNo
|
|
|
- console.log(this.tableData)
|
|
|
- }else{
|
|
|
- this.isShowPrint=true
|
|
|
- this.tableData=item
|
|
|
+ // this.tableData=item
|
|
|
}
|
|
|
},
|
|
|
getdate() {
|