Browse Source

2024-12-25

master
qiezi 1 year ago
parent
commit
0c724fce97
  1. 38
      src/views/modules/test/requestForTest.vue
  2. 8
      src/views/modules/test/testAttribute/testProperties.vue
  3. 12
      src/views/modules/test/testSoBom/testTable.vue
  4. 12
      src/views/modules/test/testSoRouting/testRoutingTable.vue

38
src/views/modules/test/requestForTest.vue

@ -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,9 +143,15 @@
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>
<el-button v-if="modalData.testStatus === '审批中' && !detailFlag" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.testStatus === '审批中' && modalData.isReject === 'Y' && !detailFlag" @click="rejectVisible = true" type="primary">驳回</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 () {
this.handleRouteQuery()
if (this.isAuth('107001:query')){
this.handleRouteQuery()
}
},
activated () {
this.handleRouteQuery()
if (this.isAuth('107001:query')){
this.handleRouteQuery()
}
},
methods: {
handleRouteQuery(){

8
src/views/modules/test/testAttribute/testProperties.vue

@ -230,8 +230,12 @@ export default {
<template>
<div>
<div style="margin-top: 5px">
<el-button type="primary" @click="clickSaveBtn" v-if="testNo && !disabled">新增</el-button>
<el-button type="primary" :loading="loading" v-if="testNo && !disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
<template v-if="isAuth('107001:tab1:save')">
<el-button type="primary" @click="clickSaveBtn" v-if="testNo && !disabled">新增</el-button>
</template>
<template v-if="isAuth('107001:tab1:update')">
<el-button type="primary" :loading="loading" v-if="testNo && !disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
</template>
</div>
<div class="rq " v-if="attributeDialog">
<el-table

12
src/views/modules/test/testSoBom/testTable.vue

@ -637,8 +637,12 @@ export default {
<template>
<div class="testTable">
<div style="margin-bottom: 5px">
<el-button type="primary" v-if="!disabled" @click="saveTestSoBom(null)">新增</el-button>
<el-button type="primary" v-if="!disabled" @click="removeBatchTestSoBom">删除</el-button>
<template v-if="isAuth('107001:tab3:save')">
<el-button type="primary" v-if="!disabled" @click="saveTestSoBom(null)">新增</el-button>
</template>
<template v-if="isAuth('107001:tab3:remove')">
<el-button type="primary" v-if="!disabled" @click="removeBatchTestSoBom">删除</el-button>
</template>
</div>
<el-table
:height="height" border
@ -669,7 +673,9 @@ export default {
</el-table-column>
<el-table-column label="操作" align="center" fixed="right">
<template slot-scope="{row,$index}">
<a type="text" style="cursor:pointer;" v-if="!disabled" @click="saveTestSoBom(row)">编辑</a>
<template v-if="isAuth('107001:tab3:update')">
<a type="text" style="cursor:pointer;" v-if="!disabled" @click="saveTestSoBom(row)">编辑</a>
</template>
</template>
</el-table-column>
</el-table>

12
src/views/modules/test/testSoRouting/testRoutingTable.vue

@ -623,8 +623,12 @@ export default {
<template>
<div>
<div style="margin-bottom: 5px">
<el-button type="primary" v-if="!disabled" @click="saveTestSoRoutingBtn()">新增</el-button>
<el-button type="primary" v-if="!disabled" @click="removeTestSoRouting">删除</el-button>
<template v-if="isAuth('107001:tab4:save')">
<el-button type="primary" v-if="!disabled" @click="saveTestSoRoutingBtn()">新增</el-button>
</template>
<template v-if="isAuth('107001:tab4:remove')">
<el-button type="primary" v-if="!disabled" @click="removeTestSoRouting">删除</el-button>
</template>
</div>
<el-table
:height="height" border
@ -655,7 +659,9 @@ export default {
</el-table-column>
<el-table-column label="操作" align="center" fixed="right">
<template slot-scope="{row,$index}">
<a type="text" style="cursor:pointer;" v-if="!disabled" @click="saveTestSoRoutingBtn(row)">编辑</a>
<template v-if="isAuth('107001:tab4:update')">
<a type="text" style="cursor:pointer;" v-if="!disabled" @click="saveTestSoRoutingBtn(row)">编辑</a>
</template>
</template>
</el-table-column>
</el-table>

Loading…
Cancel
Save