Browse Source

2024-12-30

master
qiezi 1 year ago
parent
commit
9b503cdcf0
  1. 2
      src/views/modules/quote/detail/primary/quoteDetailBom.vue
  2. 4
      src/views/modules/quote/detail/primary/quoteDetailRouting.vue
  3. 14
      src/views/modules/quote/detail/quoteDetail.vue
  4. 7
      src/views/modules/quote/detail/quoteGroupDetail.vue
  5. 20
      src/views/modules/quote/index.vue
  6. 4
      src/views/modules/quote/primary/quoteSearch.vue
  7. 14
      src/views/modules/quote/primary/quoteTable.vue

2
src/views/modules/quote/detail/primary/quoteDetailBom.vue

@ -430,7 +430,9 @@ export default {
<template> <template>
<div> <div>
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<template v-if="isAuth('5011:detail:tab1:check')">
<el-link style="margin-right: 20px;cursor: pointer" @click="handleCheckedVersion" v-if="quoteDetail.status === '草稿'">切换版本</el-link> <el-link style="margin-right: 20px;cursor: pointer" @click="handleCheckedVersion" v-if="quoteDetail.status === '草稿'">切换版本</el-link>
</template>
<el-checkbox v-model="isAllBom">全级BOM结构</el-checkbox> <el-checkbox v-model="isAllBom">全级BOM结构</el-checkbox>
</div> </div>
<el-container> <el-container>

4
src/views/modules/quote/detail/primary/quoteDetailRouting.vue

@ -727,7 +727,9 @@ export default {
<template> <template>
<div> <div>
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<template v-if="isAuth('5011:detail:tab2:check')">
<el-link style="margin-right: 20px;cursor:pointer;" @click="handleChangeVersion" v-if="quoteDetail.status === '草稿'">切换版本</el-link> <el-link style="margin-right: 20px;cursor:pointer;" @click="handleChangeVersion" v-if="quoteDetail.status === '草稿'">切换版本</el-link>
</template>
<el-checkbox v-model="isAllRouting">全级Routing结构</el-checkbox> <el-checkbox v-model="isAllRouting">全级Routing结构</el-checkbox>
</div> </div>
<el-container> <el-container>
@ -747,8 +749,10 @@ export default {
<el-table :data="dataList" v-loading="queryLoading" border style="width: 100%" :height="420"> <el-table :data="dataList" v-loading="queryLoading" border style="width: 100%" :height="420">
<el-table-column label="操作" fixed="left" align="center" width="80px" v-if="quoteDetail.status === '草稿'"> <el-table-column label="操作" fixed="left" align="center" width="80px" v-if="quoteDetail.status === '草稿'">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="isAuth('5011:detail:tab2:update')">
<a @click="handleUpdateQuoteDetailRouting(scope.row)">编辑</a> <a @click="handleUpdateQuoteDetailRouting(scope.row)">编辑</a>
</template> </template>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-for="(item,index) in columns" :key="index" v-for="(item,index) in columns" :key="index"

14
src/views/modules/quote/detail/quoteDetail.vue

@ -725,13 +725,14 @@ export default {
<el-button type="primary" v-if="!authFlag" :disabled="quote.status === '下达' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button> <el-button type="primary" v-if="!authFlag" :disabled="quote.status === '下达' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button>
</template> </template>
<el-table v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" :height="height"> <el-table v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" :height="height">
<el-table-column width="50" align="center" label=" " v-if="quoteGroupDetail">
<el-table-column width="50" align="center" label=" " v-if="quoteGroupDetail && quoteGroupDetail.status === '草稿'">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-radio <el-radio
class="radio" class="radio"
:label="row.itemNo" :label="row.itemNo"
:disabled="!isAuth('5011:group:current')"
v-model="quoteGroupDetail.currentQuoteDetailItemNo" v-model="quoteGroupDetail.currentQuoteDetailItemNo"
>{{ '' }}</el-radio>
></el-radio>
</template> </template>
</el-table-column>· </el-table-column>·
<el-table-column type="index" width="55" align="center" label="序号"></el-table-column> <el-table-column type="index" width="55" align="center" label="序号"></el-table-column>
@ -753,11 +754,18 @@ export default {
</el-table-column> </el-table-column>
<el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="160"> <el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="160">
<template slot-scope="{row,$index}"> <template slot-scope="{row,$index}">
<template v-if="isAuth('5011:detail:update')">
<a type="text" v-if="row.status === '草稿'" @click="handleSaveQuoteDetail(row)">编辑</a> <a type="text" v-if="row.status === '草稿'" @click="handleSaveQuoteDetail(row)">编辑</a>
</template>
<template v-if="isAuth('5011:detail:remove')">
<a type="text" v-if="row.status === '草稿'" @click="handleDeleteQuoteDetail(row)">删除</a> <a type="text" v-if="row.status === '草稿'" @click="handleDeleteQuoteDetail(row)">删除</a>
</template>
<template v-if="isAuth('5011:detail:again')">
<a type="text" v-if="row.status !== '下达'" @click="againQuoteDetail(row)">复制明细</a> <a type="text" v-if="row.status !== '下达'" @click="againQuoteDetail(row)">复制明细</a>
</template>
<template v-if="isAuth('5011:detail:detail')">
<a type="text" v-if="row.status === '下达'" @click="handleDetail(row)">详情</a> <a type="text" v-if="row.status === '下达'" @click="handleDetail(row)">详情</a>
<a type="text" v-if="row.status === '草稿'"></a>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

7
src/views/modules/quote/detail/quoteGroupDetail.vue

@ -703,7 +703,9 @@ export default {
<template> <template>
<div> <div>
<template v-if="isAuth('5011:group:save')">
<el-button type="primary" v-if="!authFlag" :disabled="quote.status === '下达' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button> <el-button type="primary" v-if="!authFlag" :disabled="quote.status === '下达' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button>
</template>
<el-table v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" :height="height"> <el-table v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" :height="height">
<el-table-column type="index" width="55" align="center" label="序号"></el-table-column> <el-table-column type="index" width="55" align="center" label="序号"></el-table-column>
<el-table-column <el-table-column
@ -724,9 +726,13 @@ export default {
</el-table-column> </el-table-column>
<el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="120"> <el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="120">
<template slot-scope="{row,$index}"> <template slot-scope="{row,$index}">
<template v-if="isAuth('5011:group:remove')">
<a type="text" v-if="row.status === '草稿'" @click="handleDeleteQuoteDetail(row)">删除</a> <a type="text" v-if="row.status === '草稿'" @click="handleDeleteQuoteDetail(row)">删除</a>
</template>
<template v-if="isAuth('5011:group:list')">
<a @click="handleQueryQuoteDetailByDetailId(row)">条目明细</a> <a @click="handleQueryQuoteDetailByDetailId(row)">条目明细</a>
</template> </template>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -903,6 +909,7 @@ export default {
<quote-detail <quote-detail
v-if="drawerVisible" v-if="drawerVisible"
style="margin-top: 20px" style="margin-top: 20px"
:save-auth="isAuth('5011:detail:save')"
:quote="quote" :quote="quote"
:quote-group-detail="quoteGroupDetail" :quote-group-detail="quoteGroupDetail"
:auth-flag="false" :auth-flag="false"

20
src/views/modules/quote/index.vue

@ -977,7 +977,7 @@ export default {
}, },
}, },
created() { created() {
if (this.isMenu && this.searchIndex === 0){
if (this.isMenu && this.searchIndex === 0 && this.isAuth('5011:query')){
this.quoteForm = { this.quoteForm = {
...this.quote, ...this.quote,
site: this.$store.state.user.site, site: this.$store.state.user.site,
@ -1054,7 +1054,7 @@ export default {
}, },
}, },
activated() { activated() {
if (!this.isMenu){
if (!this.isMenu && !this.isAuth('5011:query')){
return return
} }
if (this.$route.params.ids){ if (this.$route.params.ids){
@ -1126,7 +1126,13 @@ export default {
<quotation-customer-contact height="28vh" :quotation-header="currentQuote"></quotation-customer-contact> <quotation-customer-contact height="28vh" :quotation-header="currentQuote"></quotation-customer-contact>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="报价-附件信息" name="quote_oss"> <el-tab-pane label="报价-附件信息" name="quote_oss">
<oss-components label="报价单号" height="28vh"
<oss-components
:save-visible="isAuth('5011:tab6:save')"
:download-visible="isAuth('5011:tab6:download')"
:remove-visible="isAuth('5011:tab6:remove')"
:preview-visible="isAuth('5011:tab6:preview')"
label="报价单号"
height="28vh"
:columns="ossColumns" :columns="ossColumns"
:order-ref1="currentQuote.site?currentQuote.site:''" :order-ref1="currentQuote.site?currentQuote.site:''"
:order-ref2="currentQuote.quoteVersionNo?currentQuote.quoteVersionNo:''"> :order-ref2="currentQuote.quoteVersionNo?currentQuote.quoteVersionNo:''">
@ -1138,7 +1144,13 @@ export default {
height="31vh"></price-check-properties> height="31vh"></price-check-properties>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="询价-附件信息" name="oss"> <el-tab-pane label="询价-附件信息" name="oss">
<oss-components label="询价单号" height="28vh"
<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="询价单号"
height="28vh"
:columns="ossColumns" :columns="ossColumns"
:order-ref1="currentQuote.site" :order-ref1="currentQuote.site"
:order-ref2="currentQuote.insideInquiryNo?currentQuote.insideInquiryNo.split('-')[0]:''"> :order-ref2="currentQuote.insideInquiryNo?currentQuote.insideInquiryNo.split('-')[0]:''">

4
src/views/modules/quote/primary/quoteSearch.vue

@ -89,8 +89,8 @@ export default {
</el-col> </el-col>
<el-col :span="3"> <el-col :span="3">
<el-form-item label=" "> <el-form-item label=" ">
<el-button @click="$emit('search')"> </el-button>
<el-button type="primary" @click="$emit('save')"> </el-button>
<el-button @click="$emit('search')" v-if="isAuth('5011:query')"> </el-button>
<el-button type="primary" @click="$emit('save')" v-if="isAuth('5011:save')"> </el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

14
src/views/modules/quote/primary/quoteTable.vue

@ -134,13 +134,25 @@ export default {
width="180" width="180"
label="操作" v-if="isMenu"> label="操作" v-if="isMenu">
<template slot-scope="{row,$index}"> <template slot-scope="{row,$index}">
<template v-if="isAuth('5011:update')">
<a type="text" v-if="row.status === '草稿'" @click="handleSaveClick(row)">编辑</a> <a type="text" v-if="row.status === '草稿'" @click="handleSaveClick(row)">编辑</a>
</template>
<template v-if="isAuth('5011:remove')">
<a type="text" v-if="row.status === '草稿'" @click="handleRemoveClick(row,$index)">删除</a> <a type="text" v-if="row.status === '草稿'" @click="handleRemoveClick(row,$index)">删除</a>
</template>
<template v-if="isAuth('5011:issued')">
<a type="text" v-if="row.status === '草稿'" @click="handleUpdateStatus(row,'下达')">下达</a> <a type="text" v-if="row.status === '草稿'" @click="handleUpdateStatus(row,'下达')">下达</a>
</template>
<template v-if="isAuth('5011:cancel:issued')">
<a type="text" v-if="row.status === '下达'" @click="handleUpdateStatus(row,'草稿')">取消下达</a> <a type="text" v-if="row.status === '下达'" @click="handleUpdateStatus(row,'草稿')">取消下达</a>
<a type="text" v-if="row.status === '下达'" @click="handleQueryById(row)">详情</a>
</template>
<template v-if="isAuth('5011:again')">
<a type="text" @click="againQuote(row)">重新报价</a> <a type="text" @click="againQuote(row)">重新报价</a>
</template> </template>
<template v-if="isAuth('5011:detail')">
<a type="text" v-if="row.status === '下达'" @click="handleQueryById(row)">详情</a>
</template>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</template> </template>

Loading…
Cancel
Save