Browse Source

wan shan pan dian

myd
qb 1 year ago
parent
commit
6f1d075dc0
  1. 4
      manifest.json
  2. 2
      pages/user/user.vue
  3. 3
      pagesHome/pages/DownGoods/DownGoods.vue
  4. 55
      pagesHome/pages/inventoryType/inventoryType.vue
  5. 8
      pagesHome/pages/inventoryenter/inventoryenter.vue
  6. 14
      pagesHome/pages/lnventorysortinglist/lnventorysortinglist.vue
  7. 74
      pagesHome/pages/orderInquiry/orderInquiry.vue
  8. 85
      pagesTask/pages/checkTaskList/checkTaskList.vue
  9. 243
      pagesTask/pages/contracts/contracts.vue
  10. 64
      pagesTask/pages/dynamicCheck/dynamicCheck.vue
  11. 252
      pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails.vue
  12. 113
      pagesTask/pages/trayCheckDetails/trayCheckDetails.vue
  13. 2
      unpackage/dist/dev/app-plus/app-config-service.js
  14. 4474
      unpackage/dist/dev/app-plus/app-service.js
  15. 14
      unpackage/dist/dev/app-plus/app.css
  16. 4
      unpackage/dist/dev/app-plus/manifest.json

4
manifest.json

@ -2,8 +2,8 @@
"name" : "货无忧", "name" : "货无忧",
"appid" : "__UNI__EB22F37", "appid" : "__UNI__EB22F37",
"description" : "", "description" : "",
"versionName" : "1.0.3", "versionName" : "1.0.7",
"versionCode" : 103, "versionCode" : 107,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

2
pages/user/user.vue

@ -173,7 +173,7 @@
// //
// let version = await utils.getversion() // let version = await utils.getversion()
let version = { let version = {
version: '1.0.3', version: '1.0.7',
pkName: 'com.hwy.pda' pkName: 'com.hwy.pda'
} }
console.log("version 版本>>>>", version) console.log("version 版本>>>>", version)

3
pagesHome/pages/DownGoods/DownGoods.vue

@ -566,6 +566,9 @@
} }
function setshowstate(state : number) { function setshowstate(state : number) {
details.showstate = state details.showstate = state
//
details.codelist = []
details.scancode = ''
} }
function checkmake() { function checkmake() {
let list = [] let list = []

55
pagesHome/pages/inventoryType/inventoryType.vue

@ -1,8 +1,7 @@
<template> <template>
<!-- <u-navbar title="库存品打托方式" placeholder border=true :autoBack="true" leftIconSize='35'></u-navbar> --> <!-- <u-navbar title="库存品打托方式" placeholder border=true :autoBack="true" leftIconSize='35'></u-navbar> -->
<u-navbar title="库存品打托方式" <u-navbar title="库存品打托方式" bgColor='#D3832A' leftIconColor='#ffffff' titleStyle='color:#ffffff' placeholder
bgColor='#D3832A' leftIconColor='#ffffff' :autoBack="true" leftIconSize='35'></u-navbar>
titleStyle='color:#ffffff' placeholder :autoBack="true" leftIconSize='35'></u-navbar>
<view class="pepleview"> <view class="pepleview">
<view class="pepleietm" @click="gotourl(item)" v-for="item in typelist"> <view class="pepleietm" @click="gotourl(item)" v-for="item in typelist">
<image :src="item.src"></image> <image :src="item.src"></image>
@ -19,22 +18,22 @@
onUnload onUnload
} from '@dcloudio/uni-app' } from '@dcloudio/uni-app'
import { ref } from "vue"; import { ref } from "vue";
let typelist = ref<{ type : number, name : string,src:string }[]>([]) let typelist = ref<{ type : number, name : string, src : string }[]>([])
let pageType=ref(null) let pageType = ref(null)
let trayCode=ref(null) let trayCode = ref(null)
onLoad((op) => { onLoad((op) => {
pageType.value=op.type pageType.value = op.type
trayCode.value=op.trayCode trayCode.value = op.trayCode
typelist.value = [ typelist.value = [
{ type: 1, name: '物料编码',src:'/pagesHome/static/dtfsicon1.png' }, { type: 1, name: '物料编码', src: '/pagesHome/static/dtfsicon1.png' },
{ type: 2, name: '物料名称',src:'/pagesHome/static/dtfsicon2.png' }, // { type: 2, name: '',src:'/pagesHome/static/dtfsicon2.png' },
{ type: 2, name: '其他',src:'/pagesHome/static/dtfsicon3.png' }, // { type: 2, name: '', src: '/pagesHome/static/dtfsicon3.png' },
] ]
let trayCodeTypearr=uni.getStorageSync('trayCodeType') let trayCodeTypearr = uni.getStorageSync('trayCodeType')
trayCodeTypearr.map((item,index)=>{ trayCodeTypearr.map((item, index) => {
typelist.value.map((ite,inde)=>{ typelist.value.map((ite, inde) => {
if(item.dictValue==ite.name){ if (item.dictValue == ite.name) {
typelist.value[inde]['dictKey']=item.dictKey typelist.value[inde]['dictKey'] = item.dictKey
} }
}) })
}) })
@ -43,11 +42,11 @@
let url = '' let url = ''
if (Number(pageType.value) == 1) { if (Number(pageType.value) == 1) {
// url = '/pagesHome/pages/inventoryDetail/inventoryDetail?type='+item.type+ // url = '/pagesHome/pages/inventoryDetail/inventoryDetail?type='+item.type+
url = '/pagesHome/pages/inventoryenter/inventoryenter?type='+item.type+ url = '/pagesHome/pages/inventoryenter/inventoryenter?type=' + item.type +
'&trayCode='+trayCode.value+'&trayType='+item.dictKey '&trayCode=' + trayCode.value + '&trayType=' + item.dictKey
} else if (Number(pageType.value) == 2) { } else if (Number(pageType.value) == 2) {
url = '/pagesHome/pages/inventoryenter/inventoryenter?type='+item.type+ url = '/pagesHome/pages/inventoryenter/inventoryenter?type=' + item.type +
'&trayCode='+trayCode.value+'&trayType='+item.dictKey '&trayCode=' + trayCode.value + '&trayType=' + item.dictKey
} }
uni.redirectTo({ uni.redirectTo({
url url
@ -56,12 +55,13 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.pepleview{ .pepleview {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-top: 40upx; padding-top: 40upx;
.pepleietm{
.pepleietm {
width: 600upx; width: 600upx;
height: 520upx; height: 520upx;
background: #FFFFFF; background: #FFFFFF;
@ -71,14 +71,16 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0,0,0,0.1); box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
>image{
width:320upx; >image {
width: 320upx;
height: 320upx; height: 320upx;
margin-bottom: 40upx; margin-bottom: 40upx;
} }
} }
} }
.maxbxview { .maxbxview {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -96,7 +98,8 @@
color: #FA8C16; color: #FA8C16;
font-size: 28upx; font-size: 28upx;
margin-bottom: 50upx; margin-bottom: 50upx;
box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0,0,0,0.1); box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
&:nth-last-child(1) { &:nth-last-child(1) {
margin-bottom: 0; margin-bottom: 0;
} }

8
pagesHome/pages/inventoryenter/inventoryenter.vue

@ -219,6 +219,7 @@
console.log("list", list) console.log("list", list)
list.push(item?.marketName) list.push(item?.marketName)
}) })
console.log('details.Marketlist :>> ', details.Marketlist);
tiplists.value.setdetails({ tiplists.value.setdetails({
title: '请选择商场', title: '请选择商场',
isshow: true, isshow: true,
@ -239,6 +240,7 @@
} }
const { list, checklist } = deta const { list, checklist } = deta
marketName.value = list[checklist[0]] marketName.value = list[checklist[0]]
details.marketId = details.Marketlist.find(val => val.marketName === marketName.value).marketId
tiplists.value.setdetails({ isshow: false }) tiplists.value.setdetails({ isshow: false })
}, },
cancel: (details) => { cancel: (details) => {
@ -285,7 +287,7 @@
} }
async function schbut() { async function schbut() {
let data = { let data = {
marketId: details.Marketlist[details.checkmakindex].marketId, marketId: details.marketId,
materialCode: details.materialCode materialCode: details.materialCode
} }
let res = await warehouseTrayTypeselectStockByMaterialCodeAndMarketId(data) let res = await warehouseTrayTypeselectStockByMaterialCodeAndMarketId(data)
@ -314,10 +316,10 @@
details.scanlist.map(async (item, index) => { details.scanlist.map(async (item, index) => {
if (item.maknumber) { if (item.maknumber) {
let data = { let data = {
trayType: details.trayType, trayType: 100,
trayCode: details.trayCode, trayCode: details.trayCode,
num: item.maknumber, num: item.maknumber,
marketId: details.Marketlist[details.checkmakindex].marketId, marketId: details.marketId,
materialCode: item.cargoNumber, materialCode: item.cargoNumber,
incomingBatch: item.incomingBatch incomingBatch: item.incomingBatch
} }

14
pagesHome/pages/lnventorysortinglist/lnventorysortinglist.vue

@ -148,7 +148,8 @@
// //
antiShake = null antiShake = null
// , // ,
if (res.data.records.length < details.pageSize) { console.log('res :>> ', res);
if (res.data.records.length < details.pageSize || details.pageNum >= res.pages) {
uni.showToast({ uni.showToast({
title: '已经到底了', title: '已经到底了',
icon: 'success' icon: 'success'
@ -288,9 +289,18 @@
} else if (details.pageType == 2) { } else if (details.pageType == 2) {
res = await warehouseTrayTypestockNoDataPageList(submitData) res = await warehouseTrayTypestockNoDataPageList(submitData)
} }
details.datelist = res.data.records // details.datelist = res.data.records
console.log('res :>> ', res);
const { code, data } = res const { code, data } = res
if (code === 200 && data) details.datelist = [...details.datelist, ...data.records] if (code === 200 && data) details.datelist = [...details.datelist, ...data.records]
console.log('details.datelist :>> ', details.datelist);
if (res.data.records.length < details.pageSize || details.pageNum >= res.pages) {
uni.showToast({
title: '已经到底了',
icon: 'success'
})
return option.isEnd = true
}
return res return res
} }
function goscansorttype() { function goscansorttype() {

74
pagesHome/pages/orderInquiry/orderInquiry.vue

@ -7,7 +7,7 @@
<!-- 顶部搜索栏 --> <!-- 顶部搜索栏 -->
<view class="header-search"> <view class="header-search">
<view class="search"> <view class="search">
<input class="searchInput" v-model="searchForm.condition" type="text" @input='distributionOrder'> <input class="searchInput" v-model="scancode" type="text">
<!-- 搜索结果列表 --> <!-- 搜索结果列表 -->
<view class="searchResultList" v-if="isShowOrderList"> <view class="searchResultList" v-if="isShowOrderList">
@ -90,9 +90,9 @@
<view @click="showArticleMadeToOrderModule"> <view @click="showArticleMadeToOrderModule">
订制品(<text class="title__number">{{packageList.length}}</text>) 订制品(<text class="title__number">{{packageList.length}}</text>)
</view> </view>
<view @click="showArticleMadeToOrder = false"> <!-- <view @click="showArticleMadeToOrder = false">
成品(<text class="title__number">{{packageList.length}}</text>) 成品(<text class="title__number">{{packageList.length}}</text>)
</view> </view> -->
</view> </view>
<!-- 订制品 --> <!-- 订制品 -->
@ -139,10 +139,18 @@
</view> </view>
</u-popup> </u-popup>
<saomiao2></saomiao2>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, reactive, shallowRef } from 'vue'; import { ref, reactive, shallowRef, watch } from 'vue';
import {
onShow,
onHide,
onReachBottom,
onPullDownRefresh
} from '@dcloudio/uni-app'
import { import {
distributionOrderInFuzzyQuery, distributionOrderInFuzzyQuery,
distributionOrderInfoInQuery, distributionOrderInfoInQuery,
@ -176,6 +184,9 @@
// //
const showPopup = ref<Boolean>(false) const showPopup = ref<Boolean>(false)
//
const scancode = ref<string>('')
// //
const orderStateDictionaries = reactive({ const orderStateDictionaries = reactive({
'10': '部分入库', '10': '部分入库',
@ -199,28 +210,29 @@
type: 2 type: 2
}, },
], ],
type: 2, type: 1,
}) })
// //
const templateHtml = ref<string>('') const templateHtml = ref<string>('')
// //
let timer : any onShow(() => {
// uni.$on('scancodedate', function (code) {
function distributionOrder() : void { if (code) {
// scancode.value = code
if (timer) clearTimeout(timer)
timer = setTimeout(async () => { scandata()
//
let res = await distributionOrderInFuzzyQuery(searchForm)
isShowOrderList.value = true
const { code, data } = res
if (code === 200) {
distributionOrderList.value = data
} }
}, 1000) })
} })
//
onHide(() => {
uni.$off('scancodedate')
})
function scandata() { }
// type // type
function handleSearchFormType(type : number) { function handleSearchFormType(type : number) {
@ -236,7 +248,7 @@
// //
async function handleSearchOrder(order : string) { async function handleSearchOrder(order : string) {
searchForm.condition = order scancode.value = order
// //
isShowOrderList.value = false isShowOrderList.value = false
// //
@ -296,6 +308,26 @@
console.log(templateHtml) console.log(templateHtml)
} }
} }
//
let timer : any
watch([scancode], (newVal) => {
console.log('newVal :>> ', newVal);
//
//
if (timer) clearTimeout(timer)
timer = setTimeout(async () => {
searchForm.condition = scancode.value
//
let res = await distributionOrderInFuzzyQuery(searchForm)
isShowOrderList.value = true
const { code, data } = res
if (code === 200) {
distributionOrderList.value = data
}
}, 1000)
})
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

85
pagesTask/pages/checkTaskList/checkTaskList.vue

@ -28,7 +28,7 @@
<template v-if="pageType === 2"> <template v-if="pageType === 2">
<!-- 顶部 --> <!-- 顶部 -->
<view class="main_top"> <view class="main_top">
<input type="text" v-model="details.searchText.taryText" placeholder="请输入托盘码" class="main_top_search" /> <input type="text" v-model="details.scancode" placeholder="请输入库位码" class="main_top_search" />
<view class="button" @click="searchStorage">搜索</view> <view class="button" @click="searchStorage">搜索</view>
</view> </view>
@ -103,7 +103,7 @@
<template v-if="pageType === 4"> <template v-if="pageType === 4">
<!-- 顶部 --> <!-- 顶部 -->
<view class="main_top"> <view class="main_top">
<input type="text" v-model="details.searchText.taryText" placeholder="请输入托盘码" class="main_top_search" /> <input type="text" v-model="details.scancode" placeholder="请输入托盘码" class="main_top_search" />
<view class="button" @click="searchTary">搜索</view> <view class="button" @click="searchTary">搜索</view>
</view> </view>
@ -181,7 +181,7 @@
isEnd: false, isEnd: false,
warehouseId: '' warehouseId: ''
}) })
const placeholder = ref('请输入')
const isDropdownOpen = ref(false) // const isDropdownOpen = ref(false) //
const selectedValue = ref({ const selectedValue = ref({
value: '1', label: '定制品' value: '1', label: '定制品'
@ -196,6 +196,11 @@
} }
const selectOption = (option) => { const selectOption = (option) => {
selectedValue.value = option; // selectedValue.value = option; //
if (option.value == 1) {//
placeholder.value = '请输入合同号'
} else {
placeholder.value = '请输入物料编码'
}
console.log(option); console.log(option);
isDropdownOpen.value = false; // isDropdownOpen.value = false; //
} }
@ -214,30 +219,36 @@
details.marketName = data.marketName details.marketName = data.marketName
// , // ,
if (pageType === 2) details.isscan = true if (pageType === 2) details.isscan = true
if (pageType === 3) details.isscan = true if (pageType === 3) {
details.isscan = true
infodata.value = data
pgetContractList({
taskId: data.id,
warehouseId: data.warehouseId
}).then(res => {
if (res.code = 200 && res.data) {
details.renderList = res.data.records
}
// console.log(res.data.records);
// details.renderList=res.data.records
})
}
else details.isscan = false else details.isscan = false
infodata.value = data
pgetContractList({
taskId: data.id,
warehouseId: data.warehouseId
}).then(res => {
if (res.code = 200 && res.data) {
details.renderList = res.data.records
}
console.log(res);
utils.ttsspke(res.msg)
// console.log(res.data.records);
// details.renderList=res.data.records
})
// //
initPage() initPage()
if (details.pageType === 1) return
else if (details.pageType === 2) return utils.ttsspke('请扫描库位码')
else if (details.pageType === 3) return utils.ttsspke('请扫描包条码或输入订单自编码')
else if (details.pageType === 4) return utils.ttsspke('请扫描托盘')
}) })
// //
onShow(() => { onShow(() => {
uni.$on('scancodedate', function (code) { uni.$on('scancodedate', function (code) {
if (code) { if (code) {
console.log('code :>> ', code);
details.scancode = code details.scancode = code
scandata() scandata()
@ -341,7 +352,7 @@
} }
// //
function scandata() { async function scandata() {
// //
if (details.isscan) return if (details.isscan) return
@ -354,25 +365,51 @@
console.log(res); console.log(res);
if (res.code != 403) { if (res.code != 403) {
uni.navigateTo({ uni.navigateTo({
url: `/pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails?allocationId=${details.scancode}&questId=${details.id}` url: `/pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails?allocationId=${details.scancode}&questId=${details.id}&marketName=${JSON.stringify(details.marketName)}`
}) })
} }
}) })
return return
} }
if (details.pageType == 3) {
postqueryContractList({
taskId: details.id,
goodsType: selectedValue.value.value,
warehouseId: details.warehouseId,
type: '1',
code: details.scancode
}).then(res => {
console.log(res, 'res===');
utils.ttsspke(res.audio)
if (res.code != 3001) {
details.renderList = res.data
}
})
}
if (details.pageType === 4) {
const res = getTaryList()
const { msg } = await res
uni.showToast({
title: msg,
icon: 'none'
})
}
} }
// //
const searchStorage = () => { const searchStorage = () => {
getWarehouseTaskAllocationDetailByStrip({ getWarehouseTaskAllocationDetailByStrip({
questId: details.id, questId: details.id,
allocationId: details.searchText.taryText allocationId: details.scancode
}).then(res => { }).then(res => {
console.log(res); console.log('res >>>>>>>>', res);
if (res.code !== 403) { if (res.code !== 403) {
uni.navigateTo({ uni.navigateTo({
url: `/pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails?allocationId=${details.searchText.taryText}&questId=${details.id}` url: `/pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails?allocationId=${details.searchText.taryText}&questId=${details.id}&marketName=${JSON.stringify(details.marketName)}`
}) })
} }
}) })
@ -387,7 +424,7 @@
console.log(res); console.log(res);
if (res.code != 403) { if (res.code != 403) {
uni.navigateTo({ uni.navigateTo({
url: `/pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails?allocationId=${val.allocationId}&questId=${details.id}` url: `/pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails?allocationId=${val.allocationId}&questId=${details.id}&marketName=${JSON.stringify(details.marketName)}`
}) })
} }
}) })
@ -415,7 +452,7 @@
// , // ,
const contract = (val) => { const contract = (val) => {
uni.navigateTo({ uni.navigateTo({
url: `/pagesTask/pages/contracts/contracts?warehouseId=${details.warehouseId}&taskId=${details.id}&orderId=${val.orderId}&isInventory=${val.isInventory}` url: `/pagesTask/pages/contracts/contracts?warehouseId=${details.warehouseId}&taskId=${details.id}&orderCode=${val.orderCode}&isInventory=${val.isInventory}&marketName=${JSON.stringify(details.marketName)}&martialCode=${val.martialCode}`
}) })
} }
// //

243
pagesTask/pages/contracts/contracts.vue

@ -53,6 +53,7 @@
<!-- 控件 --> <!-- 控件 -->
<view class="control"> <view class="control">
<view class="button" @click="showControl = true" v-show="!showControl">批量操作</view> <view class="button" @click="showControl = true" v-show="!showControl">批量操作</view>
<view class="button" @click="grounding" v-show="!showControl">添加物料</view>
<template v-if="showControl"> <template v-if="showControl">
<view class="button" @click="handleInvertSelection">反选</view> <view class="button" @click="handleInvertSelection">反选</view>
@ -233,7 +234,8 @@
pcontractQuestDetailList, pcontractQuestDetailList,
getWarehouseUpdateQuestDetail, getWarehouseUpdateQuestDetail,
postqueryupdateQuestDetailAllocation, postqueryupdateQuestDetailAllocation,
getWarehouseDeleteQuestDetail getWarehouseDeleteQuestDetail,
getWarehouseSaveNewQuestDetail
} from '@/api/user.js'; } from '@/api/user.js';
import utils from '@/utils/utils.js'; import utils from '@/utils/utils.js';
@ -284,6 +286,8 @@
'', '',
'red' 'red'
], ],
marketName: [],
goodsType: ''
}) })
const infos = ref({})// const infos = ref({})//
// //
@ -365,6 +369,7 @@
// //
onLoad((info) => { onLoad((info) => {
infos.value = info infos.value = info
details.marketName = JSON.parse(info.marketName)
console.log(info, 'infos=========='); console.log(info, 'infos==========');
Tjinfo()// Tjinfo()//
}) })
@ -390,38 +395,38 @@
// //
function reachBottomInitPage() { function reachBottomInitPage() {
// , // ,
if (option.isEnd) { // if (option.isEnd) {
return uni.showToast({ // return uni.showToast({
icon: 'success', // icon: 'success',
title: '数据已加载完毕' // title: ''
}) // })
} // }
if (antiShake) { // if (antiShake) {
uni.hideLoading() // uni.hideLoading()
// // //
clearTimeout(antiShake) // clearTimeout(antiShake)
return antiShake = null // return antiShake = null
} // }
// Loading, // // Loading,
uni.showLoading({ // uni.showLoading({
title: '正在加载', // title: '',
mask: true // mask: true
}) // })
antiShake = setTimeout(async () => { // antiShake = setTimeout(async () => {
// // //
console.log('触底') // console.log('')
// // //
if (tabBarCode.value === 1) { Tjinfo() } // if (tabBarCode.value === 1) { Tjinfo() }
// // //
if (tabBarCode.value === 2) { Tjinfo() } // if (tabBarCode.value === 2) { Tjinfo() }
// // //
if (tabBarCode.value === 3) { Tjinfo() } // if (tabBarCode.value === 3) { Tjinfo() }
// Loading // // Loading
uni.hideLoading() // uni.hideLoading()
// // //
antiShake = null // antiShake = null
}, 1000) // }, 1000)
} }
// //
@ -436,12 +441,20 @@
// //
function Tjinfo() { function Tjinfo() {
pcontractQuestDetailList({ const FormData = {
warehouseId: infos.value.warehouseId, warehouseId: infos.value.warehouseId,
taskId: infos.value.taskId, taskId: infos.value.taskId,
orderId: infos.value.orderId, orderCode: infos.value.orderCode,
isInventory: infos.value.isInventory isInventory: infos.value.isInventory
}).then(res => { }
console.log('infos :>> ', infos);
if (infos.value.isInventory === '1') {
FormData.orderCode = infos.value.martialCode
}
pcontractQuestDetailList(FormData).then(res => {
console.log(res); console.log(res);
// //
if (res.data.isInventory == 1) { if (res.data.isInventory == 1) {
@ -464,6 +477,9 @@
article.finishNum = res.data.unTotal// article.finishNum = res.data.unTotal//
details.renderList = res.data.packagelistVOList details.renderList = res.data.packagelistVOList
details.checkList = details.renderList.map(() => false) details.checkList = details.renderList.map(() => false)
if (stock.isInventory === 1) details.goodsType = '库存品'
else if (zero.isZero === 1) details.goodsType = '零担'
else details.goodsType = '定制品'
}) })
} }
@ -492,9 +508,38 @@
} }
// //
function scandata() { async function scandata() {
details.isScan = true if (details.goodsType !== '定制品') return
Tjinfo() details.scancode
const flag = details.renderList.find(val => val.orderPackageCode === details.scancode)
console.log('flag :>> ', flag);
//
if (flag) {
const questDetailList = [{
id: flag.questDetailId,
//
stockNum: flag.quantity,
//
lossNum: 0,
//
deliveNum: 0,
//
wornNum: 0,
//
noRepairNum: 0,
//
noReceivedNum: 0,
}]
const res = await getWarehouseUpdateQuestDetail({ questDetailList, questId: infos.value.taskId })
const { code, msg } = res
console.log('res :>> ', res);
if (code === 200) {
Tjinfo()
utils.ttsspke(msg)
}
} else {
grounding()
}
} }
// //
@ -856,6 +901,126 @@
}) })
} }
/**
* 新增物料
*/
function grounding() {
const marketName = Array.from(details.marketName)
console.log('marketName :>> ', marketName);
let goodsType = details.goodsType
tiplists.value.setdetails({
title: '新增',
isshow: true,
tipstate: 5,
upform: {
article: {
//
contractNumber: '',
//
orderPackageCode: details.scancode
},
stock: {}
},
marketName,
// goodsType: '',
goodsType,
confirmTxt: '确认新增',
isonecheck: true,
success: async (deta) => {
let submitData : any = {}
if (goodsType === '定制品') submitData = articleAdd(deta)
if (goodsType === '零担') {
uni.showToast({
title: '功能还在开发中'
})
tiplists.value.setdetails({ isshow: false })
return submitData = zeroAdd(deta)
}
if (goodsType === '库存品') submitData = stockAdd(deta)
const res = await getWarehouseSaveNewQuestDetail(submitData)
console.log('res :>> ', res);
const { code } = res
if (code === 200) {
Tjinfo()
uni.showToast({
title: '操作成功',
icon: 'success'
})
}
tiplists.value.setdetails({ isshow: false })
},
cancel: () => {
tiplists.value.setdetails({ isshow: false })
},
close: () => {
tiplists.value.setdetails({ isshow: false })
}
})
}
//
function articleAdd(deta) {
const { upform: { article: { contractNumber, orderPackageCode } } } = deta
if (!contractNumber) return uni.showToast({
title: '请输入合同号',
icon: 'none'
})
if (!orderPackageCode) return uni.showToast({
title: '请输入或扫描包条码',
icon: 'none'
})
const submitData = {
questDetail: {
ordePackageCode: orderPackageCode,
orderCode: contractNumber,
stockNum: 1,
},
orderCode: article.allocationCode,
questTarget: 1,
questType: 3,
questId: infos.value.taskId,
}
return submitData
}
//
function zeroAdd(deta) { }
//
function stockAdd(deta) {
console.log('deta :>> ', deta);
const { upform: { stock: { orderCode, stockNum, marketName, incomingBatch } } } = deta
// if (!contractNumber) return uni.showToast({
// title: '',
// icon: 'none'
// })
// if (!orderPackageCode) return uni.showToast({
// title: '',
// icon: 'none'
// })
console.log('data :>> ', deta);
const submitData = {
questDetail: {
orderCode: orderCode,
stockNum: stockNum,
marketName,
incomingBatch
},
orderCode: article.allocationCode,
questTarget: 3,
questType: 3,
questId: infos.value.taskId,
}
return submitData
}
// watch([articleList, zeroList, stockList, tabBarCode], () => { // watch([articleList, zeroList, stockList, tabBarCode], () => {
// // // //
// if (tabBarCode.value === 1) { // if (tabBarCode.value === 1) {

64
pagesTask/pages/dynamicCheck/dynamicCheck.vue

@ -89,9 +89,9 @@
}, },
reachBottomInitPage: () => { reachBottomInitPage: () => {
// +1 // +1
details.page.current += 1 // details.page.current += 1
// // //
initPage() // initPage()
}, },
haveData: false, haveData: false,
isEnd: false isEnd: false
@ -102,35 +102,35 @@
// uni.startPullDownRefresh() // uni.startPullDownRefresh()
}) })
// // //
let antiShake : any = null // let antiShake : any = null
// // //
onReachBottom(() => { // onReachBottom(() => {
// , // // ,
if (isEnd) { // if (isEnd) {
return uni.showToast({ // return uni.showToast({
title: '数据加载完毕', // title: '',
icon: 'success' // icon: 'success'
}) // })
} // }
if (antiShake) { // if (antiShake) {
uni.hideLoading() // uni.hideLoading()
// // //
clearTimeout(antiShake) // clearTimeout(antiShake)
return antiShake = null // return antiShake = null
} // }
uni.showLoading({ // uni.showLoading({
mask: true, // mask: true,
title: '数据加载中' // title: ''
}) // })
antiShake = setTimeout(async () => { // antiShake = setTimeout(async () => {
// +1 // // +1
details.page.current += 1 // details.page.current += 1
// // //
await initPage() // await initPage()
uni.hideLoading() // uni.hideLoading()
}, 500) // }, 500)
}) // })
// //
onPullDownRefresh(async () => { onPullDownRefresh(async () => {

252
pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails.vue

@ -49,6 +49,7 @@
<!-- 控件 --> <!-- 控件 -->
<view class="control"> <view class="control">
<view class="button" @click="showControl = true" v-show="!showControl">批量操作</view> <view class="button" @click="showControl = true" v-show="!showControl">批量操作</view>
<view class="button" @click="grounding" v-show="!showControl">添加物料</view>
<template v-if="showControl"> <template v-if="showControl">
<view class="button" @click="handleInvertSelection">反选</view> <view class="button" @click="handleInvertSelection">反选</view>
@ -237,7 +238,8 @@
getallocationDetailByStockList, getallocationDetailByStockList,
postqueryupdateQuestDetailAllocation, postqueryupdateQuestDetailAllocation,
getWarehouseUpdateQuestDetail, getWarehouseUpdateQuestDetail,
getWarehouseDeleteQuestDetail getWarehouseDeleteQuestDetail,
getWarehouseSaveNewQuestDetail
} from '@/api/user.js'; } from '@/api/user.js';
const option = reactive({ const option = reactive({
@ -286,6 +288,7 @@
'', '',
'red' 'red'
], ],
marketName: []
}) })
// //
@ -373,6 +376,8 @@
onLoad((info) => { onLoad((info) => {
details.allocationId = info.allocationId details.allocationId = info.allocationId
details.questId = info.questId details.questId = info.questId
console.log('info :>> ', info.marketName);
details.marketName = JSON.parse(info.marketName)
initArticle() initArticle()
initZero() initZero()
initStock() initStock()
@ -395,44 +400,44 @@
uni.$off('scancodedate') uni.$off('scancodedate')
}) })
// // //
let antiShake : any = null // let antiShake : any = null
// // //
function reachBottomInitPage() { // function reachBottomInitPage() {
// , // // ,
if (option.isEnd) { // if (option.isEnd) {
return uni.showToast({ // return uni.showToast({
icon: 'success', // icon: 'success',
title: '数据已加载完毕' // title: ''
}) // })
} // }
if (antiShake) { // if (antiShake) {
uni.hideLoading() // uni.hideLoading()
// // //
clearTimeout(antiShake) // clearTimeout(antiShake)
return antiShake = null // return antiShake = null
} // }
// Loading, // // Loading,
uni.showLoading({ // uni.showLoading({
title: '正在加载', // title: '',
mask: true // mask: true
}) // })
antiShake = setTimeout(async () => { // antiShake = setTimeout(async () => {
// // //
console.log('触底') // console.log('')
// // //
if (tabBarCode.value === 1) { initPage() } // if (tabBarCode.value === 1) { initPage() }
// // //
if (tabBarCode.value === 2) { initPage() } // if (tabBarCode.value === 2) { initPage() }
// // //
if (tabBarCode.value === 3) { initPage() } // if (tabBarCode.value === 3) { initPage() }
// Loading // // Loading
uni.hideLoading() // uni.hideLoading()
// // //
antiShake = null // antiShake = null
}, 1000) // }, 1000)
} // }
// //
async function initPage() { async function initPage() {
@ -456,11 +461,6 @@
type: 1, type: 1,
} }
//
if (details.isScan) {
submitData.type = 2
submitData.code = details.scancode
}
try { try {
const res = await getWarehouseTaskAllocationDetailByStrip(submitData) const res = await getWarehouseTaskAllocationDetailByStrip(submitData)
console.log('res :>>1 ', res) console.log('res :>>1 ', res)
@ -492,11 +492,7 @@
allocationId: details.allocationId, allocationId: details.allocationId,
type: 2, type: 2,
} }
//
if (details.isScan) {
submitData.type = 2
submitData.code = details.scancode
}
try { try {
const res = await getallocationDetailByZeroWaList(submitData) const res = await getallocationDetailByZeroWaList(submitData)
console.log('res :>>0蛋 ', res) console.log('res :>>0蛋 ', res)
@ -527,11 +523,6 @@
type: 3, type: 3,
} }
//
if (details.isScan) {
submitData.type = 2
submitData.code = details.scancode
}
try { try {
const res = await getallocationDetailByStockList(submitData) const res = await getallocationDetailByStockList(submitData)
console.log('res :>>库存 ', res) console.log('res :>>库存 ', res)
@ -551,9 +542,38 @@
} }
// //
function scandata() { async function scandata() {
details.isScan = true if (details.tabBarCode !== 1) return
initPage() details.scancode
const flag = article.articleList.find(val => val.ordePackageCode === details.scancode)
console.log('flag :>> ', flag);
//
if (flag) {
const questDetailList = [{
id: flag.id,
//
stockNum: flag.stockNum,
//
lossNum: 0,
//
deliveNum: 0,
//
wornNum: 0,
//
noRepairNum: 0,
//
noReceivedNum: 0,
}]
const res = await getWarehouseUpdateQuestDetail({ questDetailList, questId: details.questId })
const { code, msg } = res
console.log('res :>> ', res);
if (code === 200) {
initPage()
utils.ttsspke(msg)
}
} else {
grounding()
}
} }
// //
@ -805,6 +825,124 @@
} finally { } } finally { }
} }
/**
* 新增物料
*/
function grounding() {
const marketName = Array.from(details.marketName)
console.log('marketName :>> ', marketName);
const goodsType = ['定制品', '零担', '库存品']
tiplists.value.setdetails({
title: '新增',
isshow: true,
tipstate: 5,
upform: {
article: {
//
contractNumber: '',
//
orderPackageCode: details.scancode
},
stock: {}
},
marketName,
// goodsType: '',
goodsType: goodsType[tabBarCode.value - 1],
confirmTxt: '确认新增',
isonecheck: true,
success: async (deta) => {
let submitData : any = {}
if (tabBarCode.value === 1) submitData = articleAdd(deta)
if (tabBarCode.value === 2) {
uni.showToast({
title: '功能还在开发中'
})
tiplists.value.setdetails({ isshow: false })
return submitData = zeroAdd(deta)
}
if (tabBarCode.value === 3) submitData = stockAdd(deta)
const res = await getWarehouseSaveNewQuestDetail(submitData)
console.log('res :>> ', res);
const { code } = res
if (code === 200) {
initPage()
uni.showToast({
title: '操作成功',
icon: 'success'
})
}
tiplists.value.setdetails({ isshow: false })
},
cancel: () => {
tiplists.value.setdetails({ isshow: false })
},
close: () => {
tiplists.value.setdetails({ isshow: false })
}
})
}
//
function articleAdd(deta) {
const { upform: { article: { contractNumber, orderPackageCode } } } = deta
if (!contractNumber) return uni.showToast({
title: '请输入合同号',
icon: 'none'
})
if (!orderPackageCode) return uni.showToast({
title: '请输入或扫描包条码',
icon: 'none'
})
const submitData = {
questDetail: {
ordePackageCode: orderPackageCode,
orderCode: contractNumber,
stockNum: 1,
},
allocationId: details.allocationId,
questTarget: 1,
questType: 2,
questId: details.questId,
}
return submitData
}
//
function zeroAdd(deta) { }
//
function stockAdd(deta) {
console.log('deta :>> ', deta);
const { upform: { stock: { orderCode, stockNum, marketName, incomingBatch } } } = deta
// if (!contractNumber) return uni.showToast({
// title: '',
// icon: 'none'
// })
// if (!orderPackageCode) return uni.showToast({
// title: '',
// icon: 'none'
// })
console.log('data :>> ', deta);
const submitData = {
questDetail: {
orderCode: orderCode,
stockNum: stockNum,
marketName,
incomingBatch
},
allocationId: details.allocationId,
questTarget: 3,
questType: 2,
questId: details.questId,
}
return submitData
}
/** /**
* 批量修改状态 * 批量修改状态

113
pagesTask/pages/trayCheckDetails/trayCheckDetails.vue

@ -90,7 +90,7 @@
操作: 操作:
</view> </view>
<view style="display: flex; justify-content: space-between;"> <view style="display: flex; justify-content: space-between;">
<text @click="handleState(item)">处理</text> <text class="button" @click="handleState(item)">处理</text>
</view> </view>
</view> </view>
</template> </template>
@ -122,7 +122,7 @@
操作: 操作:
</view> </view>
<view style="display: flex; justify-content: space-between;"> <view style="display: flex; justify-content: space-between;">
<text @click="handleState(item)">处理</text> <text class="button" @click="handleState(item)">处理</text>
</view> </view>
</view> </view>
<view class="tpbx"> <view class="tpbx">
@ -156,7 +156,7 @@
操作: 操作:
</view> </view>
<view style="display: flex; justify-content: space-between;"> <view style="display: flex; justify-content: space-between;">
<text @click="handleState(item)">处理</text> <text class="button" @click="handleState(item)">处理</text>
</view> </view>
</view> </view>
<view class="tpbx"> <view class="tpbx">
@ -311,39 +311,39 @@
uni.$off('scancodedate') uni.$off('scancodedate')
}) })
// // //
let antiShake : any = null // let antiShake : any = null
// // //
function reachBottomInitPage() { // function reachBottomInitPage() {
// , // // ,
if (option.isEnd) { // if (option.isEnd) {
return uni.showToast({ // return uni.showToast({
icon: 'success', // icon: 'success',
title: '数据已加载完毕' // title: ''
}) // })
} // }
console.log('antiShake :>> ', antiShake); // console.log('antiShake :>> ', antiShake);
if (antiShake) { // if (antiShake) {
uni.hideLoading() // uni.hideLoading()
// // //
clearTimeout(antiShake) // clearTimeout(antiShake)
return antiShake = null // return antiShake = null
} // }
// Loading, // // Loading,
uni.showLoading({ // uni.showLoading({
title: '正在加载', // title: '',
mask: true // mask: true
}) // })
antiShake = setTimeout(async () => { // antiShake = setTimeout(async () => {
// // //
console.log('触底') // console.log('')
// Loading // // Loading
uni.hideLoading() // uni.hideLoading()
// // //
antiShake = null // antiShake = null
}, 1000) // }, 1000)
} // }
// //
async function initPage() { async function initPage() {
@ -373,8 +373,38 @@
} }
// //
function scandata() { async function scandata() {
// if () if (info.goodsType !== '定制品') return
details.scancode
const flag = details.renderList.find(val => val.ordePackageCode === details.scancode)
console.log('flag :>> ', flag);
//
if (flag) {
const questDetailList = [{
id: flag.id,
//
stockNum: flag.stockNum,
//
lossNum: 0,
//
deliveNum: 0,
//
wornNum: 0,
//
noRepairNum: 0,
//
noReceivedNum: 0,
}]
const res = await getWarehouseUpdateQuestDetail({ questDetailList, questId: details.pageInfo.taskId })
const { code, msg } = res
console.log('res :>> ', res);
if (code === 200) {
initPage()
utils.ttsspke(msg)
}
} else {
grounding()
}
} }
/** /**
@ -600,6 +630,7 @@
// //
stockNum: item.stockNum, stockNum: item.stockNum,
// //
lossNum: checkSectionList[0].value, lossNum: checkSectionList[0].value,
// //
deliveNum: checkSectionList[1].value, deliveNum: checkSectionList[1].value,
@ -647,8 +678,8 @@
stock: {} stock: {}
}, },
marketName, marketName,
goodsType: '库存品', // goodsType: '',
// goodsType: info.goodsType, goodsType: info.goodsType,
confirmTxt: '确认新增', confirmTxt: '确认新增',
isonecheck: true, isonecheck: true,
success: async (deta) => { success: async (deta) => {
@ -700,7 +731,7 @@
const submitData = { const submitData = {
questDetail: { questDetail: {
orderPackageCode, ordePackageCode: orderPackageCode,
orderCode: contractNumber, orderCode: contractNumber,
stockNum: 1, stockNum: 1,
}, },

2
unpackage/dist/dev/app-plus/app-config-service.js vendored

File diff suppressed because one or more lines are too long

4474
unpackage/dist/dev/app-plus/app-service.js vendored

File diff suppressed because it is too large Load Diff

14
unpackage/dist/dev/app-plus/app.css vendored

@ -811,11 +811,25 @@ body {
border-radius: 0.3125rem; border-radius: 0.3125rem;
font-size: 0.84375rem; font-size: 0.84375rem;
color: #092C4D; color: #092C4D;
position: relative;
} }
.modtips .inputbx > uni-input[data-v-a3a2f036] { .modtips .inputbx > uni-input[data-v-a3a2f036] {
width: 15rem; width: 15rem;
flex: 1; flex: 1;
} }
.modtips .inputbx .select_content[data-v-a3a2f036] {
position: absolute;
z-index: 99;
top: 110%;
background: #fff;
width: 100%;
overflow: hidden;
}
.modtips .inputbx .select_content uni-view[data-v-a3a2f036] {
text-align: center;
padding: 0.625rem 0;
border-bottom: 0.03125rem solid #000;
}
.modtips .listcheck[data-v-a3a2f036] { .modtips .listcheck[data-v-a3a2f036] {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

4
unpackage/dist/dev/app-plus/manifest.json vendored

@ -7,8 +7,8 @@
"id": "__UNI__EB22F37", "id": "__UNI__EB22F37",
"name": "货无忧", "name": "货无忧",
"version": { "version": {
"name": "1.0.3", "name": "1.0.7",
"code": 103 "code": 107
}, },
"description": "", "description": "",
"developer": { "developer": {

Loading…
Cancel
Save