|
@@ -439,6 +439,55 @@ export default {
|
|
},
|
|
},
|
|
faceCheck(val) {
|
|
faceCheck(val) {
|
|
const v = this
|
|
const v = this
|
|
|
|
+
|
|
|
|
+ axios
|
|
|
|
+ .post(
|
|
|
|
+ '/cloudApi/stock/out',
|
|
|
|
+ {
|
|
|
|
+ userId: window.localStorage.getItem('userId'),
|
|
|
|
+ plcCode: sessionStorage.getItem('plcCode'),
|
|
|
|
+ //rfidItems:['B00000000000000000030832'],
|
|
|
|
+ rfidItems:this.rfidTagItemsCopy.map((item) => item.rfid),
|
|
|
|
+ stockChangeType: 20,
|
|
|
|
+ remark: this.remark,
|
|
|
|
+ device:0,
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ .then((res) => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ this.$Message.info('出库成功!')
|
|
|
|
+ const actual = []
|
|
|
|
+ for (
|
|
|
|
+ let i = 0;
|
|
|
|
+ i < v.scanData.rfidTagItems.length;
|
|
|
|
+ i++
|
|
|
|
+ ) {
|
|
|
|
+ const element = v.scanData.rfidTagItems[i]
|
|
|
|
+ actual.push({
|
|
|
|
+ materialCode: element.materialCode,
|
|
|
|
+ materialRfid: element.rfidCode,
|
|
|
|
+ quantity: element.quantity,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ axios
|
|
|
|
+ .post(
|
|
|
|
+ '/cloudApi/stockDetail/submitRestrictedPicking',
|
|
|
|
+ {
|
|
|
|
+ appointInfo: v.newData,
|
|
|
|
+ actual: actual,
|
|
|
|
+ jobNo: window.localStorage.getItem('jobNo'),
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ .then((res) => {})
|
|
|
|
+
|
|
|
|
+ logOut()
|
|
|
|
+ } else {
|
|
|
|
+ this.saveErr()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ return
|
|
PlcStorageOut({
|
|
PlcStorageOut({
|
|
inOutStorageNo: '',
|
|
inOutStorageNo: '',
|
|
storageDoor: sessionStorage.getItem('door'),
|
|
storageDoor: sessionStorage.getItem('door'),
|