|
|
|
@ -269,16 +269,37 @@ |
|
|
|
<span>TID绑定</span> |
|
|
|
</div> |
|
|
|
<div class="section-content section-content-grid"> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-upload2" @click="openUploadOrderDialog"> |
|
|
|
<el-button |
|
|
|
v-if="hasTidButtonAuth('tidUploadOrder')" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
icon="el-icon-upload2" |
|
|
|
@click="openUploadOrderDialog"> |
|
|
|
上传订单 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-circle-close" :loading="finishShiftLoading" @click="handleFinishMesShift"> |
|
|
|
<el-button |
|
|
|
v-if="hasTidButtonAuth('tidFinishShift')" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
icon="el-icon-circle-close" |
|
|
|
:loading="finishShiftLoading" |
|
|
|
@click="handleFinishMesShift"> |
|
|
|
结束班次 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-document-copy" @click="openUploadMtLogDialog"> |
|
|
|
<el-button |
|
|
|
v-if="hasTidButtonAuth('tidUploadMtLog')" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
icon="el-icon-document-copy" |
|
|
|
@click="openUploadMtLogDialog"> |
|
|
|
上传MT日志 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-data-analysis" @click="openGetShiftDialog"> |
|
|
|
<el-button |
|
|
|
v-if="hasTidButtonAuth('tidGetShift')" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
icon="el-icon-data-analysis" |
|
|
|
@click="openGetShiftDialog"> |
|
|
|
获取班次 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
@ -4107,6 +4128,14 @@ export default { |
|
|
|
comTidGetShift,/*TID获取班次组件*/ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
hasTidButtonAuth (permissionCode) { |
|
|
|
const functionId = this.$route && this.$route.meta ? this.$route.meta.menuId : '' |
|
|
|
if (!functionId || typeof this.isAuth !== 'function') { |
|
|
|
return true |
|
|
|
} |
|
|
|
return this.isAuth(functionId + ':' + permissionCode) |
|
|
|
}, |
|
|
|
|
|
|
|
// 删除不良 |
|
|
|
deleteSfdcDefect(row) { |
|
|
|
deleteSfdcDefect(row).then(({data}) => { |
|
|
|
|