|
@@ -15,13 +15,15 @@
|
|
|
@resetColumn="resetColumnTwo('crud', 'option', 'optionList', 273)"
|
|
|
@saveColumn="saveColumnTwo('crud', 'option', 'optionList', 273)" :page.sync="page">
|
|
|
<template slot="filesListForm">
|
|
|
- <span style="font-size: 12px;">(图片文件像素推荐700X750,有且只允许有一张主图,其余均为副图)</span>
|
|
|
+ <span style="font-size: 12px;">(图片文件像素推荐700X700,有且只允许有一张主图,其余均为副图)</span>
|
|
|
<c-upload :data="form.filesList" display basic deleteUrl="/api/blade-sales-part/productLaunchFiles/remove"
|
|
|
:enumerationValue="160" />
|
|
|
</template>
|
|
|
|
|
|
<template slot="detailsTextForm">
|
|
|
- <avue-ueditor v-model="form.detailsText" :options="optionsUeditor"></avue-ueditor>
|
|
|
+ <avue-ueditor v-model="form.detailsText"
|
|
|
+ :options="optionsUeditor">
|
|
|
+ </avue-ueditor>
|
|
|
</template>
|
|
|
<template slot-scope="{type,size,row,index}" slot="menu">
|
|
|
<el-button :size="size" :type="type" :disabled="row.upAndDownShelves"
|
|
@@ -185,10 +187,11 @@ import {
|
|
|
getDetail,
|
|
|
remove,
|
|
|
productLaunch,
|
|
|
- deptList, listAllP
|
|
|
+ deptList
|
|
|
} from "@/api/tirePartsMall/basicData/listingManagement/index.js";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
import commodity from "./commodity.json"
|
|
|
+import {getCorpTypes} from "@/api/tirePartsMall/basicData/commodityInformation";
|
|
|
export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
@@ -252,7 +255,7 @@ export default {
|
|
|
size: "small",
|
|
|
props: {
|
|
|
labelText: "标题",
|
|
|
- label: "cname",
|
|
|
+ label: "title",
|
|
|
value: "id",
|
|
|
}
|
|
|
},
|
|
@@ -353,10 +356,24 @@ export default {
|
|
|
}]
|
|
|
}, {
|
|
|
label: "品牌",
|
|
|
- prop: "brandName",
|
|
|
+ prop: "brandId",
|
|
|
+ search: true,
|
|
|
+ type: 'select',
|
|
|
+ props: {
|
|
|
+ label: 'cname',
|
|
|
+ value: 'id'
|
|
|
+ },
|
|
|
+ dicUrl: '/api/blade-sales-part/brandDesc/listAll?type=PP&enableOrNot=1',
|
|
|
+ hide: true,
|
|
|
disabled: true,
|
|
|
overHidden: false,
|
|
|
}, {
|
|
|
+ label: "品牌",
|
|
|
+ prop: "brandName",
|
|
|
+ disabled: true,
|
|
|
+ overHidden: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "售价1",
|
|
|
prop: "priceOne",
|
|
|
hide: false,
|
|
@@ -455,9 +472,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
- listAllP().then(res => {
|
|
|
- this.treeData = res.data.data
|
|
|
- })
|
|
|
+ getCorpTypes().then(res=>{
|
|
|
+ this.treeData = res.data.data
|
|
|
+ })
|
|
|
this.onLoad(this.page, this.search)
|
|
|
},
|
|
|
async created() {
|
|
@@ -531,7 +548,7 @@ export default {
|
|
|
done();
|
|
|
},
|
|
|
nodeClick(data) {
|
|
|
- this.search.brandId = data.id
|
|
|
+ this.search.goodsTypeId = data.id
|
|
|
this.page.currentPage = 1;
|
|
|
this.onLoad(this.page, this.search);
|
|
|
},
|
|
@@ -648,6 +665,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ console.log({...this.form}.detailsText,651)
|
|
|
submit({
|
|
|
...this.form
|
|
|
}).then(res => {
|
|
@@ -657,14 +675,6 @@ export default {
|
|
|
}).catch((err) => {
|
|
|
loading()
|
|
|
})
|
|
|
- // submit({
|
|
|
- // ...form
|
|
|
- // }).then(res => {
|
|
|
- // this.onLoad(this.page, this.search)
|
|
|
- // done()
|
|
|
- // }).catch(() => {
|
|
|
- // loading()
|
|
|
- // })
|
|
|
},
|
|
|
resetChange() {
|
|
|
if(document.getElementsByClassName("is-current")[0]){
|