库存预警还原
parent
07f320ca2f
commit
185d675abf
|
@ -162,12 +162,12 @@
|
||||||
<TabPane label="批量规格更新" name="stockAll">
|
<TabPane label="批量规格更新" name="stockAll">
|
||||||
<Input type="number" v-model="stockAllUpdate" placeholder="统一规格修改" />
|
<Input type="number" v-model="stockAllUpdate" placeholder="统一规格修改" />
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane label="手动库存预警更新" name="alertQuantity">
|
<!--<TabPane label="手动库存预警更新" name="alertQuantity">-->
|
||||||
<Table class="mt_10" :columns="alertQuantityColumns" :data="alertQuantityList" border></Table>
|
<!--<Table class="mt_10" :columns="alertQuantityColumns" :data="alertQuantityList" border></Table>-->
|
||||||
</TabPane>
|
<!--</TabPane>-->
|
||||||
<TabPane label="批量库存预警更新" name="alertQuantityAll">
|
<!--<TabPane label="批量库存预警更新" name="alertQuantityAll">-->
|
||||||
<Input type="number" v-model="stockAllAlertQuantity" placeholder="统一库存预警修改" />
|
<!--<Input type="number" v-model="stockAllAlertQuantity" placeholder="统一库存预警修改" />-->
|
||||||
</TabPane>
|
<!--</TabPane>-->
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
|
|
|
@ -213,11 +213,11 @@
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
">
|
">
|
||||||
<template slot="alertQuantity" slot-scope="{ row }">
|
<!--<template slot="alertQuantity" slot-scope="{ row }">-->
|
||||||
<Input v-model="row.alertQuantity" clearable placeholder="请输入库存预警" @on-change="updateSkuTable(row, 'alertQuantity')">
|
<!--<Input v-model="row.alertQuantity" clearable placeholder="请输入库存预警" @on-change="updateSkuTable(row, 'alertQuantity')">-->
|
||||||
<span slot="append">{{baseInfoForm.goodsUnit || ""}}</span>
|
<!--<span slot="append">{{baseInfoForm.goodsUnit || ""}}</span>-->
|
||||||
</Input>
|
<!--</Input>-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
<template slot="sn" slot-scope="{ row }">
|
<template slot="sn" slot-scope="{ row }">
|
||||||
<Input v-model="row.sn" clearable placeholder="请输入货号" @on-change="updateSkuTable(row, 'sn')" />
|
<Input v-model="row.sn" clearable placeholder="请输入货号" @on-change="updateSkuTable(row, 'sn')" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -644,7 +644,7 @@ export default {
|
||||||
"price",
|
"price",
|
||||||
"weight",
|
"weight",
|
||||||
"quantity",
|
"quantity",
|
||||||
"alertQuantity",
|
// "alertQuantity",
|
||||||
"specId",
|
"specId",
|
||||||
"specValueId",
|
"specValueId",
|
||||||
],
|
],
|
||||||
|
@ -1058,7 +1058,7 @@ export default {
|
||||||
price: e.price,
|
price: e.price,
|
||||||
// cost: e.cost,
|
// cost: e.cost,
|
||||||
quantity: e.quantity,
|
quantity: e.quantity,
|
||||||
alertQuantity: e.alertQuantity,
|
// alertQuantity: e.alertQuantity,
|
||||||
weight: e.weight,
|
weight: e.weight,
|
||||||
};
|
};
|
||||||
e.specList.forEach((u) => {
|
e.specList.forEach((u) => {
|
||||||
|
@ -1362,7 +1362,7 @@ export default {
|
||||||
find.sn && (find.sn = "");
|
find.sn && (find.sn = "");
|
||||||
// find.cost && (find.cost = "");
|
// find.cost && (find.cost = "");
|
||||||
find.quantity && (find.quantity = "");
|
find.quantity && (find.quantity = "");
|
||||||
find.alertQuantity && (find.alertQuantity = "");
|
// find.alertQuantity && (find.alertQuantity = "");
|
||||||
find.weight && (find.weight = "");
|
find.weight && (find.weight = "");
|
||||||
|
|
||||||
this.skuTableData.splice(this.skuTableData.length, 0, find);
|
this.skuTableData.splice(this.skuTableData.length, 0, find);
|
||||||
|
@ -1377,7 +1377,7 @@ export default {
|
||||||
find.sn && (find.sn = "");
|
find.sn && (find.sn = "");
|
||||||
// find.cost && (find.cost = "");
|
// find.cost && (find.cost = "");
|
||||||
find.quantity && (find.quantity = "");
|
find.quantity && (find.quantity = "");
|
||||||
find.alertQuantity && (find.alertQuantity = "");
|
// find.alertQuantity && (find.alertQuantity = "");
|
||||||
find.weight && (find.weight = "");
|
find.weight && (find.weight = "");
|
||||||
|
|
||||||
this.skuTableData.splice(index, 0, find);
|
this.skuTableData.splice(index, 0, find);
|
||||||
|
@ -1464,10 +1464,10 @@ export default {
|
||||||
title: "库存",
|
title: "库存",
|
||||||
slot: "quantity",
|
slot: "quantity",
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: "库存预警",
|
// title: "库存预警",
|
||||||
slot: "alertQuantity",
|
// slot: "alertQuantity",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: "货号",
|
title: "货号",
|
||||||
slot: "sn",
|
slot: "sn",
|
||||||
|
@ -1514,7 +1514,7 @@ export default {
|
||||||
id: skus[index].id,
|
id: skus[index].id,
|
||||||
sn: skus[index].sn,
|
sn: skus[index].sn,
|
||||||
quantity: skus[index].quantity,
|
quantity: skus[index].quantity,
|
||||||
alertQuantity: skus[index].alertQuantity,
|
// alertQuantity: skus[index].alertQuantity,
|
||||||
cost: 1,
|
cost: 1,
|
||||||
price: skus[index].price,
|
price: skus[index].price,
|
||||||
[spec[0].name]: specItem.value,
|
[spec[0].name]: specItem.value,
|
||||||
|
@ -1596,18 +1596,19 @@ export default {
|
||||||
this.validatatxt = "请输入0~99999999之间的整数";
|
this.validatatxt = "请输入0~99999999之间的整数";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (item === "alertQuantity") {
|
|
||||||
if (
|
|
||||||
!/^[0-9]\d*$/.test(row[item]) ||
|
|
||||||
parseInt(row[item]) < 0 ||
|
|
||||||
parseInt(row[item]) > 99999999
|
|
||||||
) {
|
|
||||||
// 库存预警
|
|
||||||
this.validateError.push([index, item]);
|
|
||||||
this.validatatxt = "请输入0~99999999之间的整数";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// else if (item === "alertQuantity") {
|
||||||
|
// if (
|
||||||
|
// !/^[0-9]\d*$/.test(row[item]) ||
|
||||||
|
// parseInt(row[item]) < 0 ||
|
||||||
|
// parseInt(row[item]) > 99999999
|
||||||
|
// ) {
|
||||||
|
// // 库存预警
|
||||||
|
// this.validateError.push([index, item]);
|
||||||
|
// this.validatatxt = "请输入0~99999999之间的整数";
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
// else if (item === "cost" || item === "price") {
|
// else if (item === "cost" || item === "price") {
|
||||||
// if (
|
// if (
|
||||||
// !regular.money.test(row[item]) ||
|
// !regular.money.test(row[item]) ||
|
||||||
|
@ -1700,7 +1701,7 @@ export default {
|
||||||
cost: 1,
|
cost: 1,
|
||||||
price: sku.price,
|
price: sku.price,
|
||||||
quantity: sku.quantity,
|
quantity: sku.quantity,
|
||||||
alertQuantity: sku.alertQuantity,
|
// alertQuantity: sku.alertQuantity,
|
||||||
sn: sku.sn,
|
sn: sku.sn,
|
||||||
images: sku.images,
|
images: sku.images,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue