|
@@ -93,9 +93,9 @@
|
|
|
</avue-crud>
|
|
|
</trade-card>
|
|
|
|
|
|
- <containerTitle title="上传附件"></containerTitle>
|
|
|
+ <containerTitle title="上传附件 (图片文件像素推荐700X700,有且只允许有一张主图,其余均为副图)"></containerTitle>
|
|
|
<c-upload v-loading="loadingBtn" typeUpload="SBDAFJ"
|
|
|
- deleteUrl="/api/blade-client/corpequipmentarchivesfiles/remove" :data="maintenanceFiles" display
|
|
|
+ deleteUrl="/blade-client/corpequipmentarchivesfiles/remove" :data="maintenanceFiles" display
|
|
|
:enumerationValue="35.1"></c-upload>
|
|
|
<!--<containerTitle title="上传附件"></containerTitle>-->
|
|
|
<!--<c-upload v-loading="loadingBtn" typeUpload="CD"-->
|
|
@@ -171,7 +171,7 @@
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
- title="附件"
|
|
|
+ title="附件 (图片文件像素推荐700X750,有且只允许有一张主图,其余均为副图)"
|
|
|
:visible.sync="enclosure"
|
|
|
append-to-body
|
|
|
width="70%">
|
|
@@ -197,6 +197,12 @@
|
|
|
<el-table :data="maintenanceData" style="width: 100%">
|
|
|
<el-table-column prop="repairReportDate" label="报修日期"></el-table-column>
|
|
|
<el-table-column prop="completeDate" label="完成日期"> </el-table-column>
|
|
|
+ <el-table-column prop="sysNo" label="单号">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <!--<span style="">{{row.sysNo}}</span>-->
|
|
|
+ <el-link type="primary" @click="maintenanceWorkerNameClick(row.id)">{{ row.sysNo }}123</el-link>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="maintenanceWorkerName" label="维修工">
|
|
|
<template v-slot:default="scope">
|
|
|
<el-link type="primary" @click="maintenanceWorkerNameClick(scope.row.id)">{{scope.row.maintenanceWorkerName}}</el-link>
|
|
@@ -579,7 +585,8 @@ export default {
|
|
|
|
|
|
var params = {
|
|
|
archivesId: this.form.id,
|
|
|
- deviceId: row.srcId
|
|
|
+ deviceId: row.srcId,
|
|
|
+ status:4
|
|
|
}
|
|
|
|
|
|
maintenanceList(this.mPcurrent, this.mPageSize, params).then(res => {
|
|
@@ -642,10 +649,20 @@ export default {
|
|
|
},
|
|
|
//保存
|
|
|
saveAnnex() {
|
|
|
-
|
|
|
+ let i = 0
|
|
|
for (const key in this.orderList) {
|
|
|
this.orderList[key].sort = Number(key) + 1
|
|
|
this.orderList[key].typeFiles = this.orderList[key].paymentType
|
|
|
+ if (this.orderList[key].typeFiles == '主图') {
|
|
|
+ i++
|
|
|
+ }
|
|
|
+ if (i == 2) {
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "只允许有一张主图,其余均为副图!"
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
this.data[this.dataId].filesList = this.orderList;
|