商品分类修改绑定规格八阿哥

master
lemon橪 2021-06-18 17:11:18 +08:00
parent 336643419e
commit d9368b7514
4 changed files with 61 additions and 97 deletions

View File

@ -61,7 +61,7 @@ export function getCateById (id) {
// 店铺入驻协议 // 店铺入驻协议
export function agreement () { export function agreement () {
return request({ return request({
url: `/buyer/article/get/1349291301250293760`, url: `/buyer/article/type/STORE_REGISTER`,
needToken: true, needToken: true,
method: Method.GET method: Method.GET
}) })

View File

@ -9,23 +9,11 @@
<Step title="其他信息"></Step> <Step title="其他信息"></Step>
<Step title="提交审核"></Step> <Step title="提交审核"></Step>
</Steps> </Steps>
<first-apply <first-apply v-if="currentIndex == 0 && dataReview" :content="firstData" @change="nextPage"></first-apply>
v-if="currentIndex == 0 && dataReview"
:content="firstData"
@change="nextPage"
></first-apply>
<second-apply <second-apply v-if="currentIndex == 1 && dataReview" :content="secondData" @change="nextPage"></second-apply>
v-if="currentIndex == 1 && dataReview"
:content="secondData"
@change="nextPage"
></second-apply>
<third-apply <third-apply v-if="currentIndex == 2 && dataReview" :content="thirdData" @change="nextPage"></third-apply>
v-if="currentIndex == 2 && dataReview"
:content="thirdData"
@change="nextPage"
></third-apply>
<div class="success-page" v-if="currentIndex == 3"> <div class="success-page" v-if="currentIndex == 3">
<span v-if="storeDisable == '' || storeDisable == 'APPLYING'"></span> <span v-if="storeDisable == '' || storeDisable == 'APPLYING'"></span>
@ -37,62 +25,51 @@
<Button type="primary" @click='currentIndex = 0' v-if="storeDisable === 'REFUSED' && currentIndex === 3"></Button> <Button type="primary" @click='currentIndex = 0' v-if="storeDisable === 'REFUSED' && currentIndex === 3"></Button>
</div> </div>
<Modal <Modal title="店铺入驻协议" v-model="showAgreement" width="1200" :closable="false" :mask-closable="false">
title="店铺入驻协议"
v-model="showAgreement"
width="1200"
:closable="false"
:mask-closable="false"
>
<div class="agreeent-con" v-html="agreementCon"></div> <div class="agreeent-con" v-html="agreementCon"></div>
<div slot="footer" style="text-align: center"> <div slot="footer" style="text-align: center">
<p><Checkbox v-model="checked"></Checkbox></p> <p>
<Button <Checkbox v-model="checked"></Checkbox>
type="primary" </p>
:disabled="!checked" <Button type="primary" :disabled="!checked" class="margin" @click="showAgreement = false">同意协议填写资质信息</Button>
class="margin"
@click="showAgreement = false"
>同意协议填写资质信息</Button
>
</div> </div>
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
import { agreement, applyStatus } from '@/api/shopentry'; import { agreement, applyStatus } from "@/api/shopentry";
import firstApply from './first-apply'; import firstApply from "./first-apply";
import secondApply from './second-apply'; import secondApply from "./second-apply";
import thirdApply from './third-apply'; import thirdApply from "./third-apply";
export default { export default {
components: { components: {
firstApply, firstApply,
secondApply, secondApply,
thirdApply thirdApply,
}, },
data () { data() {
return { return {
currentIndex: 0, // currentIndex: 0, //
showAgreement: false, // showAgreement: false, //
agreementCon: '', // agreementCon: "", //
checked: false, // checked: false, //
applyData: {}, // applyData: {}, //
firstData: {}, // firstData: {}, //
secondData: {}, // secondData: {}, //
thirdData: {}, // thirdData: {}, //
storeDisable: '', // APPLY OPEN CLOSED REFUSED APPLYING storeDisable: "", // APPLY OPEN CLOSED REFUSED APPLYING
dataReview: true // dataReview: true, //
}; };
}, },
methods: { methods: {
getArticle () { getArticle() {
// //
agreement().then((res) => { agreement().then((res) => {
console.log(res); this.agreementCon = res.result.content;
this.agreementCon = res.result;
}); });
}, },
getData () { getData() {
applyStatus().then((res) => { applyStatus().then((res) => {
if (res.success) { if (res.success) {
if (!res.result) { if (!res.result) {
@ -101,34 +78,34 @@ export default {
this.dataReview = false; this.dataReview = false;
let data = res.result; let data = res.result;
let first = [ let first = [
'addressIdPath', "addressIdPath",
'addressPath', "addressPath",
'companyAddress', "companyAddress",
'companyEmail', "companyEmail",
'companyName', "companyName",
'employeeNum', "employeeNum",
'legalId', "legalId",
'legalName', "legalName",
'licencePhoto', "licencePhoto",
'legalPhoto', "legalPhoto",
'licenseNum', "licenseNum",
'linkName', "linkName",
'linkPhone', "linkPhone",
'registeredCapital', "registeredCapital",
'scope' "scope",
]; ];
let second = [ let second = [
'settlementBankAccountName', "settlementBankAccountName",
'settlementBankAccountNum', "settlementBankAccountNum",
'settlementBankBranchName', "settlementBankBranchName",
'settlementBankJointName' "settlementBankJointName",
]; ];
let third = [ let third = [
'goodsManagementCategory', "goodsManagementCategory",
'storeCenter', "storeCenter",
'storeDesc', "storeDesc",
'storeLogo', "storeLogo",
'storeName' "storeName",
]; ];
this.storeDisable = data.storeDisable; this.storeDisable = data.storeDisable;
@ -143,7 +120,7 @@ export default {
this.thirdData[e] = data[e]; this.thirdData[e] = data[e];
}); });
if (this.storeDisable === 'APPLY') { if (this.storeDisable === "APPLY") {
this.currentIndex = 0; this.currentIndex = 0;
} else { } else {
this.currentIndex = 3; this.currentIndex = 3;
@ -154,13 +131,14 @@ export default {
} }
}); });
}, },
nextPage (step) { nextPage(step) {
this.currentIndex = step; this.currentIndex = step;
} },
}, },
mounted () { mounted() {
this.getData(); this.getData();
} this.getArticle();
},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -21,10 +21,10 @@ export default {
// buyer: "https://buyer-api.pickmall.cn", // buyer: "https://buyer-api.pickmall.cn",
// seller: "https://store-api.pickmall.cn", // seller: "https://store-api.pickmall.cn",
// manager: "https://admin-api.pickmall.cn" // manager: "https://admin-api.pickmall.cn"
common: "http://192.168.0.100:8890", common: "http://192.168.0.109:8890",
buyer: "http://192.168.0.100:8888", buyer: "http://192.168.0.109:8888",
seller: "http://192.168.0.100:8889", seller: "http://192.168.0.109:8889",
manager: "http://192.168.0.100:8887" manager: "http://192.168.0.109:8887"
}, },
api_prod: { api_prod: {

View File

@ -106,7 +106,7 @@
<Modal :title="modalSpecTitle" v-model="modalSpecVisible" :mask-closable="false" :width="500"> <Modal :title="modalSpecTitle" v-model="modalSpecVisible" :mask-closable="false" :width="500">
<Form ref="specForm" :model="specForm" :label-width="100"> <Form ref="specForm" :model="specForm" :label-width="100">
<Select v-model="specForm.category_specs" multiple> <Select v-model="specForm.categorySpecs" multiple>
<Option v-for="item in specifications" :value="item.id" :key="item.id" :label="item.specName"> <Option v-for="item in specifications" :value="item.id" :key="item.id" :label="item.specName">
</Option> </Option>
</Select> </Select>
@ -134,7 +134,6 @@ import {
} from "@/api/goods"; } from "@/api/goods";
import TreeTable from "@/views/my-components/tree-table/Table/Table"; import TreeTable from "@/views/my-components/tree-table/Table/Table";
import uploadPicInput from "@/views/my-components/lili/upload-pic-input"; import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
import * as filters from "@/utils/filters";
export default { export default {
name: "lili-components", name: "lili-components",
@ -153,7 +152,7 @@ export default {
specifications: [], // specifications: [], //
categoryId: "", // id categoryId: "", // id
category_brands: [], // category_brands: [], //
category_specs: [], // categorySpecs: [], //
expandLevel: 1, // expandLevel: 1, //
modalType: 0, // modalType: 0, //
modalVisible: false, // modalVisible: false, //
@ -240,7 +239,8 @@ export default {
// //
getSpecList() { getSpecList() {
getSpecificationList().then((res) => { getSpecificationList().then((res) => {
if (res.success) { if (res.length != 0) {
this.specifications = res; this.specifications = res;
} }
}); });
@ -261,7 +261,8 @@ export default {
getCategorySpecListData(v.id).then((res) => { getCategorySpecListData(v.id).then((res) => {
this.categoryId = v.id; this.categoryId = v.id;
this.modalSpecTitle = "规格关联"; this.modalSpecTitle = "规格关联";
this.specForm.category_specs = res.map((item) => item.id); console.log(res);
this.specForm.categorySpecs = res.map((item) => item.id);
this.modalSpecVisible = true; this.modalSpecVisible = true;
}); });
}, },
@ -396,7 +397,6 @@ export default {
this.categoryList = res.result; this.categoryList = res.result;
this.$nextTick(() => { this.$nextTick(() => {
this.$set(this, "tableData", [res.result[this.categoryIndex]]); this.$set(this, "tableData", [res.result[this.categoryIndex]]);
}); });
@ -459,22 +459,8 @@ export default {
background: #fff; background: #fff;
padding: 20px; padding: 20px;
} }
.article {
font-size: 16px;
font-weight: 400;
margin: 12px 0;
}
.href-text {
font-size: 12px;
}
.operation { .operation {
margin-bottom: 2vh; margin-bottom: 2vh;
} }
.select-count {
font-weight: 600;
color: #40a9ff;
}
</style> </style>