6
jinlin
2023-12-06 da4cb0bcbb9c35105afe449b31b3e2b03828d5d2
web/src/views/modules/sys/task/already-task.vue
@@ -6,7 +6,7 @@
      <el-input type="text" v-model="dataForm.djxlSystem" v-if="false" />
    </el-form>
    <el-table ref="table"
              :height="getTransformHeight(transformHeight)"
              :height="getTransformHeight()"
              class="pushtable  table-is__left-tz"
              v-loading="dataLoading"
              :data="dataList"
@@ -27,13 +27,13 @@
      <el-table-column align="center" prop="stepName" label="当前状态" width="240px"/>
      <el-table-column align="center" prop="receiveName" label="办理人"  width="120px"/>
      <!--        <el-table-column align="center" prop="statusName" label="我的意见" />-->
      <el-table-column label="操作" width="220px">
      <el-table-column label="操作" width="180px">
        <template v-slot="{ row }">
          <zt-table-button v-show="row.canRecall == 1 && !$store.state.user.isAdmin" @click="reCall(row)">撤回</zt-table-button>
          <zt-table-button @click="check(row,'')" v-if="row.flowCode !== 'yearPlanFlow'">查看</zt-table-button>
          <zt-table-button @click="check(row,'')" v-if="row.flowCode === 'yearPlanFlow'">修改</zt-table-button>
          <zt-table-button @click="flowChart(row)">流程图</zt-table-button>
          <zt-table-button v-if="row.flowCode != 'yearPlan2'" @click="getFlowTrack(row)">办理轨迹</zt-table-button>
<!--          <zt-table-button v-if="row.flowCode != 'yearPlan2'" @click="getFlowTrack(row)">办理轨迹</zt-table-button>-->
        </template>
      </el-table-column>
      <infinite-loading
@@ -49,13 +49,17 @@
    </el-table>
    <!-- 已办任务弹窗 -->
    <ItemCirculatOrder ref="itemCirculatOrder" @refreshDataList="getQuery()"></ItemCirculatOrder>
    <ConfigItemWarehouse ref="configItemWarehouse" @refreshDataList="getQuery()"></ConfigItemWarehouse>
    <!--    </zt-table-wraper>-->
  </div>
</template>
<script>
  import cloneDeep from 'lodash/cloneDeep'
  import InfiniteLoading from 'vue-infinite-loading'
  import ItemCirculatOrder from '@/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate'
  import Cookies from "js-cookie";
  import ConfigItemWarehouse from '@/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate'
  export default {
    data() {
@@ -80,7 +84,8 @@
    },
    components: {
      InfiniteLoading,
      ItemCirculatOrder
      ItemCirculatOrder,
      ConfigItemWarehouse
    },
    watch:{
    },
@@ -145,13 +150,9 @@
        });
      },
      getTransformHeight(transformHeight){
      getTransformHeight(){
        let Height=document.documentElement.clientHeight
        if(transformHeight){
          return  Height-(650-403)
        }else{
          return  Height-650
        }
      },
      async getQuery(){
        this.handleInfiniteLoadingBeforeGet()
@@ -185,10 +186,16 @@
      },
      check(row) {
        console.log(row, "task row");
        let row2 = cloneDeep(row)
        row2.stepMarker = null
        if (row.flowCode === 'wplz') {
          this.$refs.itemCirculatOrder.$refs.dialog.init(row)
        } else if (row.flowCode === 'aaa') {
          //this.$refs.itemCirculatOrder.$refs.dialog.init(row)
          this.$nextTick(()=>{
            this.$refs.itemCirculatOrder.$refs.dialog.init(row2.bizId,row2)
          })
        } else if (row.flowCode === 'pzxrk') {
          this.$nextTick(()=>{
            this.$refs.configItemWarehouse.$refs.dialog.init(row2.bizId,row2)
          })
        }
        else {
          if (row.stepReadRouterId === null){