|
|
|
@ -79,10 +79,11 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button @click="getDataList()">查询</el-button> |
|
|
|
<el-button type="primary" @click="addModal()">新增</el-button> |
|
|
|
<el-button type="primary" @click="delModal()">删除</el-button> |
|
|
|
<el-button @click="getDataList()" v-if="isAuth('107001:query')">查询</el-button> |
|
|
|
<el-button type="primary" @click="addModal()" v-if="isAuth('107001:save')">新增</el-button> |
|
|
|
<el-button type="primary" @click="delModal()" v-if="isAuth('107001:remove')">删除</el-button> |
|
|
|
<download-excel |
|
|
|
v-if="isAuth('107001:export')" |
|
|
|
:fields="fields()" |
|
|
|
:data="exportData" |
|
|
|
type="xls" |
|
|
|
@ -142,10 +143,16 @@ |
|
|
|
width="120" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template v-if="isAuth('107001:update')"> |
|
|
|
<a type="text" size="small" style="cursor:pointer;" v-if="scope.row.testStatus !== '已完成'" @click="updateModal(scope.row)">编辑</a> |
|
|
|
</template> |
|
|
|
<template v-if="isAuth('107001:issued')"> |
|
|
|
<a type="text" size="small" style="cursor:pointer;" v-if="scope.row.testStatus === '草稿'" @click="updateModalStatus(scope.row,'C')">下达</a> |
|
|
|
</template> |
|
|
|
<template v-if="isAuth('107001:detail')"> |
|
|
|
<a type="text" size="small" style="cursor:pointer;" @click="handleDetail(scope.row)">详情</a> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
@ -347,8 +354,12 @@ |
|
|
|
<el-footer style="height:30px;text-align:center;margin-top: 8px"> |
|
|
|
<el-button type="primary" @click="saveData()" v-if="modalData.flag !== '1' && !detailFlag">保存</el-button> |
|
|
|
<el-button type="primary" @click="modalFlag = false">关闭</el-button> |
|
|
|
<template v-if="isAuth('107001:submit')"> |
|
|
|
<el-button v-if="modalData.testStatus === '审批中' && !detailFlag" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="isAuth('107001:rejected')"> |
|
|
|
<el-button v-if="modalData.testStatus === '审批中' && modalData.isReject === 'Y' && !detailFlag" @click="rejectVisible = true" type="primary">驳回</el-button> |
|
|
|
</template> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
@ -594,10 +605,15 @@ |
|
|
|
<test-table ref="tabSoBom" :test-number="testCurrentRow.testNumber" :disabled="testCurrentRow.testStatus === '已完成'" :test-no="testCurrentRow.testNo" height="45vh" v-model:data-list="testSoBomList"></test-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="制程信息" name="test_so_routing" style="padding: 5px"> |
|
|
|
<test-routing-table ref="tabSoRoiuting" :test-no="testCurrentRow.testNo" v-model:data-list="testSoRoutingList" :disabled="testCurrentRow.testStatus === '已完成'" height="45vh" ></test-routing-table> |
|
|
|
<test-routing-table ref="tabSoRouting" :test-no="testCurrentRow.testNo" v-model:data-list="testSoRoutingList" :disabled="testCurrentRow.testStatus === '已完成'" height="45vh" ></test-routing-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="附件信息" name="file"> |
|
|
|
<oss-components style="margin-top: 5px" :disabled="testCurrentRow.testStatus === '已完成'" label="测试单号" height="45vh" :columns="fileColumnList" :order-ref2="testCurrentRow.testNo" :order-ref1="testCurrentRow.site"></oss-components> |
|
|
|
<oss-components style="margin-top: 5px" |
|
|
|
:save-visible="isAuth('107001:tab5:save')" |
|
|
|
:download-visible="isAuth('107001:tab5:download')" |
|
|
|
:remove-visible="isAuth('107001:tab5:remove')" |
|
|
|
:preview-visible="isAuth('107001:tab5:preview')" |
|
|
|
:disabled="testCurrentRow.testStatus === '已完成'" label="测试单号" height="45vh" :columns="fileColumnList" :order-ref2="testCurrentRow.testNo" :order-ref1="testCurrentRow.site"></oss-components> |
|
|
|
</el-tab-pane> |
|
|
|
|
|
|
|
<!-- 项目信息页签 --> |
|
|
|
@ -2125,10 +2141,14 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
created () { |
|
|
|
if (this.isAuth('107001:query')){ |
|
|
|
this.handleRouteQuery() |
|
|
|
} |
|
|
|
}, |
|
|
|
activated () { |
|
|
|
if (this.isAuth('107001:query')){ |
|
|
|
this.handleRouteQuery() |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleRouteQuery(){ |
|
|
|
|