|
|
|
@ -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> |
|
|
|
<template v-if="isAuth('103001:submit')"> |
|
|
|
<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> |
|
|
|
<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() { |
|
|
|
if (this.isAuth('103001:query')){ |
|
|
|
this.handleRouteQuery(); |
|
|
|
} |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
if (this.isAuth('103001:query')){ |
|
|
|
this.handleRouteQuery(); |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleRouteQuery() { |
|
|
|
|