2024-2-29 设备模块-维修-图片展示优化修改

yangwl
A0010407 12 months ago
parent 6548a2d8bc
commit ab3e9491ec

@ -264,6 +264,19 @@
width="200" width="200"
fixed fixed
/> />
<el-table-column
label="维修状态"
align="center"
prop="workStatus"
width="150"
>
<template slot-scope="scope">
<dict-tag
:options="dict.type.device_repair_status"
:value="scope.row.workStatus"
/>
</template>
</el-table-column>
<el-table-column <el-table-column
label="报修单号" label="报修单号"
align="center" align="center"
@ -377,19 +390,6 @@
> >
</el-table-column> </el-table-column>
<el-table-column label="维修费用" align="center" prop="workCost" /> <el-table-column label="维修费用" align="center" prop="workCost" />
<el-table-column
label="维修状态"
align="center"
prop="workStatus"
width="150"
>
<template slot-scope="scope">
<dict-tag
:options="dict.type.device_repair_status"
:value="scope.row.workStatus"
/>
</template>
</el-table-column>
<el-table-column label="工厂编码" align="center" prop="factoryCode" /> <el-table-column label="工厂编码" align="center" prop="factoryCode" />
<el-table-column <el-table-column
label="操作" label="操作"
@ -890,8 +890,8 @@
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item <el-descriptions-item
label="维修前故障图片" label="维修前故障图片"
:contentStyle="CS1" :contentStyle="CS"
:label-style="LSP1" :label-style="LS_WRITE_IMG"
> >
<el-image <el-image
v-for="(item, index) in urlBeforeLists" v-for="(item, index) in urlBeforeLists"
@ -903,8 +903,8 @@
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item <el-descriptions-item
label="维修后故障图片" label="维修后故障图片"
:contentStyle="CS1" :contentStyle="CS"
:label-style="LSP1" :label-style="LS_WRITE_IMG"
> >
<el-image <el-image
v-for="(item, index) in urlAfterLists" v-for="(item, index) in urlAfterLists"
@ -1251,7 +1251,7 @@
<el-descriptions-item <el-descriptions-item
label="维修前故障图片" label="维修前故障图片"
:contentStyle="CS" :contentStyle="CS"
:label-style="LSP" :label-style="LS_VIEW_IMG"
> >
<el-image <el-image
v-for="(item, index) in urlBeforeLists" v-for="(item, index) in urlBeforeLists"
@ -1264,7 +1264,7 @@
<el-descriptions-item <el-descriptions-item
label="维修后故障图片" label="维修后故障图片"
:contentStyle="CS" :contentStyle="CS"
:label-style="LSP" :label-style="LS_VIEW_IMG"
> >
<el-image <el-image
v-for="(item, index) in urlAfterLists" v-for="(item, index) in urlAfterLists"
@ -1571,15 +1571,15 @@ export default {
"text-align": "center", "text-align": "center",
width: "250px", width: "250px",
}, },
// //
LSP: { LS_VIEW_IMG: {
"text-align": "center", "text-align": "center",
width: "225px", width: "225px",
}, },
// //
LSP1: { LS_WRITE_IMG: {
"text-align": "center", "text-align": "center",
width: "250px", width: "235px",
}, },
// //
workFaultDescOption : [], workFaultDescOption : [],
@ -1875,6 +1875,8 @@ export default {
// //
reset() { reset() {
this.form = { this.form = {
beforeRepairFiles: null,
afterRepairFiles: null,
workId: null, workId: null,
orderId: null, orderId: null,
orderCode: null, orderCode: null,
@ -1944,11 +1946,14 @@ export default {
const workId = row.workId || this.ids; const workId = row.workId || this.ids;
getRepairOrder(workId).then((response) => { getRepairOrder(workId).then((response) => {
this.form = response.data; this.form = response.data;
//list //list
if (response.data.faultType != null) { if (response.data.faultType != null) {
this.form.faultType = response.data.faultType.split(","); this.form.faultType = response.data.faultType.split(",");
} }
//response.data.beforeRepairFiles //response.data.beforeRepairFiles
this.urlBeforeLists = null;
if (response.data.beforeRepairFiles != null) { if (response.data.beforeRepairFiles != null) {
var beforeNewFiles = []; var beforeNewFiles = [];
response.data.beforeRepairFiles.forEach((item) => { response.data.beforeRepairFiles.forEach((item) => {
@ -1967,7 +1972,9 @@ export default {
this.urlBeforeLists = urlBeforeLists; this.urlBeforeLists = urlBeforeLists;
} }
//response.data.afterRepairFiles //response.data.afterRepairFiles
this.urlAfterLists = null;
if (response.data.afterRepairFiles != null) { if (response.data.afterRepairFiles != null) {
var afterNewFiles = []; var afterNewFiles = [];
response.data.afterRepairFiles.forEach((item) => { response.data.afterRepairFiles.forEach((item) => {
@ -2040,7 +2047,6 @@ export default {
}); });
this.detailList = standards; this.detailList = standards;
console.log("111111111111", this.detailList);
} }
if (this.form.workStatus == "1") { if (this.form.workStatus == "1") {
this.queryWrite = true; this.queryWrite = true;

@ -331,8 +331,6 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
console.log("data:", this.sparePartsLedgerList);
console.log("选择的数据", this.$refs.multipleTable.selection);
this.$refs.multipleTable.selection.forEach((item) => { this.$refs.multipleTable.selection.forEach((item) => {
if (item.spareQuantity > item.amount - item.storageAmount) { if (item.spareQuantity > item.amount - item.storageAmount) {
Message.warning( Message.warning(

Loading…
Cancel
Save