|
@@ -537,7 +537,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.fabricCost = this.detailsPlanNum.fabriccostIncludestax
|
|
|
- this.detailsPlanNum.fabriccostIncludestax = (all+Number(this.detailsPlanNum.fabriccostIncludestax)-allYu).toFixed(2) // 表头面料成本(¥)
|
|
|
+ // this.detailsPlanNum.fabriccostIncludestax = (all+Number(this.detailsPlanNum.fabriccostIncludestax)-allYu).toFixed(2) // 表头面料成本(¥)
|
|
|
this.detailsPlanNum.fabriccostIncludestaxUsd = (Number(this.detailsPlanNum.fabriccostIncludestax)/1.13/this.detailsPlanNum.exchangeRate).toFixed(2)//表头面料成本($)
|
|
|
this.detailsPlanNum.fabriccostNotincludestax = (Number(this.detailsPlanNum.fabriccostIncludestax)/(1+(Number(this.detailsPlanNum.taxrate)/100))).toFixed(2)//表头-面料不含税成本(¥)
|
|
|
this.$refs.unitTabs.ingData = oneData.syCostAllocationIngredientList //辅料sheet数据源
|
|
@@ -670,12 +670,30 @@ export default {
|
|
|
if(data.fileList.length>this.fileList.length&&data.file.status=='uploading'){
|
|
|
var that =this
|
|
|
setTimeout(()=>{
|
|
|
- that.onSearch('query')
|
|
|
+ that.getFileLIst()
|
|
|
},1000)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
+ },
|
|
|
+ getFileLIst(){
|
|
|
+ seachPlanNum({ plannum: this.detailsPlanNum.planNum, type: 'query' }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ var fileList = (res.result.attachs!==''&&res.result.attachs)?res.result.attachs.split(","):[]
|
|
|
+ this.fileList = []
|
|
|
+ if(fileList.length!==0){
|
|
|
+ fileList.map(item=>{
|
|
|
+ this.fileList.push({
|
|
|
+ uid: '-1',
|
|
|
+ name: item,
|
|
|
+ status: 'done',
|
|
|
+ url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+item
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
removeFile(data){
|
|
|
deleteFileDetail({code:this.detailsPlanNum.planNum,name:data.name}).then(res => {
|