Commit e1051afe authored by Mac's avatar Mac

财务单据复制

parent db70e5a8
......@@ -1038,6 +1038,10 @@
<i v-if="active==2 && istransaction == true" class="iconfont icon-jiaoyi"
@click="showjiaoyi(item.FrID)"></i>
</el-tooltip>
<el-tooltip class="item" content="复制" placement="top" v-if="item.Type==1 || item.Type==2" >
<i class="iconfont icon-jiaoyi" v-if="item.Type==1 || item.Type==2"
@click="goEit(item.Type,item.FrID,true,active,msg.pageIndex, item,true)"></i>
</el-tooltip>
</td>
</tr>
</table>
......@@ -2446,7 +2450,7 @@
path: tempStr
});
},
goEit(type, id, edit, Conditon, pageIndex, item) {
goEit(type, id, edit, Conditon, pageIndex, item,iscopy=false) {//iscopy是否复制 现在只做type为1和2
let path = '';
if (type === 1) {
path = 'addReceivablesDocuments'
......@@ -2458,6 +2462,7 @@
"edit": edit,
"Conditon": Conditon,
"pageIndex": pageIndex,
'iscopy':iscopy,
blank: 'y',
tab: '修改财务单据'
}
......@@ -2475,6 +2480,7 @@
"edit": edit,
"Conditon": Conditon,
"pageIndex": pageIndex,
'iscopy':iscopy,
blank: 'y',
tab: '修改财务单据'
}
......
......@@ -815,7 +815,8 @@
@click="AddFinancial(1)">{{$t('fnc.zancun')}}</button> -->
<q-btn color="primary" size="11px" :label="$t('fnc.zancun')" @click="AddFinancial(1)" style="marginRight:10px" v-if="GetDetail.Status==0||GetDetail.Status==3||msg.FrID==0"/>
<!-- <button class="normalBtn" @click="AddFinancial()">{{$t('fnc.tijiao')}}</button> -->
<q-btn color="primary" size="11px" :label="$t('fnc.tijiao')" @click="AddFinancial()" style="marginRight:10px"/>
<q-btn color="primary" size="11px" v-if="!iscopy" :label="$t('fnc.tijiao')" @click="AddFinancial()" style="marginRight:10px"/>
<q-btn color="primary" size="11px" v-if="iscopy" label="复制" @click="AddFinancial()" style="marginRight:10px"/>
<!-- <button class="hollowFixedBtn" @click="AuditOrRefund()">{{$t('pub.returnBack')}}</button> -->
<q-btn text-color="primary" size="11px" :label="$t('pub.returnBack')" @click="AuditOrRefund()"/>
</div>
......@@ -1012,6 +1013,7 @@
Status: '-1'
},
costmode:true,
iscopy:false,//是否是复制
}
},
methods: {
......@@ -1320,7 +1322,15 @@
this.msg.OtherType = this.czmsg.OtherType;
this.msg.ReTCID = this.czmsg.ReTCID;
}
this.msg.GuestId=this.$route.query.GuestId
this.msg.GuestId=this.$route.query.GuestId;
if(this.iscopy){//如果是复制赋值为0
this.msg.FrID = 0;
if(this.msg.vorcherInos.length>0){//如果是复制的话 收据ID 为0
this.msg.vorcherInos.forEach(x=>{
x.ID = 0
})
}
}
this.apipost('Financial_post_Set', this.msg, res => {
if (res.data.resultCode == 1) {
//清除旅客名单数据
......@@ -2136,6 +2146,9 @@
if (this.$route.query.Conditon) {
this.returnCode = this.$route.query.Conditon;
}
if(this.$route.query.iscopy){
this.iscopy = this.$route.query.iscopy//复制的值
}
// this.admin_get_DepartmentGetList();
......
......@@ -652,7 +652,8 @@
@click="AddFinancial(1)">{{$t('fnc.zancun')}}</button> -->
<q-btn color="primary" size="11px" :label="$t('fnc.zancun')" @click="AddFinancial(1)" style="marginRight:10px" v-if="GetDetail.Status==0||GetDetail.Status==3||msg.FrID==0"/>
<!-- <button class="normalBtn" @click="AddFinancial()">{{$t('fnc.tijiao')}}</button> -->
<q-btn color="primary" size="11px" :label="$t('fnc.tijiao')" @click="AddFinancial()" style="marginRight:10px"/>
<q-btn color="primary" size="11px" v-if="!iscopy" :label="$t('fnc.tijiao')" @click="AddFinancial()" style="marginRight:10px"/>
<q-btn color="primary" size="11px" v-if="iscopy" label="复制" @click="AddFinancial()" style="marginRight:10px"/>
<!-- <button class="hollowFixedBtn" @click="AuditOrRefund()">返回</button> -->
<q-btn text-color="primary" size="11px" label="返回" @click="AuditOrRefund()"/>
</div>
......@@ -856,7 +857,7 @@
Status: '-1'
},
costmode:true,
iscopy:false,//是否是复制
}
},
methods: {
......@@ -1349,6 +1350,14 @@
this.msg.PlatformAccountId = this.platformAccount;
this.loading = true;
this.msg.GuestId=this.$route.query.GuestId
if(this.iscopy){//如果是复制赋值为0
this.msg.FrID = 0;
if(this.msg.vorcherInos.length>0){//如果是复制的话 收据ID 为0
this.msg.vorcherInos.forEach(x=>{
x.ID = 0
})
}
}
this.apipost('Financial_post_Set', this.msg, res => {
if (res.data.resultCode == 1) {
this.$confirm(this.$t('tips.czcgsfjxzhidan'), this.$t('tips.tips'), {
......@@ -1900,6 +1909,10 @@
this.returnCode = this.$route.query.Conditon;
}
this.BankAccount_post_GetAccountType();
if(this.$route.query.iscopy){
this.iscopy = this.$route.query.iscopy//复制的值
}
},
components: {
"my-FlowChartModule": myFlowChartModule,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment