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