|
@@ -62,9 +62,9 @@
|
|
|
<el-col style='text-align:right;' :span="12">
|
|
|
<!-- <ws-button v-hasPermission="
|
|
|
`warehouseManagement.warehousingOrder.yufu`" type="primary" @click="interestrate()" >{{interestratevalue.value}}利率</ws-button> -->
|
|
|
- <!-- <ws-button type="primary" @click="awatingransom()">待赎回</ws-button>
|
|
|
+ <ws-button type="primary" @click="awatingransom()">待赎回</ws-button>
|
|
|
<ws-button type="primary" @click="editRollout()">修改赎回状态</ws-button>
|
|
|
- <ws-button type="primary" @click="goodrollOut()">货权转出</ws-button> -->
|
|
|
+ <ws-button type="primary" @click="goodrollOut()">货权转出</ws-button>
|
|
|
<ws-button type="primary" @click="exportList()">导出</ws-button>
|
|
|
<ws-button v-hasPermission="
|
|
|
`warehouseManagement.warehousingOrder.yufu`" type="primary" @click="fieldrations()">折干</ws-button>
|
|
@@ -166,7 +166,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="outWarehouseWeight" width="80" class="table_td" label="出库重量"></el-table-column>
|
|
|
- <!-- <el-table-column prop="transferOutWeight" width="200" class="table_td" label="转出">
|
|
|
+ <el-table-column prop="transferOutWeight" width="200" class="table_td" label="转出">
|
|
|
<template scope="scope">
|
|
|
<el-popover v-if="scope.row.transferOutWeight>0"
|
|
|
placement="top-start"
|
|
@@ -177,7 +177,7 @@
|
|
|
</el-popover>
|
|
|
<span v-else>{{ scope.row.transferOutWeight }}</span>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="profitAndLoss" class="table_td" label="盈亏(吨)"></el-table-column>
|
|
|
<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>
|
|
@@ -1027,6 +1027,7 @@ export default {
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
async goodrollOut(){
|
|
|
+ console.log(11111111111111)
|
|
|
var concatarr=[]
|
|
|
var arr=[]
|
|
|
var arr3=[]
|
|
@@ -1041,18 +1042,16 @@ export default {
|
|
|
for (const key in this.multipleSelection1) {
|
|
|
var array = this.multipleSelection1[key]
|
|
|
for (let i = 0; i < array.length; i++) {
|
|
|
- if(array[i].amountEdPayable == 0 && !array[i].approveStatus||array[i].amountEdPayable == array[i].grainFund && !array[i].approveStatus){
|
|
|
+ if(array[i].amountEdPayable == 0 && !array[i].approveStatus&&array[i].redeemFlag!='赎'||array[i].amountEdPayable == array[i].grainFund && !array[i].approveStatus&&array[i].redeemFlag!='赎'){
|
|
|
arr.push(array[i])
|
|
|
- }else{
|
|
|
- this.$message.error('请选择已付全款或未请款的条目!')
|
|
|
+ }else if(rray[i].redeemFlag=='赎'){
|
|
|
+ this.$message.error('请选择未货权转出的条目!')
|
|
|
return
|
|
|
- }
|
|
|
- if(array[i].redeemFlag!='赎'){
|
|
|
- arr.push(array[i])
|
|
|
}else{
|
|
|
- this.$message.error('请选择未货权转出的条目!')
|
|
|
+ this.$message.error('请选择已付全款或未请款的条目!')
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
if (arr3.length == 0) {
|
|
|
arr3.push(array[i])
|
|
|
} else {
|
|
@@ -1108,6 +1107,7 @@ export default {
|
|
|
this.rolloutData.amountEdPayable=0
|
|
|
this.rolloutData.amountNotPayable=0
|
|
|
this.rolloutData.amountIngPayable=0
|
|
|
+ console.log(arr)
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
this.rolloutData.transferOutWeight+=Number(arr[i].surplusWeight)
|
|
|
this.rolloutData.amountEdPayable+=Number(arr[i].amountEdPayable)
|