+
@@ -143,6 +145,12 @@
>
![]()
+
+ 取消
+ 下一步
+ 保存
+ 上一步
+
@@ -160,7 +168,7 @@ import {
getSelect
} from '@/api/account';
import { uploadUrl } from '@/utils/request'
-import StyleInformation from './addComponent'
+import StyleInformation from '@/views/stockControl/inventory/addComponent'
export default {
components: {
Tinymce,
@@ -173,12 +181,11 @@ export default {
},
showTinymce: {
type: Boolean
- },
- message: {
- type: String,
- default: ''
- }
+ }
},
+ watch: {
+
+ },
data() {
// const checkCreditLimit = (rule, value, callback) => {
// console.log(this.form.ifCredit)
@@ -409,7 +416,7 @@ export default {
ifCredit: '',
creditLimit: '',
ifHuabei: 1,
- cost:0,
+ cost:null,
productText: '',
images: [],
deletes: [],
@@ -447,6 +454,7 @@ export default {
collects: 0,
groupId: '',
imgs: [],
+ cost:null,
deletes: [],
isDelete: 0,
limitCount: 0,
@@ -540,7 +548,6 @@ export default {
if (this.productId) {
this.form.productId = this.productId
const sku = JSON.parse(sessionStorage.getItem('form'))
- console.log(sku)
sku.forEach((element, i) => {
for (let index = 0; index < this.form.skus.length; index++) {
if (i === index) {
@@ -549,8 +556,8 @@ export default {
}
})
console.log(this.form, 'this.form')
+
const res = await getClassifyUpdate(this.form)
- console.log(res)
if (res.code === '') {
this.$message({
type: 'success',
@@ -559,14 +566,7 @@ export default {
this.back()
}
} else {
- console.log('message1',this.message)
- if(this.message != ''){
- const formData = new FormData();
- formData.append('combinationId', this.message);
- for (let [key, value] of formData.entries()) {
- this.form[key] = value;
- }
- }
+
const res = await getClassifyAdd(this.form)
if (res.code === '') {
this.$message({
@@ -634,13 +634,16 @@ export default {
margin-right: 30px;
}
.addTitle {
- font-size: 20px;
+ font-size: 14px;
color: #333333;
line-height: 50px;
}
.stepsColor{
font-size: 20px;
line-height: 40px;
+ width: 50%;
+ margin: 0 auto;
+ padding: 15px 0;
.one_class {
width: 40px;
background: #3F9B6A;
@@ -678,9 +681,12 @@ export default {
margin: 10px 0;
justify-content: space-around;
align-items: unset;
+ // width: 100%;
+ padding:0 20px;
+
.el-form{
- display: flex;
- padding: 40px 0;
+ // display: flex;
+ padding: 0px 10px 10px;
}
.leftCom {
width: 65%;
diff --git a/merchant-web-master/src/views/stockControl/inventory/addComponent copy.vue b/merchant-web-master/src/views/stockControl/inventory/addComponent copy.vue
new file mode 100644
index 0000000..7bacabf
--- /dev/null
+++ b/merchant-web-master/src/views/stockControl/inventory/addComponent copy.vue
@@ -0,0 +1,700 @@
+
+
+
+
+
diff --git a/merchant-web-master/src/views/stockControl/inventory/addComponent.vue b/merchant-web-master/src/views/stockControl/inventory/addComponent.vue
index 7bacabf..fd78335 100644
--- a/merchant-web-master/src/views/stockControl/inventory/addComponent.vue
+++ b/merchant-web-master/src/views/stockControl/inventory/addComponent.vue
@@ -1,58 +1,55 @@
+ -->
+