Commit a0153fd8 by LJM

add

parent ab59cf8c
......@@ -102,7 +102,7 @@
border: 1px solid #bbdcfd;
}
.pb16 {
padding-bottom: 30rpx;
padding-bottom: 16rpx;
}
.w130 {
width: 156rpx;
......
......@@ -110,7 +110,7 @@
border: 1px solid #bbdcfd;
}
.pb16 {
padding-bottom: 30rpx;
padding-bottom: 16rpx;
}
.w130 {
width: 156rpx;
......
......@@ -42,118 +42,118 @@
</template>
<script>
import { API } from '@/util/api.js';
import { API } from '@/util/api.js';
export default {
data() {
return {
erpOrderSnCodeManage: [],
erp_order_sn: '',
total: 1,
page: 1,
limit: 10,
is_loading: false,
loading: false
};
},
onReachBottom() {
if (this.is_loading) return;
this.page++;
this.loading = true;
this.getData();
},
onShow() {
this.total = 0;
this.page = 1;
this.erpOrderSnCodeManage = [];
this.getData();
},
methods: {
inputChange() {
export default {
data() {
return {
erpOrderSnCodeManage: [],
erp_order_sn: '',
total: 1,
page: 1,
limit: 10,
is_loading: false,
loading: false
};
},
onReachBottom() {
if (this.is_loading) return;
this.page++;
this.loading = true;
this.getData();
},
onShow() {
this.total = 0;
this.page = 1;
this.erpOrderSnCodeManage = [];
this.getData();
},
scanChange() {
uni.scanCode({
success: res => {
if (res.errMsg == 'scanCode:ok') {
this.erp_order_sn = res.result;
methods: {
inputChange() {
this.total = 0;
this.page = 1;
this.erpOrderSnCodeManage = [];
this.getData();
},
scanChange() {
uni.scanCode({
success: res => {
if (res.errMsg == 'scanCode:ok') {
this.erp_order_sn = res.result;
}
},
fail: function(res) {
uni.showToast({
title: '扫码失败',
icon: 'error'
});
}
},
fail: function(res) {
uni.showToast({
title: '扫码失败',
icon: 'error'
});
}
});
},
delErpOrderSnCodeManage(erp_order_sn) {
uni.showModal({
title: '提示',
content: '您确定作废嘛?',
success: res => {
if (res.confirm) {
this.request(API.delErpOrderSnCodeManage, 'POST', { erp_order_sn: erp_order_sn }, true).then(res => {
if (res.err_code === 0) {
uni.showModal({
title: '提示',
content: '作废操作成功',
cancelText: '重新打印',
confirmText: '关闭',
showCancel: true,
success: res => {
if (res.confirm) {
this.total = 0;
this.page = 1;
this.erpOrderSnCodeManage = [];
this.getData();
} else if (res.cancel) {
console.log('用户点击取消');
uni.navigateTo({
url: '/pages/tag/print?number=' + erp_order_sn
});
});
},
delErpOrderSnCodeManage(erp_order_sn) {
uni.showModal({
title: '提示',
content: '您确定作废嘛?',
success: res => {
if (res.confirm) {
this.request(API.delErpOrderSnCodeManage, 'POST', { erp_order_sn: erp_order_sn }, true).then(res => {
if (res.err_code === 0) {
uni.showModal({
title: '提示',
content: '作废操作成功',
cancelText: '重新打印',
confirmText: '关闭',
showCancel: true,
success: res => {
if (res.confirm) {
this.total = 0;
this.page = 1;
this.erpOrderSnCodeManage = [];
this.getData();
} else if (res.cancel) {
console.log('用户点击取消');
uni.navigateTo({
url: '/pages/tag/printNew?number=' + erp_order_sn
});
}
}
}
});
} else {
uni.showModal({
title: '提示',
content: res.err_msg,
showCancel: false
});
}
});
} else if (res.cancel) {
console.log('用户点击取消');
});
} else {
uni.showModal({
title: '提示',
content: res.err_msg,
showCancel: false
});
}
});
} else if (res.cancel) {
console.log('用户点击取消');
}
}
}
});
},
getData() {
this.request(API.erpOrderSnCodeManage, 'POST', { page: this.page, limit: this.limit, erp_order_sn: this.erp_order_sn }, this.loading).then(res => {
if (res.err_code === 0) {
if (res.data.data.length > 0) {
this.is_loading = false;
this.erpOrderSnCodeManage = this.erpOrderSnCodeManage.concat(res.data.data);
this.total = res.data.total;
});
},
getData() {
this.request(API.erpOrderSnCodeManage, 'POST', { page: this.page, limit: this.limit, erp_order_sn: this.erp_order_sn }, this.loading).then(res => {
if (res.err_code === 0) {
if (res.data.data.length > 0) {
this.is_loading = false;
this.erpOrderSnCodeManage = this.erpOrderSnCodeManage.concat(res.data.data);
this.total = res.data.total;
} else {
this.is_loading = true;
}
} else {
this.is_loading = true;
uni.showToast({
title: res.err_msg,
icon: 'error'
});
}
} else {
uni.showToast({
title: res.err_msg,
icon: 'error'
});
}
});
});
}
}
}
};
};
</script>
<style scoped lang="scss">
@import '../../assets/css/goods/barCode.scss';
</style>
@import '../../assets/css/goods/barCode.scss';
</style>
\ No newline at end of file
......@@ -98,10 +98,6 @@
<text class="t3 w130">品牌:</text>
<text class="t4">{{item.brand}}</text>
</view>
<view class="pb16 row">
<text class="t3 w130">金额:</text>
<text class="t4">{{item.total_price}}</text>
</view>
<!-- 完全理货 -->
<template v-if="item.tally_status == 3">
<view class="pb16 row">
......@@ -111,13 +107,16 @@
</template>
<!-- 1未理货2部分理货 -->
<template v-else>
<view class="pb16 row">
<text class="t3 w130">待收数量:</text>
<text class="t4">{{item.wait_tally_num}}</text>
</view>
<view class="pb16 row">
<text class="t3 w130">总数量:</text>
<text class="t4">{{item.order_numbers}}</text>
<view class="pb16 row verCenter">
<view class="row" style="width: 50%;">
<text class="t3 w130">待收数量:</text>
<text class="t4">{{item.wait_tally_num}}</text>
</view>
<view class="row" style="width: 50%;">
<text class="t3 w130">总数量:</text>
<text class="t4">{{item.order_numbers}}</text>
</view>
</view>
</template>
<view class="pb16 row verCenter">
......@@ -163,8 +162,7 @@
</template>
</view>
</view>
<view class="pb16 row verCenter">
<text class="t3 w130">理货照片:</text>
<view class="row bothSide verCenter">
<view class="upload-list row verCenter">
<template v-if="image_list.length > 0">
<view class="pic-box" v-for="(v, i) in image_list[index]" :key="i">
......@@ -181,8 +179,6 @@
<view class="default row rowCenter verCenter" @click="chooseImageChange(index)" v-if="image_list[index].length < 4"><text class="iconfont icon-xingzhuangjiehe"></text></view>
</template>
</view>
</view>
<view class="row" style="justify-content: flex-end;">
<!-- 完全理货 -->
<template v-if="item.tally_status == 3">
<view class="btn row rowCenter verCenter disabled" @click="cancelTallyDetail(index)">取消理货</view>
......
......@@ -572,7 +572,7 @@
if (type == 1) {
//点击【确认提交并打印】跳转至【打印标签】页面
uni.navigateTo({
url: '/pages/tag/print?board_num=' + this.form.board_num + '&box_num=' + this.form.box_num + '&erp_order_sn=' + this.form.erp_order_sn + '&from=tallyGoods'
url: '/pages/tag/printNew?board_num=' + this.form.board_num + '&box_num=' + this.form.box_num + '&erp_order_sn=' + this.form.erp_order_sn + '&from=tallyGoods'
})
} else {
setTimeout(() => {
......
// const API_BASE = 'https://api.ichunt.com';
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
// const API_BASE_OSS_HK = 'http://hk.image.semour.com'; //oss系统 HK
// const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统
const API_BASE = 'https://api.ichunt.com';
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API_BASE_OSS_HK = 'http://hk.image.semour.com'; //oss系统 HK
const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统
const API_BASE = 'http://api.liexin.com';
const API_BASE_OSS = 'http://image.liexindev.net';
const API_BASE_OSS_HK = 'http://image.liexindev.net'; //oss系统 HK
const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统
// const API_BASE = 'http://api.liexin.com';
// const API_BASE_OSS = 'http://image.liexindev.net';
// const API_BASE_OSS_HK = 'http://image.liexindev.net'; //oss系统 HK
// const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统
const API = {
......
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