This commit is contained in:
Vinjor 2025-01-09 12:08:51 +08:00
parent e70d828a97
commit c0aacf6cdb
3 changed files with 25 additions and 3 deletions

View File

@ -28,6 +28,14 @@ export function removeTicketWares(id){
}) })
} }
// 领料完成
export function confirmOver(id){
return request({
url: preUrl + "/confirmOver?id=" + id,
method: 'get'
})
}
// 审核 // 审核
export function auditTicketWares(data){ export function auditTicketWares(data){
return request({ return request({

View File

@ -108,6 +108,9 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleConfirmOver">
申领完成
</el-button>
<el-button type="primary" v-if="type" @click="handlePassBefore" <el-button type="primary" v-if="type" @click="handlePassBefore"
:disabled="allSelectRows.length === 0 || allSelectRows.filter(item => !item.isStock).length !== 0"> :disabled="allSelectRows.length === 0 || allSelectRows.filter(item => !item.isStock).length !== 0">
通知领料 通知领料
@ -288,7 +291,7 @@
</template> </template>
<script> <script>
import {getPage, pass, passBackTicketWares, getByIds, exportData} from "@/api/repair/tickets/TicketWares"; import {getPage, pass, passBackTicketWares, getByIds, exportData,confirmOver} from "@/api/repair/tickets/TicketWares";
import {listTwItem} from "@/api/repair/tickets/TWItem"; import {listTwItem} from "@/api/repair/tickets/TWItem";
import {createUniqueCodeByHead} from "@/utils/createUniqueCode"; import {createUniqueCodeByHead} from "@/utils/createUniqueCode";
import {parseTime} from "@/utils/ruoyi"; import {parseTime} from "@/utils/ruoyi";
@ -440,6 +443,17 @@ export default {
this.images = null this.images = null
this.inPhoto = true this.inPhoto = true
}, },
/** 申领完成 */
async handleConfirmOver() {
await this.$modal.confirm('确定所有配件均已申领完成?')
try {
await confirmOver(this.twId);
await this.getList();
this.dialogVisible = false
this.$modal.msgSuccess("操作成功");
} catch {
}
},
async getTicketStaff() { async getTicketStaff() {
const res = await listByTicketId(this.ticketId) const res = await listByTicketId(this.ticketId)
this.staffs = res.data this.staffs = res.data

View File

@ -66,11 +66,11 @@
维修记录设置 维修记录设置
</el-dropdown-item> </el-dropdown-item>
<!-- 服务顾问才有 --> <!-- 服务顾问才有 -->
<el-dropdown-item command="noticeCus" type="text" icon="el-icon-finished" v-if="userRole === 'service_advisor' && scope.row.ticketsWorkStatus === '03'"> <el-dropdown-item command="noticeCus" type="text" icon="el-icon-finished" v-if="userRole == 'service_advisor' && scope.row.ticketsStatus == '07'">
通知客户取车 通知客户取车
</el-dropdown-item> </el-dropdown-item>
<!-- 服务顾问才有 --> <!-- 服务顾问才有 -->
<el-dropdown-item command="carToCus" type="text" icon="el-icon-circle-check" v-if="userRole === 'service_advisor' && scope.row.ticketsStatus === '02' "> <el-dropdown-item command="carToCus" type="text" icon="el-icon-circle-check" v-if="userRole == 'service_advisor' && (scope.row.ticketsStatus == '01' || scope.row.ticketsStatus == '06' || scope.row.ticketsStatus == '02') && scope.row.isHandover == '0'">
交车 交车
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>