Browse Source

2024-12-24

master
qiezi 1 year ago
parent
commit
b4bbb4039e
  1. 14
      src/views/modules/demoComponents/orderProperties.vue
  2. 50
      src/views/modules/proofing/requestForProofing.vue

14
src/views/modules/demoComponents/orderProperties.vue

@ -1,9 +1,17 @@
<template>
<div>
<div style="margin-top: 5px">
<el-button type="primary" @click="clickSaveBtn" v-if="orderNo" :disabled="disabled">新增</el-button>
<el-button type="primary" :loading="loading" v-if="orderNo" :disabled="disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
<el-button type="primary" @click="refreshPropertiesModal" :disabled="disabled" v-if="attributeDialog">刷新属性模板</el-button>
<template v-if="isAuth('103001:tab1:save')">
<el-button type="primary" @click="clickSaveBtn" v-if="orderNo" :disabled="disabled">新增</el-button>
</template>
<template v-if="isAuth('103001:tab1:update')">
<el-button type="primary" :loading="loading" v-if="orderNo" :disabled="disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
</template>
<template v-if="isAuth('103001:tab1:save')">
<el-button type="primary" @click="refreshPropertiesModal" :disabled="disabled"
v-if="attributeDialog && orderNo">刷新属性模板
</el-button>
</template>
</div>
<div class="rq " v-if="attributeDialog">
<el-table

50
src/views/modules/proofing/requestForProofing.vue

@ -73,10 +73,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 v-if="isAuth('103001:query')" @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('103001:save')" type="primary" @click="addModal()">新增</el-button>
<el-button v-if="isAuth('103001:remove')" type="primary" @click="delModal()">删除</el-button>
<download-excel
v-if="isAuth('103001:export')"
:fields="fields()"
:data="exportData"
type="xls"
@ -148,15 +149,15 @@
width="100"
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer" @click="updateModal(scope.row)" v-if="scope.row.proofingStatus !== '已完成'">
编辑
</el-link>
<el-link style="cursor: pointer" v-if="scope.row.proofingStatus === '草稿'"
@click="updateModalStatus(scope.row,'C')">下达
</el-link>
<el-link style="cursor: pointer" v-if="scope.row.proofingStatus === '已完成'" @click="getDetailData(scope.row)">
详情
</el-link>
<template v-if="isAuth('103001:update')">
<el-link style="cursor: pointer" @click="updateModal(scope.row)" v-if="scope.row.proofingStatus !== '已完成'">编辑</el-link>
</template>
<template v-if="isAuth('103001:issued')">
<el-link style="cursor: pointer" v-if="scope.row.proofingStatus === '草稿'" @click="updateModalStatus(scope.row,'C')">下达</el-link>
</template>
<template v-if="isAuth('103001:detail')">
<el-link style="cursor: pointer" v-if="scope.row.proofingStatus === '已完成'" @click="getDetailData(scope.row)">详情</el-link>
</template>
</template>
</el-table-column>
</el-table>
@ -356,10 +357,12 @@
<el-footer style="height:30px;text-align:center;margin-top: 8px">
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.proofingStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.proofingStatus === '审批中' && modalData.isReject === 'Y'"
@click="rejectVisible = true" type="primary">驳回
</el-button>
<template v-if="isAuth('103001:submit')">
<el-button v-if="modalData.proofingStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
</template>
<template v-if="isAuth('103001:rejected')">
<el-button v-if="modalData.proofingStatus === '审批中' && modalData.isReject === 'Y'" @click="rejectVisible = true" type="primary">驳回</el-button>
</template>
</el-footer>
</el-dialog>
@ -653,7 +656,12 @@
<customer-info :project="proofingCurrentRow"></customer-info>
</el-tab-pane>
<el-tab-pane label="附件信息" name="proofing_file">
<oss-components label="打样单号" style="margin-top: 5px" height="28vh" :columns="ossColumns"
<oss-components
:save-visible="isAuth('103001:tab4:save')"
:download-visible="isAuth('103001:tab4:download')"
:remove-visible="isAuth('103001:tab4:remove')"
:preview-visible="isAuth('103001:tab4:preview')"
label="打样单号" style="margin-top: 5px" height="28vh" :columns="ossColumns"
:order-ref2="proofingCurrentRow.proofingNo"
:order-ref1="proofingCurrentRow.site" :disabled="proofingCurrentRow.proofingStatus === '已完成'"></oss-components>
</el-tab-pane>
@ -2133,10 +2141,14 @@ export default {
})
},
created() {
this.handleRouteQuery();
if (this.isAuth('103001:query')){
this.handleRouteQuery();
}
},
activated() {
this.handleRouteQuery();
if (this.isAuth('103001:query')){
this.handleRouteQuery();
}
},
methods: {
handleRouteQuery() {

Loading…
Cancel
Save