更新代码,暂提

This commit is contained in:
xiaofajia 2024-10-23 14:33:28 +08:00
parent 2c037d5a49
commit 0509974c82
2 changed files with 9 additions and 3 deletions

View File

@ -70,11 +70,12 @@
<!-- <el-button @click="handleRecord(scope.row, 'zj')" size="mini" type="text" icon="el-icon-monitor" v-if="userRole === 'general_inspection' && scope.row.ticketsWorkStatus === '05'">--> <!-- <el-button @click="handleRecord(scope.row, 'zj')" size="mini" type="text" icon="el-icon-monitor" v-if="userRole === 'general_inspection' && scope.row.ticketsWorkStatus === '05'">-->
<!-- 终检--> <!-- 终检-->
<!-- </el-button>--> <!-- </el-button>-->
<el-button @click="handleReTake(scope.row)" size="mini" type="text" icon="el-icon-refresh" v-if="(userRole === 'repair_staff' ? leader : false) && !(scope.row.ticketsWorkStatus !== '01' && userRole === 'repair_staff' && !isFinish)"> <el-button @click="handleReTake(scope.row)" size="mini" type="text" icon="el-icon-refresh"
v-if="(userRole === 'repair_staff' ? (leader ? !isFinish : false) : false) && !(scope.row.ticketsWorkStatus !== '01' && userRole === 'repair_staff' && !isFinish)">
重新指派 重新指派
</el-button> </el-button>
<el-dropdown <el-dropdown
v-if="scope.row.ticketsWorkStatus !== '01'" v-if="scope.row.ticketsWorkStatus !== '01' && ((userRole === 'service_advisor' || userRole === 'general_inspection') && !isFinish)"
@command="(command) => handleCommand(command, scope.$index, scope.row)"> @command="(command) => handleCommand(command, scope.$index, scope.row)">
<el-button size="mini" type="text" icon="el-icon-d-arrow-right">更多</el-button> <el-button size="mini" type="text" icon="el-icon-d-arrow-right">更多</el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
@ -145,7 +146,6 @@ import {getPageType, updateTake, getTicketsById} from "@/api/repair/tickets/Tick
import TicketsShow from "@/views/repair/tickets/Components/TicketsShow.vue"; import TicketsShow from "@/views/repair/tickets/Components/TicketsShow.vue";
import UpdateRepair from "@/views/repair/tickets/form/UpdateRepair.vue"; import UpdateRepair from "@/views/repair/tickets/form/UpdateRepair.vue";
import TWOperate from "@/views/repair/tickets/form/TWOperate.vue"; import TWOperate from "@/views/repair/tickets/form/TWOperate.vue";
import {listTwItem} from "@/api/repair/tickets/TWItem";
import {createUniqueCodeByHead} from "@/utils/createUniqueCode"; import {createUniqueCodeByHead} from "@/utils/createUniqueCode";
import {updateTicketWares} from "@/api/repair/tickets/TicketWares"; import {updateTicketWares} from "@/api/repair/tickets/TicketWares";
import {getIfLeader} from "@/api/repair/repairworker"; import {getIfLeader} from "@/api/repair/repairworker";
@ -163,6 +163,9 @@ export default {
type: String, type: String,
default: '', default: '',
required: true required: true
},
isType:{
type: String,
} }
}, },
data() { data() {

View File

@ -16,6 +16,9 @@
<el-tab-pane label="退料确认" name="finishBackWares" v-if="userRole === 'repair_staff'"> <el-tab-pane label="退料确认" name="finishBackWares" v-if="userRole === 'repair_staff'">
<GetAndBackWares :type="false" /> <GetAndBackWares :type="false" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="待总检工单" name="unInspection" v-if="userRole === 'general_inspection'">
<TicketManagerItem :user-role="userRole" :is-finish="false"/>
</el-tab-pane>
<!-- <el-tab-pane label="退料申请单" name="backApply">--> <!-- <el-tab-pane label="退料申请单" name="backApply">-->
<!-- <TicketWares :type="false" :user-role="userRole"/>--> <!-- <TicketWares :type="false" :user-role="userRole"/>-->
<!-- </el-tab-pane>--> <!-- </el-tab-pane>-->