Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop
This commit is contained in:
commit
11b22149c5
|
@ -123,7 +123,7 @@
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span v-show="item.help_text" class="helpText">说明:{{item.help_text}}</span>
|
<span v-show="item.help_text&&item.field_type !== 'draw'" class="helpText">说明:{{item.help_text}}</span>
|
||||||
<span v-if="item.need_judge&&item.is_testok===true" class="adoptTip">合格</span>
|
<span v-if="item.need_judge&&item.is_testok===true" class="adoptTip">合格</span>
|
||||||
<span v-if="item.need_judge&&item.is_testok===false" class="failTip">不合格</span>
|
<span v-if="item.need_judge&&item.is_testok===false" class="failTip">不合格</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
<div class="canvasBtn" @click="error1">标记</div>
|
<div class="canvasBtn" @click="error1">标记</div>
|
||||||
<div class="canvasBtn" @click="word1()">文字</div>
|
<div class="canvasBtn" @click="word1()">文字</div>
|
||||||
<div class="canvasBtn" @click="back()">回退</div>
|
<div class="canvasBtn" @click="back()">回退</div>
|
||||||
<div class="canvasBtn" @click="saveTu()">保存</div>
|
<!--<div class="canvasBtn" @click="saveTu()">保存</div>-->
|
||||||
</div>
|
</div>
|
||||||
<div id="res"></div>
|
<div id="res"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -196,11 +196,13 @@
|
||||||
isDisabled:{
|
isDisabled:{
|
||||||
type:Boolean,
|
type:Boolean,
|
||||||
default:false
|
default:false
|
||||||
|
},
|
||||||
|
isMidTesting:{
|
||||||
|
type:Boolean,
|
||||||
|
default:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
debugger;
|
|
||||||
debugger;
|
|
||||||
let that = this;
|
let that = this;
|
||||||
that.checkForm = {};
|
that.checkForm = {};
|
||||||
this.form = this.formID;
|
this.form = this.formID;
|
||||||
|
@ -725,7 +727,7 @@
|
||||||
that.testrecord.record_data = that.field;//检查项列表
|
that.testrecord.record_data = that.field;//检查项列表
|
||||||
that.testrecord.is_testok = that.is_testok;//检查表检查结果
|
that.testrecord.is_testok = that.is_testok;//检查表检查结果
|
||||||
that.testrecord.id = that.recordId;//记录id
|
that.testrecord.id = that.recordId;//记录id
|
||||||
if(submit){//提交
|
if(submit&&that.isMidTesting!==true){//提交
|
||||||
this.$emit('recordSubmit',that.testrecord);
|
this.$emit('recordSubmit',that.testrecord);
|
||||||
}else {//保存
|
}else {//保存
|
||||||
this.$emit('recordSave',that.testrecord);
|
this.$emit('recordSave',that.testrecord);
|
||||||
|
|
|
@ -282,6 +282,10 @@
|
||||||
hasPicture:{
|
hasPicture:{
|
||||||
type:Boolean,
|
type:Boolean,
|
||||||
default:false
|
default:false
|
||||||
|
},
|
||||||
|
isMidTesting:{
|
||||||
|
type:Boolean,
|
||||||
|
default:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -299,7 +303,7 @@
|
||||||
});
|
});
|
||||||
that.formData=[...that.formData];
|
that.formData=[...that.formData];
|
||||||
// debugger;
|
// debugger;
|
||||||
console.log(that.formData);
|
// console.log(that.formData);
|
||||||
//当前表的数据存储
|
//当前表的数据存储
|
||||||
for(let i=0;i<this.results.length;i++){
|
for(let i=0;i<this.results.length;i++){
|
||||||
let key = this.results[i].field_key;
|
let key = this.results[i].field_key;
|
||||||
|
@ -316,7 +320,7 @@
|
||||||
obj = item;
|
obj = item;
|
||||||
that.judgeList.push(obj)
|
that.judgeList.push(obj)
|
||||||
});
|
});
|
||||||
debugger;
|
// debugger;
|
||||||
//图片地址
|
//图片地址
|
||||||
let imag= this.formData.filter(item => {
|
let imag= this.formData.filter(item => {
|
||||||
return item.field_type === 'draw';
|
return item.field_type === 'draw';
|
||||||
|
@ -814,7 +818,7 @@
|
||||||
that.testrecord.is_testok = that.is_testok;//检查表检查结果
|
that.testrecord.is_testok = that.is_testok;//检查表检查结果
|
||||||
that.testrecord.id = that.recordId;
|
that.testrecord.id = that.recordId;
|
||||||
// debugger;
|
// debugger;
|
||||||
if(submit){//提交
|
if(submit&&that.isMidTesting!==true){//提交
|
||||||
this.$emit('recordSubmit',that.testrecord);
|
this.$emit('recordSubmit',that.testrecord);
|
||||||
}else {//保存
|
}else {//保存
|
||||||
this.$emit('recordSave',that.testrecord);
|
this.$emit('recordSave',that.testrecord);
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<div style="width: 100%;height: 100%;">
|
<div style="width: 100%;height: 100%;">
|
||||||
<div>
|
<div>
|
||||||
<div class="video-box">
|
<div class="video-box">
|
||||||
<video id="video" width="960" height="640" preload autoplay loop muted></video>
|
<video id="video" width="749" height="640" preload autoplay loop muted></video>
|
||||||
<canvas id="canvas" width="960" height="640"></canvas>
|
<canvas id="canvas" width="749" height="640"></canvas>
|
||||||
</div>
|
</div>
|
||||||
<canvas id="screenshotCanvas" width="960" height="640"></canvas>
|
<canvas id="screenshotCanvas" width="749" height="640"></canvas>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -147,8 +147,8 @@
|
||||||
.video-box {
|
.video-box {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 960px;
|
/*width: 90%;
|
||||||
height: 640px;
|
height: 90%;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
video, canvas {
|
video, canvas {
|
||||||
|
|
|
@ -307,4 +307,8 @@
|
||||||
.login-code-img {
|
.login-code-img {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
}
|
}
|
||||||
|
.testTracking{
|
||||||
|
width:100%;
|
||||||
|
height: 700px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -406,6 +406,7 @@
|
||||||
:hasPicture="hasPicture"
|
:hasPicture="hasPicture"
|
||||||
:wproduct="wproduct"
|
:wproduct="wproduct"
|
||||||
:recordId="recordId"
|
:recordId="recordId"
|
||||||
|
:isMidTesting="is_midtesting"
|
||||||
@recordSave="recordSave"
|
@recordSave="recordSave"
|
||||||
@recordSubmit="recordSubmit"
|
@recordSubmit="recordSubmit"
|
||||||
@recordCancel="recordCancel"
|
@recordCancel="recordCancel"
|
||||||
|
@ -427,6 +428,7 @@
|
||||||
:wproduct="wproduct"
|
:wproduct="wproduct"
|
||||||
:recordId="recordId"
|
:recordId="recordId"
|
||||||
:isDisabled="isDisabled"
|
:isDisabled="isDisabled"
|
||||||
|
:isMidTesting="is_midtesting"
|
||||||
@recordSubmit="recordSubmit"
|
@recordSubmit="recordSubmit"
|
||||||
@recordSave="recordSave"
|
@recordSave="recordSave"
|
||||||
@recordCancel="recordCancel"
|
@recordCancel="recordCancel"
|
||||||
|
@ -788,6 +790,7 @@
|
||||||
mutipID: [],
|
mutipID: [],
|
||||||
wproduct: null,
|
wproduct: null,
|
||||||
isPost: false,
|
isPost: false,
|
||||||
|
is_midtesting: false,
|
||||||
isDisabled: false,
|
isDisabled: false,
|
||||||
origin_test: null,
|
origin_test: null,
|
||||||
hasPicture: false,
|
hasPicture: false,
|
||||||
|
@ -1008,7 +1011,7 @@
|
||||||
this.innerIndex = index;
|
this.innerIndex = index;
|
||||||
// this.outerVisible = true;
|
// this.outerVisible = true;
|
||||||
this.wproduct = scope.row.id;//半成品ID
|
this.wproduct = scope.row.id;//半成品ID
|
||||||
this.listQueryrecordform.material = scope.row.material_.id;//
|
this.listQueryrecordform.material = scope.row.material_check!==null ? scope.row.material_check :scope.row.material_.id;//
|
||||||
this.listQueryrecordform.type = 2;
|
this.listQueryrecordform.type = 2;
|
||||||
this.listQueryrecordform.enabled = true;
|
this.listQueryrecordform.enabled = true;
|
||||||
this.recordform = null;
|
this.recordform = null;
|
||||||
|
@ -1073,6 +1076,7 @@
|
||||||
getTestRecordItem(scope.row.id).then((res) => {
|
getTestRecordItem(scope.row.id).then((res) => {
|
||||||
let arr = [];
|
let arr = [];
|
||||||
let fieldList = res.data.record_data;
|
let fieldList = res.data.record_data;
|
||||||
|
that.is_midtesting = res.data.is_midtesting;
|
||||||
for (let i = 0; i < that.fieldList.length; i++) {
|
for (let i = 0; i < that.fieldList.length; i++) {
|
||||||
let obj = that.fieldList[i];
|
let obj = that.fieldList[i];
|
||||||
obj.is_testok = null;
|
obj.is_testok = null;
|
||||||
|
|
Loading…
Reference in New Issue