123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <template>
- <div>
- <el-dropdown :hide-on-click="false" @command="handleCommand">
- <span class="el-dropdown-link">
- <el-button size="small" type="primary" @click="dialogFormVisible = true">新 建</el-button>
- </span>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item command="项目报价">项目报价</el-dropdown-item>
- <el-dropdown-item command="客户报价">客户报价</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- <!-- <el-dialog
- title="创建报价单"
- :visible.sync="dialogFormVisible"
- width="25%"
- append-to-body
- @close="onCancel"
- >
- <div class="panel_Target" >
- <el-row style="margin-top: 3%">
- <el-col :span="4" :offset="1">
- <div style="width: 100%;text-align: right">
- <label class="normal-margin inline-16" style="margin-top: 8%">报价单类型:</label>
- </div>
- </el-col>
- <el-col :span="18">
- <el-select v-model="type" placeholder="请选择" size="small" style="width: 90%">
- <el-option
- v-for="item in options"
- :key="item.label"
- :label="item.label"
- :value="item.label">
- </el-option>
- </el-select>
- </el-col>
- </el-row>
- </div>
- <div class="dialog-footer ">
- <el-button size="small" @click="onCancel" class="normal-btn-width">取 消</el-button>
- <el-button size="small" type="primary" @click="onSubmit" class="normal-btn-width">确 定</el-button>
- </div>
- </el-dialog>-->
- <projec_quotation_add :drawerShow="drawerShow" v-if="drawerShow" :typeData="type" @addSuccess="onSuccess"></projec_quotation_add>
- </div>
- </template>
- <script>
- import projec_quotation_add from '@/SDrpManagement/QuotedPrice/modules/ProjectQuotationAdd'
- export default {
- name: "add",
- data(){
- return {
- type:'项目报价',
- drawerShow:false,
- options:[
- {
- label:'项目报价',
- value:'1'
- },
- {
- label:'客户报价',
- value:'2'
- }
- ],
- dialogFormVisible:false,
- }
- },
- components:{projec_quotation_add},
- methods:{
- onCancel(){
- this.dialogFormVisible = false
- this.type = '项目报价'
- },
- /*onSubmit(){
- this.dialogFormVisible = false
- this.drawerShow = true
- },*/
- onSuccess(){
- this.drawerShow = false
- this.$emit('onSuccess')
- },
- handleCommand(val){
- console.log(val)
- this.type = val
- this.drawerShow = true
- }
- },
- created() {}
- }
- </script>
- <style scoped>
- </style>
|