更新代码
This commit is contained in:
parent
2f018a3294
commit
66ddc8b9c5
@ -16,13 +16,13 @@
|
|||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="openForm(undefined)"
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="openForm(undefined)"
|
||||||
v-hasPermi="['repair:project:create']">新增
|
>新增
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||||
:loading="exportLoading"
|
:loading="exportLoading"
|
||||||
v-hasPermi="['repair:project:export']">导出
|
>导出
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<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">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
|
||||||
v-hasPermi="['repair:project:update']">修改
|
>修改
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['repair:project:delete']">删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -192,7 +192,15 @@ export default {
|
|||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
inListData(val) {
|
inListData(val) {
|
||||||
|
console.log(val)
|
||||||
if (val && val.length > 0) {
|
if (val && val.length > 0) {
|
||||||
|
val.forEach(item => {
|
||||||
|
item = {
|
||||||
|
...item,
|
||||||
|
count: item.itemCount,
|
||||||
|
totalPrice: item.itemMoney,
|
||||||
|
}
|
||||||
|
})
|
||||||
// console.log(val)
|
// console.log(val)
|
||||||
// this.list = val.map(item => {
|
// this.list = val.map(item => {
|
||||||
// return {
|
// return {
|
||||||
|
@ -332,12 +332,12 @@
|
|||||||
<el-col :span="createTicketType ? 12 : 16">
|
<el-col :span="createTicketType ? 12 : 16">
|
||||||
<el-descriptions class="margin-top" :column="createTicketType ? 2 : 3" border :size="'medium'"
|
<el-descriptions class="margin-top" :column="createTicketType ? 2 : 3" border :size="'medium'"
|
||||||
style="margin-bottom: 1rem">
|
style="margin-bottom: 1rem">
|
||||||
<!-- <el-descriptions-item>-->
|
<!-- <el-descriptions-item>-->
|
||||||
<!-- <template slot="label">-->
|
<!-- <template slot="label">-->
|
||||||
<!-- 工单号-->
|
<!-- 工单号-->
|
||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- <TicketChoose @selected="getTickets"/>-->
|
<!-- <TicketChoose @selected="getTickets"/>-->
|
||||||
<!-- </el-descriptions-item>-->
|
<!-- </el-descriptions-item>-->
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
时间
|
时间
|
||||||
@ -706,6 +706,9 @@ export default {
|
|||||||
const data = res.data
|
const data = res.data
|
||||||
this.formData = {
|
this.formData = {
|
||||||
...data,
|
...data,
|
||||||
|
cusName: data.userName,
|
||||||
|
id: data.userId,
|
||||||
|
phoneNumber: data.userMobile,
|
||||||
quality: {qualityMileage: data.qualityMileage, qualityDay: data.qualityDay}
|
quality: {qualityMileage: data.qualityMileage, qualityDay: data.qualityDay}
|
||||||
}
|
}
|
||||||
const itemList = this.formData.itemList
|
const itemList = this.formData.itemList
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="openForm(undefined)"
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="openForm(undefined)"
|
||||||
v-hasPermi="['repair:wares:create']">新增
|
>新增
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<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">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
|
||||||
v-hasPermi="['repair:wares:update']">修改
|
>修改
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['repair:wares:delete']">删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
Loading…
Reference in New Issue
Block a user