|
@@ -1357,7 +1357,7 @@
|
|
|
<!-- </el-table-column>-->
|
|
|
<el-table-column header-align="center" align="center" label="操作" width="200px" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click.native.prevent="deleteRow(scope.$index, warehouseDrList)" size="small"
|
|
|
+ <el-button @click.native.prevent="deleteRowTwo(scope.$index, warehouseDrList)" size="small"
|
|
|
:disabled="browseStatus || scope.row.fBillstatus == 6">移除
|
|
|
</el-button>
|
|
|
<el-button size="small" @click="listCheck(scope.row)" v-if="scope.row.fBillstatus < 6"
|
|
@@ -1797,7 +1797,7 @@
|
|
|
<el-table-column header-align="center" align="center" width="200px" label="操作" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-button size="small">审核费用</el-button> -->
|
|
|
- <el-button @click.native.prevent="deleteRow(scope.$index, warehouseCrList)" size="small"
|
|
|
+ <el-button @click.native.prevent="deleteRowTwo(scope.$index, warehouseCrList)" size="small"
|
|
|
:disabled="browseStatus || scope.row.fBillstatus === 6">移除
|
|
|
</el-button>
|
|
|
<el-button size="small" @click="listCheck(scope.row)" v-if="scope.row.fBillstatus < 6"
|
|
@@ -3856,7 +3856,7 @@ import {
|
|
|
importQueryBarcode,
|
|
|
listElabelByfGPid,
|
|
|
queryClerkRoleList,
|
|
|
- saveCode
|
|
|
+ saveCode, warehousebillsfees, warehousebillsitems, warehousecntr
|
|
|
} from '@/api/warehouseBusiness/warehouseInStock'
|
|
|
import { listCharge } from '@/api/system/viewApproval'
|
|
|
import { getDept } from '@/api/basicdata/dept'
|
|
@@ -7779,27 +7779,113 @@ export default {
|
|
|
var obj = {}
|
|
|
this.CntrTable.push(obj)
|
|
|
},
|
|
|
+ deleteRowTwo(index, rows){
|
|
|
+ this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ if (rows[index].fId){
|
|
|
+ warehousebillsfees(rows[index].fId).then(res=>{
|
|
|
+ rows.splice(index, 1);
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ rows.splice(index, 1);
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
deleteRow(index, rows) {
|
|
|
- rows.splice(index, 1)
|
|
|
+ this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ if (rows[index].fId){
|
|
|
+ warehousecntr(rows[index].fId).then(res=>{
|
|
|
+ rows.splice(index, 1)
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ rows.splice(index, 1)
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
wDeleteRow(index, rows) {
|
|
|
- if (this.warehouseDrList && this.warehouseDrList.length > 0) {
|
|
|
- return this.$message.error('收款信息中存在数据,请删除仓储费明细后,继续操作')
|
|
|
- }
|
|
|
- rows.splice(index, 1)
|
|
|
- this.sumMum = 0
|
|
|
- this.detailList.map((e) => {
|
|
|
- if (e.fQty) {
|
|
|
- this.sumMum += e.fQty
|
|
|
+ this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ if (rows[index].fId){
|
|
|
+ if (this.warehouseDrList && this.warehouseDrList.length > 0) {
|
|
|
+ return this.$message.error('收款信息中存在数据,请删除仓储费明细后,继续操作')
|
|
|
+ }
|
|
|
+ warehousebillsitems(rows[index].fId).then(res=>{
|
|
|
+ rows.splice(index, 1)
|
|
|
+ this.sumMum = 0
|
|
|
+ this.detailList.map((e) => {
|
|
|
+ if (e.fQty) {
|
|
|
+ this.sumMum += e.fQty
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (this.detailList.length == 0) {
|
|
|
+ this.form.fProductName = ''
|
|
|
+ this.form.fMarks = ''
|
|
|
+ this.form.fNetweight = 0
|
|
|
+ this.form.fPlanvolumn = 0
|
|
|
+ this.form.fGrossweight = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ if (this.warehouseDrList && this.warehouseDrList.length > 0) {
|
|
|
+ return this.$message.error('收款信息中存在数据,请删除仓储费明细后,继续操作')
|
|
|
+ }
|
|
|
+ rows.splice(index, 1)
|
|
|
+ this.sumMum = 0
|
|
|
+ this.detailList.map((e) => {
|
|
|
+ if (e.fQty) {
|
|
|
+ this.sumMum += e.fQty
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (this.detailList.length == 0) {
|
|
|
+ this.form.fProductName = ''
|
|
|
+ this.form.fMarks = ''
|
|
|
+ this.form.fNetweight = 0
|
|
|
+ this.form.fPlanvolumn = 0
|
|
|
+ this.form.fGrossweight = 0
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
- if (this.detailList.length == 0) {
|
|
|
- this.form.fProductName = ''
|
|
|
- this.form.fMarks = ''
|
|
|
- this.form.fNetweight = 0
|
|
|
- this.form.fPlanvolumn = 0
|
|
|
- this.form.fGrossweight = 0
|
|
|
- }
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
// 收款信息新行
|
|
|
addCollection() {
|