Commit 2b2914ab by liangjianmin

js

parent 83d41d4f
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class="search-input row bothSide verCenter"> <view class="search-input row bothSide verCenter">
<text class="iconfont icon-a-riqi11"></text> <text class="iconfont icon-a-riqi11"></text>
<input type="text" @input="inputChange()" placeholder="请手动输入入仓号或扫描" class="uni-input" v-model="number" placeholder-style="color:#6e767a" /> <input type="text" @input="inputChange()" placeholder="请手动输入入仓号或扫描" class="uni-input" v-model="number" placeholder-style="color:#6e767a" />
<text class="scan iconfont icon-juxing6"></text> <text class="scan iconfont icon-juxing6" @click="scanChange()"></text>
</view> </view>
</view> </view>
</view> </view>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</template> </template>
<template v-else-if="currentIndex === 1"> <template v-else-if="currentIndex === 1">
<view class="list" v-if="unusualCheckInList.length > 0 || !is_complete"> <view class="list" v-if="unusualCheckInList.length > 0 || !is_complete">
<navigator class="box row bothSide verCenter" :url="'/pages/goods/tallyExectionDetail?ask_customer_problem_list_id=' + item.ask_customer_problem_list_id" hover-class="none" v-for="(item, index) in unusualCheckInList" :key="index"> <navigator class="box row bothSide verCenter" :url="'/pages/goods/tallyExectionDetail?number=' + item.erp_order_sn" hover-class="none" v-for="(item, index) in unusualCheckInList" :key="index">
<view class="bill-number row rowCenter verCenter" :class="numberType[index] ? 'color1' : 'color2'">{{ item.erp_order_sn }}</view> <view class="bill-number row rowCenter verCenter" :class="numberType[index] ? 'color1' : 'color2'">{{ item.erp_order_sn }}</view>
<view> <view>
<text class="t1">客户:{{ item.supplier_name }}</text> <text class="t1">客户:{{ item.supplier_name }}</text>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</view> </view>
<view class="text"> <view class="text">
<text class="p1">备注:</text> <text class="p1">备注:</text>
<text class="p2">{{ item.unusual_remark }}</text> <text class="p2">{{ item.sort_goods_remark }}</text>
</view> </view>
</view> </view>
<template v-if="item.is_goods_check === 1"> <template v-if="item.is_goods_check === 1">
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
if (this.currentIndex === 0) { if (this.currentIndex === 0) {
this.getData(); this.getData();
} else if (this.currentIndex === 1) { } else if (this.currentIndex === 1) {
this.getUnusualCheckInList(); this.getUnusualSortGoodsList();
} }
}, },
methods: { methods: {
...@@ -114,14 +114,14 @@ export default { ...@@ -114,14 +114,14 @@ export default {
if (index === 0) { if (index === 0) {
this.getData(); this.getData();
} else if (index === 1) { } else if (index === 1) {
this.getUnusualCheckInList(); this.getUnusualSortGoodsList();
} }
}, },
inputChange() { inputChange() {
if (this.currentIndex === 0) { if (this.currentIndex === 0) {
this.getData(); this.getData();
} else if (this.currentIndex === 1) { } else if (this.currentIndex === 1) {
this.getUnusualCheckInList(); this.getUnusualSortGoodsList();
} }
}, },
getData() { getData() {
...@@ -138,8 +138,8 @@ export default { ...@@ -138,8 +138,8 @@ export default {
} }
}); });
}, },
getUnusualCheckInList() { getUnusualSortGoodsList() {
this.request(API.getUnusualCheckInList, 'POST', { page: this.page, number: this.number }, true).then(res => { this.request(API.getUnusualSortGoodsList, 'POST', { page: this.page, number: this.number }, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.is_complete = true; this.is_complete = true;
this.unusualCheckInList = res.data; this.unusualCheckInList = res.data;
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
//判断A单 B单 //判断A单 B单
if (res.data.length > 0) { if (res.data.length > 0) {
for (let i = 0; i < res.data.length; i++) { for (let i = 0; i < res.data.length; i++) {
if (res.data[i].erp_order_sn.indexOf('B')) { if (res.data[i].number.indexOf('B')) {
this.numberType.push(true); this.numberType.push(true);
} else { } else {
this.numberType.push(false); this.numberType.push(false);
...@@ -162,6 +162,28 @@ export default { ...@@ -162,6 +162,28 @@ export default {
}); });
} }
}); });
},
scanChange() {
uni.scanCode({
success: function(res) {
console.log(res);
if (res.errMsg == 'scanCode:ok') {
this.number = res.result;
if (this.currentIndex === 0) {
this.getData();
} else if (this.currentIndex === 1) {
this.getUnusualSortGoodsList();
}
}
},
fail: function(res) {
console.log(res);
uni.showToast({
title: '扫码失败',
icon: 'error'
});
}
});
} }
} }
}; };
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
</view> </view>
<view class="pp row verCenter"> <view class="pp row verCenter">
<text class="t1">入仓号:</text> <text class="t1">入仓号:</text>
<text class="t2" style="width: auto;">--</text> <text class="t2" style="width: auto;">{{ goodsArrangeData.number }}</text>
<text class="type row rowCenter verCenter">商检</text> <text class="type row rowCenter verCenter" v-if="goodsArrangeData.isInspOrg">商检</text>
</view> </view>
<view class="pp row verCenter" v-if="flag"> <view class="pp row verCenter" v-if="flag">
<text class="t1">订单时间:</text> <text class="t1">订单时间:</text>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<image src="http://img.ichunt.com/images/ichunt/minProgram/scmMinProgram/wms/202203/08/d034765db26eb07075b2965dc96b8b35.png" mode="aspectFill" class="pic"></image> <image src="http://img.ichunt.com/images/ichunt/minProgram/scmMinProgram/wms/202203/08/d034765db26eb07075b2965dc96b8b35.png" mode="aspectFill" class="pic"></image>
</view> </view>
</view> </view>
<navigator class="btn-submit row rowCenter verCenter" url="/pages/goods/tallyQuestion" hover-class="none"> <navigator class="btn-submit row rowCenter verCenter" :url="'/pages/goods/tallyQuestion?number='+goodsArrangeData.number" hover-class="none">
<text class="t1">理货异常?</text> <text class="t1">理货异常?</text>
<text class="t2">去提交</text> <text class="t2">去提交</text>
</navigator> </navigator>
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
}, },
form: { form: {
sort_goods_remark: '', //理货备注 sort_goods_remark: '', //理货备注
number: 'B50413', //入仓号 number: '', //入仓号
sort_goods_num: '', //理货数量 sort_goods_num: '', //理货数量
gross_weight: '', //毛重 gross_weight: '', //毛重
sort_goods_unit: '件', //理货单位 sort_goods_unit: '件', //理货单位
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
}); });
}, },
getData() { getData() {
this.request(API.getGoodsArrangeData, 'POST', { page: this.page, number: '' }, true).then(res => { this.request(API.getGoodsArrangeData, 'POST', { page: this.page, number: this.form.number }, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.goodsArrangeData = res.data[0]; this.goodsArrangeData = res.data[0];
this.form.entrys = res.data[0]; this.form.entrys = res.data[0];
...@@ -377,6 +377,13 @@ export default { ...@@ -377,6 +377,13 @@ export default {
}); });
}, },
print() { print() {
if (!this.device_name) {
uni.showToast({
icon: 'error',
title: '请连接蓝牙设备'
});
return false;
}
this.request(API.printLabel, 'POST', this.printForm, true).then(res => { this.request(API.printLabel, 'POST', this.printForm, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.printLabelData = res.data; this.printLabelData = res.data;
......
...@@ -170,14 +170,20 @@ import { API } from '@/util/api.js'; ...@@ -170,14 +170,20 @@ import { API } from '@/util/api.js';
export default { export default {
data() { data() {
return {}; return {
number: '',
customerDetail: {}
};
},
onLoad(options) {
this.number = options.number;
}, },
onShow() { onShow() {
this.getData(); this.getData();
}, },
methods: { methods: {
getData() { getData() {
this.request(API.getCheckInList, 'POST', {}).then(res => { this.request(API.getAskCustomerDetail, 'GET', { erp_order_sn: this.number }).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
} else { } else {
uni.showToast({ uni.showToast({
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
</view> </view>
<view class="pp row verCenter"> <view class="pp row verCenter">
<text class="t1">入仓号:</text> <text class="t1">入仓号:</text>
<text class="t2" style="width: auto;">A123456</text> <text class="t2" style="width: auto;">{{ goodsArrangeData.number }}</text>
<text class="type row rowCenter verCenter">商检</text> <text class="type row rowCenter verCenter" v-if="goodsArrangeData.isInspOrg">商检</text>
</view> </view>
<view class="pp row verCenter" v-if="flag"> <view class="pp row verCenter" v-if="flag">
<text class="t1">订单时间:</text> <text class="t1">订单时间:</text>
...@@ -22,19 +22,19 @@ ...@@ -22,19 +22,19 @@
</view> </view>
<view class="pp row verCenter" v-if="flag"> <view class="pp row verCenter" v-if="flag">
<text class="t1">订单客户:</text> <text class="t1">订单客户:</text>
<text class="t2">富开香港有限公司</text> <text class="t2">{{ goodsArrangeData.customer }}</text>
</view> </view>
<view class="pp row verCenter" v-if="flag"> <view class="pp row verCenter" v-if="flag">
<text class="t1">供应商:</text> <text class="t1">供应商:</text>
<text class="t2">SAMSUNG SDI CO., LTD</text> <text class="t2">{{ goodsArrangeData.supplier }}</text>
</view> </view>
<view class="pp row verCenter"> <view class="pp row verCenter">
<text class="t1">登记数量:</text> <text class="t1">登记数量:</text>
<text class="t2">1箱</text> <text class="t2">{{ goodsArrangeData.num }}</text>
</view> </view>
<view class="pp row"> <view class="pp row">
<text class="t1">采购备注:</text> <text class="t1">采购备注:</text>
<text class="t2">INV-9500148113这张里有个是光辉的,理货的人员记得看备注,多大200字符长度</text> <text class="t2">{{ goodsArrangeData.remark }}</text>
</view> </view>
</view> </view>
<view class="question-box"> <view class="question-box">
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
text:[''],//记录数组文字 text:[''],//记录数组文字
typeList: [], //问题类型列表 typeList: [], //问题类型列表
questionTypeIndex: [0], //问题类型索引 questionTypeIndex: [0], //问题类型索引
erp_order_sn: 'B50413', //form入仓号 erp_order_sn: '', //form入仓号
ask_customer_remark: '', //form仓库问客备注 ask_customer_remark: '', //form仓库问客备注
entrys: {}, //form 金蝶数据, entrys: {}, //form 金蝶数据,
index: 0, //记录form当前操作索引 index: 0, //记录form当前操作索引
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
this.erp_order_sn = options.number || 'B50413'; //获取参数入仓号 this.erp_order_sn = options.number || ''; //获取参数入仓号
}, },
onShow() { onShow() {
if (this.noexebshowFalg) { if (this.noexebshowFalg) {
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
* 获取基础数据 * 获取基础数据
*/ */
getData() { getData() {
this.request(API.getGoodsArrangeData, 'POST', { page: this.page, number: '' }, true).then(res => { this.request(API.getGoodsArrangeData, 'POST', { page: this.page, number: this.erp_order_sn }, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.goodsArrangeData = res.data[0]; //理货列表数据 this.goodsArrangeData = res.data[0]; //理货列表数据
this.entrys = res.data[0]; //form 金蝶数据, this.entrys = res.data[0]; //form 金蝶数据,
......
...@@ -80,7 +80,16 @@ const API = { ...@@ -80,7 +80,16 @@ const API = {
/** /**
* 获取理货异常问题对应的数据数组 * 获取理货异常问题对应的数据数组
*/ */
getExceptionData: API_BASE + '/supplywechatwms/getExceptionData' getExceptionData: API_BASE + '/supplywechatwms/getExceptionData',
/**
* 获取理货异常列表
*/
getUnusualSortGoodsList: API_BASE + '/supplywechatwms/getUnusualSortGoodsList',
/**
* 获取理货问客详情
*/
getAskCustomerDetail: API_BASE + '/supplywechatwms/getAskCustomerDetail'
} }
......
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