Commit 83fc417e by LJM

css

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