Browse Source

2024-12-24

master
qiezi 1 year ago
parent
commit
15aeb625fa
  1. 32
      src/views/modules/oss/ossComponents.vue
  2. 8
      src/views/modules/quotation/priceCheckProperties.vue
  3. 44
      src/views/modules/quotation/requestForQuote.vue
  4. 10
      src/views/modules/quotation/sellForQuotation/priceCheckDetail/priceCheckDetail.vue

32
src/views/modules/oss/ossComponents.vue

@ -36,6 +36,22 @@ export default {
type:Boolean,
default:false
},
saveVisible:{
type:Boolean,
default:true
},
downloadVisible:{
type:Boolean,
default:true
},
previewVisible:{
type:Boolean,
default:true
},
removeVisible:{
type:Boolean,
default:true
}
},
data(){
return{
@ -247,8 +263,12 @@ export default {
<template>
<div>
<el-button type="primary" v-if="this.orderRef1 && this.orderRef2 && !disabled" @click="handleUpload">上传附件</el-button>
<el-button type="primary" @click="handleDownload">下载</el-button>
<template v-if="saveVisible">
<el-button type="primary" v-if="this.orderRef1 && this.orderRef2 && !disabled" @click="handleUpload">上传附件</el-button>
</template>
<template v-if="downloadVisible">
<el-button type="primary" @click="handleDownload">下载</el-button>
</template>
<el-table
:height="height"
:data="dataList"
@ -280,8 +300,12 @@ export default {
width="120"
label="操作">
<template slot-scope="{row,$index}">
<el-link style="cursor:pointer;" v-if="!disabled" @click="handleRemove(row)">删除</el-link>
<el-link style="cursor:pointer;" @click="previewFile(row)">预览</el-link>
<template v-if="removeVisible">
<el-link style="cursor:pointer;" v-if="!disabled" @click="handleRemove(row)">删除</el-link>
</template>
<template v-if="previewVisible">
<el-link style="cursor:pointer;" @click="previewFile(row)">预览</el-link>
</template>
</template>
</el-table-column>
</el-table>

8
src/views/modules/quotation/priceCheckProperties.vue

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

44
src/views/modules/quotation/requestForQuote.vue

@ -80,10 +80,10 @@
</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>
<download-excel
<el-button @click="getDataList()" v-if="isAuth('102001001:query')">查询</el-button>
<el-button type="primary" @click="addModal()" v-if="isAuth('102001001:save')">新增</el-button>
<el-button type="primary" @click="delModal()" v-if="isAuth('102001001:remove')">删除</el-button>
<download-excel v-if="isAuth('102001001:export')"
:fields="fields()"
:data="exportData"
type="xls"
@ -155,9 +155,15 @@
width="100"
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer" @click="updateModal(scope.row)" v-if="scope.row.quotationStatus !== '已完成'">编辑</el-link>
<el-link style="cursor: pointer" v-if="scope.row.quotationStatus === '草稿'" @click="updateModalStatus(scope.row,'C')">下达</el-link>
<el-link style="cursor: pointer" @click="updateDetailModal(scope.row)" v-if="scope.row.quotationStatus === '已完成'">详情</el-link>
<template v-if="isAuth('102001001:update')">
<el-link style="cursor: pointer" @click="updateModal(scope.row)" v-if="scope.row.quotationStatus !== '已完成'">编辑</el-link>
</template>
<template v-if="isAuth('102001001:issued')">
<el-link style="cursor: pointer" v-if="scope.row.quotationStatus === '草稿'" @click="updateModalStatus(scope.row,'C')">下达</el-link>
</template>
<template v-if="isAuth('102001001:detail')">
<el-link style="cursor: pointer" @click="updateDetailModal(scope.row)" v-if="scope.row.quotationStatus === '已完成'">详情</el-link>
</template>
</template>
</el-table-column>
</el-table>
@ -383,8 +389,12 @@
<el-footer style="height:35px;margin-top: 10px;padding-bottom:5px;text-align:center">
<el-button type="primary" v-if="!detailVisible" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.quotationStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.quotationStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="rejectVisible = true">驳回</el-button>
<template v-if="isAuth('102001001:submit')">
<el-button v-if="modalData.quotationStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
</template>
<template v-if="isAuth('102001001:rejected')">
<el-button v-if="modalData.quotationStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="rejectVisible = true">驳回</el-button>
</template>
</el-footer>
</el-dialog>
<!--选择项目模态框-->
@ -729,7 +739,12 @@
<inquiry-quote-detail :quotation="quotationCurrentRow"></inquiry-quote-detail>
</el-tab-pane>
<el-tab-pane label="附件信息" name="oss_file" >
<oss-components label="申请单号" style="margin-top: 5px" height="44vh" :disabled="quotationCurrentRow.quotationStatus === '已完成'" :columns="ossColumns" :order-ref1="quotationCurrentRow.site" :order-ref2="quotationCurrentRow.quotationBatchNo"></oss-components>
<oss-components
:save-visible="isAuth('102001001:tab6:save')"
:download-visible="isAuth('102001001:tab6:download')"
:remove-visible="isAuth('102001001:tab6:remove')"
:preview-visible="isAuth('102001001:tab6:preview')"
label="申请单号" style="margin-top: 5px" height="44vh" :disabled="quotationCurrentRow.quotationStatus === '已完成'" :columns="ossColumns" :order-ref1="quotationCurrentRow.site" :order-ref2="quotationCurrentRow.quotationBatchNo"></oss-components>
</el-tab-pane>
<!-- 审批信息 -->
@ -790,6 +805,7 @@ import BuSelect from "../base/BuSelect.vue";
import ApprovalInformation from "../changeManagement/approvalInformation.vue";
import {getApprovalList} from "../../../api/changeManagement/changeManagement";
import CustomerInfo from "./sellForQuotation/customerInfo.vue";
import {isAuth} from "../../../utils";
export default {
computed: {
@ -2057,10 +2073,14 @@ export default {
})
},
created() {
this.handleRouteQuery()
if (this.isAuth('102001001:query')){
this.handleRouteQuery()
}
},
activated () {
this.handleRouteQuery()
if (this.isAuth('102001001:query')){
this.handleRouteQuery()
}
},
methods: {
handleRouteQuery(){

10
src/views/modules/quotation/sellForQuotation/priceCheckDetail/priceCheckDetail.vue

@ -199,7 +199,7 @@ export default {
<template>
<div>
<div style="margin-top: 10px">
<el-button type="primary" :disabled="disabled" @click="handleSave">新增</el-button>
<el-button type="primary" v-if="isAuth('102001001:tab2:save')" :disabled="disabled" @click="handleSave">新增</el-button>
</div>
<el-table :data="dataList" :height="height" style="width: 100%;margin-top: 10px" border>
<el-table-column
@ -220,8 +220,12 @@ export default {
</el-table-column>
<el-table-column label="操作" align="center" width="80px">
<template slot-scope="scope">
<el-link v-if="!disabled" @click="handleUpdate(scope.row)">编辑</el-link>
<el-link v-if="!disabled" @click="handleRemove(scope.row)">删除</el-link>
<template v-if="isAuth('102001001:tab2:update')">
<el-link v-if="!disabled" @click="handleUpdate(scope.row)">编辑</el-link>
</template>
<template v-if="isAuth('102001001:tab2:remove')">
<el-link v-if="!disabled" @click="handleRemove(scope.row)">删除</el-link>
</template>
</template>
</el-table-column>
</el-table>

Loading…
Cancel
Save