|
|
|
@ -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; |
|
|
|
|