|
|
|
@ -434,8 +434,19 @@
|
|
|
|
|
</el-checkbox-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="新的货位:"> |
|
|
|
|
<el-input v-model="WrapBarEditing.groundingPositionCode" placeholder="请输入" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="新的货位"> |
|
|
|
|
<el-select-v2 |
|
|
|
|
v-model="WrapBarEditing.groundingPositionCode" |
|
|
|
|
style="width:240px" |
|
|
|
|
filterable |
|
|
|
|
remote |
|
|
|
|
:remote-method="remoteMethod" |
|
|
|
|
clearable |
|
|
|
|
:options="optionss" |
|
|
|
|
placeholder="请输入货位" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
@ -1981,6 +1992,19 @@ const StatusDetermination = () => {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const optionss = ref([]) |
|
|
|
|
const loadings = ref(false) |
|
|
|
|
const list = ref([]) |
|
|
|
|
const remoteMethod = (query) => { |
|
|
|
|
if (query !== '') { |
|
|
|
|
optionss.value = list.value.filter((item) => { |
|
|
|
|
return item.label.toLowerCase().includes(query.toLowerCase()) |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
optionss.value = [] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 多选数据状态处理 |
|
|
|
|
const Tclist = val => { |
|
|
|
|
console.log(val); |
|
|
|
@ -2004,6 +2028,13 @@ const InventoryEditing = val => {
|
|
|
|
|
warehouseId:val.warehouseId, |
|
|
|
|
}).then(res=>{ |
|
|
|
|
console.log(res); |
|
|
|
|
|
|
|
|
|
if(res.data.data.records){ |
|
|
|
|
list.value= res.data.data.records.map((item) => { |
|
|
|
|
return { value:`${item.id}`, label: `${item.qrCode}` } |
|
|
|
|
}) |
|
|
|
|
console.log(list.value); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2040,10 +2071,11 @@ const InventoryEditing = val => {
|
|
|
|
|
// 信息编辑弹窗提交 |
|
|
|
|
const InformationEditing = () => { |
|
|
|
|
TcPdloading.value = true; |
|
|
|
|
console.log(WrapBarEditing.value,'WrapBarEditing.value'); |
|
|
|
|
let data = [ |
|
|
|
|
{ |
|
|
|
|
orderCode: WrapBarEditing.value.orderCode, //订单编号 |
|
|
|
|
groundingPositionCode: WrapBarEditing.value.positionCode, //新的货位 |
|
|
|
|
groundingPositionCode: WrapBarEditing.value.groundingPositionCode, //新的货位 |
|
|
|
|
stockNum: counting.value.stockNum, //在库数量 |
|
|
|
|
lossNum: counting.value.lossNum, //丢失数量 |
|
|
|
|
deliveNum: counting.value.deliveNum, //配送数量 |
|
|
|
@ -2056,6 +2088,12 @@ const InformationEditing = () => {
|
|
|
|
|
id: Tcrow.value.id, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
if(WrapBarEditing.value.groundingPositionCode){ |
|
|
|
|
let val = list.value.find(obj => obj.value == WrapBarEditing.value.groundingPositionCode); |
|
|
|
|
console.log(data,'货位处理好的数据'); |
|
|
|
|
data[0].groundingAllocationId=val.value; |
|
|
|
|
data[0].groundingPositionCode=val.label |
|
|
|
|
} |
|
|
|
|
if (!TcStateSwitching.value) { |
|
|
|
|
//为假表示当前走定制品规则 |
|
|
|
|
let InputMax = counting.value[radioList.value[InventoryInput.value].input]; //存储当前输入框最大值 |
|
|
|
|