|
@@ -85,13 +85,13 @@
|
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="contractNo" label="合同编号" width="80"></el-table-column>
|
|
|
- <el-table-column prop="goodsSource" label="货源" width="80">
|
|
|
+ <el-table-column prop="contractNo" label="合同编号" width="130"></el-table-column>
|
|
|
+ <el-table-column prop="goodsSource" label="货源" width="130">
|
|
|
<template scope="scope">
|
|
|
<span style='color:#66b1ff;' @click='lookcustomer(scope.row)'>{{scope.row.goodsSource}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="deliveryWarehouse" label="发货库" width="80"></el-table-column>
|
|
|
+ <el-table-column prop="deliveryWarehouse" label="发货库" width="130"></el-table-column>
|
|
|
<!-- <el-table-column prop="customer" label="客户" width="100">
|
|
|
<template scope="scope">
|
|
|
<span @click='lookcustomer(scope.row)'>{{scope.row.customer}}</span>
|
|
@@ -99,7 +99,7 @@
|
|
|
</el-table-column> -->
|
|
|
<el-table-column prop="goodsName" label="货名" width="60">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="inWarehouseWeight1" width="140" class="table_td" label="入库重量(吨)">
|
|
|
+ <el-table-column prop="inWarehouseWeight1" width="120" class="table_td" label="入库重量">
|
|
|
<template scope="scope">
|
|
|
<span v-if='scope.row.weightedit==false&&scope.row.warehouseType==2||scope.row.warehouseType==1'>{{scope.row.inWarehouseWeight1}}</span>
|
|
|
<el-input style='width:80%;' v-if='scope.row.weightedit&&scope.row.warehouseType==2' v-model='scope.row.inWarehouseWeight1'></el-input>
|
|
@@ -109,31 +109,31 @@
|
|
|
src="../../../public/img/edit.png" @click="editWeight(scope.row)" alt="" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="outWarehouseWeight" width="110" class="table_td" label="出库重量(吨)"></el-table-column>
|
|
|
+ <el-table-column prop="outWarehouseWeight" width="80" class="table_td" label="出库重量"></el-table-column>
|
|
|
<el-table-column prop="profitAndLoss" class="table_td" label="盈亏(吨)"></el-table-column>
|
|
|
- <el-table-column prop="surplusWeight" width="110" class="table_td" label="剩余重量(吨)"></el-table-column>
|
|
|
- <el-table-column prop="grainFund" width="100" class="table_td" label="粮款(元)"></el-table-column>
|
|
|
- <el-table-column prop="amountEdPayable" width="100" class="table_td" label="已付(元)">
|
|
|
+ <el-table-column prop="surplusWeight" width="80" class="table_td" label="剩余重量"></el-table-column>
|
|
|
+ <el-table-column prop="grainFund" width="80" class="table_td" label="粮款(元)"></el-table-column>
|
|
|
+ <el-table-column prop="amountEdPayable" width="90" class="table_td" label="已付(元)">
|
|
|
<template scope="scope">
|
|
|
<span >{{scope.row.amountEdPayable}}</span>
|
|
|
<img v-if='scope.row.addressUrl' width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="amountNotPayable" class="table_td" label="未付(元)"></el-table-column>
|
|
|
+ <el-table-column prop="amountNotPayable" width="80" class="table_td" label="未付(元)"></el-table-column>
|
|
|
<el-table-column prop="amountMoney" width="80" class="table_td" label="费用(元)">
|
|
|
<template scope="scope">
|
|
|
<span @click='costclick(scope.row)'>{{scope.row.amountMoney}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="avgCost" width="130" class="table_td" label="平均成本(元/吨)"></el-table-column>
|
|
|
- <el-table-column prop="requestFunds" width="130" class="table_td" label="请款">
|
|
|
+ <el-table-column prop="avgCost" width="90" class="table_td" label="平均成本"></el-table-column>
|
|
|
+ <el-table-column prop="requestFunds" width="130" class="table_td tablerequestFunds" label="请款">
|
|
|
<template scope="scope">
|
|
|
<span v-if="!scope.row.select">{{ scope.row.requestFunds }}</span>
|
|
|
<el-input v-else v-model='scope.row.requestFunds'></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="remark" width="130" class="table_td" label="请款备注">
|
|
|
+ <el-table-column prop="remark" width="80" class="table_td" label="请款备注">
|
|
|
<template scope="scope">
|
|
|
<div v-if="!scope.row.select" @click.stop="lookRemark(scope.row)">
|
|
|
<span class="text_css">查看</span>
|
|
@@ -380,7 +380,8 @@
|
|
|
paymoney,
|
|
|
editwarehousingorder,
|
|
|
getExpense,
|
|
|
- workflowhandle
|
|
|
+ workflowhandle,
|
|
|
+ setExpense
|
|
|
} from '@/model/warehouse/index'
|
|
|
import {getpayeeinfo,getbuypayeeinfo} from '@/model/profitable/index'
|
|
|
import {
|
|
@@ -685,12 +686,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
return
|
|
|
}
|
|
|
_this.dialogTitle=arr1[i].contractNo
|
|
|
- getExpense({contractNo:arr1[i].contractNo,costType:5}).toPromise()
|
|
|
+ getExpense({contractNo:arr1[i].contractNo,compId:this.compId}).toPromise()
|
|
|
.then((response) => {
|
|
|
- _this.form.accumulatedPrepayment=response.accumulatedPrepayment
|
|
|
- _this.form.recoveryPrepayments=response.recoveryPrepayments
|
|
|
- _this.form.distributionEd=response.distributionMoney
|
|
|
- _this.form.distributionCan=response.accumulatedPrepayment-response.recoveryPrepayments-response.distributionMoney
|
|
|
+ _this.form.contractId=response.id
|
|
|
+ _this.form.accumulatedPrepayment=response.accumulatedMargin
|
|
|
+ _this.form.recoveryPrepayments=response.withdrawalOfMargin
|
|
|
+ _this.form.distributionEd=response.allocatedMargin
|
|
|
+ _this.form.distributionCan=response.accumulatedMargin-response.withdrawalOfMargin-response.allocatedMargin
|
|
|
_this.form.distributionNot=arr1[i].amountNotPayable
|
|
|
this.currectdata=currectData
|
|
|
this.marginshow=true
|
|
@@ -751,12 +753,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
return
|
|
|
}
|
|
|
_this.dialogTitle=arr1[i].contractNo
|
|
|
- getExpense({contractNo:arr1[i].contractNo,costType:1}).toPromise()
|
|
|
+ getExpense({contractNo:arr1[i].contractNo,compId:this.compId}).toPromise()
|
|
|
.then((response) => {
|
|
|
+ _this.form.contractId=response.id
|
|
|
_this.form.accumulatedPrepayment=response.accumulatedPrepayment
|
|
|
- _this.form.recoveryPrepayments=response.recoveryPrepayments
|
|
|
- _this.form.distributionEd=response.distributionMoney
|
|
|
- _this.form.distributionCan=response.accumulatedPrepayment-response.recoveryPrepayments-response.distributionMoney
|
|
|
+ _this.form.recoveryPrepayments=response.accumulatedRecovery
|
|
|
+ _this.form.distributionEd=response.prepaidAssigned
|
|
|
+ _this.form.distributionCan=response.accumulatedPrepayment-response.accumulatedRecovery-response.prepaidAssigned
|
|
|
_this.form.distributionNot=arr1[i].amountNotPayable
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
@@ -954,7 +957,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- paymoney({flag:3,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
+ paymoney({flag:3,money:this.form.distributionIng,warehousingOrderList:arr2,contractId:this.form.contractId}).toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message({
|
|
|
message: '分配成功',
|
|
@@ -998,7 +1001,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- paymoney({flag:2,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
+ paymoney({flag:2,money:this.form.distributionIng,warehousingOrderList:arr2,contractId:this.form.contractId}).toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message({
|
|
|
message: '分配成功',
|
|
@@ -1490,4 +1493,10 @@ multiFilter(array, filters) {
|
|
|
height:100px;
|
|
|
line-height:100px;
|
|
|
}
|
|
|
+/deep/.el-table .cell .el-input {
|
|
|
+ padding:10px;
|
|
|
+}
|
|
|
+// /deep/.el-table .cell{
|
|
|
+// padding:0;
|
|
|
+// }
|
|
|
</style>
|