|
@@ -137,7 +137,32 @@
|
|
" width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
" width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" />
|
|
src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" />
|
|
</template></el-table-column>
|
|
</template></el-table-column>
|
|
|
|
+ <el-table-column width="100" class="table_td" label="服务费(元)" prop="serviceCharge">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-if="
|
|
|
|
+ !scope.row.serviceChargechange && scope.row.serviceCharge
|
|
|
|
+ ">{{ scope.row.serviceCharge }}</span>
|
|
|
|
+ <input v-if="scope.row.serviceChargechange" style="width: 60px" v-model="serviceCharge" type="text" />
|
|
|
|
+ <!--改服务费-->
|
|
|
|
+ <i @click="changeserviceCharge(scope.row)" v-if="
|
|
|
|
+ (scope.row.serviceChargechange &&
|
|
|
|
+ scope.row.status == '待请款') ||
|
|
|
|
+ (scope.row.serviceChargechange &&
|
|
|
|
+ scope.row.status == '已驳回')
|
|
|
|
+ " class="iconfont icon-dui"></i>
|
|
|
|
+ <img v-if="
|
|
|
|
+ (!scope.row.serviceChargechange &&
|
|
|
|
+ scope.row.status == '待请款') ||
|
|
|
|
+ (!scope.row.serviceChargechange &&
|
|
|
|
+ scope.row.status == '已驳回')
|
|
|
|
+ " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
|
+ src="../../../public/img/edit.png" @click="editserviceCharge(scope.row)" alt="" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column width="100" class="table_td" label="实付金额(元)" prop="amountActuallyPaid"></el-table-column>
|
|
|
|
+ <el-table-column width="100" class="table_td" label="税点(元)" prop="taxPoint"></el-table-column>
|
|
<el-table-column width="100" class="table_td" label="应付金额(元)" prop="amountIngPayable"></el-table-column>
|
|
<el-table-column width="100" class="table_td" label="应付金额(元)" prop="amountIngPayable"></el-table-column>
|
|
|
|
+ <el-table-column width="100" class="table_td" label="合计应付(元)" prop="totalPayable"></el-table-column>
|
|
<el-table-column width="100" class="table_td" label="已付金额(元)" prop="amountEdPayable"><template
|
|
<el-table-column width="100" class="table_td" label="已付金额(元)" prop="amountEdPayable"><template
|
|
slot-scope="scope">
|
|
slot-scope="scope">
|
|
<div style="
|
|
<div style="
|
|
@@ -395,6 +420,7 @@ export default {
|
|
isHover: false,
|
|
isHover: false,
|
|
settlementWeightchange: false,
|
|
settlementWeightchange: false,
|
|
deductionAmountchange: false,
|
|
deductionAmountchange: false,
|
|
|
|
+ serviceChargechange: false,
|
|
isShow: !this.autohide,
|
|
isShow: !this.autohide,
|
|
//弹出框
|
|
//弹出框
|
|
dialogViewSpareMoney: false,
|
|
dialogViewSpareMoney: false,
|
|
@@ -550,9 +576,9 @@ export default {
|
|
var m = date.getMonth() + 1;
|
|
var m = date.getMonth() + 1;
|
|
var d = date.getDate();
|
|
var d = date.getDate();
|
|
|
|
|
|
- m = m < 10 ? "0" + m : m;
|
|
|
|
- d = d < 10 ? "0" + d : d;
|
|
|
|
- return y + "-" + m + "-" + d;
|
|
|
|
|
|
+ m = m < 10 ? '0' + m : m;
|
|
|
|
+ d = d < 10 ? '0' + d : d;
|
|
|
|
+ return y + '-' + m + '-' + d;
|
|
},
|
|
},
|
|
selectInit(row) {
|
|
selectInit(row) {
|
|
//在这里一定要记得类型匹配的上。
|
|
//在这里一定要记得类型匹配的上。
|
|
@@ -920,6 +946,48 @@ export default {
|
|
this.deductionAmount = item.deductionAmount
|
|
this.deductionAmount = item.deductionAmount
|
|
item.deductionAmountchange = true
|
|
item.deductionAmountchange = true
|
|
},
|
|
},
|
|
|
|
+ //修改服务费
|
|
|
|
+ changeserviceCharge(item) {
|
|
|
|
+ if (!this.serviceCharge) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '服务费金额不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ (this.serviceCharge &&
|
|
|
|
+ String(this.serviceCharge).indexOf('.') != -1 &&
|
|
|
|
+ String(this.serviceCharge).length -
|
|
|
|
+ (String(this.serviceCharge).indexOf('.') + 1) >
|
|
|
|
+ 2) ||
|
|
|
|
+ (this.serviceCharge && this.serviceCharge > 100000) ||
|
|
|
|
+ (this.serviceCharge && this.serviceCharge < -100000)
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '服务费输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ editauto({
|
|
|
|
+ serviceCharge: this.serviceCharge,
|
|
|
|
+ id: item.id,
|
|
|
|
+ flag: 4,
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('修改服务费成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ .catch((req) => {
|
|
|
|
+ this.$message.warning('修改服务费失败')
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ editserviceCharge(item) {
|
|
|
|
+ this.serviceCharge = item.serviceCharge
|
|
|
|
+ item.serviceChargechange = true
|
|
|
|
+ },
|
|
//装车磅单
|
|
//装车磅单
|
|
lookloadingImg(row) {
|
|
lookloadingImg(row) {
|
|
if (row.loadingImg == null || row.loadingImg == '') {
|
|
if (row.loadingImg == null || row.loadingImg == '') {
|