|
|
|
@ -100,11 +100,12 @@ |
|
|
|
<el-table-column |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="80" |
|
|
|
width="120" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a type="text" size="small" v-if="scope.row.status==='ISSUE'" @click="closeNotifyModel(scope.row)">关闭</a> |
|
|
|
<a type="text" size="small" v-if="scope.row.status==='CLOSED'" @click="openNotify(scope.row)">开启</a> |
|
|
|
<a type="text" size="small" v-if="scope.row.pushWcsFlag!=='Y'" @click="pushToWcs(scope.row)" style="margin-left: 10px;">推送WCS</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -270,6 +271,7 @@ |
|
|
|
, deleteNotifyMaterial |
|
|
|
, searchNotifyLogNew |
|
|
|
, searchNotifyLogCloseNew |
|
|
|
, pushNotifyToWcs |
|
|
|
|
|
|
|
} from "@/api/orderIssure/soIssueNotify.js" |
|
|
|
|
|
|
|
@ -1096,6 +1098,33 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
pushToWcs(row){ |
|
|
|
this.$confirm('确认推送到WCS?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let inData={ |
|
|
|
site: row.site, |
|
|
|
notifyNo: row.notifyNo |
|
|
|
} |
|
|
|
pushNotifyToWcs(inData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.searchTable() |
|
|
|
this.$message({ |
|
|
|
message: '推送WCS成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
deleteNotifyMaterial(row){ |
|
|
|
this.$confirm('确认删除?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
|