This commit is contained in:
linfso 2025-03-02 21:59:14 +08:00
parent 5572bb249e
commit 3e22d37390
2 changed files with 10 additions and 2 deletions

View File

@ -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(","))

View File

@ -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) {