|
@@ -805,7 +805,10 @@ export default {
|
|
|
push(record) {
|
|
|
console.log('推送id:', record.id)
|
|
|
this.$nextTick(() => {
|
|
|
- pushShipment({ id: record.id }).then(res => {
|
|
|
+ if(this.queryParam.flourOrGarment == '1'){
|
|
|
+ this.$message.error("成衣不可推送!")
|
|
|
+ }else {
|
|
|
+ pushShipment({ id: record.id }).then(res => {
|
|
|
if (res.success) {
|
|
|
console.log('推送成功,推送状态【推送成功】')
|
|
|
this.shipmentListData.pushState = '1'
|
|
@@ -815,6 +818,8 @@ export default {
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
|
})
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -822,9 +827,11 @@ export default {
|
|
|
rePush(record) {
|
|
|
console.log('重新推送record:', record)
|
|
|
this.$nextTick(() => {
|
|
|
- rePushShipment({ id: record.id }).then(res => {
|
|
|
+ if(this.queryParam.flourOrGarment == '1'){
|
|
|
+ this.$message.error("成衣不可推送!")
|
|
|
+ }else {
|
|
|
+ rePushShipment({ id: record.id }).then(res => {
|
|
|
if (res.success) {
|
|
|
- console.log(res)
|
|
|
console.log('重新推送成功,推送状态【推送成功】')
|
|
|
this.shipmentListData.pushState = '1'
|
|
|
this.getShipmentList() // 渲染 发运明细列表
|
|
@@ -833,6 +840,8 @@ export default {
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
|
})
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|