From 8b46c471e28fbf0b71efbe363facf0bf05d8f6f8 Mon Sep 17 00:00:00 2001 From: nidapeng <jp@doumee.com> Date: 星期四, 14 三月 2024 18:12:30 +0800 Subject: [PATCH] aaa --- company/src/components/business/OperaCompanyWindow.vue | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/company/src/components/business/OperaCompanyWindow.vue b/company/src/components/business/OperaCompanyWindow.vue index 37f7315..f5e35b1 100644 --- a/company/src/components/business/OperaCompanyWindow.vue +++ b/company/src/components/business/OperaCompanyWindow.vue @@ -98,6 +98,20 @@ </el-table-column> <el-table-column align="center" + label="濮旀墭鍟嗘埛"> + <template slot-scope="scope"> + <el-select v-model="scope.row.shopId" clearable="true" value-key="id" placeholder="璇烽�夋嫨" > + <el-option + v-for="item in shops" + :key="item.id" + :label="item.name" + :value="item.id"> + </el-option> + </el-select> + </template> + </el-table-column> + <el-table-column + align="center" label="鍔犲噺淇濆姛鑳�"> <template slot-scope="{row}"> <el-checkbox :true-label="1" :false-label="0" v-model="row.canAdd">鍔犱繚</el-checkbox> @@ -122,6 +136,7 @@ import UploadAvatarImage from '@/components/common/UploadAvatarImage' import { all } from '@/api/business/solutions' import { sendSms } from '@/api/business/smsEmail' +import { pageAll as shopList } from '@/api/business/company' export default { name: 'OperaCompanyWindow', extends: BaseOpera, @@ -156,6 +171,7 @@ solutionList: [ { solution: null, + shop: null, canAdd: 0, canReduce: 0 } @@ -218,7 +234,8 @@ { required: true, message: '璇疯緭鍏ュ叕鍙歌处鍙�' } ] }, - programme: [] + programme: [], + shops:[] } }, created () { @@ -240,7 +257,6 @@ methods: { changeSolution(row,index){ this.form.solutionList[index].solution=row - // console.log(this.form.solutionList) }, send () { if (!this.form.phone) { @@ -288,6 +304,11 @@ .then(res => { this.programme = res }) + shopList({ type: 1, status: 0 }) + .then(res => { + console.log(res) + this.shops = res + }) }, dele (index) { if (this.form.solutionList.length === 1) { @@ -298,8 +319,9 @@ }, add () { this.form.solutionList.push({ - solutionId:null, + solutionId: null, solution: {}, + shopId: null, canAdd: '', canReduce: '' }) -- Gitblit v1.9.3