更新代码

This commit is contained in:
xiao-fajia 2024-09-26 18:23:54 +08:00
parent 2f018a3294
commit 66ddc8b9c5
4 changed files with 24 additions and 13 deletions

View File

@ -16,13 +16,13 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="openForm(undefined)"
v-hasPermi="['repair:project:create']">新增
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
:loading="exportLoading"
v-hasPermi="['repair:project:export']">导出
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -49,10 +49,10 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template v-slot="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
v-hasPermi="['repair:project:update']">修改
>修改
</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['repair:project:delete']">删除
>删除
</el-button>
</template>
</el-table-column>

View File

@ -192,7 +192,15 @@ export default {
deep: true
},
inListData(val) {
console.log(val)
if (val && val.length > 0) {
val.forEach(item => {
item = {
...item,
count: item.itemCount,
totalPrice: item.itemMoney,
}
})
// console.log(val)
// this.list = val.map(item => {
// return {

View File

@ -332,12 +332,12 @@
<el-col :span="createTicketType ? 12 : 16">
<el-descriptions class="margin-top" :column="createTicketType ? 2 : 3" border :size="'medium'"
style="margin-bottom: 1rem">
<!-- <el-descriptions-item>-->
<!-- <template slot="label">-->
<!-- 工单号-->
<!-- </template>-->
<!-- <TicketChoose @selected="getTickets"/>-->
<!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>-->
<!-- <template slot="label">-->
<!-- 工单号-->
<!-- </template>-->
<!-- <TicketChoose @selected="getTickets"/>-->
<!-- </el-descriptions-item>-->
<el-descriptions-item>
<template slot="label">
时间
@ -706,6 +706,9 @@ export default {
const data = res.data
this.formData = {
...data,
cusName: data.userName,
id: data.userId,
phoneNumber: data.userMobile,
quality: {qualityMileage: data.qualityMileage, qualityDay: data.qualityDay}
}
const itemList = this.formData.itemList

View File

@ -24,7 +24,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="openForm(undefined)"
v-hasPermi="['repair:wares:create']">新增
>新增
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -63,10 +63,10 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template v-slot="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
v-hasPermi="['repair:wares:update']">修改
>修改
</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['repair:wares:delete']">删除
>删除
</el-button>
</template>
</el-table-column>