|
@@ -10,6 +10,8 @@
|
|
|
</ws-button>
|
|
|
<ws-button type="primary" v-hasPermission="`report.goodsSaleOutReport.payment`" @click="handlecollect()">收款
|
|
|
</ws-button>
|
|
|
+ <ws-button type="primary" v-hasPermission="`report.goodsSaleOutReport.payment`" @click="handleinvoice()">开发票
|
|
|
+ </ws-button>
|
|
|
</el-col>
|
|
|
<el-col style="text-align: right; line-height: 60px; padding-right: 10px" :span="8">
|
|
|
<el-select v-model="contractNo" placeholder="请选择合同" clearable filterable @change="contractchange"
|
|
@@ -96,11 +98,30 @@
|
|
|
<span>-{{scope.row.netWeight }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="unloadingWeight" label="卸车净重(吨)"
|
|
|
+ <el-table-column width='120' class="table_td" prop="unloadingWeight" label="卸车净重(吨)"
|
|
|
v-if="this.tranType=='汽运'||this.tranType=='火运'"></el-table-column>
|
|
|
<el-table-column v-else-if="this.tranType=='散船'||this.tranType=='箱船'" class="table_td" prop="unloadingWeight"
|
|
|
label="卸船净重(吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="settlementWeight" label="结算重量(吨)"></el-table-column>
|
|
|
+ <el-table-column width='120' class="table_td" prop="feedbackWeight" label="反馈重量(吨)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="inputChenge">
|
|
|
+ <el-input v-model="scope.row.feedbackWeight" v-if="scope.row.identification2 == 'true'">
|
|
|
+ </el-input>
|
|
|
+ <div v-if="scope.row.identification2 == 'false'" class="inputs">
|
|
|
+ <span>{{scope.row.feedbackWeight}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style='display:inline-block;' v-if="scope.row.identification2 == 'false'">
|
|
|
+ <img v-hasPermission="`report.goodsSaleOutReport.edit`" width="17" height="18"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
|
|
|
+ @click="weightedit(scope.row)" alt="" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
+ v-if="scope.row.identification2 == 'true'" @click="weightsave(scope.row,4)"></i>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width='120' class="table_td" prop="settlementWeight" label="结算重量(吨)"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="settlementPrice" width='130' label="结算单价(元/吨)">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="inputChenge">
|
|
@@ -119,10 +140,22 @@
|
|
|
<i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
v-if="scope.row.identification1 == 'true'" @click="weightClick(scope.row,2)"></i>
|
|
|
</template></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="amountIngReceivable" label="应收金额(元)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="amountEdReceivable" label="已收金额(元)">
|
|
|
+ <el-table-column width='120' class="table_td" prop="amountIngReceivable" label="应收金额(元)"></el-table-column>
|
|
|
+ <el-table-column width='120' class="table_td" prop="amountEdReceivable" label="已收金额(元)">
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="amountNotReceivable" label="未收金额(元)">
|
|
|
+ <el-table-column width='120' class="table_td" prop="alreadyInvoice" label=" 已开发票(元)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="inputChenge">
|
|
|
+ <div class="inputs">
|
|
|
+ <span>{{scope.row.alreadyInvoice}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style='display:inline-block;'>
|
|
|
+ <img width="17" height="18"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
|
|
|
+ @click="invoiceedit(scope.row)" alt="" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column class="table_td" prop="collectionDate" label="收款日期">
|
|
|
</el-table-column>
|
|
@@ -152,6 +185,7 @@
|
|
|
<span @click='fujian2(scope.row)' v-if="scope.row.returnFlag == null">{{scope.row.netWeight }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
<el-table-column class="table_td" prop="settlementWeight" label="结算重量(吨)">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="inputChenge">
|
|
@@ -172,6 +206,25 @@
|
|
|
v-if="scope.row.identification == 'true'" @click="weightClick(scope.row,1)"></i>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column width='120' class="table_td" prop="feedbackWeight" label="反馈重量(吨)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="inputChenge">
|
|
|
+ <el-input v-model="scope.row.feedbackWeight" v-if="scope.row.identification2 == 'true'">
|
|
|
+ </el-input>
|
|
|
+ <div v-if="scope.row.identification2 == 'false'" class="inputs">
|
|
|
+ <span>{{scope.row.feedbackWeight}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style='display:inline-block;' v-if="scope.row.identification2 == 'false'">
|
|
|
+ <img width="17" height="18"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
|
|
|
+ @click="weightedit(scope.row)" alt="" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
+ v-if="scope.row.identification2 == 'true'" @click="weightsave(scope.row,4)"></i>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column class="table_td" prop="settlementPrice" width='130' label="结算单价(元/吨)">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="inputChenge">
|
|
@@ -205,6 +258,20 @@
|
|
|
<span v-if="scope.row.returnFlag == null">{{scope.row.amountNotReceivable.toFixed(2) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column width='120' class="table_td" prop="alreadyInvoice" label=" 已开发票(元)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="inputChenge">
|
|
|
+ <div class="inputs">
|
|
|
+ <span>{{scope.row.alreadyInvoice}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style='display:inline-block;'>
|
|
|
+ <img width="17" height="18"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
|
|
|
+ @click="invoiceedit(scope.row)" alt="" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column class="table_td" prop="collectionDate" label="收款日期">
|
|
|
</el-table-column>
|
|
|
<el-table-column class="table_td" prop="status" label="状态">
|
|
@@ -233,11 +300,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</WinseaContentModal>
|
|
|
- <WinseaContentModal v-model="accessoryTFs2" :title="$t('system.noticeCircular.information')"
|
|
|
- @on-cancel="handleClose">
|
|
|
- <img width="100" height="100" :src="appendixIdss2" alt="">
|
|
|
- </WinseaContentModal>
|
|
|
- <!-- 收款 -->
|
|
|
+ <!-- 已收弹窗 -->
|
|
|
<el-dialog width="25%" title="收款" :visible.sync="dialogFormVisible1" :append-to-body="true">
|
|
|
<el-form :model="form">
|
|
|
<el-form-item label="未收金额(元)" :label-width="formLabelWidth" prop="amountNotReceivable">
|
|
@@ -263,6 +326,26 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <WinseaContentModal v-model="accessoryTFs2" :title="$t('system.noticeCircular.information')"
|
|
|
+ @on-cancel="handleClose">
|
|
|
+ <img width="100" height="100" :src="appendixIdss2" alt="">
|
|
|
+ </WinseaContentModal>
|
|
|
+ <!-- 收款 -->
|
|
|
+ <el-dialog width="25%" title="开发票" :visible.sync="dialogFormVisible3" :append-to-body="true">
|
|
|
+ <el-form :model="form">
|
|
|
+ <el-form-item label="可开发票金额(元)" :label-width="formLabelWidth" prop="amountNotReceivable">
|
|
|
+ <span>{{ activeinvoice }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="本次收款金额(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="money" autocomplete="off" placeholder="请输入本次收款金额" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible3 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="Invoicing()">提 交
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<!-- 定金 -->
|
|
|
<el-dialog width="25%" title="定金" :visible.sync="dialogFormVisible2" :append-to-body="true">
|
|
|
<el-form :model="form">
|
|
@@ -304,6 +387,7 @@
|
|
|
stockSaleCollectMoney,
|
|
|
disOrRemarks,
|
|
|
saleEditSettlementWeight,
|
|
|
+ editSettlementWeightStock
|
|
|
} from '@/model/statisticalReport/index'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
@@ -339,7 +423,9 @@
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
allmoney1: 0,
|
|
|
+ dialogFormVisible3:false,
|
|
|
deptCircularPage: {},
|
|
|
+ identification2:false,
|
|
|
deptBudgetTotal: 0,
|
|
|
uncollectedAmount1: 0,
|
|
|
stockSaleReceiptReportList: [],
|
|
@@ -358,6 +444,7 @@
|
|
|
contractNo: '',
|
|
|
dialogVisible: false,
|
|
|
form: {},
|
|
|
+ id:0,
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
collectForm: false,
|
|
|
collectForm1: false,
|
|
@@ -396,6 +483,7 @@
|
|
|
modification: [],
|
|
|
accessoryTFs: false,
|
|
|
appendixIdss: [],
|
|
|
+ activeinvoice:0,
|
|
|
accessoryTFs1: false,
|
|
|
appendixIdss1: [],
|
|
|
appendixIdss2: '',
|
|
@@ -417,6 +505,42 @@
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+ invoiceedit(item){
|
|
|
+ this.activeinvoice=item.amountEdReceivable-item.alreadyInvoice
|
|
|
+ this.id=item.id
|
|
|
+ this.dialogFormVisible3=true
|
|
|
+ },
|
|
|
+ Invoicing(){
|
|
|
+ editSettlementWeightStock({flag:3,id:item.id}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '提交成功',
|
|
|
+ })
|
|
|
+ this.dialogFormVisible3=false
|
|
|
+ this.getList(this.orderList.deliverType)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.$notify.warning({
|
|
|
+ title: '失败',
|
|
|
+ message: '提交失败',
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ weightedit(item){
|
|
|
+ item.identification2='true'
|
|
|
+ },
|
|
|
+ weightsave(item,flag){
|
|
|
+ editSettlementWeightStock({flag:flag,feedbackWeight:item.feedbackWeight,id:item.id}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '修改重量修改成功',
|
|
|
+ })
|
|
|
+ item.identification2=false
|
|
|
+ this.getList(this.orderList.deliverType)
|
|
|
+ })
|
|
|
+ },
|
|
|
tableRowClassName({
|
|
|
row,
|
|
|
rowIndex
|
|
@@ -630,9 +754,9 @@
|
|
|
if (index === 0) {
|
|
|
sums[index] = '合计'
|
|
|
} else if (
|
|
|
- index === 8 ||
|
|
|
index === 10 ||
|
|
|
index === 11 ||
|
|
|
+ index === 13 ||
|
|
|
index === 12
|
|
|
) {
|
|
|
const values = data.map((item) => Number(item[column.property]))
|
|
@@ -659,7 +783,7 @@
|
|
|
index === 11 ||
|
|
|
index === 9 ||
|
|
|
index === 10 ||
|
|
|
- index === 7
|
|
|
+ index === 8
|
|
|
) {
|
|
|
const values = data.map((item) => Number(item[column.property]))
|
|
|
if (!values.every((value) => isNaN(value))) {
|
|
@@ -682,7 +806,7 @@
|
|
|
sums[index] = '合计'
|
|
|
} else if (
|
|
|
index === 11 ||
|
|
|
- index === 9 ||
|
|
|
+ index === 10 ||
|
|
|
index === 13 ||
|
|
|
index === 12
|
|
|
) {
|
|
@@ -709,7 +833,7 @@
|
|
|
index === 11 ||
|
|
|
index === 12 ||
|
|
|
index === 10 ||
|
|
|
- index === 8
|
|
|
+ index === 9
|
|
|
) {
|
|
|
const values = data.map((item) => Number(item[column.property]))
|
|
|
if (!values.every((value) => isNaN(value))) {
|
|
@@ -933,6 +1057,7 @@
|
|
|
for (var i = 0; i < response.records.length; i++) {
|
|
|
response.records[i].identification = 'false'
|
|
|
response.records[i].identification1 = 'false'
|
|
|
+ response.records[i].identification2 = 'false'
|
|
|
if (response.records[i].amountIngReceivable) {
|
|
|
this.amountReceivable += Number(response.records[i].amountIngReceivable.toFixed(2))
|
|
|
}
|