审核检验二次编辑-图片

master
zhaoxiaolin 8 months ago
parent 13a0f8df2b
commit 74a761be8a

@ -252,3 +252,16 @@ export function getClassInfoListByCheckType(query) {
params: query
});
}
//状态修改
export function submitCheckPics(recordId,fileList) {
const data = {
recordId,
fileList
}
return request({
url: '/quality/qcIncome/submitCheckPics',
method: 'put',
data: data
})
}

@ -314,14 +314,14 @@ export default {
this.poolNameList = JSON.parse(localStorage.getItem("POOL_NAME_LIST"));
this.poolName = localStorage.getItem("USER_POOL_NAME_CURRENT");
if(process.env.VUE_APP_BASE_API !='/dev-api'){
//
this.getUnReadList();
//
this.timer = setInterval(() => {
setTimeout(this.getUnReadList(), 30000);
}, 30000);
}
},
components: {
Breadcrumb,

@ -1033,7 +1033,6 @@ export default {
},
// -
handleUpdateDown(row) {
var statusesArray = this.statuses;
for (var i = 0; i < statusesArray.length; i++) {
if (statusesArray[i] != 'w0') {//

@ -259,7 +259,7 @@
:on-success="handleUploadSuccess"
list-type="picture-card"
:file-list="fileList"
:auto-upload="false">
>
<i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{file}">
<img
@ -302,7 +302,8 @@
<script>
import { getCkeckProjectList,changeCheckDetailStatus,getIncome,commitActualValue,
commitCheckResult,getDefectInfoList,getWeightValue,getnoOkVals,getAutoJudge,getClassInfoListByCheckType
commitCheckResult,getDefectInfoList,getWeightValue,getnoOkVals,getAutoJudge,getClassInfoListByCheckType,
submitCheckPics
} from "@/api/quality/income";
import { getDefectValue, commitDefectValue, updateDefectValue} from "@/api/quality/checkTaskDefect";
import { getToken } from "@/utils/auth";
@ -745,22 +746,30 @@ export default {
window.location.href = file.url
},
handleUploadSuccess(res, file) {
debugger
if (res.code === 200) {
this.uploadList.push({ name: res.data.name, url: res.data.url });
this.uploadedSuccessfully();
} else {
this.number--;
this.$modal.closeLoading();
this.$modal.msgError(res.msg);
this.$refs.fileUpload.handleRemove(file);
this.uploadedSuccessfully();
}
},
submitPicForm() {
var picValues = null;
var picValues = '';
if(this.uploadList.length>0){
this.uploadList.map(item => picValues=picValues+item.url+',');
console.log(picValues)
};
if(this.fileList.length>0){
this.fileList.map(item => picValues=picValues+item.url+',');
};
submitCheckPics(this.recordId,picValues).then(response => {
this.$modal.msgSuccess("提交成功");
this.picValueOpen = false;
this.getList();
});
},
}
};

Loading…
Cancel
Save