|
@@ -134,6 +134,7 @@
|
|
<a-button type="primary" icon="import">导入-来源预装箱单</a-button>
|
|
<a-button type="primary" icon="import">导入-来源预装箱单</a-button>
|
|
</a-upload>
|
|
</a-upload>
|
|
<a-button type="primary" icon="download" @click="majorityDelet">批量删除</a-button>
|
|
<a-button type="primary" icon="download" @click="majorityDelet">批量删除</a-button>
|
|
|
|
+ <a-button type="primary" icon="download" @click="majorityPush">批量推送</a-button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- table rowKey="id"-->
|
|
<!-- table rowKey="id"-->
|
|
@@ -189,6 +190,8 @@
|
|
<a-tag color="#f50" v-if="record.pushState =='0'">未推送</a-tag>
|
|
<a-tag color="#f50" v-if="record.pushState =='0'">未推送</a-tag>
|
|
<a-tag color="green" v-if="record.pushState =='1'">推送成功</a-tag>
|
|
<a-tag color="green" v-if="record.pushState =='1'">推送成功</a-tag>
|
|
<a-tag color="red" v-if="record.pushState =='2'">推送失败</a-tag>
|
|
<a-tag color="red" v-if="record.pushState =='2'">推送失败</a-tag>
|
|
|
|
+ <a-tag color="green" v-if="record.pushState == '3'">推送中</a-tag>
|
|
|
|
+ <a-tag color="green" v-if="record.pushState == '4'">不再推送</a-tag>
|
|
<!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
|
|
<!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
|
|
</span>
|
|
</span>
|
|
|
|
|
|
@@ -224,7 +227,8 @@
|
|
<a href="javascript:void(0);" style="color:red;">删除</a>
|
|
<a href="javascript:void(0);" style="color:red;">删除</a>
|
|
</a-popconfirm>
|
|
</a-popconfirm>
|
|
</a-menu-item>
|
|
</a-menu-item>
|
|
- <a-menu-item><a @click="pushU8(record)">推送U8</a></a-menu-item>
|
|
|
|
|
|
+ <a-menu-item v-if="record.pushState!=='4'"><a @click="pushU8(record)">推送U8</a></a-menu-item>
|
|
|
|
+ <a-menu-item v-if="record.pushState!=='4'"><a @click="stopPush(record)">关闭推送</a></a-menu-item>
|
|
</a-menu>
|
|
</a-menu>
|
|
|
|
|
|
<!-- 已提交 -->
|
|
<!-- 已提交 -->
|
|
@@ -232,7 +236,8 @@
|
|
<a-menu-item>
|
|
<a-menu-item>
|
|
<a @click="details(record)">详情</a>
|
|
<a @click="details(record)">详情</a>
|
|
</a-menu-item>
|
|
</a-menu-item>
|
|
- <a-menu-item><a @click="pushU8(record)">推送U8</a></a-menu-item>
|
|
|
|
|
|
+ <a-menu-item v-if="record.pushState!=='4'"><a @click="pushU8(record)">推送U8</a></a-menu-item>
|
|
|
|
+ <a-menu-item v-if="record.pushState!=='4'"><a @click="stopPush(record)">关闭推送</a></a-menu-item>
|
|
<!-- <a-menu-item><a @click="itemXls(record)">导出</a></a-menu-item> -->
|
|
<!-- <a-menu-item><a @click="itemXls(record)">导出</a></a-menu-item> -->
|
|
|
|
|
|
|
|
|
|
@@ -285,7 +290,7 @@ import ReferencePrePacklist from '@views/packing-list/packinglist-clothes/refere
|
|
import clothesAddDrawer from '@views/packing-list/packinglist-clothes/clothesAddDrawer.vue'
|
|
import clothesAddDrawer from '@views/packing-list/packinglist-clothes/clothesAddDrawer.vue'
|
|
import detailsClothesDrawer from '@views/packing-list/packinglist-clothes/detailsClothesDrawer.vue'
|
|
import detailsClothesDrawer from '@views/packing-list/packinglist-clothes/detailsClothesDrawer.vue'
|
|
import editClothesDrawer from '@views/packing-list/packinglist-clothes/editClothesDrawer.vue'
|
|
import editClothesDrawer from '@views/packing-list/packinglist-clothes/editClothesDrawer.vue'
|
|
-import { spltList,deleteSpltList,spltListId,SubmitList,cancelSubmitList,bitchSubmitList,bitchCancelSubmitList,fileDetail,upload,pushOrderData,batchDelete} from '@api/document/packing-list/packinglist-clothes'
|
|
|
|
|
|
+import {bitchPush,cancelPush, spltList,deleteSpltList,spltListId,SubmitList,cancelSubmitList,bitchSubmitList,bitchCancelSubmitList,fileDetail,upload,pushOrderData,batchDelete} from '@api/document/packing-list/packinglist-clothes'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -717,6 +722,38 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.selectedRowKeys = []
|
|
this.selectedRowKeys = []
|
|
|
|
+ },
|
|
|
|
+ //批量推送
|
|
|
|
+ majorityPush(){
|
|
|
|
+ var ids = this.selectedRowKeys.toString()
|
|
|
|
+ bitchPush({ids : ids}).then(res =>{
|
|
|
|
+ this.clothesListData.map(item=>{
|
|
|
|
+ this.selectedRowKeys.map(event=>{
|
|
|
|
+ if(item.id==event){
|
|
|
|
+ item.pushState = '3'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.getSpltList()
|
|
|
|
+ this.selectedRowKeys = []
|
|
|
|
+ this.$message.success('推送成功');
|
|
|
|
+ }else{
|
|
|
|
+ this.getSpltList()
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ stopPush(record){
|
|
|
|
+ cancelPush({id : record.id}).then(res =>{
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.getSpltList()
|
|
|
|
+ this.$message.success('关闭推送成功');
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
pushU8(record){
|
|
pushU8(record){
|
|
pushOrderData({ids : record.id}).then(res =>{
|
|
pushOrderData({ids : record.id}).then(res =>{
|