|
|
|
@ -9,10 +9,11 @@ import ProjectTable from "../../../components/selector/table/projectTable.vue"; |
|
|
|
import {queryCustomerList} from "../../../api/customer/customer"; |
|
|
|
import {queryProjectList} from "../../../api/project/project"; |
|
|
|
import QuoteDetail from "./detail/quoteDetail.vue"; |
|
|
|
import ChooseListEam from "../common/Chooselist_eam.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "quote", |
|
|
|
components: {QuoteDetail, ProjectTable, BuSelect, CustomerTable, QuoteTable, QuoteSearch}, |
|
|
|
components: {ChooseListEam,QuoteDetail, ProjectTable, BuSelect, CustomerTable, QuoteTable, QuoteSearch}, |
|
|
|
menuId:5011, |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
@ -407,6 +408,7 @@ export default { |
|
|
|
roleNo:'', |
|
|
|
}, |
|
|
|
userDataList:[], |
|
|
|
tagNo:undefined, |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
@ -667,6 +669,21 @@ export default { |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getBaseList(val){ |
|
|
|
this.tagNo = val |
|
|
|
this.$nextTick(()=>{ |
|
|
|
let strVal = '' |
|
|
|
if (val === 512){ |
|
|
|
strVal = this.saveQuote.currency; |
|
|
|
this.$refs.baseList.init(val,strVal) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getBaseData(val){ |
|
|
|
if (this.tagNo === 512){ |
|
|
|
this.saveQuote.currency = val.Currency |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -769,6 +786,9 @@ export default { |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="币种" prop="currency" :show-message="false"> |
|
|
|
<span slot="label"> |
|
|
|
<a @click="getBaseList(512)">币种</a> |
|
|
|
</span> |
|
|
|
<el-input v-model="saveQuote.currency"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -869,6 +889,7 @@ export default { |
|
|
|
</el-dialog> |
|
|
|
<customer-table ref="customerTable" v-if="saveVisible" v-model="customerVisible" :height="300" @dblclick="customerDblClick" :customer-no="saveQuote.customerNo"></customer-table> |
|
|
|
<project-table ref="projectTable" v-if="saveVisible" v-model="projectVisible" :height="300" @dblclick="projectDblClick" :customer-no="saveQuote.customerNo" :project-no="saveQuote.projectNo" :bu-id="saveQuote.buId"></project-table> |
|
|
|
<choose-list-eam ref="baseList" @getBaseData="getBaseData"></choose-list-eam> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
|