Browse Source

发货记录

wms3.0_pda
lijuncheng 9 months ago
parent
commit
4d6a96de15
  1. 4
      api/request2.js
  2. 4
      mycomponents/record/recordComDetailCard.vue
  3. 240
      pages/customerReturn/record/returnRecord.vue
  4. 232
      pages/deliver/record/deliverRecord.vue
  5. 1
      pages/unPlanned/record/issueRecord.vue
  6. 3
      store/modules/user.js

4
api/request2.js

@ -1886,8 +1886,8 @@ export function deliverRequestSubmit(params) {
*/ */
export function deliverRecordSubmit(params) { export function deliverRecordSubmit(params) {
return request({ return request({
url: baseApi + "/wms/purchasereturn-request-main/submit", url: baseApi + "/wms/deliver-record-main/create",
method: "put", method: "post",
data: params, data: params,
}); });
} }

4
mycomponents/record/recordComDetailCard.vue

@ -43,7 +43,7 @@
import { import {
getDetailOption, getDetailOption,
getDetailRemoveOption, getDetailEditRemoveOption,
getClearOption getClearOption
} from '@/common/array.js'; } from '@/common/array.js';
export default { export default {
@ -113,7 +113,7 @@
mounted() { mounted() {
this.detailOptions = getDetailOption(); this.detailOptions = getDetailOption();
this.scanOptions = getDetailRemoveOption(); this.scanOptions = getDetailEditRemoveOption();
this.removeOptions = getClearOption(); this.removeOptions = getClearOption();
}, },

240
pages/customerReturn/record/returnRecord.vue

@ -8,9 +8,8 @@
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<record-com-detail-card :dataContent="item" :index="index" <record-com-detail-card :dataContent="item" :index="index" :isShowLocation="true"
:isShowLocation="true" @removeItem="removeItem(index,item)" @updateData="updateData" @removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack">
@removePack="removePack">
</record-com-detail-card> </record-com-detail-card>
</view> </view>
</view> </view>
@ -21,7 +20,7 @@
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocationCode' <requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocationCode'
:locationTypeList="tolocationTypeList"></requiredLocation> :locationTypeList="tolocationTypeList"></requiredLocation>
</view> </view>
<view class=" uni-flex uni-row"> <view class=" uni-flex uni-row">
@ -32,7 +31,8 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button> <win-scan-button @goScan='openScanPopup'></win-scan-button>
</view> </view>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' headerType="HPQ,HMQ"></win-scan-pack-and-location> <win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' headerType="HPQ,HMQ">
</win-scan-pack-and-location>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' <win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation'
:locationTypeList="fromlocationTypeList"></win-scan-location> :locationTypeList="fromlocationTypeList"></win-scan-location>
@ -49,7 +49,7 @@
getInventoryStatusDesc, getInventoryStatusDesc,
getDirectoryItemArray getDirectoryItemArray
} from '@/common/directory.js'; } from '@/common/directory.js';
import { import {
getPrecisionStrategyList getPrecisionStrategyList
} from '@/common/balance.js'; } from '@/common/balance.js';
@ -58,7 +58,7 @@
updateTitle, updateTitle,
getPackingNumberAndBatchByList getPackingNumberAndBatchByList
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
getBusinessType, getBusinessType,
createItemInfo, createItemInfo,
@ -75,8 +75,8 @@
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
export default { export default {
components: { components: {
winScanButton, winScanButton,
@ -105,12 +105,12 @@
toLocationCode: "", toLocationCode: "",
fromlocationTypeList: [], fromlocationTypeList: [],
tolocationTypeList: [], tolocationTypeList: [],
managementList: [], managementList: [],
toWarehouseCode:'' toWarehouseCode: '',
}; };
}, },
onLoad(option) { onLoad(option) {
var typeCode ="CustomerreturnRecord" var typeCode = "CustomerreturnRecord"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {
this.businessType = res.businessType; this.businessType = res.businessType;
@ -118,22 +118,10 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.showErrorMessage(res.message ) this.showErrorMessage(res.message)
} }
}); });
getBasicCustomerList().then(res => {
if (res.data.length > 0) {
var list = res.data;
list.forEach(item => {
item.text = item.Name
item.value = item.Code
})
this.customerList = list;
}
}).catch(error => {
this.showErrorMessage(error)
})
}, },
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
@ -147,7 +135,7 @@
onPullDownRefresh() {}, onPullDownRefresh() {},
mounted() { mounted() {
}, },
methods: { methods: {
getScanResult(result) { getScanResult(result) {
@ -185,7 +173,7 @@
this.calcHandleQty(); this.calcHandleQty();
}, },
showErrorMessage(message) { showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => { this.$refs.comMessage.showErrorMessage(message, res => {
if (res) { if (res) {
@ -248,27 +236,27 @@
}) })
}, },
commit() { commit() {
if (this.toLocationCode == "") { if (this.toLocationCode == "") {
this.showMessage("请先选择目标库位") this.showMessage("请先选择目标库位")
return; return;
} }
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) {
// //
uni.showLoading({ uni.showLoading({
title: "提交中....", title: "提交中....",
mask: true mask: true
}); });
this.managementList = []; this.managementList = [];
var precisionStrategParams = this.setPrecisionStrategParams() var precisionStrategParams = this.setPrecisionStrategParams()
getPrecisionStrategyList(precisionStrategParams, res => { getPrecisionStrategyList(precisionStrategParams, res => {
if (res.success) { if (res.success) {
this.managementList = res.list; this.managementList = res.list;
var params = this.setParams() var params = this.setParams()
console.log("提交" + JSON.stringify(params)) console.log("提交" + JSON.stringify(params))
customerReturnRecordSubmit(params).then(res => { customerReturnRecordSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
@ -280,88 +268,88 @@
uni.hideLoading() uni.hideLoading()
this.showErrorMessage(error) this.showErrorMessage(error)
}) })
} else { } else {
uni.hideLoading(); uni.hideLoading();
this.showErrorMessage(res.message); this.showErrorMessage(res.message);
} }
}) })
} else { } else {
this.showErrorMessage("没有要提交的数据,请先扫描") this.showErrorMessage("没有要提交的数据,请先扫描")
} }
}, },
setPrecisionStrategParams() { setPrecisionStrategParams() {
var itemList = [] var itemList = []
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
detail.toLocationCode = this.toLocationCode; detail.toLocationCode = this.toLocationCode;
var filterResult = itemList.filter(res => { var filterResult = itemList.filter(res => {
if (res.itemCode == item.itemCode && if (res.itemCode == item.itemCode &&
detail.toLocationCode == res.locationCode) { detail.toLocationCode == res.locationCode) {
return res return res
} }
}) })
// //
if (filterResult.length == 0) { if (filterResult.length == 0) {
var result = { var result = {
itemCode: item.itemCode, itemCode: item.itemCode,
locationCode: detail.toLocationCode locationCode: detail.toLocationCode
}
itemList.push(result)
} }
itemList.push(result)
} }
})
}
}) })
}) return itemList;
return itemList; },
},
setParams() {
setParams() {
var subList = []
var subList = [] var creator = this.$store.state.user.id
var creator = this.$store.state.user.id this.detailSource.forEach(item => {
this.detailSource.forEach(item => { item.subList.forEach(detail => {
item.subList.forEach(detail => { if (detail.scaned) {
if (detail.scaned) { var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode,
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, detail.packingNumber, detail.toLocationCode, detail.batch);
detail.packingNumber, detail.toLocationCode, detail.batch); detail.itemCode = detail.itemCode;
detail.itemCode = detail.itemCode; detail.itemName = detail.package.itemName;
detail.itemName = detail.package.itemName; detail.itemDesc1 = detail.package.itemDesc1;
detail.itemDesc1 = detail.package.itemDesc1; detail.itemDesc2 = detail.package.itemDesc2;
detail.itemDesc2 = detail.package.itemDesc2;
detail.inventoryStatus = detail.inventoryStatus;
detail.inventoryStatus = detail.inventoryStatus; detail.toInventoryStatus = detail.inventoryStatus;
detail.toInventoryStatus = detail.inventoryStatus;
detail.fromPackingNumber = info.packingNumber;
detail.fromPackingNumber = info.packingNumber; detail.toPackingNumber = info.packingNumber;
detail.toPackingNumber = info.packingNumber;
detail.fromContainerNumber = detail.containerNumber;
detail.fromContainerNumber = detail.containerNumber; detail.toContainerNumber = detail.containerNumber
detail.toContainerNumber = detail.containerNumber
detail.fromBatch = info.batch;
detail.fromBatch = info.batch; detail.toBatch = info.batch;
detail.toBatch = info.batch;
detail.fromLocationCode = detail.locationCode;
detail.fromLocationCode = detail.locationCode; detail.toLocationCode = detail.toLocationCode;
detail.toLocationCode = detail.toLocationCode;
subList.push(detail)
subList.push(detail) }
} })
}) })
}) this.dataContent.subList = subList;
this.dataContent.subList = subList; this.dataContent.creator = creator;
this.dataContent.creator = creator; this.dataContent.fromWarehouseCode = this.detailSource[0].subList[0].warehouseCode;
this.dataContent.fromWarehouseCode = this.detailSource[0].subList[0].warehouseCode; this.dataContent.toWarehouseCode = this.toWarehouseCode;
this.dataContent.toWarehouseCode = this.toWarehouseCode; return this.dataContent;
return this.dataContent; },
},
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message, res => { this.$refs.comMessage.showMessage(message, res => {

232
pages/deliver/record/deliverRecord.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class=""> <view class="">
<com-blank-view @goScan='getLocation' v-if="detailSource.length==0"></com-blank-view> <com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view>
</view> </view>
<view class="page-wraper" v-if="detailSource.length>0"> <view class="page-wraper" v-if="detailSource.length>0">
<view class="page-main"> <view class="page-main">
@ -24,7 +24,8 @@
</view> </view>
<uni-data-picker v-if="detailSource.length>0" style="padding: 20rpx; background-color:#fff;" <uni-data-picker v-if="detailSource.length>0" style="padding: 20rpx; background-color:#fff;"
class='uni-data-picker' placeholder="请选择客户" popup-title="选择客户" :localdata="customerList" class='uni-data-picker' placeholder="请选择客户" popup-title="选择客户" :localdata="customerList"
v-model="customer"> @change="reasonChange">
</uni-data-picker> </uni-data-picker>
</view> </view>
@ -32,7 +33,7 @@
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<requiredLocation v-if="showToLoaction" ref='comScanLocation' title="目标库位" :locationCode="toLocationCode" <requiredLocation ref='comScanLocation' title="目标库位" :locationCode="toLocationCode"
@getLocation='scanLocationCode' :isShowEdit="true" @getLocation='scanLocationCode' :isShowEdit="true"
:locationTypeList="tolocationTypeList"></requiredLocation> :locationTypeList="tolocationTypeList"></requiredLocation>
</view> </view>
@ -44,7 +45,7 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button> <win-scan-button @goScan='openScanPopup'></win-scan-button>
</view> </view>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> <win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' headerType="HMQ"></win-scan-pack-and-location>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' <win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation'
:locationTypeList="fromlocationTypeList"></win-scan-location> :locationTypeList="fromlocationTypeList"></win-scan-location>
@ -55,18 +56,21 @@
<script> <script>
import { import {
getBasicCustomerList, getBasicCustomerList,
deliverRequestSubmit,
deliverRecordSubmit deliverRecordSubmit
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
goHome, goHome,
updateTitle getPackingNumberAndBatchByList
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
getInventoryStatusDesc, getInventoryStatusDesc,
getDirectoryItemArray getDirectoryItemArray
} from '@/common/directory.js'; } from '@/common/directory.js';
import {
getPrecisionStrategyList
} from '@/common/balance.js';
import { import {
getBusinessType, getBusinessType,
@ -100,34 +104,24 @@
data() { data() {
return { return {
id: '', id: '',
receiptJob: {},
received: false,
isShowPackingCode: true,
scanCount: 0,
subList: [], //subList subList: [], //subList
detailSource: [], // detailSource: [], //
locationTypeList: [], locationTypeList: [],
businessTypeInfo: {},
fromLocationInfo: {},
fromLocationCode: "", fromLocationCode: "",
toLocationCode: "", toLocationCode: "",
isShowLocation: false,
fromlocationTypeList: [], fromlocationTypeList: [],
tolocationTypeList: [], tolocationTypeList: [],
allowModifyLocation: false,
businessType: {}, businessType: {},
customerList: [], customerList: [],
customer: "", customerText: "",
fromType: "", customerCode : "",
showToLoaction: true, dataContent:{},
dataContent:{} managementList:[]
}; };
}, },
onLoad(option) { onLoad(option) {
this.fromType = option.fromType
this.updateTitle();
var typeCode = "DeliverRequest" var typeCode = "DeliverRecord"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {
this.businessType = res.businessType; this.businessType = res.businessType;
@ -135,7 +129,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
@ -165,17 +159,6 @@
mounted() {}, mounted() {},
methods: { methods: {
updateTitle() {
if (this.fromType == "requestType") {
this.showToLoaction = false
updateTitle("制品发货申请")
} else {
this.showToLoaction = true
updateTitle("制品发货记录")
}
},
getScanResult(result) { getScanResult(result) {
let balance = result.balance; let balance = result.balance;
let label = result.label; let label = result.label;
@ -187,9 +170,8 @@
return res return res
} }
}) })
var qty =labelQty>balanceQty?balanceQty:labelQty
if (item == undefined) { if (item == undefined) {
var itemp = createItemInfo(qty, pack); var itemp = createItemInfo(balance.qty, pack);
let newDetail = createDetailInfo(balance, pack); // let newDetail = createDetailInfo(balance, pack); //
if(labelQty) if(labelQty)
itemp.subList.push(newDetail); itemp.subList.push(newDetail);
@ -289,108 +271,118 @@
}, },
commit() { commit() {
if (this.customer == "") { if (this.customerText == "") {
this.showMessage("请先选择客户") this.showMessage("请先选择客户")
return; return;
} }
console.log("客户", this.customer) console.log("客户", this.customerText)
if (this.toLocationCode == ""&&this.showToLoaction) { if (this.toLocationCode == "") {
this.showMessage("请先选择目标库位") this.showMessage("请先选择目标库位")
return; return;
} }
uni.showLoading({ if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) {
title: "提交中....", //
mask: true uni.showLoading({
}); title: "提交中....",
mask: true
});
this.managementList = [];
var precisionStrategParams = this.setPrecisionStrategParams()
getPrecisionStrategyList(precisionStrategParams, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
deliverRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成制品发货记录<br>" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
}
})
if (this.fromType == "requestType") {
var params = this.setRequestParams();
console.log("提交" + JSON.stringify(params))
// deliverRequestSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else { } else {
// deliverRecordSubmit(params).then(res => { this.showErrorMessage("没有要提交的数据,请先扫描")
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} }
}, },
setParams() { setPrecisionStrategParams() {
var subList = [] var itemList = []
var creator = this.$store.state.user.id
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
detail.toPackingNumber = detail.packingNumber; detail.toLocationCode = this.toLocationCode;
detail.toContainerNumber = detail.containerNumber var filterResult = itemList.filter(res => {
detail.toBatch = detail.toBatch; if (res.itemCode == item.itemCode &&
detail.toInventoryStatus = detail.inventoryStatus detail.toLocationCode == res.locationCode) {
detail.toLocationCode = "" return res
}
subList.push(detail) })
//
if (filterResult.length == 0) {
var result = {
itemCode: item.itemCode,
locationCode: detail.toLocationCode
}
itemList.push(result)
}
} }
}) })
}) })
this.dataContent.subList = subList return itemList;
this.dataContent.creator = creator;
return this.dataContent;
}, },
setRequestParams(){ setParams() {
var subList = [] var subList = []
var supplierCode="" var creator = this.$store.state.user.id
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
detail.soNumber =detail.package.soNumber; var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode,
detail.soLine = detail.soLine.soNumber; detail.packingNumber, detail.toLocationCode, detail.batch);
// soNumber: 926926926, detail.itemCode = detail.itemCode;
// soLine: 926, detail.itemName = detail.package.itemName;
// itemCode: THILDD0A691AG, detail.itemDesc1 = detail.package.itemDesc1;
// remark: , detail.itemDesc2 = detail.package.itemDesc2;
// qty: 2,
// uom: EA detail.inventoryStatus = detail.inventoryStatus;
detail.fromPackingNumber = info.packingNumber;
detail.toPackingNumber = info.packingNumber;
detail.fromContainerNumber = detail.containerNumber;
detail.toContainerNumber = detail.containerNumber
detail.fromBatch = info.batch;
detail.toBatch = info.batch;
detail.fromLocationCode = detail.locationCode;
detail.toLocationCode = detail.toLocationCode;
subList.push(detail) subList.push(detail)
} }
}) })
}) })
this.dataContent.subList = subList;
this.dataContent.subList = subList this.dataContent.creator = creator;
this.dataContent.deliverPlanNumber = "DP20231130-0001" this.dataContent.customerCode =this.customerCode;
this.dataContent.customerCode = "CF" this.dataContent.fromWarehouseCode = this.detailSource[0].subList[0].warehouseCode;
this.dataContent.customerDockCode = "" this.dataContent.toWarehouseCode = this.toWarehouseCode;
this.dataContent.carrierCode = ""
this.dataContent.transferMode = ""
this.dataContent.vehiclePlateNumber = ""
this.dataContent.remark = ""
this.dataContent.dueTime = ""
this.dataContent.departmentCode = "研发部门"
this.dataContent.status = 1
this.dataContent.autoCommit = "FALSE"
this.dataContent.autoAgree = "FALSE"
this.dataContent.autoExecute = "FALSE"
this.dataContent.directCreateRecord = "FALSE"
return this.dataContent; return this.dataContent;
}, },
@ -422,24 +414,21 @@
this.getFromLocationCode(location, code) this.getFromLocationCode(location, code)
}, },
getFromLocationCode(location, code) { getFromLocationCode(location, code) {
this.fromLocationInfo = location;
this.fromLocationCode = code; this.fromLocationCode = code;
this.openScanPopup(); this.openScanPopup();
}, },
getToLocationCode(location, code) { getToLocationCode(location, code) {
if (this.fromLocationCode == code) {
uni.showToast({
title: "来源库位[" + this.fromLocationCode + "]不能与目标库位[" + code + "]一致",
duration: 2000
})
return
}
this.toLocationCode = code; this.toLocationCode = code;
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.fromLocationCode = ''; this.fromLocationCode = '';
this.subList = [];
this.detailSource = [];
this.toLocationCode = '';
this.dataContent = {}
this.toWarehouseCode = ""
}) })
}, },
@ -452,7 +441,16 @@
this.detailSource.splice(i, 1) this.detailSource.splice(i, 1)
} }
} }
} },
reasonChange(e) {
if (e.detail.value.length == 0) {
this.customerCode = ""
this.customerText = ""
} else {
this.customerCode = e.detail.value[0].value
this.customerText = e.detail.value[0].text
}
},
} }
} }
</script> </script>

1
pages/unPlanned/record/issueRecord.vue

@ -159,6 +159,7 @@
if (item == undefined) { if (item == undefined) {
var itemp = createItemInfo(balance, pack); var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack); // let newDetail = createDetailInfo(balance, pack); //
newDetail.inventoryStatus ="OK";
itemp.subList.push(newDetail); itemp.subList.push(newDetail);
this.detailSource.push(itemp) this.detailSource.push(itemp)
} else { } else {

3
store/modules/user.js

@ -10,7 +10,7 @@ import {
const user = { const user = {
state: { state: {
id: 0, // 用户编号 id: storage.getStorage(storage.constant.id), // 用户编号
name: storage.getStorage(storage.constant.name), name: storage.getStorage(storage.constant.name),
avatar: storage.getStorage(storage.constant.avatar), avatar: storage.getStorage(storage.constant.avatar),
roles: storage.getStorage(storage.constant.roles), roles: storage.getStorage(storage.constant.roles),
@ -20,6 +20,7 @@ const user = {
mutations: { mutations: {
SET_ID: (state, id) => { SET_ID: (state, id) => {
state.id = id state.id = id
storage.setStorage(storage.constant.id, id)
}, },
SET_NAME: (state, name) => { SET_NAME: (state, name) => {
state.name = name state.name = name

Loading…
Cancel
Save