Browse Source

2025-09-01 pc属性变动、拆合组托优化

master
fengyuan_yang 4 months ago
parent
commit
3181b34c97
  1. 3
      src/views/modules/cross-area-transfer/crossAreaTransfer.vue
  2. 35
      src/views/modules/label-split-merge/labelSplitMerge.vue
  3. 2
      src/views/modules/property-change/propertyChange.vue

3
src/views/modules/cross-area-transfer/crossAreaTransfer.vue

@ -255,16 +255,13 @@ export default {
try {
this.loading = true
const params = {
scanCode: scanCode,
transferMode: this.transferMode,
site: site,
warehouseId: warehouseId
}
const { data } = await getCrossAreaTransferInfo(params)
if (data && data.code === 0) {
if (this.transferMode === 'label') {
this.labelInfo = data.data || {}

35
src/views/modules/label-split-merge/labelSplitMerge.vue

@ -80,12 +80,7 @@
<div class="dialog-body">
<div class="split-input-section">
<el-input
v-model="splitQuantity"
placeholder="请输入拆分数量"
type="number"
class="split-input"
/>
<el-input v-model="splitQuantity" placeholder="请输入拆分数量" type="number" class="split-input inlineNumber numInput"/>
</div>
</div>
@ -170,7 +165,7 @@ export default {
getStockInfoByLabelCode(params).then(({ data }) => {
if (data && data.code === 0) {
this.currentLabel = data.data;
this.$message.success('获取标签信息成功');
// this.$message.success('');
} else {
this.$message.error(data.msg || '未找到该标签的库存信息');
this.currentLabel = {};
@ -202,17 +197,14 @@ export default {
confirmSplit() {
const splitQty = parseFloat(this.splitQuantity);
const currentQty = parseFloat(this.currentLabel.qtyOnHand);
if (!splitQty || splitQty <= 0) {
this.$message.warning('请输入有效的拆分数量');
return;
}
if (splitQty >= currentQty) {
this.$message.warning('拆分数量必须小于当前数量');
return;
}
const params = {
site: localStorage.getItem('site'),
buNo: this.currentLabel.buNo,
@ -231,9 +223,10 @@ export default {
expiredDate: this.currentLabel.expiryDate,
orderref1: this.currentLabel.orderref1,
orderref2: this.currentLabel.orderref2,
orderref3: this.currentLabel.orderref3
orderref3: this.currentLabel.orderref3,
status: this.currentLabel.status,
statusTb: this.currentLabel.statusTb
};
splitLabel(params).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success(`拆分成功!新标签: ${data.data.newLabelCode}`);
@ -313,7 +306,9 @@ export default {
batchNo: this.currentLabel.batchNo,
locationId: this.currentLabel.locationId,
targetQuantity: parseFloat(targetLabel.qtyOnHand),
sourceQuantity: parseFloat(this.currentLabel.qtyOnHand)
sourceQuantity: parseFloat(this.currentLabel.qtyOnHand),
status: this.currentLabel.status,
statusTb: this.currentLabel.statusTb
};
mergeLabel(mergeParams).then(({ data }) => {
@ -544,6 +539,20 @@ export default {
}
.split-input ::v-deep .el-input__inner,
.numInput /deep/ .el-input__inner{
text-align: right;
}
/deep/ .inlineNumber input::-webkit-outer-spin-button,
/deep/ .inlineNumber input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
/deep/ .inlineNumber input[type="number"]{
-moz-appearance: textfield;
padding-right: 5px !important;
}
.merge-input ::v-deep .el-input__inner {
height: 48px;
border: 1px solid #17B3A3;

2
src/views/modules/property-change/propertyChange.vue

@ -31,7 +31,7 @@
<div class="info-row">
<span class="info-label">标签数量</span>
<span class="info-value">{{ stockInfo.labelQuantity || '' }}</span>
<span class="info-value">{{ stockInfo.qtyOnHand || '' }}</span>
</div>
<div class="info-row">

Loading…
Cancel
Save