常熟吴彦祖 4 months ago
parent
commit
c6ad6ca41b
  1. 1
      src/api/orderIssure/soIssueNotify.js
  2. 31
      src/views/modules/orderIssure/searchIssureNotify.vue

1
src/api/orderIssure/soIssueNotify.js

@ -63,6 +63,7 @@ export const searchSumNotifyMaterialListNew = data => createAPI(`/orderIssure/ne
export const updateNotifyStatusNew = data => createAPI(`/orderIssure/newIssure/updateNotifyStatusNew`,'post',data) export const updateNotifyStatusNew = data => createAPI(`/orderIssure/newIssure/updateNotifyStatusNew`,'post',data)
export const searchNotifyLogNew = data => createAPI(`/orderIssure/newIssure/searchNotifyLogNew`,'post',data) export const searchNotifyLogNew = data => createAPI(`/orderIssure/newIssure/searchNotifyLogNew`,'post',data)
export const searchNotifyLogCloseNew = data => createAPI(`/orderIssure/newIssure/searchNotifyLogCloseNew`,'post',data) export const searchNotifyLogCloseNew = data => createAPI(`/orderIssure/newIssure/searchNotifyLogCloseNew`,'post',data)
export const pushNotifyToWcs = data => createAPI(`/orderIssure/newIssure/pushNotifyToWcs`,'post',data)

31
src/views/modules/orderIssure/searchIssureNotify.vue

@ -100,11 +100,12 @@
<el-table-column <el-table-column
header-align="center" header-align="center"
align="center" align="center"
width="80"
width="120"
label="操作"> label="操作">
<template slot-scope="scope"> <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==='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.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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -270,6 +271,7 @@
, deleteNotifyMaterial , deleteNotifyMaterial
, searchNotifyLogNew , searchNotifyLogNew
, searchNotifyLogCloseNew , searchNotifyLogCloseNew
, pushNotifyToWcs
} from "@/api/orderIssure/soIssueNotify.js" } 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){ deleteNotifyMaterial(row){
this.$confirm('确认删除?', '提示', { this.$confirm('确认删除?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

Loading…
Cancel
Save