| | |
| | | { |
| | | 'name': '反审',status: 'primary', |
| | | 'code':'rework' |
| | | }, |
| | | { |
| | | 'name': '作废',status: 'primary', |
| | | 'code':'cancel' |
| | | }], |
| | | /*import: false, |
| | | export: true, |
| | |
| | | router.push({path: '/main/productStock/ReworkRecord'}); |
| | | return |
| | | } |
| | | case 'cancel': { |
| | | const $table = xGrid.value |
| | | //gridOptions.columns.unshift(a) |
| | | if ($table) { |
| | | const selectRecords = $table.getCheckboxRecords() |
| | | |
| | | let flowData = ref({ |
| | | |
| | | userId:userid, |
| | | userName:username, |
| | | orderDetail:selectRecords |
| | | |
| | | }) |
| | | console.log(flowData) |
| | | request.post("/FinishedGoodsInventory/cancelFinishedGoodsInventoryToExamine",flowData.value).then((res) => { |
| | | if(res.code==200){ |
| | | ElMessage.success("作废成功") |
| | | router.push({path:'/main/productStock/TakeOutRecord',query:{random:Math.random()}}) |
| | | |
| | | }else{ |
| | | ElMessage.warning(res.msg) |
| | | router.push("/login") |
| | | } |
| | | }) |
| | | } |
| | | return; |
| | | |
| | | } |
| | | |
| | | |
| | | } |