半成品

This commit is contained in:
2023-04-13 18:45:33 +08:00
parent 70aa43be47
commit 742e6449c0
2 changed files with 17 additions and 5 deletions

View File

@@ -55,7 +55,7 @@
<script> <script>
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 {releasepoint} from '@/utils/getData2.js' import {semiProductInFromPda} from '@/utils/getData2.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -78,7 +78,7 @@
this.val2 = this.$store.getters.publicObj.material_code this.val2 = this.$store.getters.publicObj.material_code
this.val3 = this.$store.getters.publicObj.material_name this.val3 = this.$store.getters.publicObj.material_name
this.val4 = this.$store.getters.publicObj.material_spec this.val4 = this.$store.getters.publicObj.material_spec
this.val7 = this.$store.getters.publicObj.material_uuid this.val7 = this.$store.getters.publicObj.material_id
} }
}, },
destroyed () { destroyed () {
@@ -142,11 +142,11 @@
this.disabled = false this.disabled = false
return return
} }
this._releasepoint() this._semiProductInFromPda()
}, },
async _releasepoint () { async _semiProductInFromPda () {
try { try {
let res = await inOutExceptionInstConfirm(this.index1, this.val1) let res = await semiProductInFromPda(this.val1, this.val7, this.val5, this.val6)
this.disabled = false this.disabled = false
this.toCancle() this.toCancle()
this.$store.dispatch('setPublicObj', '') this.$store.dispatch('setPublicObj', '')

View File

@@ -180,3 +180,15 @@ export const releasepoint = (point, code, option) => request({
option: option option: option
} }
}) })
/** 半成品入库 */
export const semiProductInFromPda = (id, mid, qty, code) => request({
url:'api/in/semiProductIn/semiProductInFromPda',
data: {
iostorinv_id: id,
material_id: mid,
plan_qty: qty,
storagevehicle_code: code
}
})