6/4 优化查询发票确认时间

演示数据2.0
wangwei 10 months ago
parent 804239fc38
commit 24ea0f3e54

@ -169,7 +169,7 @@
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select
v-model="filterQuery[item.columnName]"
v-model="map[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
@ -198,6 +198,7 @@
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="filterQuery[item.columnName]"
@ -208,6 +209,18 @@
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePickera' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
:picker-options="pickerOptions"
v-model="confirmDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
@ -443,7 +456,8 @@ export default {
fromCorp: null,
keyWords: null,
inoutPrintStatus: null,
confirmStarTime:null, //
confirmEndTime:null,
},
printMap: {
@ -464,9 +478,13 @@ export default {
orderSelection: [],
showSup: false,
customerId: this.$store.getters.customerId,
map:{
"actDateRange" : this.actDateRange,
"confirmDateRange" : this.confirmDateRange,
},
actDateRange: [],
confirmDateRange:[],
actionType: null,
auditDateRange: [],
pickerOptions: {
shortcuts: [
@ -535,6 +553,13 @@ export default {
this.filterQuery.startAduditTime = null;
this.filterQuery.endAduditTime = null;
}
if (this.confirmDateRange!== null) {
this.filterQuery.confirmStarTime = this.confirmDateRange[0];
this.filterQuery.confirmEndTime = this.confirmDateRange[1];
} else {
this.filterQuery.confirmStarTime = null;
this.filterQuery.confirmEndTime = null;
}
this.filterQuery.page = 1;
this.getList();
@ -626,6 +651,8 @@ export default {
let printParams = {
startAduditTime :this.filterQuery.startAduditTime,
endAduditTime: this.filterQuery.endAduditTime,
confirmStarTime : this.filterQuery.confirmStarTime ,
confirmEndTime : this.filterQuery.confirmEndTime ,
employeeName: this.$store.getters.user.employeeName,
locInvName:this.$store.getters.locInvName,
templateId: res.data,
@ -689,6 +716,13 @@ export default {
printParams.startAduditTime = null;
printParams.endAduditTime = null;
}
if (this.confirmDateRange!== null) {
printParams.confirmStarTime = this.confirmDateRange[0];
printParams.confirmEndTime = this.confirmDateRange[1];
} else {
printParams.confirmStarTime = null;
printParams.confirmEndTime = null;
}
printOrder(printParams).then((response) => {
//pdfurl
const binaryData = [];
@ -777,6 +811,13 @@ export default {
printParams.startAduditTime = null;
printParams.endAduditTime = null;
}
if (this.confirmDateRange!== null) {
printParams.confirmStarTime = this.confirmDateRange[0];
printParams.confirmEndTime = this.confirmDateRange[1];
} else {
printParams.confirmStarTime = null;
printParams.confirmEndTime = null;
}
excelInoutImport(printParams).then((response) => {
let blob = new Blob([response], {type: "application/vnd.ms-excel"});
let url = window.URL.createObjectURL(blob); // urlblob

Loading…
Cancel
Save