前端修改

This commit is contained in:
wcy 2024-09-25 10:22:45 +08:00
parent 107134bb82
commit d44320804a
4 changed files with 47 additions and 35 deletions

View File

@ -113,7 +113,7 @@
label="配件数量:" label="配件数量:"
:rules="{ :rules="{
required: false, required: false,
validator: numberIntegerValidator, // validator: numberIntegerValidator,
trigger: 'blur', trigger: 'blur',
}" }"
> >

View File

@ -450,15 +450,14 @@
type="primary" type="primary"
icon="el-icon-zoom-in" icon="el-icon-zoom-in"
@click="repairRecord(scope.row)" @click="repairRecord(scope.row)"
>维修记录</el-button >维修记录</el-button>
> <!-- <el-button
<el-button
size="mini" size="mini"
type="warning" type="warning"
icon="el-icon-circle-check" icon="el-icon-circle-check"
@click="partRecord(scope.row)" @click="partRecord(scope.row)"
>配件详情</el-button >配件详情</el-button> -->
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -570,24 +569,30 @@
<span v-if="scope.row.scrapType == '1'">人为报废</span> <span v-if="scope.row.scrapType == '1'">人为报废</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column-->
label="配件名称" <!-- label="配件名称"-->
align="center" <!-- align="center"-->
prop="partName" <!-- prop="partName"-->
:show-overflow-tooltip="true" <!-- :show-overflow-tooltip="true"-->
/> <!-- />-->
<el-table-column <el-table-column
label="配件数量" label="配件数量"
align="center" align="center"
prop="partNum" prop="partNum"
:show-overflow-tooltip="true" :show-overflow-tooltip="true">
/> <template slot-scope="scope">
<el-table-column <span @click="partRecord(scope.row)"
label="配件单价" style="color: blue;text-decoration: underline;">{{ scope.row.partNum }}</span>
align="center" </template>
prop="partPrice" </el-table-column>
:show-overflow-tooltip="true"
/>
<!-- <el-table-column-->
<!-- label="配件单价"-->
<!-- align="center"-->
<!-- prop="partPrice"-->
<!-- :show-overflow-tooltip="true"-->
<!-- />-->
<el-table-column <el-table-column
label="类型" label="类型"
align="center" align="center"
@ -650,17 +655,17 @@
prop="partCost" prop="partCost"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column <!-- <el-table-column-->
label="类型" <!-- label="类型"-->
align="center" <!-- align="center"-->
prop="partType" <!-- prop="partType"-->
:show-overflow-tooltip="true" <!-- :show-overflow-tooltip="true"-->
> <!-- >-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span v-if="scope.row.partType == '0'">不收费</span> <!-- <span v-if="scope.row.partType == '0'">不收费</span>-->
<span v-if="scope.row.partType == '1'">收费</span> <!-- <span v-if="scope.row.partType == '1'">收费</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <el-table-column
label="备注" label="备注"
align="center" align="center"
@ -930,6 +935,7 @@ export default {
this.open = true this.open = true
this.dialogList = response.rows this.dialogList = response.rows
this.dialogTotal = response.total this.dialogTotal = response.total
this.repairId = rows.repairId
} }
}) })
.catch(() => {}) .catch(() => {})
@ -1122,6 +1128,7 @@ export default {
this.repairRecordParams.pageNum = 1 this.repairRecordParams.pageNum = 1
this.repairRecordParams.pageSize = 10 this.repairRecordParams.pageSize = 10
this.repairId = row.repairId this.repairId = row.repairId
console.log(this.repairId, 'repairId')
this.getRepairRecordList() this.getRepairRecordList()
}, },
getRepairRecordList() { getRepairRecordList() {
@ -1143,8 +1150,12 @@ export default {
partRecord(row) { partRecord(row) {
this.partRecordParams.pageNum = 1 this.partRecordParams.pageNum = 1
this.partRecordParams.pageSize = 10 this.partRecordParams.pageSize = 10
this.repairId = row.repairId
this.getPartRecordList() // this.repairId = row.repairId
// console.log(row, 'row===============')
console.log(this.repairId)
console.log(111111111111)
this.getPartRecordList(row)
}, },
getPartRecordList() { getPartRecordList() {
let params = { let params = {
@ -1152,6 +1163,7 @@ export default {
pageNum: this.partRecordParams.pageNum, pageNum: this.partRecordParams.pageNum,
pageSize: this.partRecordParams.pageSize, pageSize: this.partRecordParams.pageSize,
} }
console.log(params)
getPartRecord(params) getPartRecord(params)
.then((res) => { .then((res) => {
this.partRecordList = res.rows this.partRecordList = res.rows

View File

@ -331,7 +331,7 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
'material/backRecord/export', 'material/storageStatus/export',
{ {
...this.queryParams, ...this.queryParams,
}, },

View File

@ -468,7 +468,7 @@ export default {
}, },
/** 查询部门列表 */ /** 查询部门列表 */
getList() { getList() {
console.log(this.queryParams) console.log(this.queryParams,"wwwwwww")
// this.loading = true; // this.loading = true;
listPartType(this.queryParams) listPartType(this.queryParams)
.then((response) => { .then((response) => {