From deb3baf0fb04c3a9f5b0d4b5bd9fb3237908d576 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 19 二月 2024 18:38:12 +0800
Subject: [PATCH] 111
---
company/src/components/business/OperaCompanyWindow.vue | 45 ++++++++++++++++++++++++++-------------------
1 files changed, 26 insertions(+), 19 deletions(-)
diff --git a/company/src/components/business/OperaCompanyWindow.vue b/company/src/components/business/OperaCompanyWindow.vue
index ea7823e..ecbda07 100644
--- a/company/src/components/business/OperaCompanyWindow.vue
+++ b/company/src/components/business/OperaCompanyWindow.vue
@@ -1,7 +1,7 @@
<template>
<GlobalWindow
:title="title"
- width="50%"
+ width="60%"
:visible.sync="visible"
:confirm-working="isWorking"
@confirm="confirm"
@@ -50,17 +50,17 @@
<el-form-item label="绾歌川鍙戠エ鎺ユ敹鍦板潃" prop="invoiceAddr">
<el-input v-model="form.invoiceAddr" placeholder="璇疯緭鍏�" v-trim/>
</el-form-item>
- <el-form-item label="钀ヤ笟鎵х収" prop="businessImg">
+ <el-form-item label="钀ヤ笟鎵х収" prop="businessImg" style="height: 120px">
<UploadAvatarImage :uploadData="{ folder: 'company' }" :file="form.file" @uploadSuccess="result" />
</el-form-item>
- <el-form-item label="娉曚汉韬唤璇�" prop="idcardImgList">
+ <el-form-item label="娉曚汉韬唤璇�" prop="idcardImgList" style="height: 120px">
<div style="width: 100%; display: flex; align-items: center;">
<UploadAvatarImage :uploadData="{ folder: 'company' }" :file="form.file1" @uploadSuccess="result1" />
<div style="width: 15px;height: 100%;"></div>
<UploadAvatarImage :uploadData="{ folder: 'company' }" :file="form.file2" @uploadSuccess="result2" />
</div>
</el-form-item>
- <el-form-item label="鐢靛瓙绛剧珷" prop="signImg">
+ <el-form-item label="鐢靛瓙绛剧珷" prop="signImg" style="height: 120px">
<UploadAvatarImage :uploadData="{ folder: 'company' }" :file="form.file3" @uploadSuccess="result3" />
</el-form-item>
</el-form>
@@ -81,15 +81,15 @@
<el-table-column
align="center"
label="淇濋櫓鏂规">
- <template slot-scope="{row}">
- <el-select v-model="row.solutionBaseId" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in programme"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
+ <template slot-scope="scope">
+ <el-select v-model="scope.row.solution" value-key="id" placeholder="璇烽�夋嫨" change="changeSolution($event,scope.$index)">
+ <el-option
+ v-for="item in programme"
+ :key="item.id"
+ :label="item.name"
+ :value="item">
+ </el-option>
+ </el-select>
</template>
</el-table-column>
<el-table-column
@@ -125,7 +125,7 @@
data () {
return {
// 琛ㄥ崟鏁版嵁
- form: {
+ initParam:{
id: null,
name: '',
code: '',
@@ -151,12 +151,12 @@
},
solutionList: [
{
- solutionBaseId: '',
+ solution: null,
canAdd: 0,
canReduce: 0
}
],
- type: '',
+ type: '0',
file: {
imgurl: '',
imgurlfull: ''
@@ -172,8 +172,9 @@
file3: {
imgurl: '',
imgurlfull: ''
- }
+ },
},
+ form: {},
timer: null,
num: 0,
// 楠岃瘉瑙勫垯
@@ -233,6 +234,10 @@
}
},
methods: {
+ changeSolution(row,index){
+ this.form.solutionList[index].solution=row
+ // console.log(this.form.solutionList)
+ },
send () {
if (!this.form.phone) {
this.$message.warning('璇疯緭鍏ユ墜鏈哄彿')
@@ -253,9 +258,10 @@
}
}, 1000)
},
- open (title, target) {
+ open (title, target,type) {
this.title = title
this.visible = true
+ this.form = this.initParam
this.getAll()
// 鏂板缓
if (target == null) {
@@ -288,7 +294,8 @@
},
add () {
this.form.solutionList.push({
- solutionName: '',
+ solutionId:null,
+ solution: {},
canAdd: '',
canReduce: ''
})
--
Gitblit v1.9.3