md
This commit is contained in:
parent
5572bb249e
commit
3e22d37390
@ -244,6 +244,9 @@ export default {
|
||||
props:{
|
||||
quoteId:{
|
||||
type:[Number,Array]
|
||||
},
|
||||
isCopy:{
|
||||
type:Boolean
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -363,7 +366,10 @@ export default {
|
||||
this.loading = true;
|
||||
getEmisCommissionQuote(this.quoteId).then(response => {
|
||||
this.form = response.data;
|
||||
console.log("==x1==>",this.form);
|
||||
if(this.isCopy){
|
||||
this.form.quoteName=this.form.quoteName+"_Copy"
|
||||
this.form.quoteId=null;
|
||||
}
|
||||
|
||||
if(this.form.transType){
|
||||
this.$set(this.form,"transTypeIdArr",this.form.transType.split(","))
|
||||
|
||||
@ -251,7 +251,7 @@
|
||||
</XdTable>
|
||||
|
||||
<el-dialog :title="titleForm" :visible.sync="openForm" width="90%" :destroy-on-close="true" v-dialogDrag append-to-body>
|
||||
<emisCommissionQuoteForm :quoteId="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisCommissionQuoteForm>
|
||||
<emisCommissionQuoteForm :quoteId="currentId" :isCopy="isCopy" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisCommissionQuoteForm>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
@ -368,6 +368,7 @@ export default {
|
||||
handleAdd(row) {
|
||||
this.currentId=null;
|
||||
this.openForm= true;
|
||||
this.isCopy = false;
|
||||
this.titleForm = "新增提成方案";
|
||||
},
|
||||
handleCopy() {
|
||||
@ -383,6 +384,7 @@ export default {
|
||||
handleUpdate(row) {
|
||||
this.currentId= row.quoteId || this.ids;
|
||||
this.openForm = true;
|
||||
this.isCopy = false;
|
||||
this.titleForm = "修改提成方案";
|
||||
},
|
||||
handleView(row) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user