|
@@ -1450,8 +1450,7 @@
|
|
|
type="text"
|
|
|
@click.native.prevent="wDeleteRow(scope.$index, detailList)"
|
|
|
size="small"
|
|
|
- >移除</el-button
|
|
|
- >
|
|
|
+ >移除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -2989,7 +2988,12 @@ import { addSet, select, resetModule } from "@/api/system/set";
|
|
|
import upLoad from "../components/upLoad";
|
|
|
import draggable from "vuedraggable";
|
|
|
import { getDept } from "@/api/basicdata/dept";
|
|
|
-import { listElabelByfGPid, queryClerkRoleList } from '@/api/warehouseBusiness/warehouseInStock'
|
|
|
+import {
|
|
|
+ listElabelByfGPid,
|
|
|
+ queryClerkRoleList,
|
|
|
+ warehousebillsfees, warehousebillsitems,
|
|
|
+ warehousecntr
|
|
|
+} from '@/api/warehouseBusiness/warehouseInStock'
|
|
|
import incomeMoney from '../components/incomeMoney'
|
|
|
import payMoney from '../components/payMoney'
|
|
|
export default {
|
|
@@ -5547,23 +5551,86 @@ export default {
|
|
|
this.CntrTable.push(obj);
|
|
|
},
|
|
|
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) {
|
|
|
- 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){
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
}
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
});
|
|
|
- if (this.detailList.length == 0) {
|
|
|
- this.form.fProductName = "";
|
|
|
- this.form.fMarks = "";
|
|
|
- this.form.fNetweight = 0;
|
|
|
- this.form.fPlanvolumn = 0;
|
|
|
- this.form.fGrossweight = 0;
|
|
|
- }
|
|
|
},
|
|
|
// 收款信息新行
|
|
|
addCollection() {
|