|
@@ -131,7 +131,7 @@
|
|
</el-table>
|
|
</el-table>
|
|
<pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
|
|
<pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
|
|
<!-- 查看 -->
|
|
<!-- 查看 -->
|
|
- <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false" width="90%" :append-to-body="true" >
|
|
|
|
|
|
+ <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false" width="90%" :append-to-body="true" @close="close_diago()" >
|
|
<div class="app-see">
|
|
<div class="app-see">
|
|
<!-- 图片放大 -->
|
|
<!-- 图片放大 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -1240,6 +1240,7 @@ export default {
|
|
this.getPendingList()
|
|
this.getPendingList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
const img = e.target
|
|
const img = e.target
|
|
let width = 0
|
|
let width = 0
|
|
@@ -1255,7 +1256,9 @@ export default {
|
|
const { data, code } = await saveImgIds(obj)
|
|
const { data, code } = await saveImgIds(obj)
|
|
if(code == 200){
|
|
if(code == 200){
|
|
type == 1? this.$notify({ title: '提示', message: '保养图片上传成功', type: 'success', duration: 3000 }) : this.$notify({ title: '提示', message: '保养图片删除成功', type: 'success', duration: 3000 })
|
|
type == 1? this.$notify({ title: '提示', message: '保养图片上传成功', type: 'success', duration: 3000 }) : this.$notify({ title: '提示', message: '保养图片删除成功', type: 'success', duration: 3000 })
|
|
|
|
+ this.get_table_data()
|
|
}
|
|
}
|
|
|
|
+
|
|
console.log(data, '图片确认发布到保养中')
|
|
console.log(data, '图片确认发布到保养中')
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1308,12 +1311,15 @@ export default {
|
|
} else if (fileList.length == 1) {
|
|
} else if (fileList.length == 1) {
|
|
this.seeTemp.scenePhoto1 = (fileList[0].response && fileList[0].response.execresult.LastInsertId.toString()) || fileList[0].imgId
|
|
this.seeTemp.scenePhoto1 = (fileList[0].response && fileList[0].response.execresult.LastInsertId.toString()) || fileList[0].imgId
|
|
}
|
|
}
|
|
- //3张图片时,关闭新增的按钮
|
|
|
|
|
|
+
|
|
|
|
+ //3张图片时,关闭新增的按钮
|
|
if (fileList.length == 3) {
|
|
if (fileList.length == 3) {
|
|
document.getElementById('uploadPic').lastChild.style.display = "none"
|
|
document.getElementById('uploadPic').lastChild.style.display = "none"
|
|
} else {
|
|
} else {
|
|
document.getElementById('uploadPic').lastChild.style.display = "inline-block"
|
|
document.getElementById('uploadPic').lastChild.style.display = "inline-block"
|
|
}
|
|
}
|
|
|
|
+ this.fileList = fileList
|
|
|
|
+ console.log(this.fileList,'图片删除----88')
|
|
// 删除后更新图数量
|
|
// 删除后更新图数量
|
|
this.handleSaveImg(2)
|
|
this.handleSaveImg(2)
|
|
},
|
|
},
|
|
@@ -1384,7 +1390,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
close_diago(){
|
|
close_diago(){
|
|
- console.log(11111111111111)
|
|
|
|
|
|
+ this.get_table_data()
|
|
this.dialogFormVisible_See = false
|
|
this.dialogFormVisible_See = false
|
|
this.dialogVisibleImg = false
|
|
this.dialogVisibleImg = false
|
|
},
|
|
},
|
|
@@ -1556,14 +1562,16 @@ export default {
|
|
this.seeTemp = Object.assign({}, row)
|
|
this.seeTemp = Object.assign({}, row)
|
|
console.log('查看----图片1', row)
|
|
console.log('查看----图片1', row)
|
|
// 只要有图片就全部展示出来
|
|
// 只要有图片就全部展示出来
|
|
- // row.picId1 = "21018"
|
|
|
|
- // row.picpath1 = "uploads/thumbnail/insertcustompic/f3c5fa6b459ca3b2c29de8c33ea30ad6.jpg"
|
|
|
|
|
|
+ this.seeTemp.scenePhoto1 = '-1'
|
|
|
|
+ this.seeTemp.scenePhoto2 = '-1'
|
|
|
|
+ this.seeTemp.scenePhoto3 = '-1'
|
|
|
|
+ this.fileList =[]
|
|
if( row.picId1 !== '-1' && row.picId1 !== '') {
|
|
if( row.picId1 !== '-1' && row.picId1 !== '') {
|
|
this.seeTemp.scenePhoto1 = row.picId1
|
|
this.seeTemp.scenePhoto1 = row.picId1
|
|
this.$set(this.fileList, 0, { name: "picImg1", url: process.env.VUE_APP_BASE_API + row.picpath1 , imgId : row.picId1 }
|
|
this.$set(this.fileList, 0, { name: "picImg1", url: process.env.VUE_APP_BASE_API + row.picpath1 , imgId : row.picId1 }
|
|
)
|
|
)
|
|
- }
|
|
|
|
- if( row.picId2 !== '-1' && row.picId2 !== '') {
|
|
|
|
|
|
+ }
|
|
|
|
+ if( row.picId2 !== '-1' && row.picId2 !== '') {
|
|
this.seeTemp.scenePhoto2 = row.picId2
|
|
this.seeTemp.scenePhoto2 = row.picId2
|
|
this.$set(this.fileList, 1, { name: "picImg2", url: process.env.VUE_APP_BASE_API + row.picpath2, imgId : row.picId2 }
|
|
this.$set(this.fileList, 1, { name: "picImg2", url: process.env.VUE_APP_BASE_API + row.picpath2, imgId : row.picId2 }
|
|
)
|
|
)
|
|
@@ -1572,7 +1580,8 @@ export default {
|
|
this.seeTemp.scenePhoto3 = row.picId3
|
|
this.seeTemp.scenePhoto3 = row.picId3
|
|
this.$set(this.fileList, 2, { name: "picImg3", url: process.env.VUE_APP_BASE_API + row.picpath3, imgId : row.picId3 }
|
|
this.$set(this.fileList, 2, { name: "picImg3", url: process.env.VUE_APP_BASE_API + row.picpath3, imgId : row.picId3 }
|
|
)
|
|
)
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
console.log('查看-------图片2', this.fileList)
|
|
console.log('查看-------图片2', this.fileList)
|
|
// 流程图
|
|
// 流程图
|
|
var reason = '未通过原因:' + this.seeTemp.workflowNote
|
|
var reason = '未通过原因:' + this.seeTemp.workflowNote
|
|
@@ -1621,9 +1630,7 @@ export default {
|
|
this.collarUseTemp = {}
|
|
this.collarUseTemp = {}
|
|
this.listCollarUse = []
|
|
this.listCollarUse = []
|
|
this.getCollarUse()
|
|
this.getCollarUse()
|
|
- this.getOldProductsList()
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ this.getOldProductsList()
|
|
|
|
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
if(this.seeTemp.SHStatue !== 2 || this.fileList.length >= 3){
|
|
if(this.seeTemp.SHStatue !== 2 || this.fileList.length >= 3){
|
|
@@ -1898,6 +1905,17 @@ export default {
|
|
this.No2 = false
|
|
this.No2 = false
|
|
this.dialogFormVisible_maintainComplete = true
|
|
this.dialogFormVisible_maintainComplete = true
|
|
this.listAdd = []
|
|
this.listAdd = []
|
|
|
|
+
|
|
|
|
+ // this.handleDelALlImg(row);
|
|
|
|
+ },
|
|
|
|
+ // 如果有历史记录则删除所图图片
|
|
|
|
+ async handleDelALlImg(row){
|
|
|
|
+ const obj = row != undefined ? row : this.seeTemp
|
|
|
|
+ if((obj.picId1 != '' || obj.picId1 != '-1' ) || (obj.picId2 != '' || obj.picId2 != '-1' ) || (obj.picId3 != '' || obj.picId3 != '-1' ) ){
|
|
|
|
+ const obj = { name: "upkeepImage", parammaps: { id: this.seeTemp.id, picId1: '-1' , picId2: '-1', picId3: '-1' }}
|
|
|
|
+ const { data, code } = await saveImgIds(obj)
|
|
|
|
+ console.log(data,code,'完成保养删除历史了')
|
|
|
|
+ }
|
|
},
|
|
},
|
|
changeIsOldProducts(val) {
|
|
changeIsOldProducts(val) {
|
|
console.log(val)
|
|
console.log(val)
|
|
@@ -2126,9 +2144,9 @@ export default {
|
|
},
|
|
},
|
|
// 保养审核
|
|
// 保养审核
|
|
handleExamine(row) {
|
|
handleExamine(row) {
|
|
- console.log('点击了保养审核')
|
|
|
|
|
|
+ console.log('点击了保养审核', row, this.seeTemp, this.fileList)
|
|
const obj = row != undefined ? row : this.seeTemp
|
|
const obj = row != undefined ? row : this.seeTemp
|
|
- if((obj.picId1 == '' || obj.picId1 == '-1' ) && (obj.picId2 == '' || obj.picId2 == '-1' ) && (obj.picId3 == '' || obj.picId3 == '-1' ) && obj.SHStatue == 2){
|
|
|
|
|
|
+ if(!this.fileList.length && obj.SHStatue == 2){
|
|
this.$notify({ title: '提示', message: '请上传保养图片', type: 'warning', duration: 3000 })
|
|
this.$notify({ title: '提示', message: '请上传保养图片', type: 'warning', duration: 3000 })
|
|
return
|
|
return
|
|
}
|
|
}
|