半成品入库
This commit is contained in:
@@ -123,9 +123,15 @@ export const getBcpStor = () => post('api/pda/bcp/in/getBcpStor', {})
|
||||
// 1.2单据类型下拉框
|
||||
export const getBillType = () => post('api/pda/bcp/in/getBillType', {})
|
||||
// 1.3物料选择页面
|
||||
export const getMaterial = (code) => post('api/pda/bcp/in/getMaterial', {
|
||||
material_code: code
|
||||
})
|
||||
// export const getMaterial = (code) => post('api/pda/bcp/in/getMaterial', {
|
||||
// material_code: code
|
||||
// })
|
||||
export const getMaterial = (code) => {
|
||||
let res = {
|
||||
data: [{material_code: '1', material_name: 'a', material_spec: '001', class_code: '1', net_weight: '100', unit_name: 'g'}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 1.4入库点下拉框
|
||||
export const getPoint = () => post('api/pda/bcp/in/getPoint', {})
|
||||
// 1.5呼叫空载具(按钮)
|
||||
|
||||
@@ -147,3 +147,15 @@ export const accMul = (arg1, arg2) => {
|
||||
try { m += s2.split('.')[1].length } catch (e) {}
|
||||
return Number(s1.replace('.', '')) * Number(s2.replace('.', '')) / Math.pow(10, m)
|
||||
}
|
||||
|
||||
/**
|
||||
* 小数除法
|
||||
*/
|
||||
export const accDiv = (arg1, arg2) => {
|
||||
var m = 0
|
||||
var s1 = arg1.toString()
|
||||
var s2 = arg2.toString()
|
||||
try { m += s1.split('.')[1].length } catch (e) {}
|
||||
try { m += s2.split('.')[1].length } catch (e) {}
|
||||
return Number(s1.replace('.', '')) / Number(s2.replace('.', '')) / Math.pow(10, m)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user