|
@@ -301,7 +301,7 @@
|
|
|
|
|
|
<!--tabs 组件引入 -->
|
|
|
<a-card :bordered="false" style=" marginTop:10px;">
|
|
|
- <div><tabs ref="unitTabs" :showSelect='showSelect' @number="number" :planNum="this.detailsPlanNum.planNum"/></div>
|
|
|
+ <div><tabs ref="unitTabs" :showSelect='showSelect' @number="number" :planNum="this.detailsPlanNum.planNum" @FabInQua="FabInQua"/></div>
|
|
|
</a-card>
|
|
|
|
|
|
<!-- 事故单 -->
|
|
@@ -409,6 +409,7 @@ export default {
|
|
|
planNum: ''
|
|
|
}, // 详情所有数据
|
|
|
remarks: '', // 备注
|
|
|
+ copyFabriccostIncludestax:'',//保存查询获取得面料成本(¥)
|
|
|
|
|
|
// 事故单 表头
|
|
|
accidentListColumns: [
|
|
@@ -544,6 +545,7 @@ export default {
|
|
|
this.PrintButton = false
|
|
|
this.loading = false
|
|
|
this.detailsPlanNum = res.result //所有详情
|
|
|
+ this.copyFabriccostIncludestax = res.result.fabriccostIncludestax
|
|
|
if(data=='queryNew'){
|
|
|
this.detailsPlanNum.memo = Staging
|
|
|
this.detailsPlanNum.remarks = StagingLast
|
|
@@ -585,11 +587,16 @@ export default {
|
|
|
// 页面打开加载的数据
|
|
|
var oneData = this.$refs.unitTabs.tabsAllData[0]
|
|
|
this.$refs.unitTabs.fabData = oneData.syCostAllocationFabricList
|
|
|
+ var all = 0
|
|
|
this.$refs.unitTabs.fabData.map(item=>{
|
|
|
if(item.remainingQuantitycost!=='' && item.remainingQuantitycost){
|
|
|
item.remainingQuantitycost = item.remainingQuantitycost.toFixed(2)
|
|
|
}
|
|
|
+ if(item.transferCost&&item.transferCost!==''){
|
|
|
+ all+=Number(item.transferCost)
|
|
|
+ }
|
|
|
})
|
|
|
+ this.detailsPlanNum.fabriccostIncludestax=( this.detailsPlanNum.fabriccostIncludestax==''|| !this.detailsPlanNum.fabriccostIncludestax||this.detailsPlanNum.fabriccostIncludestax=='0')?all.toFixed(2):Number( this.detailsPlanNum.fabriccostIncludestax).toFixed(2)//面料含税成本
|
|
|
this.$refs.unitTabs.ingData = oneData.syCostAllocationIngredientList
|
|
|
this.$refs.unitTabs.shipData = oneData.syCostAllocationShipdetail
|
|
|
this.detailsPlanNum.outdata = oneData.syCostAllocationShipdetail.length!==0?oneData.syCostAllocationShipdetail[0].outdata:''
|
|
@@ -710,7 +717,6 @@ export default {
|
|
|
this.detailsPlanNum.usdExpense=( this.detailsPlanNum.usdExpense==''|| !this.detailsPlanNum.usdExpense)?0:Number( this.detailsPlanNum.usdExpense).toFixed(2)//美元费用支出
|
|
|
this.detailsPlanNum.usdProcesscost=( this.detailsPlanNum.usdProcesscost==''|| !this.detailsPlanNum.usdProcesscost)?'':Number( this.detailsPlanNum.usdProcesscost).toFixed(2)//加工费(人民币)
|
|
|
this.detailsPlanNum.accidentUsdamount=( this.detailsPlanNum.accidentUsdamount==''|| !this.detailsPlanNum.accidentUsdamount)?0:Number( this.detailsPlanNum.accidentUsdamount).toFixed(2)//事故单美元金额
|
|
|
- this.detailsPlanNum.fabriccostIncludestax=( this.detailsPlanNum.fabriccostIncludestax==''|| !this.detailsPlanNum.fabriccostIncludestax)?0:Number( this.detailsPlanNum.fabriccostIncludestax).toFixed(2)//面料含税成本
|
|
|
this.detailsPlanNum.excipiencostIncludestax=( this.detailsPlanNum.excipiencostIncludestax==''|| !this.detailsPlanNum.excipiencostIncludestax)?0:Number( this.detailsPlanNum.excipiencostIncludestax).toFixed(2)//辅料含税成本
|
|
|
this.detailsPlanNum.salesordersLocaltotal=( this.detailsPlanNum.salesordersLocaltotal==''|| !this.detailsPlanNum.salesordersLocaltotal)?0:Number( this.detailsPlanNum.salesordersLocaltotal).toFixed(2)//销售本币金额
|
|
|
this.detailsPlanNum.accidentcnyAmount=( this.detailsPlanNum.accidentcnyAmount==''|| !this.detailsPlanNum.accidentcnyAmount)?0:Number( this.detailsPlanNum.accidentcnyAmount).toFixed(2)//事故单人民币金额
|
|
@@ -866,7 +872,6 @@ export default {
|
|
|
this.detailsPlanNum.shuiemoney = shuiemoneyAll.toFixed(3)
|
|
|
this.detailsPlanNum.rmbNorTaxExpense = obj.disbursedLocalmoney.toFixed(2)
|
|
|
this.detailsPlanNum.rmbExpense = obj.iNatMoney.toFixed(2)
|
|
|
- debugger
|
|
|
},
|
|
|
daYin(){
|
|
|
this.showSelect = 1
|
|
@@ -996,6 +1001,12 @@ export default {
|
|
|
this.detailsPlanNum.fabriccostNotincludestax = data1
|
|
|
// this.detailsPlanNum.excipiencostNotincludestax = data2
|
|
|
},
|
|
|
+ FabInQua(data){
|
|
|
+ if(this.copyFabriccostIncludestax!== this.detailsPlanNum.fabriccostIncludestax){
|
|
|
+ this.detailsPlanNum.fabriccostIncludestax=data.toFixed(2)//面料含税成本
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
|
|
|
// father 方法
|
|
|
aa() {},
|