采购销售加业务日期

product
bawei 1 year ago
parent 916ca4bb1d
commit 74b95db9df

@ -123,6 +123,10 @@ public class ContractFileCrForm {
@JsonProperty("approval")
private String approval;
/** 保证金 **/
@JsonProperty("bond")
private String bond;
/** 子表数据 **/
@JsonProperty("contract_item0List")
private List<Contract_item0Model> contract_item0List;

@ -42,7 +42,8 @@ public class ContractFileModel {
private String status;
@Excel(name = "集团审批")
private String approval;
@Excel(name = "保证金")
private String bond;
private List<ContractFileModel> list;
private String creatorTime;
private String code;

@ -405,6 +405,7 @@ public class ContractFileServiceImpl extends ServiceImpl<ContractFileMapper, Con
dataRowMap.put("creatorusername", model.getCreatorusername());
dataRowMap.put("status", model.getStatus());
dataRowMap.put("approval", model.getApproval());
dataRowMap.put("bond", model.getBond());
dataRow.add(dataRowMap);
}
}

@ -23,6 +23,7 @@ public class PurchaseorderPagination extends Pagination {
private String purchaseName;
private String supplierName;
private List<String> creatorTime;
private List<String> businessDate;
private String status;
private Date startDate;
private Date endDate;

@ -1398,8 +1398,9 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
}
}
if (StringUtil.isNotEmpty(purchaseorderPagination.getCreatorTime())) {
List<String> PoundDateList = purchaseorderPagination.getCreatorTime();
//查询日期 修改为业务日期2023/7/11
if (StringUtil.isNotEmpty(purchaseorderPagination.getBusinessDate())) {
List<String> PoundDateList = purchaseorderPagination.getBusinessDate();
Long fir = Long.valueOf(PoundDateList.get(0));
Long sec = Long.valueOf(PoundDateList.get(1));
purchaseorderPagination.setStartDate(new Date(fir));

@ -34,6 +34,7 @@ public class SaleorderitemPagination extends Pagination {
private Date endDate;
private List<String> creatorTime;
private List<String> businessDate;
/**
*

@ -232,8 +232,9 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
if(AllIdList.size()>0){
saleorderitemQueryWrapper.lambda().in(SaleorderitemEntity::getId, AllIdList);
}
if (StringUtil.isNotEmpty(saleorderitemPagination.getCreatorTime())) {
List<String> PoundDateList = saleorderitemPagination.getCreatorTime();
//修改为业务日期7.11
if (StringUtil.isNotEmpty(saleorderitemPagination.getBusinessDate())) {
List<String> PoundDateList = saleorderitemPagination.getBusinessDate();
Long fir = Long.valueOf(PoundDateList.get(0));
Long sec = Long.valueOf(PoundDateList.get(1));
saleorderitemPagination.setStartDate(new Date(fir));

@ -351,7 +351,7 @@
AND (c.contract_name LIKE CONCAT('%',#{purchaseorderPagination.keyword},'%') OR b.supplier_name LIKE CONCAT('%',#{purchaseorderPagination.keyword},'%'))
</if>
<if test="purchaseorderPagination.startDate != null and purchaseorderPagination.endDate != null">
AND a.creator_time &gt; #{purchaseorderPagination.startDate} AND a.creator_time &lt;= #{purchaseorderPagination.endDate}
AND a.business_date &gt; #{purchaseorderPagination.startDate} AND a.business_date &lt;= #{purchaseorderPagination.endDate}
</if>
<choose>

@ -34,7 +34,7 @@
and a.creator_user_name LIKE CONCAT('%',#{saleorderitemPagination.creatorUserName},'%')
</if>
<if test="saleorderitemPagination.startDate != null and saleorderitemPagination.endDate != null">
and a.creator_time &gt; #{saleorderitemPagination.startDate} AND a.creator_time &lt;= #{saleorderitemPagination.endDate}
and a.business_date &gt; #{saleorderitemPagination.startDate} AND a.business_date &lt;= #{saleorderitemPagination.endDate}
</if>
<if test="saleorderitemPagination.sidx != null and saleorderitemPagination.sidx != ''">
ORDER BY ${saleorderitemPagination.sidx} ${saleorderitemPagination.sort}

@ -109,6 +109,11 @@
<el-input v-model="scope.row.approval" />
</template>
</el-table-column>
<el-table-column prop="bond" label="保证金" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.bond" />
</template>
</el-table-column>
<el-table-column label="操作" width="50">
<template slot-scope="scope">
@ -156,6 +161,7 @@
<el-table-column prop="creatorusername" label="录入人" width="120" />
<el-table-column prop="status" label="单据状态" width="150" />
<el-table-column prop="approval" label="集团审批" width="100" />
<el-table-column prop="bond" label="保证金" width="100" />
</JNPF-table>
</div>
</div>

@ -59,10 +59,23 @@
></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="6">-->
<!-- <el-form-item label="制单日期">-->
<!-- <el-date-picker-->
<!-- v-model="query.creatorTime"-->
<!-- type="daterange"-->
<!-- value-format="timestamp"-->
<!-- format="yyyy-MM-dd"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期"-->
<!-- >-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="6">
<el-form-item label="制单日期">
<el-form-item label="业务日期">
<el-date-picker
v-model="query.creatorTime"
v-model="query.businessDate"
type="daterange"
value-format="timestamp"
format="yyyy-MM-dd"
@ -802,6 +815,7 @@
res.data.list[i].creatorTime = res.data.list[i].creatorTime
? res.data.list[i].creatorTime.substring(0, 10)
: "";
let _data = res.data.list[i];
_list.push(_data);
}

@ -76,10 +76,23 @@
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="6">-->
<!-- <el-form-item label="制单日期">-->
<!-- <el-date-picker-->
<!-- v-model="query.creatorTime"-->
<!-- type="daterange"-->
<!-- value-format="timestamp"-->
<!-- format="yyyy-MM-dd"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期"-->
<!-- >-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="6">
<el-form-item label="制单日期">
<el-form-item label="业务日期">
<el-date-picker
v-model="query.creatorTime"
v-model="query.businessDate"
type="daterange"
value-format="timestamp"
format="yyyy-MM-dd"

Loading…
Cancel
Save