|
@@ -95,7 +95,7 @@
|
|
<span v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>
|
|
<span v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>
|
|
</div>
|
|
</div>
|
|
<el-table ref="tableref" v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"&&mode!="暂不分配"||deptBudgetList.purpose=="库点费用"&&mode!="暂不分配"||deptBudgetList.expensesPurpose==2&&mode!="暂不分配"' :data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
|
|
<el-table ref="tableref" v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"&&mode!="暂不分配"||deptBudgetList.purpose=="库点费用"&&mode!="暂不分配"||deptBudgetList.expensesPurpose==2&&mode!="暂不分配"' :data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
|
|
- <el-table-column v-if='deptBudgetList.purpose=="合同费用"||deptBudgetList.expensesPurpose==2' prop="date" label="仓库名称" min-width="110">
|
|
|
|
|
|
+ <el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="仓库名称" min-width="110">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.$index)})">
|
|
<el-select v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.$index)})">
|
|
<el-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
|
|
<el-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
|
|
@@ -103,7 +103,15 @@
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column v-if='deptBudgetList.purpose=="合同费用"||deptBudgetList.expensesPurpose==2' prop="date" label="日期">
|
|
|
|
|
|
+ <el-table-column v-if='deptBudgetList.expensesPurpose==2' prop="date" label="仓库名称" min-width="110">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-select @change="((value)=>{receiptDocDatechange1(value, scope.$index)})" v-model="scope.row.warehouseName" placeholder="选择仓库">
|
|
|
|
+ <el-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
|
|
|
|
+ style="color: #8890b1" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="日期">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<ws-select v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row,scope.$index)})">
|
|
<ws-select v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row,scope.$index)})">
|
|
<ws-option v-for="item in datelist[scope.$index]" :key="item.time" :label="item.time+'/'+item.goodsSource" :value="item.time"
|
|
<ws-option v-for="item in datelist[scope.$index]" :key="item.time" :label="item.time+'/'+item.goodsSource" :value="item.time"
|
|
@@ -117,9 +125,13 @@
|
|
value-format="yyyy-MM-dd" ></el-date-picker>
|
|
value-format="yyyy-MM-dd" ></el-date-picker>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column v-if='deptBudgetList.expensesPurpose==2' prop="goodsSource" label="货源">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column v-if='deptBudgetList.purpose=="库点费用"' prop="date" label="货源">
|
|
|
|
|
|
+ <el-table-column v-if='deptBudgetList.expensesPurpose==2' prop="date" label="日期">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-date-picker @change="((value)=>{receiptDocDatechange1(value, scope.$index)})" v-model="scope.row.receiptDocDate" type="date" placeholder="请选择日期"
|
|
|
|
+ value-format="yyyy-MM-dd" ></el-date-picker>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column v-if='deptBudgetList.purpose=="库点费用"||deptBudgetList.expensesPurpose==2' prop="date" label="货源">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<!-- {{scope.row.goodsourcelist}} -->
|
|
<!-- {{scope.row.goodsourcelist}} -->
|
|
<el-select v-model="scope.row.orderId" placeholder="选择货源" @change="((value)=>{selectgoodsSource(value, scope.row,scope.$index)})">
|
|
<el-select v-model="scope.row.orderId" placeholder="选择货源" @change="((value)=>{selectgoodsSource(value, scope.row,scope.$index)})">
|
|
@@ -330,6 +342,22 @@ weight: 4000}]],
|
|
this.$set(this.goodsourcelist,index,JSON.parse(JSON.stringify(arr)))
|
|
this.$set(this.goodsourcelist,index,JSON.parse(JSON.stringify(arr)))
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ receiptDocDatechange1(e,index){
|
|
|
|
+ var arr=[]
|
|
|
|
+ this.goodsourcelist[index]=[]
|
|
|
|
+ if(this.feeDetailsDistributions[index].warehouseName&&this.feeDetailsDistributions[index].receiptDocDate){
|
|
|
|
+ getwarehousingorder({warehouseName:this.feeDetailsDistributions[index].warehouseName,receiptDocDate:this.feeDetailsDistributions[index].receiptDocDate}).toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
|
+ arr.push({goodsSource:response[i].goodsSource,id:response[i].id,weight:response[i].inWarehouseWeight,goodsName:response[i].goodsName,goodsNameKey:response[i].goodsNameKey})
|
|
|
|
+ }
|
|
|
|
+ this.feeDetailsDistributions[index].goodsSource=''
|
|
|
|
+ this.feeDetailsDistributions[index].weight=''
|
|
|
|
+ this.$set(this.goodsourcelist,index,JSON.parse(JSON.stringify(arr)))
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
selectcontent(e){
|
|
selectcontent(e){
|
|
|
|
|
|
},
|
|
},
|
|
@@ -394,6 +422,9 @@ weight: 4000}]],
|
|
this.deptBudgetList.costType=5
|
|
this.deptBudgetList.costType=5
|
|
this.deptBudgetList.expenseAllocationInfoList=[]
|
|
this.deptBudgetList.expenseAllocationInfoList=[]
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ if(this.deptBudgetList.expensesPurpose==2){
|
|
|
|
+ this.deptBudgetList.expenseAllocationInfoList=this.feeDetailsDistributions
|
|
}
|
|
}
|
|
if(this.deptBudgetList.expensesPurpose==1||this.deptBudgetList.expensesPurpose==2){
|
|
if(this.deptBudgetList.expensesPurpose==1||this.deptBudgetList.expensesPurpose==2){
|
|
var data=[]
|
|
var data=[]
|
|
@@ -502,6 +533,7 @@ weight: 4000}]],
|
|
}
|
|
}
|
|
this.deptBudgetList.addressUrl=this.paymentScreenshot.toString()
|
|
this.deptBudgetList.addressUrl=this.paymentScreenshot.toString()
|
|
this.deptBudgetList.flag=3
|
|
this.deptBudgetList.flag=3
|
|
|
|
+ console.log(this.deptBudgetList)
|
|
editexenseinfo(this.deptBudgetList).toPromise()
|
|
editexenseinfo(this.deptBudgetList).toPromise()
|
|
.then(response => {
|
|
.then(response => {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -626,7 +658,7 @@ weight: 4000}]],
|
|
id:data[q].id,weight:data[q].inWarehouseWeight,goodsName:data[q].goodsName,goodsNameKey:data[q].goodsNameKey})
|
|
id:data[q].id,weight:data[q].inWarehouseWeight,goodsName:data[q].goodsName,goodsNameKey:data[q].goodsNameKey})
|
|
}
|
|
}
|
|
this.$set(this.goodsourcelist,i,JSON.parse(JSON.stringify(arr)))
|
|
this.$set(this.goodsourcelist,i,JSON.parse(JSON.stringify(arr)))
|
|
- }else if(this.deptBudgetList.expensesPurpose==1||this.deptBudgetList.expensesPurpose==2){
|
|
|
|
|
|
+ }else if(this.deptBudgetList.expensesPurpose==1){
|
|
const data = await getwarehousingorder({contractNo:this.deptBudgetList.contractNo,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
|
|
const data = await getwarehousingorder({contractNo:this.deptBudgetList.contractNo,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
|
|
this.datelist[i]=[]
|
|
this.datelist[i]=[]
|
|
for (let q = 0; q < data.length; q++) {
|
|
for (let q = 0; q < data.length; q++) {
|
|
@@ -634,6 +666,15 @@ weight: 4000}]],
|
|
arr.push({time:data[i].issuingDate,id:data[i].id,weight:data[i].inWarehouseWeight,goodsSource:data[i].goodsSource})
|
|
arr.push({time:data[i].issuingDate,id:data[i].id,weight:data[i].inWarehouseWeight,goodsSource:data[i].goodsSource})
|
|
}
|
|
}
|
|
this.$set(this.datelist,i,JSON.parse(JSON.stringify(arr)))
|
|
this.$set(this.datelist,i,JSON.parse(JSON.stringify(arr)))
|
|
|
|
+ }else if(this.deptBudgetList.expensesPurpose==2){
|
|
|
|
+ const data = await getwarehousingorder({receiptDocDate:this.feeDetailsDistributions[i].receiptDocDate,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
|
|
|
|
+ this.datelist[i]=[]
|
|
|
|
+ for (let q = 0; q < data.length; q++) {
|
|
|
|
+ arr.push({
|
|
|
|
+ goodsSource:data[q].goodsSource,
|
|
|
|
+ id:data[q].id,weight:data[q].inWarehouseWeight,goodsName:data[q].goodsName,goodsNameKey:data[q].goodsNameKey})
|
|
|
|
+ }
|
|
|
|
+ this.$set(this.goodsourcelist,i,JSON.parse(JSON.stringify(arr)))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
console.log(this.goodsourcelist,this.datelist)
|
|
console.log(this.goodsourcelist,this.datelist)
|