Commit 83fc417e by LJM

css

parent 5473a441
......@@ -3,3 +3,4 @@
/unpackage
/*.hbuilderx
/.DS_Store
/node_modules
\ No newline at end of file
......@@ -11,6 +11,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-a-10cangkucangchu3:before {
content: "\e7a0";
}
.icon-a-10cangkucangchu1:before {
content: "\e79e";
}
......
......@@ -5,6 +5,26 @@
"navigationBarTitleText": "供应链WMS系统"
}
}, {
"path": "pages/tallyGoods/exception",
"style": {
"navigationBarTitleText": "异常理货"
}
}, {
"path": "pages/tallyGoods/addException",
"style": {
"navigationBarTitleText": "新增异常"
}
}, {
"path": "pages/tallyGoods/exceptionSelect",
"style": {
"navigationBarTitleText": "选择异常类型"
}
}, {
"path": "pages/tallyGoods/exceptionDetail",
"style": {
"navigationBarTitleText": "异常详情"
}
}, {
"path": "pages/scan/index",
"style": {
"navigationBarTitleText": "扫描"
......@@ -178,6 +198,11 @@
"text": "首页"
},
{
"pagePath": "pages/tallyGoods/exception",
"iconPath": "static/4.png",
"selectedIconPath": "static/4s.png",
"text": "异常"
}, {
"pagePath": "pages/mine/index",
"iconPath": "static/3.png",
"selectedIconPath": "static/3s.png",
......
......@@ -49,221 +49,229 @@
</template>
<script>
import { API } from '@/util/api.js';
import zyGrid from '../../components/zy-grid/zy-grid.vue';
import { API } from '@/util/api.js';
import zyGrid from '../../components/zy-grid/zy-grid.vue';
export default {
data() {
return {
is_login: false,
userInfo: {},
rawData: '',
gridList: [
{
name: '快递回单上传',
iconfont: 'icon-a-juxing1',
tips: ''
},
{
name: '收货登记',
iconfont: 'icon-juxing3',
tips: ''
},
{
name: '仓内作业',
iconfont: 'icon-juxing5',
tips: ''
},
{
name: '异常收货登记',
iconfont: 'icon-jinggao',
tips: ''
},
{
name: '打印标签',
iconfont: 'icon-a-juxing4',
tips: ''
},
{
name: '追加标签',
iconfont: 'icon-juxing9',
tips: ''
},
{
name: '条码管理',
iconfont: 'icon-juxing8',
tips: ''
},
{
name: '装箱复核序簿',
iconfont: 'icon-jinggao3',
tips: ''
},
{
name: '深圳扫码收货',
iconfont: 'icon-ruku',
tips: ''
},
{
name: '深圳扫码出库',
iconfont: 'icon-cangpeitubiao_chukuhuanhuochuku',
tips: ''
},
{
name: '进口物流清单',
iconfont: 'icon-wuliu',
tips: ''
},
{
name: '报关收货签到',
iconfont: 'icon-chakanbeizhu',
tips: ''
},
{
name: '异常理货',
iconfont: 'icon-a-10cangkucangchu1',
tips: ''
},
{
name: '理货确认',
iconfont: 'icon-a-10cangkucangchu2',
tips: ''
}
]
};
},
onShow() {
this.getData();
},
methods: {
scanChange(type) {
uni.scanCode({
success: res => {
console.log(res);
if (res.errMsg == 'scanCode:ok') {
if (type == 1) {
uni.navigateTo({
url: '/pages/scan/confirm?number=' + res.result
});
}
if (type == 2) {
uni.navigateTo({
url: '/pages/pda/warehousing?number=' + res.result
});
}
if (type == 3) {
uni.navigateTo({
url: '/pages/pda/exWarehouse?number=' + res.result
});
}
export default {
data() {
return {
is_login: false,
userInfo: {},
rawData: '',
gridList: [{
name: '快递回单上传',
iconfont: 'icon-a-juxing1',
tips: ''
},
{
name: '收货登记',
iconfont: 'icon-juxing3',
tips: ''
},
{
name: '仓内作业',
iconfont: 'icon-juxing5',
tips: ''
},
{
name: '异常收货登记',
iconfont: 'icon-jinggao',
tips: ''
},
{
name: '打印标签',
iconfont: 'icon-a-juxing4',
tips: ''
},
{
name: '追加标签',
iconfont: 'icon-juxing9',
tips: ''
},
{
name: '条码管理',
iconfont: 'icon-juxing8',
tips: ''
},
{
name: '装箱复核序簿',
iconfont: 'icon-jinggao3',
tips: ''
},
{
name: '深圳扫码收货',
iconfont: 'icon-ruku',
tips: ''
},
{
name: '深圳扫码出库',
iconfont: 'icon-cangpeitubiao_chukuhuanhuochuku',
tips: ''
},
{
name: '进口物流清单',
iconfont: 'icon-wuliu',
tips: ''
},
{
name: '报关收货签到',
iconfont: 'icon-chakanbeizhu',
tips: ''
},
{
name: '异常理货',
iconfont: 'icon-a-10cangkucangchu1',
tips: ''
},
{
name: '理货确认',
iconfont: 'icon-a-10cangkucangchu2',
tips: ''
},
{
name: '新增异常',
iconfont: 'icon-a-10cangkucangchu2',
tips: ''
}
},
fail: res => {
console.log(res);
uni.showToast({
title: '扫码失败',
icon: 'error'
});
}
});
]
};
},
getData() {
this.request(API.userInfo, 'POST', {}, false).then(res => {
if (res.err_code === 0) {
this.userInfo = res.data;
this.is_login = true;
} else {
this.is_login = false;
}
});
onShow() {
this.getData();
},
toUrl() {
uni.navigateTo({
url: '/pages/mine/auth'
});
},
gridClick(item, index) {
if (item.name == '快递回单上传') {
this.scanChange();
} else if (item.name == '打印标签') {
uni.navigateTo({
url: '/pages/tag/print'
});
} else if (item.name == '追加标签') {
uni.navigateTo({
url: '/pages/tag/repairPrint'
});
} else if (item.name == '收货登记') {
uni.navigateTo({
url: '/pages/goods/addReceiving'
});
} else if (item.name == '异常理货') {
uni.navigateTo({
url: '/pages/goods/tally'
});
} else if (item.name == '仓内作业') {
uni.navigateTo({
url: '/pages/goods/warehouseOperation'
});
} else if (item.name == '异常收货登记') {
uni.navigateTo({
url: '/pages/goods/addExectionReceiving'
});
} else if (item.name == '条码管理') {
uni.navigateTo({
url: '/pages/goods/barCode'
});
} else if (item.name == '装箱复核序簿') {
uni.navigateTo({
url: '/pages/goods/rePackageList'
});
} else if (item.name == '深圳扫码收货') {
uni.navigateTo({
url: '/pages/pda/selectDate?type=1'
});
} else if (item.name == '深圳扫码出库') {
uni.navigateTo({
url: '/pages/pda/selectDate?type=2'
});
} else if (item.name == '进口物流清单') {
uni.navigateTo({
url: '/pages/pda/logisticsList'
});
} else if (item.name == '报关收货签到') {
uni.navigateTo({
url: '/pages/declaration/index'
methods: {
scanChange(type) {
uni.scanCode({
success: res => {
console.log(res);
if (res.errMsg == 'scanCode:ok') {
if (type == 1) {
uni.navigateTo({
url: '/pages/scan/confirm?number=' + res.result
});
}
if (type == 2) {
uni.navigateTo({
url: '/pages/pda/warehousing?number=' + res.result
});
}
if (type == 3) {
uni.navigateTo({
url: '/pages/pda/exWarehouse?number=' + res.result
});
}
}
},
fail: res => {
console.log(res);
uni.showToast({
title: '扫码失败',
icon: 'error'
});
}
});
} else if (item.name == '扫描盘点') {
uni.navigateTo({
url: '/pages/scanInventory/index'
},
getData() {
this.request(API.userInfo, 'POST', {}, false).then(res => {
if (res.err_code === 0) {
this.userInfo = res.data;
this.is_login = true;
} else {
this.is_login = false;
}
});
} else if (item.name == '理货确认') {
},
toUrl() {
uni.navigateTo({
url: '/pages/tallyGoods/confirm'
url: '/pages/mine/auth'
});
} else {
uni.showModal({
title: '提示',
content: '后续陆续开放此功能!',
showCancel: false,
confirmText: '关闭',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
},
gridClick(item, index) {
if (item.name == '快递回单上传') {
this.scanChange();
} else if (item.name == '打印标签') {
uni.navigateTo({
url: '/pages/tag/print'
});
} else if (item.name == '追加标签') {
uni.navigateTo({
url: '/pages/tag/repairPrint'
});
} else if (item.name == '收货登记') {
uni.navigateTo({
url: '/pages/goods/addReceiving'
});
} else if (item.name == '异常理货') {
uni.navigateTo({
url: '/pages/goods/tally'
});
} else if (item.name == '仓内作业') {
uni.navigateTo({
url: '/pages/goods/warehouseOperation'
});
} else if (item.name == '异常收货登记') {
uni.navigateTo({
url: '/pages/goods/addExectionReceiving'
});
} else if (item.name == '条码管理') {
uni.navigateTo({
url: '/pages/goods/barCode'
});
} else if (item.name == '装箱复核序簿') {
uni.navigateTo({
url: '/pages/goods/rePackageList'
});
} else if (item.name == '深圳扫码收货') {
uni.navigateTo({
url: '/pages/pda/selectDate?type=1'
});
} else if (item.name == '深圳扫码出库') {
uni.navigateTo({
url: '/pages/pda/selectDate?type=2'
});
} else if (item.name == '进口物流清单') {
uni.navigateTo({
url: '/pages/pda/logisticsList'
});
} else if (item.name == '报关收货签到') {
uni.navigateTo({
url: '/pages/declaration/index'
});
} else if (item.name == '扫描盘点') {
uni.navigateTo({
url: '/pages/scanInventory/index'
});
} else if (item.name == '理货确认') {
uni.navigateTo({
url: '/pages/tallyGoods/confirm'
});
} else if (item.name == '新增异常') {
uni.navigateTo({
url: '/pages/tallyGoods/addException'
});
} else {
uni.showModal({
title: '提示',
content: '后续陆续开放此功能!',
showCancel: false,
confirmText: '关闭',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}
}
}
});
});
}
}
},
components: {
zyGrid
}
},
components: {
zyGrid
}
};
};
</script>
<style scoped lang="scss">
@import '../../assets/css/home/index.scss';
</style>
@import '../../assets/css/home/index.scss';
</style>
\ No newline at end of file
No preview for this file type
......@@ -208,7 +208,15 @@ const API = {
/**
* 修改是否查看
*/
changeWatch: API_BASE + '/supplywechatwms/changeWatch'
changeWatch: API_BASE + '/supplywechatwms/changeWatch',
/**
* 问客数量
*/
getAskNum: API_BASE + '/supplywechatwms/getAskNum',
/**
* 问客列表
*/
askCustomerProblemListV2: API_BASE + '/supplywechatwms/askCustomerProblemListV2'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment