|
|
|
@ -95,6 +95,9 @@
|
|
|
|
|
<el-button type="warning" plain icon="el-icon-camera" @click="handleqr('')" |
|
|
|
|
>批量查看二维码 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="warning" plain v-if="permission.Self_pickup_receipt" @click="Selfpickupreceipt" |
|
|
|
|
><el-icon><EditPen /></el-icon>批量签收 |
|
|
|
|
</el-button> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
|
ref="tableNodePackageRef" |
|
|
|
@ -196,6 +199,7 @@ import {
|
|
|
|
|
getBillLadingDetail, |
|
|
|
|
getOrderDetail, |
|
|
|
|
$_checkBillLadingIsRelease, |
|
|
|
|
$_batchSign, |
|
|
|
|
} from '@/api/distribution/distrilbutionBillLading'; |
|
|
|
|
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle'; |
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'; |
|
|
|
@ -213,6 +217,7 @@ import { downloadXls, hanleTextLineFeed, setNodeHeight } from '@/utils/util';
|
|
|
|
|
import { exportBlob } from '@/api/common'; |
|
|
|
|
import { dateNow } from '@/utils/date'; |
|
|
|
|
import print from '@/utils/print'; |
|
|
|
|
import error from '@/error'; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -1423,6 +1428,7 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters(['permission']), |
|
|
|
|
|
|
|
|
|
ids() { |
|
|
|
|
let ids = []; |
|
|
|
|
this.selectionList.forEach(ele => { |
|
|
|
@ -1570,6 +1576,56 @@ export default {
|
|
|
|
|
searchChange() { |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
}, |
|
|
|
|
// 自提包件签收 |
|
|
|
|
Selfpickupreceipt(){ |
|
|
|
|
if(!this.selectionList.length){ |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '请勾选要签收的数据', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
console.log(this.selectionList,'this.selectionList'); |
|
|
|
|
ElMessageBox.confirm( |
|
|
|
|
'是否确认操作自提批量签收?', |
|
|
|
|
'提示', |
|
|
|
|
{ |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
.then(() => { |
|
|
|
|
this.loading=true |
|
|
|
|
let data={ |
|
|
|
|
id:this.$route.query.id, |
|
|
|
|
packageIds:this.selectionList.map(item=>item.id).join(',') |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
$_batchSign(data).then(res=>{ |
|
|
|
|
console.log(res,'自提签收成返回值'); |
|
|
|
|
if(res.data.code===200){ |
|
|
|
|
|
|
|
|
|
this.handlePackage(this.packpage) |
|
|
|
|
ElMessage({ |
|
|
|
|
message:res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}).catch(error=>{ |
|
|
|
|
console.log(error,'自提签收失败返回值'); |
|
|
|
|
}).finally(()=>{ |
|
|
|
|
|
|
|
|
|
this.loading=false |
|
|
|
|
}) |
|
|
|
|
console.log(this.selectionList,''); |
|
|
|
|
// handlePackage(this.packpage) |
|
|
|
|
}) |
|
|
|
|
.catch(() => { }) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查看二维码 |
|
|
|
|
async handleqr(val) { |
|
|
|
|
console.log(val, 'val'); |
|
|
|
|