From fe3fd82f31b4fb43f6b207715a443e96d0442b26 Mon Sep 17 00:00:00 2001
From: nidapeng <jp@doumee.com>
Date: 星期二, 02 四月 2024 16:38:52 +0800
Subject: [PATCH] 提交一把
---
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