手工组盘加功能

This commit is contained in:
2025-12-04 09:33:14 +08:00
parent ef5d2bdc52
commit 5326be534c
3 changed files with 49 additions and 7 deletions

View File

@@ -2,8 +2,8 @@
"name" : "北安新生", "name" : "北安新生",
"appid" : "__UNI__7BAD0A0", "appid" : "__UNI__7BAD0A0",
"description" : "北安新生手持系统", "description" : "北安新生手持系统",
"versionName" : "1.0.2", "versionName" : "1.0.3",
"versionCode" : 102, "versionCode" : 103,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@@ -68,6 +68,22 @@
<uni-data-select v-model="index" :localdata="options"></uni-data-select> <uni-data-select v-model="index" :localdata="options"></uni-data-select>
</view> </view>
</view> </view>
<view class="zd-row border-bottom">
<view class="zd-col-8">
<span class="filter_label">客户编码</span>
</view>
<view class="zd-col-16 filter_select">
<uni-data-select v-model="index1" :localdata="options1"></uni-data-select>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-6">
<span class="filter_label">合同编码</span>
</view>
<view class="zd-col-18 filter_select">
<input type="text" class="filter_input" v-model="contractCode">
</view>
</view>
</view> </view>
</view> </view>
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
@@ -81,7 +97,7 @@
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import NumberInput from '@/components/NumberInput.vue' import NumberInput from '@/components/NumberInput.vue'
import {getMaterCode, groupPlateTwo} from '@/utils/getData.js' import {getMaterCode, getCust, groupPlateTwo} from '@/utils/getData.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -98,11 +114,15 @@
qty: null, qty: null,
index: '', index: '',
options: Array.from({length: 14}, (_, i) => i + 1).filter(num => num !== 8 && num !== 13).map(num => ({value: `A${num}`,text: `A${num}`})), options: Array.from({length: 14}, (_, i) => i + 1).filter(num => num !== 8 && num !== 13).map(num => ({value: `A${num}`,text: `A${num}`})),
index1: '',
options1: [],
contractCode: null,
disabled: false disabled: false
}; };
}, },
onLoad (options) { onLoad (options) {
this.title = options.title this.title = options.title
this._getCust()
}, },
methods: { methods: {
async _getMaterCode () { async _getMaterCode () {
@@ -116,13 +136,29 @@
this.initData = {} this.initData = {}
} }
}, },
async _getCust () {
try {
let res = await getCust()
if (res && res.data) {
this.options1 = [...res.data]
this.options1.map(el => {
this.$set(el, 'value', el.cust_code)
this.$set(el, 'text', el.cust_name)
})
}
} catch (e) {
this.options1 = []
}
},
clearUp () { clearUp () {
this.code = '' this.code = ''
this.vcode = '' this.vcode = ''
this.initData = {} this.initData = {}
this.pcsn = null this.pcsn = null
this.qty = null this.qty = null
this.index = null this.index = ''
this.index1 = ''
this.contractCode = null
this.disabled = false this.disabled = false
}, },
// 组盘确认 // 组盘确认
@@ -133,7 +169,7 @@
return return
} }
try { try {
let res = await groupPlateTwo(this.vcode, this.code, this.initData.material_name, this.initData.material_spec, this.pcsn, this.qty, this.index) let res = await groupPlateTwo(this.vcode, this.code, this.initData.material_name, this.initData.material_spec, this.pcsn, this.qty, this.index, this.index1, this.contractCode)
this.clearUp() this.clearUp()
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -131,7 +131,11 @@ export const getMaterCode = (code) => request({
url:'api/pda/iosIn/getMaterCode', url:'api/pda/iosIn/getMaterCode',
data: {material_code: code} data: {material_code: code}
}) })
export const groupPlateTwo = (scode, mcode, mname, spec, pcsn, qty, area) => request({ export const getCust = () => request({
url:'api/pda/iosIn/getCust',
data: {}
})
export const groupPlateTwo = (scode, mcode, mname, spec, pcsn, qty, area, cust, contract) => request({
url:'api/pda/iosIn/groupPlateTwo', url:'api/pda/iosIn/groupPlateTwo',
data: { data: {
storagevehicle_code: scode, storagevehicle_code: scode,
@@ -140,7 +144,9 @@ export const groupPlateTwo = (scode, mcode, mname, spec, pcsn, qty, area) => req
material_spec: spec, material_spec: spec,
pcsn: pcsn, pcsn: pcsn,
qty: qty, qty: qty,
prison_area: area prison_area: area,
cust_code: cust,
contract_code: contract
} }
}) })
// 空托盘入库出库 // 空托盘入库出库