|
@@ -145,10 +145,28 @@
|
|
|
</div>
|
|
|
|
|
|
<i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
- v-if="scope.row.identification1 == 'true'" @click="weightClick(scope.row,2)"></i>
|
|
|
+ v-if="scope.row.identification3 == 'true'" @click="weightClick(scope.row,2)"></i>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width='130' class="table_td" prop="amountIngReceivable" label="应收金额(元)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="inputChenge">
|
|
|
+ <el-input v-model="scope.row.amountIngReceivable" v-if="scope.row.identification3 == 'true'">
|
|
|
+ </el-input>
|
|
|
+ <div v-if="scope.row.identification3 == 'false'" class="inputs">
|
|
|
+ <span>{{scope.row.amountIngReceivable}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style='display:inline-block;' v-if="scope.row.identification3 == '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="whether(scope.row,5)" alt="" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
+ v-if="scope.row.identification3 == 'true'" @click="weightClick(scope.row,5)"></i>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <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 width='120' class="table_td" prop="amountNotReceivable" label="未收金额(元)">
|
|
@@ -252,9 +270,23 @@
|
|
|
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 class="table_td" prop="amountIngReceivable" width='130' label="应收金额(元)">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.returnFlag == null">{{scope.row.amountIngReceivable.toFixed(2) }}</span>
|
|
|
+ <div class="inputChenge">
|
|
|
+ <el-input v-model="scope.row.amountIngReceivable" v-if="scope.row.identification3 == 'true'">
|
|
|
+ </el-input>
|
|
|
+ <div v-if="scope.row.identification3 == 'false'" class="inputs">
|
|
|
+ <span>{{scope.row.amountIngReceivable}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style='display:inline-block;' v-if="scope.row.identification3 == '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="whether(scope.row,5)" alt="" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
+ v-if="scope.row.identification3 == 'true'" @click="weightClick(scope.row,5)"></i>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column class="table_td" prop="amountEdReceivable" label="已收金额(元)">
|
|
@@ -715,15 +747,17 @@
|
|
|
whether(row, flag) {
|
|
|
if (flag == 1) {
|
|
|
row.identification = 'true'
|
|
|
- } else {
|
|
|
+ } else if(flag==5){
|
|
|
+ row.identification3 = 'true'
|
|
|
+ }else {
|
|
|
row.identification1 = 'true'
|
|
|
}
|
|
|
|
|
|
},
|
|
|
weightClick(row, flag) {
|
|
|
if (
|
|
|
- row.settlementWeight > 200 ||
|
|
|
- row.settlementWeight < 1 ||
|
|
|
+ row.settlementWeight > 200&&flag==1 ||
|
|
|
+ row.settlementWeight < 1&&flag==1 ||
|
|
|
(String(row.settlementWeight).indexOf(
|
|
|
'.'
|
|
|
) != -1 &&
|
|
@@ -749,6 +783,13 @@
|
|
|
id: row.id,
|
|
|
flag: flag
|
|
|
}
|
|
|
+ }else if (flag == 5) {
|
|
|
+ title = '确定要修改应收金额?'
|
|
|
+ data = {
|
|
|
+ amountIngReceivable: row.amountIngReceivable,
|
|
|
+ id: row.id,
|
|
|
+ flag: flag
|
|
|
+ }
|
|
|
} else {
|
|
|
title = '确定要修改结算单价?'
|
|
|
data = {
|
|
@@ -771,6 +812,11 @@
|
|
|
title: '成功',
|
|
|
message: '结算重量修改成功',
|
|
|
})
|
|
|
+ }if (flag == 5) {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '应收金额修改成功',
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$notify.success({
|
|
|
title: '成功',
|
|
@@ -1215,8 +1261,10 @@
|
|
|
response.records[i].identification = 'false'
|
|
|
response.records[i].identification1 = 'false'
|
|
|
response.records[i].identification2 = 'false'
|
|
|
+ response.records[i].identification3 = 'false'
|
|
|
if (response.records[i].amountIngReceivable) {
|
|
|
this.amountReceivable += Number(response.records[i].amountIngReceivable.toFixed(2))
|
|
|
+ response.records[i].amountIngReceivable=response.records[i].amountIngReceivable.toFixed(2)
|
|
|
}
|
|
|
if (response.records[i].amountEdReceivable) {
|
|
|
this.amountReceived += Number(response.records[i].amountEdReceivable.toFixed(2))
|