|
|
|
@ -481,7 +481,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.newProductData.sourceType = 1
|
|
|
|
|
|
|
|
|
|
if (this.newType == 1) {
|
|
|
|
|
this.newProductData.productType = 1
|
|
|
|
|
saveNewProduct(this.newProductData).then((res) => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
@ -495,6 +497,7 @@ export default {
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
})
|
|
|
|
|
} else if (this.newType == 2) {
|
|
|
|
|
this.newProductData.productsType = 1
|
|
|
|
|
// addProduct(this.newProductData).then((res) => {
|
|
|
|
|
addThrAddProductsNew(this.newProductData).then((res) => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|