Commit 956231dc authored by 黄媛媛's avatar 黄媛媛

财务单据

parent f42718eb
......@@ -321,7 +321,7 @@
<el-input v-model="da.UnitPrice" type="text" @keyup.native="checkPrice(da,'UnitPrice',true)" @blur="addList(2,daIn+1)" @change="Calculation(2,daIn+1)" class="w80 h34 _border_b_1"></el-input>
</td>
<td height="26px">
<el-select filterable v-model='da.CurrencyId' :placeholder="$t('rule.qxzbzhong')" @change="getRate(da.CostTypeId,da.CurrencyId,2,daIn),addList(2,daIn+1)" class=" _border_b_1">
<el-select filterable :disabled="detailCurrDis" v-model='da.CurrencyId' :placeholder="$t('rule.qxzbzhong')" @change="getRate(da.CostTypeId,da.CurrencyId,2,daIn),addList(2,daIn+1)" class=" _border_b_1">
<el-option v-for='item in coinGetList'
:label='item.Name'
:value='item.ID'
......@@ -360,7 +360,7 @@
<el-input v-model="detailList.UnitPrice" type="text" @keyup.native="checkPrice(detailList,'UnitPrice',true)" @blur="addList(1)" @change="Calculation(1)" class="w80 h34 _border_b_1"></el-input>
</td>
<td>
<el-select filterable :disabled="detailCurrDis" v-model='detailList.CurrencyId' :placeholder="$t('rule.qxzbzhong')" @change="getRate(detailList.CostTypeId,detailList.CurrencyId,1),addList(1)" class=" _border_b_1">
<el-select filterable v-model='detailList.CurrencyId' :placeholder="$t('rule.qxzbzhong')" @change="getRate(detailList.CostTypeId,detailList.CurrencyId,1),addList(1)" class=" _border_b_1">
<el-option v-for='item in coinGetList'
:label='item.Name'
:value='item.ID'
......@@ -832,10 +832,10 @@ export default {
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,1})/g)[0]) || null
},
AddFinancial(z){ //保存
if(this.orderObj&&this.orderObj.CurrencyId){
this.msg.detailList=[];
this.msg.detailList.push(this.detailList);
}
// if(this.orderObj&&this.orderObj.CurrencyId){
// this.msg.detailList=[];
// this.msg.detailList.push(this.detailList);
// }
if(z){
this.msg.Status = 0;
......@@ -1037,7 +1037,6 @@ export default {
})
},
getRate(cID,i,t,index){ // 根据选择币种获取汇率
this.coinGetList.forEach(x=>{
if(x.ID==i){
if(t==1){
......@@ -1050,7 +1049,6 @@ export default {
this.$forceUpdate();
}
})
console.log("this.coinGetList",this.coinGetList)
console.log("this.detailList.Rate",this.detailList.Rate)
this.Calculation(t,index+1)
},
......@@ -1149,7 +1147,6 @@ export default {
this.apipost('Financial_post_GetCostTypeList',{ID:id}, res => {
if(res.data.resultCode == 1) {
this.GetCostTypeList = res.data.data;
console.log(this.GetCostTypeList,'type');
if(type){
this.msg.detailList.forEach(x=>{
this.GetCostTypeList.forEach(y=>{
......@@ -1169,6 +1166,7 @@ export default {
this.apipost('financeinfo_post_GetList',{Name:'', TCID: TCID}, res => {
if(res.data.resultCode == 1) {
this.coinGetList = res.data.data;
console.log("this.coinGetList 522555",this.coinGetList )
}
}, err => {})
},
......@@ -1182,9 +1180,9 @@ export default {
// })
// TCID.split(0,TCID.length-1)
this.apipost('Financial_post_Get',{ID:id,TempId:tempId,TCIDList:(this.orderObj&&this.orderObj.TCIDList)?this.orderObj.TCIDList:[]}, res => {
// console.log(this.orderObj.TCIDList)
if(res.data.resultCode == 1) {
console.log("res.data",res.data)
// console.log("res.data",res.data)
let data= res.data.data;
this.editTemplateId=data.TemplateId;
this.getCompany();
......@@ -1245,6 +1243,7 @@ export default {
this.msg.OrderID = this.orderObj.OrderID?this.orderObj.OrderID:0;
this.OrderSource = this.msg.OrderSource = this.orderObj.OrderSource?this.orderObj.OrderSource:0;
this.msg.TCID = this.orderObj.TCID?this.orderObj.TCID:0;
this.financeinfo_post_GetList(this.msg.TCID);
this.msg.TCIDList = this.orderObj.TCIDList?this.orderObj.TCIDList:[];
this.msg.Obj = this.orderObj.Obj?this.orderObj.Obj:'';
this.msg.SourceID = this.orderObj.SourceID?this.orderObj.SourceID:0;
......@@ -1260,6 +1259,7 @@ export default {
this.detailCurrDis=true;
this.detailList.CostTypeId=this.orderObj.CostType?this.orderObj.CostType: '';
this.getRate(this.detailList.CostTypeId,this.detailList.CurrencyId,1)
this.addList(1);
}
......@@ -1365,7 +1365,6 @@ export default {
this.companyList = data;
}
}
console.log('this.companyList', this.companyList)
}, err => {})
}
......
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