Browse Source

分卷系列

master
ruanqi 4 years ago
parent
commit
affa692c07
  1. 3
      src/api/shopOrder/productionReport.js
  2. 39
      src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue

3
src/api/shopOrder/productionReport.js

@ -26,3 +26,6 @@ export const searchCQCInspectionRecord = data => createAPI(`/productionReport/se
// 查询-产线产量报告(分订单) 订单数据
export const searchReportInOrderNo = data => createAPI(`/productionReport/searchReportInOrderNoData`,'post',data)
// 取消报工
export const cancelReport = data => createAPI(`/productionReport/cancelReport`,'post',data)

39
src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue

@ -169,6 +169,15 @@
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
header-align="center"
align="center"
width="100"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="cancelReport(scope.row)">取消报工</a>
</template>
</el-table-column>
<el-table-column
v-for="(item,index) in columnList2" :key="index"
:sortable="item.columnSortable"
@ -226,7 +235,8 @@
import {
searchReportInOrderNo,
searchItemToBeProduct,
searchProductionLineOutputReport
searchProductionLineOutputReport,
cancelReport
}from "@/api/shopOrder/productionReport.js"
import Chooselist from '@/views/modules/common/Chooselist'
@ -1499,7 +1509,32 @@
this.modelFlag2=true;
})
},
cancelReport(row){
let data={
site:row.site,
orderNo:row.orderNo,
itemNo:row.itemNo,
seqNo:row.seqNo,
}
this.$confirm(`确定取消报工?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
cancelReport(data).then(({data}) => {
if (data && data.code == 200) {
searchReportInOrderNo(this.searchData).then(({data}) => {
this.dataList3=data.rows;
})
this.$message.success( '操作成功')
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
})
},
tableHanddle(row){
console.log(row);
this.modelData=row;

Loading…
Cancel
Save