|
@@ -160,6 +160,7 @@
|
|
|
<a-button type="primary" @click="batchSubmit" icon="check">批量提交</a-button>
|
|
|
<a-button type="primary" @click="batchCanelSubmit" icon="close">批量取消提交</a-button>
|
|
|
<a-button type="primary" @click="batchPush" icon="export">批量推送</a-button>
|
|
|
+ <a-button type="primary" @click="majorityDelet" icon="export">批量删除</a-button>
|
|
|
</div>
|
|
|
|
|
|
<!-- table rowKey="id" -->
|
|
@@ -327,7 +328,7 @@ import { downFile } from '@/api/manage'
|
|
|
import addAdpackingDrawer from '@views/advance-packingList/addAdpackingDrawer.vue'
|
|
|
import detailsAdpackingDrawer from '@views/advance-packingList/detailsAdpackingDrawer.vue'
|
|
|
|
|
|
-import { getadPaList, itemByMainId, submit, cancelSubmit, deleteAdPaList,batchSubmit,batchPush,push,batchCanelSubmit,exportList,fileDetail,upload} from '@api/document/advance-packingList.js'
|
|
|
+import { getadPaList, itemByMainId, submit, cancelSubmit, deleteAdPaList,batchSubmit,deleteBatch,batchPush,push,batchCanelSubmit,exportList,fileDetail,upload} from '@api/document/advance-packingList.js'
|
|
|
|
|
|
export default {
|
|
|
productName: 'AdPaListClothes', // 预装箱单-成衣
|
|
@@ -985,6 +986,19 @@ export default {
|
|
|
this.selectedRowKeys = []
|
|
|
})
|
|
|
},
|
|
|
+ //批量删除
|
|
|
+ majorityDelet(){
|
|
|
+ var ids = this.selectedRowKeys.toString()
|
|
|
+ deleteBatch({ ids: ids }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success('批量删除成功');
|
|
|
+ this.getadPaListClothes()
|
|
|
+ }else {
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selectedRowKeys = []
|
|
|
+ },
|
|
|
|
|
|
//推送
|
|
|
push(record){
|