Browse Source

MES——> 增加SOP预览PDF

master
gaojs 6 months ago
parent
commit
79b4647bfa
  1. 4
      src/api/mes/workScheduling/index.ts
  2. 6
      src/pages/mes/workScheduling/workScheduling.vue

4
src/api/mes/workScheduling/index.ts

@ -40,6 +40,10 @@ export function updateWorkScheduling(params) {
return http.post('/mes/workScheduling/update-status', params)
}
export function getWorkSchedulingPDF(number) {
return http.get('/mes/workScheduling/get-PDF?planMasterCode=' + number)
}
export function getWorkSchedulingDetail(number) {
return http.get('/mes/work-scheduling-detail/get-info?schedulingCode=' + number)
}

6
src/pages/mes/workScheduling/workScheduling.vue

@ -350,6 +350,12 @@ function addBasicItem(item){
}
//SOP
function SOP(item){
workSchedulingListApi.getWorkSchedulingPDF(JSON.stringify(item.planMasterCode)).then((res) => {
//
}).catch(() => {
})
//#ifndef H5
console.log('H5:'+item.planMasterCode)
//#endif

Loading…
Cancel
Save