审核检验二次编辑-图片

master
zhaoxiaolin 8 months ago
parent 13a0f8df2b
commit 74a761be8a

@ -252,3 +252,16 @@ export function getClassInfoListByCheckType(query) {
params: 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.poolNameList = JSON.parse(localStorage.getItem("POOL_NAME_LIST"));
this.poolName = localStorage.getItem("USER_POOL_NAME_CURRENT"); this.poolName = localStorage.getItem("USER_POOL_NAME_CURRENT");
// if(process.env.VUE_APP_BASE_API !='/dev-api'){
this.getUnReadList(); //
// this.getUnReadList();
this.timer = setInterval(() => { //
setTimeout(this.getUnReadList(), 30000); this.timer = setInterval(() => {
}, 30000); setTimeout(this.getUnReadList(), 30000);
}, 30000);
}
}, },
components: { components: {
Breadcrumb, Breadcrumb,

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

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