Commit c22f6bdb by 王志慧

积分提现管理

1 parent e4819ff6
...@@ -111,4 +111,28 @@ const getDetails = params => { ...@@ -111,4 +111,28 @@ const getDetails = params => {
sign: true sign: true
}) })
} }
export default { getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getAllpayAmount, getDetails } // 普通提现导入
const uploadXlsx = params => {
params.method = 'scrm.api.shopmall.integral.transfer.out.import'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file'],
returnAll:true
})
}
// 根据批次号更新普通提现导入为成功状态
const handleSaveImport =params => {
params.method = `scrm.api.shopmall.integral.transfer.out.import.confirm`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
})
}
export default { getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getAllpayAmount, getDetails,uploadXlsx,handleSaveImport }
...@@ -94,12 +94,18 @@ function aToExport(url) { ...@@ -94,12 +94,18 @@ function aToExport(url) {
document.body.appendChild(a) document.body.appendChild(a)
a.click() a.click()
} }
function getArrayIsSubset (arr2, arr1) {
return arr2.every(item => {
console.log(arr1.includes(item))
return arr1.includes(item)
})
}
export default { export default {
debounce, debounce,
dateFormat, dateFormat,
checkPhone, checkPhone,
getOptionsList, getOptionsList,
secondConfirm, secondConfirm,
aToExport aToExport,
getArrayIsSubset
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!