|
@@ -1089,6 +1089,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
spec_tableData: [],
|
|
|
+ is_support_stock: "",
|
|
|
cat_id_name: "",
|
|
|
brand_name: "",
|
|
|
unit_name: "",
|
|
@@ -1183,6 +1184,10 @@ export default {
|
|
|
async submitForm() {
|
|
|
this.sch_is_noble();
|
|
|
this.good_type_change();
|
|
|
+ if (this.is_support_stock + "" === "0") {
|
|
|
+ this.$message.warning("该商品为供应商退货业务创建的,不允许改为非库存品!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
await this.$refs.ruleForm.validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.loading) {
|
|
@@ -1748,7 +1753,9 @@ export default {
|
|
|
is_diff,
|
|
|
other_config,
|
|
|
stock_moq,
|
|
|
+ is_support_stock,
|
|
|
} = this.sitem;
|
|
|
+ this.is_support_stock = is_support_stock || "1";
|
|
|
let cat_id_name = "";
|
|
|
let cat_id = [];
|
|
|
(cat_info || []).forEach((ai, i) => {
|