Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_online_20240829
lijuncheng 4 months ago
parent
commit
5b655d55cc
  1. 10
      src/common/style/new_style.css
  2. 14
      src/mycomponents/qty/countQtyEdit.vue
  3. 10
      src/pages/count/job/countJob.vue
  4. 100
      src/pages/count/job/fuzzyCountDetail.vue
  5. 2
      src/pages/index/index.vue

10
src/common/style/new_style.css

@ -2645,6 +2645,16 @@ button[disabled] {
padding: 5rpx; padding: 5rpx;
} }
.desc_input {
height: 100rpx;
font-size: 10rpx;
color: #000000;
text-align: left;
border: 1px solid rgb(220, 211, 211);
padding: 5rpx;
}
.qty_inspect_input { .qty_inspect_input {
width: 150rpx; width: 150rpx;
height: 60rpx; height: 60rpx;

14
src/mycomponents/qty/countQtyEdit.vue

@ -66,6 +66,20 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="isShowStatus">
<view class='split_line'></view>
<view class="uni-flex uni-row space-between padding title u-col-center"
style="align-items: center; padding-left: 30rpx;">
<text>描述 : </text>
<view class="uni-flex uni-row uni-center" style="align-items: center;">
<input class="desc_input" v-model="description" :focus="true"
/>
</view>
</view>
</view>
<view class='split_line'></view> <view class='split_line'></view>
</view> </view>
</view> </view>

10
src/pages/count/job/countJob.vue

@ -167,11 +167,11 @@
// action: "==", // action: "==",
// value: this.$store.state.user.id // value: this.$store.state.user.id
// }) // })
filters.push({ // filters.push({
column: "accept_user_id", // column: "accept_user_id",
action: "==", // action: "==",
value: this.$store.state.user.id // value: this.$store.state.user.id
}) // })
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,

100
src/pages/count/job/fuzzyCountDetail.vue

@ -1,17 +1,12 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view>
<view class="page-header"> <view class="page-header">
<view class="header_job_top"> <view class="header_job_top">
<job-top :dataContent="jobContent"></job-top>
<!-- <scroll-view scroll-y="true" class="page-main-scroll"> -->
<uni-collapse ref="collapse"> <uni-collapse ref="collapse">
<uni-collapse-item :open="false"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>
<view> <view class="card_itemName" style="padding: 3px 5px; font-size: 28rpx;">
<job-top :dataContent="jobContent"></job-top>
盘点范围 盘点范围
</view> </view>
</template> </template>
@ -20,18 +15,6 @@
<text class="card_packing_code ">{{getCountScopeName(range.type)}}</text> <text class="card_packing_code ">{{getCountScopeName(range.type)}}</text>
<text class="card_content ">{{range.value}}</text> <text class="card_content ">{{range.value}}</text>
</view> </view>
<view class="card_view">
<text class="card_packing_code ">{{getCountScopeName(range.type)}}</text>
<text class="card_content ">{{range.value}}</text>
</view>
<view class="card_view">
<text class="card_packing_code ">{{getCountScopeName(range.type)}}</text>
<text class="card_content ">{{range.value}}</text>
</view>
<view class="card_view">
<text class="card_packing_code ">{{getCountScopeName(range.type)}}</text>
<text class="card_content ">{{range.value}}</text>
</view>
</view> </view>
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
@ -41,6 +24,7 @@
<text class="card_content ">{{fromLocationCode}}</text> <text class="card_content ">{{fromLocationCode}}</text>
</view> </view>
</view> </view>
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
@ -57,12 +41,22 @@
</scroll-view> </scroll-view>
</view> </view>
<view class="page-footer"> <view class="page-footer" v-if="detailSource.length>0">
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="uni-flex u-col-center space-between padding_10">
<view>
已扫描:
</view>
<view class="card_packing_code" style="padding: 5px; font-weight: bold ; font-size: 40rpx;">
{{detailSource.length}}
</view>
<view >
()
</view>
</view> </view>
<view class=" uni-flex uni-row"> <view class=" uni-flex uni-row space-between">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> <button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
</view> </view>
</view> </view>
@ -146,7 +140,8 @@
jobStatus: "", jobStatus: "",
fromLocation: {}, fromLocation: {},
fromLocationCode: '', fromLocationCode: '',
editRemoveOption: [] editRemoveOption: [],
itemRangeValue: ""
}; };
}, },
onLoad(option) { onLoad(option) {
@ -221,11 +216,15 @@
uni.hideLoading(); uni.hideLoading();
that.jobContent = res.data; that.jobContent = res.data;
that.jobStatus = res.data.status; that.jobStatus = res.data.status;
let range = that.jobContent.countRange.find(r => r.type == "ITEMS_CODE");
if (range != undefined) {
that.itemRangeValue = range.value;
}
callback(); callback();
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()
this.showErrorMessage(error) that.showErrorMessage(error)
}) })
}, },
@ -325,9 +324,26 @@
getScanResult(result) { getScanResult(result) {
let that = this; let that = this;
let packInfo = result.package; let packInfo = result.package;
let detail = this.createDetailInfo(packInfo);
this.detailSource.unshift(detail);
this.scanPopupGetFocus();
return;
if (this.itemRangeValue != '') {
let index = this.itemRangeValue.indexOf(packInfo.itemCode)
if (index < 0) {
this.afterScanLocation("物料代码【" + packInfo.itemCode + "】,不在盘点范围【" + this.itemRangeValue + "】内");
return;
} else {
this.onScan(packInfo);
}
} else {
this.onScan(packInfo);
}
},
onScan(packInfo) {
let detail = this.detailSource.find(r => r.itemCode == packInfo.itemCode && r.packingNumber == packInfo let detail = this.detailSource.find(r => r.itemCode == packInfo.itemCode && r.packingNumber == packInfo
.number && r.batch == packInfo.batch && r.inventoryStatus == "OK"); .number && r.batch == packInfo.batch && r.inventoryStatus == "OK");
if (detail == undefined) { if (detail == undefined) {
detail = this.createDetailInfo(packInfo); detail = this.createDetailInfo(packInfo);
this.detailSource.unshift(detail) this.detailSource.unshift(detail)
@ -366,7 +382,7 @@
itemDesc2: packInfo.itemDesc2, itemDesc2: packInfo.itemDesc2,
projectCode: "", projectCode: "",
qty: packInfo.qty, qty: packInfo.qty,
countQty: packInfo.qty, packUnit: packInfo.packUnit,
packQty: packInfo.packQty, packQty: packInfo.packQty,
packUom: packInfo.packUom, packUom: packInfo.packUom,
uom: packInfo.uom, uom: packInfo.uom,
@ -376,8 +392,11 @@
warehouseCode: this.fromLocation.warehouseCode, warehouseCode: this.fromLocation.warehouseCode,
areaCode: this.fromLocation.areaCode, areaCode: this.fromLocation.areaCode,
locationGroupCode: this.fromLocation.locationGroupCode, locationGroupCode: this.fromLocation.locationGroupCode,
creationTime: new Date(), createTime: new Date().getTime(),
countTime: new Date() countTime: new Date().getTime(),
countUser: this.$store.state.user.id,
countDescription: 'a',
countQty: packInfo.qty
} }
return detail; return detail;
}, },
@ -429,12 +448,19 @@
this.$refs.detailInfoPopup.openPopup(item); this.$refs.detailInfoPopup.openPopup(item);
}, },
commit() { commit() {
// if(this.detailSource.length==0) if (this.detailSource.length == 0) {
// { this.$refs.comMessage.showMessage('还未扫描,是否要继续提交', res => {
if (res) {
this.commitJob();
}
});
} else {
this.commitJob();
}
},
// } commitJob() {
uni.showLoading({ uni.showLoading({
title: "提交中....", title: "提交中....",
mask: true mask: true
@ -452,9 +478,9 @@
uni.hideLoading() uni.hideLoading()
this.showErrorMessage(error) this.showErrorMessage(error)
}) })
}, },
setParams() { setParams() {
var creator = this.$store.state.user.id var creator = this.$store.state.user.id
this.jobContent.subList = this.detailSource this.jobContent.subList = this.detailSource
@ -490,10 +516,12 @@
this.scanPopupGetFocus(); this.scanPopupGetFocus();
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
navigateBack(1); this.fromLocationCode = '';
this.fromLocation = {};
this.detailSource = [];
this.showFromLocationPopup();
}) })
}, },
getCountStageName(value) { getCountStageName(value) {

2
src/pages/index/index.vue

@ -147,8 +147,6 @@
if (uni.getStorageSync("hasLogin")) { if (uni.getStorageSync("hasLogin")) {
this.getMenuItemTop() this.getMenuItemTop()
} }
}, },
onHide() { onHide() {
this.stopRefresh(); this.stopRefresh();

Loading…
Cancel
Save