|
@@ -50,14 +50,14 @@
|
|
>
|
|
>
|
|
<i class="upload2"></i>批量上传
|
|
<i class="upload2"></i>批量上传
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button
|
|
|
|
|
|
+ <el-button
|
|
type="primary"
|
|
type="primary"
|
|
@click="batchDeleteFirst"
|
|
@click="batchDeleteFirst"
|
|
v-if="activeName == 'first'"
|
|
v-if="activeName == 'first'"
|
|
>
|
|
>
|
|
<i class="upload2"></i>批量删除
|
|
<i class="upload2"></i>批量删除
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button
|
|
|
|
|
|
+ <el-button
|
|
type="primary"
|
|
type="primary"
|
|
@click="batchDeleteSecond"
|
|
@click="batchDeleteSecond"
|
|
v-if="activeName == 'second'"
|
|
v-if="activeName == 'second'"
|
|
@@ -359,7 +359,7 @@ export default {
|
|
matSum1: null,
|
|
matSum1: null,
|
|
matSum2: null,
|
|
matSum2: null,
|
|
tableData: [],
|
|
tableData: [],
|
|
- secondList:[],
|
|
|
|
|
|
+ secondList: [],
|
|
saleDateOfReceipt: null,
|
|
saleDateOfReceipt: null,
|
|
//销售订单主表数据
|
|
//销售订单主表数据
|
|
saleOrderList: [
|
|
saleOrderList: [
|
|
@@ -819,10 +819,10 @@ export default {
|
|
.post('/api/v1/ams/addSteelSaleOrderList', saleOrderListMap)
|
|
.post('/api/v1/ams/addSteelSaleOrderList', saleOrderListMap)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == '200') {
|
|
if (res.data.code == '200') {
|
|
- loading.close()
|
|
|
|
this.getRequestUrl()
|
|
this.getRequestUrl()
|
|
- this.$message.success('新增销售订单成功!')
|
|
|
|
this.tableData = []
|
|
this.tableData = []
|
|
|
|
+ loading.close()
|
|
|
|
+ this.$message.success('新增销售订单成功!')
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.data.data)
|
|
this.$message.error(res.data.data)
|
|
this.getRequestUrl()
|
|
this.getRequestUrl()
|
|
@@ -1093,8 +1093,8 @@ export default {
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == '200') {
|
|
if (res.data.code == '200') {
|
|
this.$message.success('上传成功')
|
|
this.$message.success('上传成功')
|
|
- loading.close()
|
|
|
|
this.getRequestUrl()
|
|
this.getRequestUrl()
|
|
|
|
+ loading.close()
|
|
} else {
|
|
} else {
|
|
this.$message.error('上传失败')
|
|
this.$message.error('上传失败')
|
|
loading.close()
|
|
loading.close()
|
|
@@ -1109,13 +1109,13 @@ export default {
|
|
console.log(selection)
|
|
console.log(selection)
|
|
this.batchReportList = []
|
|
this.batchReportList = []
|
|
this.batchReportList = selection
|
|
this.batchReportList = selection
|
|
- console.log("firstList:",this.batchReportList)
|
|
|
|
|
|
+ console.log('firstList:', this.batchReportList)
|
|
},
|
|
},
|
|
- selectionChange2(selection){
|
|
|
|
|
|
+ selectionChange2(selection) {
|
|
console.log(selection)
|
|
console.log(selection)
|
|
this.secondList = []
|
|
this.secondList = []
|
|
this.secondList = selection
|
|
this.secondList = selection
|
|
- console.log("secondList:",this.secondList)
|
|
|
|
|
|
+ console.log('secondList:', this.secondList)
|
|
},
|
|
},
|
|
refresh() {
|
|
refresh() {
|
|
this.getRequestUrl()
|
|
this.getRequestUrl()
|
|
@@ -1301,9 +1301,9 @@ export default {
|
|
center: true
|
|
center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- let rows=[];
|
|
|
|
- rows.push(scope);
|
|
|
|
- this.batchDelete(rows);
|
|
|
|
|
|
+ let rows = []
|
|
|
|
+ rows.push(scope)
|
|
|
|
+ this.batchDelete(rows)
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1312,12 +1312,12 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- batchDeleteFirst(){
|
|
|
|
- let rows=this.batchReportList;
|
|
|
|
- console.log("rows:",rows);
|
|
|
|
- if(!rows || rows.length<=0){
|
|
|
|
- this.$message.warning("请选中订单!");
|
|
|
|
- return;
|
|
|
|
|
|
+ batchDeleteFirst() {
|
|
|
|
+ let rows = this.batchReportList
|
|
|
|
+ console.log('rows:', rows)
|
|
|
|
+ if (!rows || rows.length <= 0) {
|
|
|
|
+ this.$message.warning('请选中订单!')
|
|
|
|
+ return
|
|
}
|
|
}
|
|
this.$confirm('是否删除', '提示', {
|
|
this.$confirm('是否删除', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -1326,7 +1326,7 @@ export default {
|
|
center: true
|
|
center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.batchDelete(rows);
|
|
|
|
|
|
+ this.batchDelete(rows)
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1335,12 +1335,12 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- batchDeleteSecond(){
|
|
|
|
- let rows=this.secondList;
|
|
|
|
- console.log("rows:",rows);
|
|
|
|
- if(!rows || rows.length<=0){
|
|
|
|
- this.$message.warning("请选中订单!");
|
|
|
|
- return;
|
|
|
|
|
|
+ batchDeleteSecond() {
|
|
|
|
+ let rows = this.secondList
|
|
|
|
+ console.log('rows:', rows)
|
|
|
|
+ if (!rows || rows.length <= 0) {
|
|
|
|
+ this.$message.warning('请选中订单!')
|
|
|
|
+ return
|
|
}
|
|
}
|
|
this.$confirm('是否删除', '提示', {
|
|
this.$confirm('是否删除', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -1349,7 +1349,7 @@ export default {
|
|
center: true
|
|
center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.batchDelete(rows);
|
|
|
|
|
|
+ this.batchDelete(rows)
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1358,20 +1358,18 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- batchDelete(rows){
|
|
|
|
- this.axios
|
|
|
|
- .post(
|
|
|
|
- '/api/v1/ams/deleteAmsSaleOrderBySaleOrderId',rows
|
|
|
|
- )
|
|
|
|
- .then(res => {
|
|
|
|
- if (res.data.code == '200') {
|
|
|
|
- this.$message.success('删除成功')
|
|
|
|
- this.getRequestUrl()
|
|
|
|
- } else {
|
|
|
|
- this.$message.success('删除失败')
|
|
|
|
- this.getRequestUrl()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ batchDelete(rows) {
|
|
|
|
+ this.axios
|
|
|
|
+ .post('/api/v1/ams/deleteAmsSaleOrderBySaleOrderId', rows)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == '200') {
|
|
|
|
+ this.$message.success('删除成功')
|
|
|
|
+ this.getRequestUrl()
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.success('删除失败')
|
|
|
|
+ this.getRequestUrl()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|