暂提
This commit is contained in:
parent
5e4b167684
commit
f8f8bc33e2
@ -50,20 +50,23 @@
|
|||||||
<el-button v-if="userRole === 'service_advisor' && scope.row.ticketsWorkStatus === '01'" size="mini" type="text" icon="el-icon-check" @click="handleNotify(scope.row)">
|
<el-button v-if="userRole === 'service_advisor' && scope.row.ticketsWorkStatus === '01'" size="mini" type="text" icon="el-icon-check" @click="handleNotify(scope.row)">
|
||||||
通知施工
|
通知施工
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" v-if="userRole === 'repair_staff' && !isFinish" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgz')">
|
<el-button size="mini" v-if=" scope.row.ticketsWorkStatus !== '01' && userRole === 'repair_staff' && !isFinish" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgz')">
|
||||||
过程记录
|
过程记录
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" v-if="userRole === 'repair_staff' && !isFinish" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'kssg')">
|
<el-button size="mini" v-if="scope.row.ticketsWorkStatus !== '01' &&userRole === 'repair_staff' && !isFinish" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'kssg')">
|
||||||
开始施工
|
开始施工
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" v-if="userRole === 'repair_staff' && !isFinish" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgwczj')">
|
<el-button size="mini" v-if="scope.row.ticketsWorkStatus !== '01' && userRole === 'repair_staff' && !isFinish" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgwczj')">
|
||||||
施工完成
|
施工完成
|
||||||
</el-button>
|
</el-button>
|
||||||
<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>
|
||||||
<el-dropdown
|
<el-dropdown
|
||||||
v-if="userRole !== 'general_inspection'"
|
v-if="scope.row.ticketsWorkStatus !== '01'"
|
||||||
@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">
|
||||||
@ -75,7 +78,7 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<!-- 还要判断是不是员工 -->
|
<!-- 还要判断是不是员工 -->
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-if="(userRole === 'repair_staff' ? leader : true) && !isFinish"
|
v-if="userRole !== 'repair_staff' && !isFinish && scope.row.ticketsWorkStatus !== '01'"
|
||||||
command="handleReTake" size="mini" type="text" icon="el-icon-refresh"
|
command="handleReTake" size="mini" type="text" icon="el-icon-refresh"
|
||||||
>重新指派
|
>重新指派
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
@ -101,12 +104,12 @@
|
|||||||
@selection-change="rowSelect"
|
@selection-change="rowSelect"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" align="center" />
|
<el-table-column type="selection" align="center" />
|
||||||
<el-table-column label="商品名称" prop="waresName" align="center"/>
|
<el-table-column label="商品名称" prop="itemName" align="center"/>
|
||||||
<el-table-column label="规格" prop="wares.model" align="center"/>
|
<el-table-column label="规格" prop="ware.model" align="center"/>
|
||||||
<el-table-column label="数量" prop="waresCount" align="center">
|
<el-table-column label="数量" prop="itemCount" align="center">
|
||||||
<div v-if="scope.row.id" class="item" slot-scope="scope">
|
<div v-if="scope.row.id" class="item" slot-scope="scope">
|
||||||
<el-input @blur="save(scope.row)" class="item__input" v-model="scope.row.waresCount"/>
|
<el-input @blur="save(scope.row)" class="item__input" v-model="scope.row.itemCount"/>
|
||||||
<span class="item__txt">{{ scope.row.waresCount }}</span>
|
<span class="item__txt">{{ scope.row.itemCount }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="备注" prop="remark" align="center">
|
<el-table-column label="备注" prop="remark" align="center">
|
||||||
@ -130,7 +133,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getPageType, updateTake} from "@/api/repair/tickets/Tickets";
|
import {getPageType, updateTake, getTicketsById} from "@/api/repair/tickets/Tickets";
|
||||||
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";
|
||||||
@ -160,7 +163,7 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
ticketNo: null,
|
ticketNo: null,
|
||||||
searchTimeArray: [],
|
searchTimeArray: [],
|
||||||
isFinish: this.isFinish ? "1" : "0"
|
isFinish: this.isFinish ? "1" : "0",
|
||||||
},
|
},
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
loading: false,
|
loading: false,
|
||||||
@ -172,7 +175,7 @@ export default {
|
|||||||
// 保存进入编辑的cell
|
// 保存进入编辑的cell
|
||||||
clickCellMap: {},
|
clickCellMap: {},
|
||||||
// 需要编辑的属性
|
// 需要编辑的属性
|
||||||
editProp: ['remark', 'waresCount'],
|
editProp: ['remark', 'itemCount'],
|
||||||
selections: [],
|
selections: [],
|
||||||
formData: {},
|
formData: {},
|
||||||
remark: null,
|
remark: null,
|
||||||
@ -242,13 +245,8 @@ export default {
|
|||||||
this.backVisible = true
|
this.backVisible = true
|
||||||
try {
|
try {
|
||||||
this.backLoading = true
|
this.backLoading = true
|
||||||
const data = {
|
const res = await getTicketsById(row.id)
|
||||||
twId: row.twId
|
this.partList = res.data.wares
|
||||||
}
|
|
||||||
const res = await listTwItem(data)
|
|
||||||
this.partList = res.data
|
|
||||||
// 未领料的不要
|
|
||||||
this.partList = this.partList.filter(item => item.waresStatus === '01')
|
|
||||||
}finally {
|
}finally {
|
||||||
this.backLoading = false
|
this.backLoading = false
|
||||||
}
|
}
|
||||||
@ -326,7 +324,7 @@ export default {
|
|||||||
/** 保存数据 */
|
/** 保存数据 */
|
||||||
save(row) {
|
save(row) {
|
||||||
// 更新表格的数据
|
// 更新表格的数据
|
||||||
row.totalPrice = row.count * row.newPrice
|
console.log(row, this.clickCellMap)
|
||||||
const id = row.id
|
const id = row.id
|
||||||
// 取消本行所有cell的编辑状态
|
// 取消本行所有cell的编辑状态
|
||||||
this.clickCellMap[id].forEach(cell => {
|
this.clickCellMap[id].forEach(cell => {
|
||||||
|
Loading…
Reference in New Issue
Block a user