Commit ff9387a2 authored by 佟礼's avatar 佟礼

工单执行送检判断

parents 49ba838d 21100141
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
</Select> </Select>
</template> </template>
<Button type="primary" @click="QcCardChecker(1)" class="title_btn ml10">操作员</Button> <Button type="primary" @click="QcCardChecker(1)" class="title_btn ml10">操作员</Button>
<Button type="primary" @click="QcCardChecker(2)" class="title_btn ml10">互检员</Button> <Button type="primary" :disabled="ishavhj" @click="QcCardChecker(2)" class="title_btn ml10">互检员</Button>
<Button type="primary" @click="SendCheck()" class="title_btn ml10">送检</Button> <Button type="primary" :disabled="ishavzj" @click="SendCheck()" class="title_btn ml10">送检</Button>
<Button type="primary" @click="SendCheckRecord()" class="title_btn ml10">送检记录</Button> <Button type="primary" :disabled="ishavzj" @click="SendCheckRecord()" class="title_btn ml10">送检记录</Button>
</div> </div>
<div class="table01"> <div class="table01">
<Table ref="table" border class="tableCommon" :height="taHeight" :columns="recordcolumn" :data="recorddata"> <Table ref="table" border class="tableCommon" :height="taHeight" :columns="recordcolumn" :data="recorddata">
...@@ -237,6 +237,8 @@ export default { ...@@ -237,6 +237,8 @@ export default {
entryModel: {}, entryModel: {},
disabled: false, disabled: false,
look: '查看', look: '查看',
ishavhj: true,
ishavzj: true,
taHeight:'', taHeight:'',
entryrecordfilesModal: false, entryrecordfilesModal: false,
entryrecorddataModal: false, entryrecorddataModal: false,
...@@ -478,6 +480,23 @@ export default { ...@@ -478,6 +480,23 @@ export default {
QS.stringify(this.datasearch) QS.stringify(this.datasearch)
service.get(`${url}`).then((response) => { service.get(`${url}`).then((response) => {
this.recorddata = response.result this.recorddata = response.result
let gh = this.recorddata.filter(function(obj) {
return obj.check_type === 2
})
if (gh != null && gh.length > 0) {
this.ishavhj = false
} else {
this.ishavhj = true
}
let gh1 = this.recorddata.filter(function(obj) {
return obj.check_type === 3 || obj.check_type === 4
})
if (gh1 != null && gh1.length > 0) {
this.ishavzj = false
} else {
this.ishavzj = true
}
}) })
}, },
handleselfCheckAll() { handleselfCheckAll() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment