This commit is contained in:
xd 2024-06-24 11:26:45 +08:00
parent b621a2d8fe
commit ccfe9f6477
2 changed files with 4 additions and 19 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<el-dialog <el-dialog
:width="width || '900px'" :width="width || '900px'"
:height="height || '650px'" height="350px"
:visible.sync="open" :visible.sync="open"
:show-close="false" append-to-body> :show-close="false" append-to-body>
<div slot="title" style="margin: 0px; padding: 0px"> <div slot="title" style="margin: 0px; padding: 0px">

View File

@ -133,21 +133,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-divider content-position="left" >产品信息</el-divider> <el-divider content-position="left" >产品信息</el-divider>
<el-row :gutter="10" class="mb8">
<!--<el-col :span="1.5">
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddQuotMaterial" v-if="this.form.quotApprovalStatus == '0' || this.form.quotApprovalStatus == null">添加</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDeleteQuotMaterial" v-if="this.form.quotApprovalStatus == '0' || this.form.quotApprovalStatus == null">删除</el-button>
</el-col>-->
<!-- <el-col :span="1.5">
<el-button type="info" plain icon="el-icon-upload2" size="mini" @click="handleImport" v-if="(this.form.quotApprovalStatus == '0' || this.form.quotApprovalStatus == null) || checkRole(['QUOT','PRICE_VERIFICATION'])">导入</el-button>
</el-col>-->
<el-col :span="1.5" v-if="checkRole(['QUOT','PRICE_VERIFICATION'])">
<el-button type="info" plain icon="el-icon-upload2" size="mini" @click="handleExportMaterial">导出</el-button>
</el-col>
</el-row>
<el-table :data="quotMaterialList" height="300px" show-summary ref="quotMaterial"> <el-table :data="quotMaterialList" height="300px" show-summary ref="quotMaterial">
<el-table-column label="序号" align="center" prop="index" width="50"/> <el-table-column label="序号" align="center" prop="index" width="50"/>
<el-table-column label="型号" prop="matXingh" width="180"> <el-table-column label="型号" prop="matXingh" width="180">
@ -180,18 +165,18 @@
<el-input v-model="scope.row.matRemark" placeholder="备注" :disabled="formData.quotApprovalStatus != '0' && formData.quotApprovalStatus != null"/> <el-input v-model="scope.row.matRemark" placeholder="备注" :disabled="formData.quotApprovalStatus != '0' && formData.quotApprovalStatus != null"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="报价单价" prop="matQuotPrice" v-if="checkRole(['QUOT','PRICE_VERIFICATION','SALES_MAN','QUOT_MAT_PRICE_DIFF'])" width="130"> <el-table-column label="报价单价" prop="matQuotPrice" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.matQuotPrice" :disabled="true"/> <el-input v-model="scope.row.matQuotPrice" :disabled="true"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="报价小计" prop="matQuotAllPrice" v-if="checkRole(['QUOT','PRICE_VERIFICATION','SALES_MAN','QUOT_MAT_PRICE_DIFF'])" width="130"> <el-table-column label="报价小计" prop="matQuotAllPrice" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.matQuotAllPrice" :disabled="true"/> <el-input v-model="scope.row.matQuotAllPrice" :disabled="true"/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="margin-top: 5px" v-hasPermi="['quot:quot:madeQuot']"><el-button type="warning" plain @click="madeQuot" v-if="this.formData.quotApprovalStatus == '2'||!checkRole(['SALES_MAN'])">生成报价单</el-button></div> <div style="margin-top: 5px" v-hasPermi="['quot:quot:madeQuot']"><el-button type="warning" plain @click="madeQuot" v-if="this.formData.quotApprovalStatus == '2'">生成报价单</el-button></div>
<el-form-item style="margin-top: 15px"> <el-form-item style="margin-top: 15px">
<span v-hasPermi="['quot:quot:save']"><el-button @click="saveForm" v-if="this.formData.quotApprovalStatus == '0' || this.formData.quotApprovalStatus == null"> </el-button></span> <span v-hasPermi="['quot:quot:save']"><el-button @click="saveForm" v-if="this.formData.quotApprovalStatus == '0' || this.formData.quotApprovalStatus == null"> </el-button></span>
<span style="margin-left: 10px" v-hasPermi="['quot:quot:commit']"><el-button type="primary" plain @click="commitForm" v-if="this.formData.quotApprovalStatus == '0' || this.formData.quotApprovalStatus == null"> </el-button></span> <span style="margin-left: 10px" v-hasPermi="['quot:quot:commit']"><el-button type="primary" plain @click="commitForm" v-if="this.formData.quotApprovalStatus == '0' || this.formData.quotApprovalStatus == null"> </el-button></span>