| | |
| | | </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> |
| | |
| | | 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, |
| | |
| | | solutionList: [ |
| | | { |
| | | solution: null, |
| | | shop: null, |
| | | canAdd: 0, |
| | | canReduce: 0 |
| | | } |
| | |
| | | { required: true, message: '请输入公司账号' } |
| | | ] |
| | | }, |
| | | programme: [] |
| | | programme: [], |
| | | shops:[] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | methods: { |
| | | changeSolution(row,index){ |
| | | this.form.solutionList[index].solution=row |
| | | // console.log(this.form.solutionList) |
| | | }, |
| | | send () { |
| | | if (!this.form.phone) { |
| | |
| | | .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) { |
| | |
| | | }, |
| | | add () { |
| | | this.form.solutionList.push({ |
| | | solutionId:null, |
| | | solutionId: null, |
| | | solution: {}, |
| | | shopId: null, |
| | | canAdd: '', |
| | | canReduce: '' |
| | | }) |