k94314517
2025-07-04 50fb58286ed3b718c39a97e0987ee7561a295651
company/src/components/business/OperaSolutionsDescWindow.vue
@@ -10,15 +10,15 @@
        <div class="info">
            <div class="info_list">
                <div class="info_list_item">
                    <div class="info_list_item_label">子方案:</div>
                    <div class="info_list_item_label">{{userInfo.type!=1?'子方案:':'方案:'}}</div>
                    <div class="info_list_item_val">{{form.name}}</div>
                </div>
                <div class="info_list_item">
                <div class="info_list_item" v-if="userInfo.type !== 1">
                    <div class="info_list_item_label">主方案:</div>
                    <div class="info_list_item_val"><a @click="$refs.operaSolutionsBaseDescWindow.open('主方案详情', { id: form.parentId })" style="cursor: pointer;color: #2E68EC;">{{form.solutionBaseName}}</a></div>
                </div>
                <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.price}}元/人/<template v-if="form.timeUnit === 0">天</template><template v-if="form.timeUnit === 2">月</template><template v-if="form.timeUnit === 3">季度</template><template v-if="form.timeUnit === 4">半年</template><template v-if="form.timeUnit === 5">年</template>
                    </div>
@@ -52,13 +52,27 @@
                    <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_label">批改支持:</div>
                <div class="info_list_item_val">
                  <span style="margin-right: 50px">加保 <i  :class="form.canAdd ==1?'el-icon-circle-check':'el-icon-circle-close'" :style="form.canAdd ==1?'color:green;font-weight:bold':'color:red;font-weight:bold'"></i></span>
                  <span  style="margin-right: 50px">减保  <i   :class="form.canReduce ==1?'el-icon-circle-check':'el-icon-circle-close'" :style="form.canReduce ==1?'color:green;font-weight:bold':'color:red;font-weight:bold'"></i></span>
                  <span>更换派遣单位 <i   :class="form.canChangeUnit ==1?'el-icon-circle-check':'el-icon-circle-close'" :style="form.canChangeUnit ==1?'color:green;font-weight:bold':'color:red;font-weight:bold'"></i></span>
                </div>
              </div>
              <div class="info_list_item">
                <div class="info_list_item_label">批减仅支持替换:</div>
                <div class="info_list_item_val">{{form.delOnlyReplace ==1?'是':'否'}}</div>
              </div>
                <div class="info_list_item" style="width: 100%">
                    <div class="info_list_item_label">方案确认书:</div>
                    <div class="info_list_item_val" ><a v-if="form.fanganFile && form.fanganFile.fileurlFull" style="cursor: pointer;color: #2E68EC" title="点击查看" @click="openFile(form.fanganFile.fileurlFull)">{{ form.fanganFile.name || '点击查看' }}</a></div>
                </div>
            </div>
            <div style="font-size: 18px; font-weight: bold; margin-bottom: 10px;" v-if="userInfo.type === 0">方案使用情况</div>
            <el-table
                :data="form.worktypeList"
                v-if="userInfo.type === 0"
                :data="list"
                border
                style="width: 100%; margin-bottom: 20px;">
                <el-table-column
@@ -70,11 +84,37 @@
                    </template>
                </el-table-column>
                <el-table-column
                    prop="worktypeName"
                    prop="companyName"
                    align="center"
                    label="工种名称">
                    label="企业名称">
                </el-table-column>
                <el-table-column
                    align="center"
                    label="签章情况">
                    <template slot-scope="{row}">
                        <span v-if="row.signStatus === 0">待签章</span>
                        <span v-if="row.signStatus === 1">已签章</span>
                    </template>
                </el-table-column>
            </el-table>
<!--            <el-table-->
<!--                :data="form.worktypeList"-->
<!--                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="worktypeName"-->
<!--                    align="center"-->
<!--                    label="工种名称">-->
<!--                </el-table-column>-->
<!--            </el-table>-->
        </div>
        <!-- 修改 -->
        <OperaSolutionsWindow ref="operaSolutionsWindow" @success="callback"/>
@@ -89,7 +129,7 @@
import OperaSolutionsWindow from '@/components/business/OperaSolutionsWindow'
import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
import OperaSolutionsBaseDescWindow from '@/components/business/OperaSolutionsBaseDescWindow'
import { solutionsId } from '@/api/business/solutions'
import { solutionsId, listForCompany } from '@/api/business/solutions'
import { mapState } from 'vuex'
export default {
  name: 'OperaSolutionsDescWindow',
@@ -130,7 +170,8 @@
        signKeyword: '',
        worktypeList: [],
        worktypeIdList: []
      }
      },
      list: []
    }
  },
  computed: {
@@ -186,8 +227,15 @@
          this.form[key] = target[key]
        }
        this.getDetails()
        this.getList()
      })
    },
    getList() {
      listForCompany({ solutionId: this.form.id })
        .then(res => {
          this.list = res
        })
    },
    openFile (url) {
      setTimeout(() => {
        this.$refs.OperaPdfViewerWindow.open('方案确认书',url)