This commit is contained in:
liushuai
2020-06-08 17:57:49 +08:00
parent 6966adb952
commit fa5f12d664
16 changed files with 679 additions and 87 deletions

View File

@@ -183,7 +183,7 @@ export default {
type: '3',
name: `select distinct 供应商流水号,供应商名称 from (
select 供应商流水号,供应商名称,sum(数量) as 总采购数量,sum(已到货数量) as 总到货数量
from 库存管理_外购件_采购合同明细_视图 where 是否启用 = 1
from 库存管理_外购件_采购合同明细_视图 where 是否启用 = 1 and 审批情况流水号 = 1
group by 采购合同流水号,供应商流水号,供应商名称
having sum(数量) > sum(已到货数量)
) as 已采购的离线合同`