This commit is contained in:
liushuai
2020-01-08 20:04:29 +08:00
parent 005652b855
commit 9dc1d181af
5 changed files with 65 additions and 35 deletions

View File

@@ -110,3 +110,22 @@ export function submitEdit(Number1, completetime, processSerialNumber) {
}
})
}
export function getExport(num) {
return request({
url: '',
method: 'post',
data: {
type: '3',
name: `select s1.* from (
select a1.*, row_number() over (partition by 工艺计划流水号 order
by 工序顺序) as group_idx
from (select TOP 100 PERCENT 零件图号,工艺计划流水号,机床流水号,工序顺序,工艺名称,材料,零件名称,投产数量,组号,机床图号 from dbo.车间生产管理工艺_零件工序_视图
where 考核状态 =6 and 机床流水号 = ${num} and 工艺编号 is not null and 完成日期 is null
group by 零件图号,工艺计划流水号,考核状态,机床流水号,工艺名称,工序顺序,材料,零件名称,投产数量,组号,机床图号
order by 工艺计划流水号,工序顺序) as a1 ) s1
where s1.group_idx= 1`
}
})
}