|
@@ -124,27 +124,27 @@
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="日期">
|
|
|
|
|
|
+ <!-- <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"
|
|
style="color: #8890b1" />
|
|
style="color: #8890b1" />
|
|
</ws-select>
|
|
</ws-select>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
<el-table-column v-if='deptBudgetList.purpose=="库点费用"' prop="date" label="日期">
|
|
<el-table-column v-if='deptBudgetList.purpose=="库点费用"' prop="date" label="日期">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-date-picker @change="((value)=>{receiptDocDatechange(value, scope.$index)})" v-model="scope.row.receiptDocDate" type="date" placeholder="请选择日期"
|
|
<el-date-picker @change="((value)=>{receiptDocDatechange(value, scope.$index)})" v-model="scope.row.receiptDocDate" type="date" placeholder="请选择日期"
|
|
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="date" label="日期">
|
|
|
|
|
|
+ <el-table-column v-if='deptBudgetList.expensesPurpose==1||deptBudgetList.expensesPurpose==2' prop="date" label="日期">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-date-picker @change="((value)=>{receiptDocDatechange1(value, scope.$index)})" v-model="scope.row.receiptDocDate" type="date" placeholder="请选择日期"
|
|
<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>
|
|
value-format="yyyy-MM-dd" ></el-date-picker>
|
|
</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.purpose=="库点费用"||deptBudgetList.expensesPurpose==2||deptBudgetList.expensesPurpose==1' 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)})">
|
|
@@ -672,16 +672,18 @@ weight: 4000}]],
|
|
}
|
|
}
|
|
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){
|
|
}else if(this.deptBudgetList.expensesPurpose==1){
|
|
- const data = await getwarehousingorder({contractNo:this.deptBudgetList.contractNo,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
|
|
|
|
- this.datelist[i]=[]
|
|
|
|
|
|
+ const data = await getwarehousingorder({contractNo:this.deptBudgetList.contractNo,warehouseName:this.feeDetailsDistributions[i].warehouseName,receiptDocDate:this.feeDetailsDistributions[i].receiptDocDate}).toPromise()
|
|
|
|
+ this.goodsourcelist[i]=[]
|
|
for (let q = 0; q < data.length; q++) {
|
|
for (let q = 0; q < data.length; q++) {
|
|
data[i].issuingDate=data[i].issuingTime.split(' ')[0]
|
|
data[i].issuingDate=data[i].issuingTime.split(' ')[0]
|
|
- arr.push({time:data[i].issuingDate,id:data[i].id,weight:data[i].inWarehouseWeight,goodsSource:data[i].goodsSource})
|
|
|
|
|
|
+ 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.datelist,i,JSON.parse(JSON.stringify(arr)))
|
|
|
|
|
|
+ this.$set(this.goodsourcelist,i,JSON.parse(JSON.stringify(arr)))
|
|
}else if(this.deptBudgetList.expensesPurpose==2){
|
|
}else if(this.deptBudgetList.expensesPurpose==2){
|
|
const data = await getwarehousingorder({receiptDocDate:this.feeDetailsDistributions[i].receiptDocDate,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
|
|
const data = await getwarehousingorder({receiptDocDate:this.feeDetailsDistributions[i].receiptDocDate,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
|
|
- this.datelist[i]=[]
|
|
|
|
|
|
+ this.goodsourcelist[i]=[]
|
|
for (let q = 0; q < data.length; q++) {
|
|
for (let q = 0; q < data.length; q++) {
|
|
arr.push({
|
|
arr.push({
|
|
goodsSource:data[q].goodsSource,
|
|
goodsSource:data[q].goodsSource,
|