|
@@ -23,6 +23,8 @@ export function code2Url (type, code, state) {
|
|
return payment(code, state)
|
|
return payment(code, state)
|
|
case 'TRADE':
|
|
case 'TRADE':
|
|
return warehouseReceiptRegulation(code, state)
|
|
return warehouseReceiptRegulation(code, state)
|
|
|
|
+ case 'ROLE':
|
|
|
|
+ return stock(code, state)
|
|
default:
|
|
default:
|
|
return ''
|
|
return ''
|
|
}
|
|
}
|
|
@@ -150,7 +152,13 @@ export function checkMateriel (code, state) {
|
|
}
|
|
}
|
|
return url
|
|
return url
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+export function stock (code, state) {
|
|
|
|
+ if (code === 'TRADE-WAREHOUSE-REPORT') {
|
|
|
|
+ // 现货入库统计
|
|
|
|
+ return 'stockPurchaseReceiptReportList'
|
|
|
|
+ }
|
|
|
|
+ return undefined
|
|
|
|
+}
|
|
export function checkSparepart (code, state) {
|
|
export function checkSparepart (code, state) {
|
|
// 备件
|
|
// 备件
|
|
let url = ''
|
|
let url = ''
|
|
@@ -818,12 +826,14 @@ export function payment (code, state) {
|
|
return undefined
|
|
return undefined
|
|
}
|
|
}
|
|
export function warehouseReceiptRegulation (code, state) {
|
|
export function warehouseReceiptRegulation (code, state) {
|
|
- if (code === 'TRADE-WAREHOUSE-REPORT') {
|
|
|
|
|
|
+ if (code === 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
|
|
// 付款管理
|
|
// 付款管理
|
|
return 'stockWarehouseReceiptRegulation'
|
|
return 'stockWarehouseReceiptRegulation'
|
|
}
|
|
}
|
|
return undefined
|
|
return undefined
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
// 调度
|
|
// 调度
|
|
export function checkDispatch (code, state) {
|
|
export function checkDispatch (code, state) {
|
|
let url = ''
|
|
let url = ''
|