From ff95e73d12418ee4b1e400eaceac3d4d623f85b6 Mon Sep 17 00:00:00 2001
From: nidapeng <jp@doumee.com>
Date: 星期五, 29 三月 2024 18:44:04 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OperaShopDescWindow.vue | 76 +++----------------------------------
1 files changed, 7 insertions(+), 69 deletions(-)
diff --git a/company/src/components/business/OperaShopDescWindow.vue b/company/src/components/business/OperaShopDescWindow.vue
index a0632f9..3bd45eb 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">
@@ -64,32 +63,6 @@
<div class="info_list_item_val">{{form.invoiceAddr || '-'}}</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>
@@ -127,23 +100,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 +142,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 +226,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
@@ -315,26 +273,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