Commit 4de35dd8 authored by youjie's avatar youjie

no message

parent 95b97307
......@@ -142,7 +142,7 @@
let opContents = x.querySelectorAll(".query-box ul li");
if (opContents && opContents.length > 0) {
this.navWidth = document.querySelector(".flexParent").offsetWidth - opContents[opContents
.length - 1].offsetWidth - 50
.length - 1].offsetWidth - 160
} else {
this.navWidth = document.querySelector(".flexParent").offsetWidth - 20;
}
......
......@@ -233,8 +233,10 @@
</tr>
</table>
<p class="sfd_tit clearfix">付款单
<!-- <input type="button" v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" value="预付款冲抵" class="normalBtn" @click="OpenOrder2(2,'Offset')"> -->
<input type="button" v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" value="增加签证财务单据" class="normalBtn" @click="OpenOrder(2)">
<input type="button" v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" value="增加保险财务单据" class="normalBtn" @click="OpenOrder2(2)"></p>
<input type="button" v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" value="增加保险财务单据" class="normalBtn" @click="OpenOrder2(2)">
</p>
<table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable">
<tr>
<th width="100">单号</th>
......@@ -363,12 +365,20 @@
<el-button size="mini" style="background:#E95252;color:#fff;border:none" @click="addFinancialOrder">确 定</el-button>
</span>
</el-dialog>
<!-- 预付款冲抵 -->
<offset :isShow="cdState" :obj="queryObj" @close="cdState=false"
@success="cdState=false,dialogVisible=false"></offset>
</div>
</template>
<script>
import offset from '../public/offset.vue';
export default {
components: { offset },
data() {
return {
Offset:null,
queryObj:null,
cdState: false,
qjGroupId:-1,
F_Finance_Create:false,//制单权限
userInfo:{},
......@@ -514,7 +524,12 @@ export default {
}
}, null)
},
OpenOrder2(num){
OpenOrder2(num,Offset){
if(Offset){
this.Offset = Offset
}else{
this.Offset = null
}
this.checkd=false;
this.checkList=[];
this.checkListAll=[];
......@@ -579,30 +594,54 @@ export default {
SourceID: 0,
TCIDList: TCIDARR
}
if (this.type === 1) {
this.$router.push({
name: 'ChoiceAddFinancialDocuments',
query:{
"Type": 1,
"companyID": this.OutBranchId,
"path": "",
'blank': 'y',
'orderObj': JSON.stringify(orderObj)
}
});
// if (this.type === 1) {
// this.$router.push({
// name: 'ChoiceAddFinancialDocuments',
// query:{
// "Type": 1,
// "companyID": this.OutBranchId,
// "path": "",
// 'blank': 'y',
// 'orderObj': JSON.stringify(orderObj)
// }
// });
// this.dialogVisible=false;
// } else if (this.type === 2) {
// this.$router.push({
// name: 'ChoiceAddFinancialDocuments',
// query:{
// "Type": 2,
// "companyID": this.OutBranchId,
// "path": "",
// 'blank': 'y',
// 'orderObj': JSON.stringify(orderObj)
// }
// });
// }
if(!this.Offset){
this.dialogVisible=false;
} else if (this.type === 2) {
this.$router.push({
name: 'ChoiceAddFinancialDocuments',
query:{
"Type": 2,
"Type": this.type,
"companyID": this.OutBranchId,
"path": "",
'blank': 'y',
'orderObj': JSON.stringify(orderObj)
}
});
this.dialogVisible=false;
}else{
let query = {};
query = {
path: 'SaleOrderModule',
companyID: this.OutBranchId,
visaType: true,
blank: 'y',
orderObj: JSON.stringify(orderObj),
Type: this.type,
}
this.queryObj = query
this.cdState = true
}
},
......
......@@ -153,8 +153,9 @@
this.queryObj.orderObj = JSON.stringify(this.tradeObj)
}
let query = this.queryObj
this.$emit('success')
this.close()
this.$store.commit("ChoiceAddFinancialDocuments");
// this.$store.commit("ChoiceAddFinancialDocuments");
this.$router.push({
path: "/ChoiceAddFinancialDocuments",
query
......
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