forked from wimoor-erp/wimoorApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1,320 changed files
with
85,738 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ | ||
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 | ||
"version": "0.0", | ||
"configurations": [{ | ||
"default" : | ||
{ | ||
"launchtype" : "local" | ||
}, | ||
"mp-baidu" : | ||
{ | ||
"launchtype" : "local" | ||
}, | ||
"mp-weixin" : | ||
{ | ||
"launchtype" : "local" | ||
}, | ||
"type" : "uniCloud" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<script> | ||
import { | ||
mapMutations | ||
} from 'vuex' | ||
import { | ||
version | ||
} from './package.json' | ||
export default { | ||
onLaunch: function() { | ||
// #ifdef H5 | ||
console.log( | ||
`%c hello uniapp %c v${version} `, | ||
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff', | ||
'background:#007aff ;padding: 1px; border-radius: 0 3px 3px 0; color: #fff; font-weight: bold;' | ||
) | ||
// #endif | ||
// 线上示例使用 | ||
// console.log('%c uni-app官方团队诚邀优秀前端工程师加盟,一起打造更卓越的uni-app & uniCloud,欢迎投递简历到 [email protected]', 'color: red'); | ||
console.log('App Launch'); | ||
// #ifdef APP-PLUS | ||
// App平台检测升级,服务端代码是通过uniCloud的云函数实现的,详情可参考:https://ext.dcloud.net.cn/plugin?id=4542 | ||
if (plus.runtime.appid !== 'HBuilder') { // 真机运行不需要检查更新,真机运行时appid固定为'HBuilder',这是调试基座的appid | ||
checkUpdate() | ||
} | ||
// 一键登录预登陆,可以显著提高登录速度 | ||
uni.preLogin({ | ||
provider: 'univerify', | ||
success: (res) => { | ||
// 成功 | ||
this.setUniverifyErrorMsg(); | ||
console.log("preLogin success: ", res); | ||
}, | ||
fail: (res) => { | ||
this.setUniverifyLogin(false); | ||
this.setUniverifyErrorMsg(res.errMsg); | ||
// 失败 | ||
console.log("preLogin fail res: ", res); | ||
} | ||
}) | ||
// #endif | ||
}, | ||
onShow: function() { | ||
console.log('App Show') | ||
}, | ||
onHide: function() { | ||
console.log('App Hide') | ||
}, | ||
globalData: { | ||
test: '' | ||
}, | ||
methods: { | ||
...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin']) | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
/* #ifndef APP-PLUS-NVUE */ | ||
/* uni.css - 通用组件、模板样式库,可以当作一套ui库应用 */ | ||
@import './common/uni.css'; | ||
@import '@/static/customicons.css'; | ||
/* H5 兼容 pc 所需 */ | ||
/* #ifdef H5 */ | ||
@media screen and (min-width: 768px) { | ||
body { | ||
overflow-y: scroll; | ||
} | ||
} | ||
/* 顶栏通栏样式 */ | ||
/* .uni-top-window { | ||
left: 0; | ||
right: 0; | ||
} */ | ||
uni-page-body { | ||
background-color: #F5F5F5 !important; | ||
min-height: 100% !important; | ||
height: auto !important; | ||
} | ||
.uni-top-window uni-tabbar .uni-tabbar { | ||
background-color: #fff !important; | ||
} | ||
.uni-app--showleftwindow .hideOnPc { | ||
display: none !important; | ||
} | ||
/* #endif */ | ||
/* 以下样式用于 hello uni-app 演示所需 */ | ||
page { | ||
background-color: #efeff4; | ||
height: 100%; | ||
font-size: 28rpx; | ||
/* line-height: 1.8; */ | ||
} | ||
.fix-pc-padding { | ||
padding: 0 50px; | ||
} | ||
.uni-header-logo { | ||
padding: 30rpx; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 10rpx; | ||
} | ||
.uni-header-image { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
.uni-hello-text { | ||
color: #7A7E83; | ||
} | ||
.uni-hello-addfile { | ||
text-align: center; | ||
line-height: 300rpx; | ||
background: #FFF; | ||
padding: 50rpx; | ||
margin-top: 10px; | ||
font-size: 38rpx; | ||
color: #808080; | ||
} | ||
/* #endif*/ | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
import request from '@/common/request.js' | ||
|
||
function getMaterialInfo(data){ | ||
return request({url:"/erp/api/v1/material/getMaterialInfo",method:"GET","data":data}) | ||
} | ||
export default { | ||
getMaterialInfo | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import request from '@/common/request.js' | ||
|
||
function list(data){ | ||
return request({url:"/erp/api/v1/purchase_form/list",method:"GET","data":data}) | ||
} | ||
function getRecdetail(data){ | ||
return request({url:"/erp/api/v1/purchase_form/getRecdetail",method:"GET","data":data}) | ||
} | ||
function catchLogisticsInfo(data){ | ||
return request({url:"/erp/api/v1/purchase_form/catchLogisticsInfo",method:"GET","data":data}) | ||
} | ||
function rec(data){ | ||
return request({url:"/erp/api/v1/purchase_form/rec",method:"GET","data":data}) | ||
} | ||
|
||
export default { | ||
list,getRecdetail,catchLogisticsInfo,rec | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import request from '@/common/request.js' | ||
const getQuotainfo=(shipmentid)=>{ | ||
return request({url:'/erp/api/v1/shipForm/quotainfo/'+shipmentid,method:"GET"}); | ||
} | ||
function subShelfInventory(data){ | ||
return request({url:"/erp/api/v1/warehoue/shelfInventory/sub",method:"POST","data":data}) | ||
} | ||
function getShipFromList(data){ | ||
return request({url:'/erp/api/v1/shipForm/list',method:"POST","data":data}) | ||
} | ||
export default { | ||
getQuotainfo, | ||
subShelfInventory, | ||
getShipFromList, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import request from '@/common/request.js' | ||
const getShelfList=(data)=>{ | ||
return request({url:'/erp/api/v1/warehoue/shelfInventory/getShelfList',method:"POST","data":data}); | ||
} | ||
const getShelfInventoryList=(data)=>{ | ||
return request({url:'/erp/api/v1/warehoue/shelfInventory/getShelfInventoryList',method:"POST","data":data}); | ||
} | ||
const getShelfInfo=(data)=>{ | ||
return request({url:'/erp/api/v1/warehouse/shelf/getShelfInfo',method:"GET","data":data}); | ||
} | ||
const invAdd=(data)=>{ | ||
return request({url:'/erp/api/v1/warehoue/shelfInventory/add',method:"POST","data":data}); | ||
} | ||
const invSub=(data)=>{ | ||
return request({url:'/erp/api/v1/warehoue/shelfInventory/sub',method:"POST","data":data}); | ||
} | ||
|
||
export default {getShelfList,getShelfInventoryList,getShelfInfo,invAdd,invSub}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import request from '@/common/request.js' | ||
const loginWechat=(data)=>{ | ||
return request({url:'/auth/loginWechat',method:"GET","data":data}); | ||
} | ||
const getOpenUserlist=(data)=>{ | ||
return request({url:'/auth/getOpenUserlist',method:"GET","data":data}); | ||
} | ||
const unbindWechat=(data)=>{ | ||
return request({url:'/admin/api/v1/users/unbindWechat',method:"GET","data":data}); | ||
} | ||
const verifyWechatApp=(data)=>{ | ||
return request({url:'/auth/verifyWechatApp',method:"GET","data":data}); | ||
} | ||
const changeLoginWechatApp=(data)=>{ | ||
return request({url:'/auth/changeLoginWechatApp',method:"GET","data":data}); | ||
} | ||
|
||
export default {loginWechat,getOpenUserlist,unbindWechat,verifyWechatApp,changeLoginWechatApp}; |
Oops, something went wrong.