diff --git a/manifest.json b/manifest.json
index 1f9f585..fabac8f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "北安新生",
"appid" : "__UNI__7BAD0A0",
"description" : "北安新生手持系统",
- "versionName" : "1.0.2",
- "versionCode" : 102,
+ "versionName" : "1.0.3",
+ "versionCode" : 103,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages/task/sgzp.vue b/pages/task/sgzp.vue
index 2f1e741..a66ce0a 100644
--- a/pages/task/sgzp.vue
+++ b/pages/task/sgzp.vue
@@ -68,6 +68,22 @@
+
+
+ 客户编码
+
+
+
+
+
+
+
+ 合同编码
+
+
+
+
+
@@ -81,7 +97,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import NumberInput from '@/components/NumberInput.vue'
- import {getMaterCode, groupPlateTwo} from '@/utils/getData.js'
+ import {getMaterCode, getCust, groupPlateTwo} from '@/utils/getData.js'
export default {
components: {
NavBar,
@@ -98,11 +114,15 @@
qty: null,
index: '',
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
};
},
onLoad (options) {
this.title = options.title
+ this._getCust()
},
methods: {
async _getMaterCode () {
@@ -116,13 +136,29 @@
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 () {
this.code = ''
this.vcode = ''
this.initData = {}
this.pcsn = null
this.qty = null
- this.index = null
+ this.index = ''
+ this.index1 = ''
+ this.contractCode = null
this.disabled = false
},
// 组盘确认
@@ -133,7 +169,7 @@
return
}
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()
uni.showToast({
title: res.message,
diff --git a/utils/getData.js b/utils/getData.js
index 4c3c1a0..6e376fd 100644
--- a/utils/getData.js
+++ b/utils/getData.js
@@ -131,7 +131,11 @@ export const getMaterCode = (code) => request({
url:'api/pda/iosIn/getMaterCode',
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',
data: {
storagevehicle_code: scode,
@@ -140,7 +144,9 @@ export const groupPlateTwo = (scode, mcode, mname, spec, pcsn, qty, area) => req
material_spec: spec,
pcsn: pcsn,
qty: qty,
- prison_area: area
+ prison_area: area,
+ cust_code: cust,
+ contract_code: contract
}
})
// 空托盘入库出库