From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 14:05:35 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OperaShopDescWindow.vue | 94 +++++++++--------------------------------------
1 files changed, 18 insertions(+), 76 deletions(-)
diff --git a/company/src/components/business/OperaShopDescWindow.vue b/company/src/components/business/OperaShopDescWindow.vue
index a0632f9..cfebc75 100644
--- a/company/src/components/business/OperaShopDescWindow.vue
+++ b/company/src/components/business/OperaShopDescWindow.vue
@@ -9,15 +9,14 @@
>
<div class="info">
<div class="info_label">
- <span>浼佷笟璇︽儏</span>
+ <span>鍟嗘埛璇︽儏</span>
<div>
- <el-button type="primary" @click="$refs.modification.open('淇敼淇濋櫓鏂规', form)">鏇存敼淇濋櫓鏂规</el-button>
- <el-button type="primary" @click="$refs.operaCompanyWindow.open('缂栬緫浼佷笟淇℃伅', form)">淇敼浼佷笟淇℃伅</el-button>
+ <el-button type="primary" @click="$refs.operaCompanyWindow.open('缂栬緫鍟嗘埛淇℃伅', form)">淇敼鍟嗘埛淇℃伅</el-button>
</div>
</div>
<div class="info_list">
<div class="info_list_item">
- <div class="info_list_item_label">浼佷笟鍚嶇О锛�</div>
+ <div class="info_list_item_label">鍟嗘埛鍚嶇О锛�</div>
<div class="info_list_item_val">{{form.name || '-'}}</div>
</div>
<div class="info_list_item">
@@ -39,7 +38,11 @@
<div class="info_list_item_label">璁よ瘉閭锛�</div>
<div class="info_list_item_val">{{form.email || '-'}}</div>
</div>
- <div class="info_list_item">
+ <div class="info_list_item">
+ <div class="info_list_item_label">娉曚汉濮撳悕锛�</div>
+ <div class="info_list_item_val">{{form.legalName || '-'}}</div>
+ </div>
+<!-- <div class="info_list_item">
<div class="info_list_item_label">绾崇◣浜鸿瘑鍒彿锛�</div>
<div class="info_list_item_val">{{form.taxCode || '-'}}</div>
</div>
@@ -62,34 +65,8 @@
<div class="info_list_item" style="width: 100%;">
<div class="info_list_item_label">绾歌川鍙戠エ鎺ユ敹鍦板潃锛�</div>
<div class="info_list_item_val">{{form.invoiceAddr || '-'}}</div>
- </div>
+ </div>-->
</div>
- <el-table
- :data="form.solutionListName"
- border
- style="width: 100%; margin-bottom: 20px;">
- <el-table-column
- label="搴忓彿"
- align="center"
- width="80">
- <template slot-scope="scope">
- <span>{{scope.$index + 1}}</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="solutionName"
- align="center"
- label="淇濋櫓鏂规">
- </el-table-column>
- <el-table-column
- align="center"
- label="鍔犲噺淇濆姛鑳�">
- <template slot-scope="{row}">
- <el-checkbox :true-label="1" :false-label="0" disabled v-model="row.canAdd">鍔犱繚</el-checkbox>
- <el-checkbox :true-label="1" :false-label="0" disabled v-model="row.canReduce">鍑忎繚</el-checkbox>
- </template>
- </el-table-column>
- </el-table>
<div class="info_list" v-if="JSON.stringify(form) !== '{}'">
<div class="info_list_item">
<div class="info_list_item_label" style="width: 100px;">钀ヤ笟鎵х収锛�</div>
@@ -105,9 +82,9 @@
</div>
</div>
<div class="info_list_item">
- <div class="info_list_item_label" style="width: 100px;">娉曚汉韬唤璇侊細</div>
+ <div class="info_list_item_label" style="width: 100px;">娉曚汉韬唤璇� 锛�</div>
<div class="info_list_item_val">
- <div class="image" v-if="form.idcardImgList && form.idcardImgList .length>1 && form.idcardImgList[0].fileurlFull">
+ <div class="image" v-if="form.idcardImgList && form.idcardImgList .length>0 && form.idcardImgList[0].fileurlFull">
<el-image
append-to-body
v-if="form.idcardImgList[0].fileurlFull"
@@ -116,7 +93,7 @@
:preview-src-list="[form.idcardImgList[0].fileurlFull]">
</el-image>
</div>
- <div class="image" v-if="form.idcardImgList && form.idcardImgList .length>2 && form.idcardImgList[1].fileurlFull">
+ <div class="image" v-if="form.idcardImgList && form.idcardImgList .length>1 && form.idcardImgList[1].fileurlFull">
<el-image
append-to-body
v-if="form.idcardImgList[1].fileurlFull"
@@ -127,23 +104,10 @@
</div>
</div>
</div>
- <div class="info_list_item">
- <div class="info_list_item_label" style="width: 100px;">浼佷笟绛剧珷锛�</div>
- <div class="info_list_item_val">
- <div class="image" v-if="form.signImg && form.signImg.fileurlFull">
- <el-image
- v-if="form.signImg.fileurlFull!=null"
- style="width: 90px; height: 90px"
- :src="form.signImg.fileurlFull"
- :preview-src-list="[form.signImg.fileurlFull]">
- </el-image>
- </div>
- </div>
- </div>
</div>
</div>
<!-- 鏂板缓/淇敼 -->
- <OperaCompanyWindow ref="operaCompanyWindow" @success="callback"/>
+ <OperaShopWindow ref="operaCompanyWindow" @success="callback"/>
<!-- 淇敼淇濋櫓鏂规 -->
<modification ref="modification" @success="callback"/>
<!-- 淇敼鎵嬫満鍙� -->
@@ -182,15 +146,14 @@
<script>
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
-import OperaCompanyWindow from '@/components/business/OperaCompanyWindow'
+import OperaShopWindow from '@/components/business/OperaShopWindow'
import modification from '@/components/business/modification'
import { getById, updatePhone } from '@/api/business/company'
-import { listForCompany } from '@/api/business/solutions'
import { sendSms } from '@/api/business/smsEmail'
export default {
name: 'OperaCompanyDescWindow',
extends: BaseOpera,
- components: { GlobalWindow, OperaCompanyWindow, modification },
+ components: { GlobalWindow, OperaShopWindow, modification },
data () {
return {
ruleForm: {
@@ -267,17 +230,16 @@
}, 1000)
},
open (title, target) {
- const that = this
this.title = title
this.dataId = target.id
this.phone = ''
this.code = ''
+ this.visible=true
clearInterval(this.timer)
this.num = 0
this.getDetail()
},
getDetail () {
- var that = this
getById(this.dataId)
.then(res => {
this.form = res
@@ -303,11 +265,11 @@
this.form.file.imgurl = res.businessImg.fileurl
this.form.file.imgurlfull = res.businessImg.fileurlFull
}
- if (res.idcardImgList&& res.idcardImgList.length>1) {
+ if (res.idcardImgList&& res.idcardImgList.length>0) {
this.form.file1.imgurl = res.idcardImgList[0].fileurl
this.form.file1.imgurlfull = res.idcardImgList[0].fileurlFull
}
- if (res.idcardImgList && res.idcardImgList.length>2) {
+ if (res.idcardImgList && res.idcardImgList.length>1) {
this.form.file2.imgurl = res.idcardImgList[1].fileurl
this.form.file2.imgurlfull = res.idcardImgList[1].fileurlFull
}
@@ -315,26 +277,6 @@
this.form.file3.imgurl = res.signImg.fileurl
this.form.file3.imgurlfull = res.signImg.fileurlFull
}
-
- listForCompany({ companyId: this.dataId })
- .then(resa => {
- that.form.solutionList = resa.map(item => {
- return {
- solutionBaseId: item.solutionBaseId,
- canAdd: item.canAdd,
- canReduce: item.canReduce
- }
- })
- that.form.solutionListName = resa.map(item => {
- return {
- solutionName: item.solutionName,
- canAdd: item.canAdd,
- canReduce: item.canReduce
- }
- })
- console.log(that.form)
- that.visible = true
- })
})
},
callback () {
--
Gitblit v1.9.3