|
|
|
@ -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();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|