This commit is contained in:
2023-04-13 18:56:04 +08:00
parent 742e6449c0
commit 537b349a9f
3 changed files with 24 additions and 6 deletions

View File

@@ -31,7 +31,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {getCacheLine, releasepoint} from '@/utils/getData2.js'
import {finishproductPoint, releasepoint} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -47,11 +47,18 @@
disabled2: false
};
},
created () {
this._finishproductPoint()
},
methods: {
/** 选择器1 */
selectChange1(e) {
this.index1 = e
},
async _finishproductPoint () {
let res = await finishproductPoint('2')
this.options1 = [...res]
},
toSure1 () {
this.disabled1 = true
if (!this.index1 || !this.val1) {

View File

@@ -52,7 +52,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {getCacheLine, InstoreOrder} from '@/utils/getData2.js'
import {finishproductPoint, InstoreOrder} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -60,7 +60,7 @@
},
data() {
return {
options1: [{text: 'A1', value: 'A1'}, {text: 'A2', value: 'A2'}],
options1: [],
index1: 'A1',
val1: '',
dataList: [],
@@ -76,6 +76,9 @@
destroyed () {
this.$store.dispatch('setPublicArr', '')
},
created () {
this._finishproductPoint()
},
methods: {
/** 选择器1 */
selectChange1(e) {
@@ -86,9 +89,9 @@
this.pkId = ''
this.$store.dispatch('setPublicArr', '')
},
async _inOutExceptionInstQuery () {
let res = await inOutExceptionInstQuery(this.index2)
this.dataList = [...res]
async _finishproductPoint () {
let res = await finishproductPoint('1')
this.options1 = [...res]
},
async toSure () {
this.disabled = true

View File

@@ -192,3 +192,11 @@ export const semiProductInFromPda = (id, mid, qty, code) => request({
}
})
// 入库点/放货点获取
export const finishproductPoint = (type) => request({
url:'api/pda/finishproduct/point',
data: {
type: type
}
})