|
@@ -107,6 +107,7 @@
|
|
|
<a-button type="primary" icon="import">导入-来源出运明细</a-button>
|
|
|
</a-upload>
|
|
|
<a-button type="primary" @click="synchronization" icon="reload">同步</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="majorityDelet">批量删除</a-button>
|
|
|
</div>
|
|
|
|
|
|
<!-- 子表 :scroll="{ x: 1500 }" 内容少 无需滚动-->
|
|
@@ -214,7 +215,7 @@ import moment from 'moment'
|
|
|
import addFabricDrawer from '@views/packing-list/packinglist-fabrics/addFabricDrawer.vue'
|
|
|
import detailsFabricDrawer from '@views/packing-list/packinglist-fabrics/detailsFabricDrawer.vue'
|
|
|
import editFabricDrawer from '@views/packing-list/packinglist-fabrics/editFabricDrawer.vue'
|
|
|
-import { fabricList,fabricListId,deleteFabricList,submitList,cancelSubmit,bitchSubmit,bitchCancelSubmit,synchronizationData,upload,fileDetail,pushOrderData} from '@api/document/packing-list/packinglist-fabrics'
|
|
|
+import { fabricList,fabricListId,deleteFabricList,submitList,batchDelete,cancelSubmit,bitchSubmit,bitchCancelSubmit,synchronizationData,upload,fileDetail,pushOrderData} from '@api/document/packing-list/packinglist-fabrics'
|
|
|
|
|
|
export default {
|
|
|
name: 'FabricList', // 装箱单-面料
|
|
@@ -697,6 +698,19 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ majorityDelet(){
|
|
|
+ var ids = this.selectedRowKeys.toString()
|
|
|
+ batchDelete({ ids: ids }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success('批量删除成功');
|
|
|
+ this.getFabricList()
|
|
|
+ }else {
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selectedRowKeys = []
|
|
|
+ },
|
|
|
// --------------------------------------
|
|
|
// ??
|
|
|
modalFormOk() {},
|