k94314517
2025-07-04 50fb58286ed3b718c39a97e0987ee7561a295651
company/src/components/business/OperaCompanyDescWindow.vue
@@ -28,6 +28,10 @@
                    <div class="info_list_item_label">公司账号:</div>
                    <div class="info_list_item_val">{{form.username || '-'}}</div>
                </div>
              <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">
@@ -60,7 +64,7 @@
                    <div class="info_list_item_val">{{form.invoiceEmail || '-'}}</div>
                </div>
                <div class="info_list_item" style="width: 100%;">
                    <div class="info_list_item_label">电子发票接收地址:</div>
                    <div class="info_list_item_label">纸质发票接收地址:</div>
                    <div class="info_list_item_val">{{form.invoiceAddr || '-'}}</div>
                </div>
            </div>
@@ -82,6 +86,11 @@
                    label="保险方案">
                </el-table-column>
                <el-table-column
                    prop="shopName"
                    align="center"
                    label="委托商户">
                </el-table-column>
                <el-table-column
                    align="center"
                    label="加减保功能">
                    <template slot-scope="{row}">
@@ -89,14 +98,38 @@
                        <el-checkbox :true-label="1" :false-label="0" disabled v-model="row.canReduce">减保</el-checkbox>
                    </template>
                </el-table-column>
                <el-table-column
                    align="center"
                    label="签署状态">
                    <template slot-scope="{row}">
                        <template v-if="row.signStatus == 0">待签署</template>
                        <template v-else-if="row.signStatus == 1">已签署</template>
                    </template>
                </el-table-column>
                <el-table-column
                    prop="signDate"
                    align="center"
                    label="签署时间">
                </el-table-column>
                <el-table-column
                    prop="signUserName"
                    align="center"
                    label="签署人">
                </el-table-column>
                <el-table-column
                    label="操作">
                    <template slot-scope="{row}">
                        <el-button type="text" v-if="row.signStatus === 1" @click="openFile(row.fileSignUrl)">查看签署方案书</el-button>
                    </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>
                    <div class="info_list_item_val">
                        <div class="image" v-if="form.businessImg.fileurlFull">
                        <div class="image" v-if="form.businessImg && form.businessImg.fileurlFull">
                          <el-image
                              v-if="form.businessImg.fileurlFull!=null"
                              v-if="form.businessImg!=null&&form.businessImg.fileurlFull!=null"
                              style="width: 90px; height: 90px"
                              :src="form.businessImg.fileurlFull"
                              :preview-src-list="[form.businessImg.fileurlFull]">
@@ -107,8 +140,8 @@
                <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.idcardImgList[0].fileurlFull">
                          <el-image
                        <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"
                              style="width: 90px; height: 90px"
@@ -116,8 +149,8 @@
                              :preview-src-list="[form.idcardImgList[0].fileurlFull]">
                          </el-image>
                        </div>
                        <div class="image" v-if="form.idcardImgList[1].fileurlFull">
                          <el-image
                        <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"
                              style="width: 90px; height: 90px"
@@ -127,10 +160,10 @@
                        </div>
                    </div>
                </div>
                <div class="info_list_item">
<!--                <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.fileurlFull">
                        <div class="image" v-if="form.signImg && form.signImg.fileurlFull">
                          <el-image
                              v-if="form.signImg.fileurlFull!=null"
                              style="width: 90px; height: 90px"
@@ -139,13 +172,14 @@
                          </el-image>
                        </div>
                    </div>
                </div>
                </div>-->
            </div>
        </div>
        <!-- 新建/修改 -->
        <OperaCompanyWindow ref="operaCompanyWindow" @success="callback"/>
        <!-- 修改保险方案 -->
        <modification ref="modification" @success="callback"/>
        <OperaPdfViewerWindow ref="operaPdfViewerWindow" />
        <!-- 修改手机号 -->
        <el-dialog
            title="更改绑定手机号"
@@ -184,13 +218,14 @@
import GlobalWindow from '@/components/common/GlobalWindow'
import OperaCompanyWindow from '@/components/business/OperaCompanyWindow'
import modification from '@/components/business/modification'
import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
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, OperaCompanyWindow, modification, OperaPdfViewerWindow },
  data () {
    return {
      ruleForm: {
@@ -216,6 +251,9 @@
    })
  },
  methods: {
    openFile(url) {
      this.$refs.operaPdfViewerWindow.open('方案确认书', url)
    },
    close () {
      this.visiblePhone = false
      this.phone = ''
@@ -244,6 +282,8 @@
        this.code = ''
        clearInterval(this.timer)
        this.num = 0
      }) .catch(e => {
        this.$tip.apiFailed(e)
      })
    },
    send () {
@@ -255,7 +295,9 @@
        .then(res => {
          this.num = 60
          this.setTime()
        })
        }) .catch(e => {
        this.$tip.apiFailed(e)
         })
    },
    setTime () {
      this.timer = setInterval(() => {
@@ -277,7 +319,7 @@
      this.getDetail()
    },
    getDetail () {
      var that =this
      var that = this
      getById(this.dataId)
        .then(res => {
          this.form = res
@@ -299,21 +341,29 @@
            imgurl: '',
            imgurlfull: ''
          }
          this.form.file.imgurl = res.businessImg.fileurl
          this.form.file.imgurlfull = res.businessImg.fileurlFull
          this.form.file1.imgurl = res.idcardImgList[0].fileurl
          this.form.file1.imgurlfull = res.idcardImgList[0].fileurlFull
          this.form.file2.imgurl = res.idcardImgList[1].fileurl
          this.form.file2.imgurlfull = res.idcardImgList[1].fileurlFull
          this.form.file3.imgurl = res.signImg.fileurl
          this.form.file3.imgurlfull = res.signImg.fileurlFull
          if(res.businessImg){
            this.form.file.imgurl = res.businessImg.fileurl
            this.form.file.imgurlfull = res.businessImg.fileurlFull
          }
          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>1) {
            this.form.file2.imgurl = res.idcardImgList[1].fileurl
            this.form.file2.imgurlfull = res.idcardImgList[1].fileurlFull
          }
          if (res.signImg) {
            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,
                  shopId: item.shopId,
                  canAdd: item.canAdd,
                  canReduce: item.canReduce
                }
@@ -321,8 +371,10 @@
              that.form.solutionListName = resa.map(item => {
                return {
                  solutionName: item.solutionName,
                  shopName: item.shopName,
                  canAdd: item.canAdd,
                  canReduce: item.canReduce
                  canReduce: item.canReduce,
                  ...item
                }
              })
              console.log(that.form)
@@ -401,7 +453,7 @@
                align-items: start;
                margin-bottom: 20px;
                .info_list_item_label {
                    width: 150px;
                    /*width: 150px;*/
                    flex-shrink: 0;
                }
                .info_list_item_val {