Browse Source

20240820 报价

java8
qiezi 1 year ago
parent
commit
fe95a2614c
  1. 23
      src/views/modules/quote/index.vue

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

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

Loading…
Cancel
Save