Browse Source

2026-06-05

工单数据汇总页面增加报工日期条件
master
fengyuan_yang 1 week ago
parent
commit
24fe4fe3f6
  1. 51
      src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderAlloc.vue

51
src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderAlloc.vue

@ -49,7 +49,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="生产订单号"> <el-form-item label="生产订单号">
<el-input v-model="searchData.orderNo" placeholder="请输入订单号" clearable></el-input>
<el-input v-model="searchData.orderNo" placeholder="请输入订单号" clearable @input="handleOrderNoChange"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
@ -87,6 +87,7 @@
v-model="searchData.date1" v-model="searchData.date1"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@change="handleEnterDateChange"
placeholder="开始日期" placeholder="开始日期"
style="width: 45%"> style="width: 45%">
</el-date-picker> </el-date-picker>
@ -95,6 +96,7 @@
v-model="searchData.date2" v-model="searchData.date2"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@change="handleEnterDateChange"
placeholder="结束日期" placeholder="结束日期"
style="width: 45%"> style="width: 45%">
</el-date-picker> </el-date-picker>
@ -119,6 +121,27 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="报工日期">
<el-date-picker
v-model="searchData.reportDate1"
type="date"
value-format="yyyy-MM-dd"
placeholder="开始日期"
@change="handleReportDateChange"
style="width: 45%">
</el-date-picker>
<span style="margin: 0 6px; color: #DCDFE6;">~</span>
<el-date-picker
v-model="searchData.reportDate2"
type="date"
value-format="yyyy-MM-dd"
placeholder="结束日期"
@change="handleReportDateChange"
style="width: 45%">
</el-date-picker>
</el-form-item>
</el-col>
</el-row> </el-row>
</template> </template>
@ -339,6 +362,8 @@ export default {
partDescription: '', partDescription: '',
orderNo: '', orderNo: '',
status: '', status: '',
reportDate1: '',
reportDate2: '',
date1: '', date1: '',
date2: '', date2: '',
date3: '', date3: '',
@ -464,6 +489,28 @@ export default {
this.searchData.date1 = formatDate(firstDay); this.searchData.date1 = formatDate(firstDay);
this.searchData.date2 = formatDate(lastDay); this.searchData.date2 = formatDate(lastDay);
}, },
//
handleReportDateChange() {
if (this.searchData.reportDate1 || this.searchData.reportDate2) {
this.searchData.orderNo = '';
this.searchData.date1 = '';
this.searchData.date2 = '';
}
},
//
handleOrderNoChange(val) {
if (val) {
this.searchData.reportDate1 = '';
this.searchData.reportDate2 = '';
}
},
//
handleEnterDateChange() {
if (this.searchData.date1 || this.searchData.date2) {
this.searchData.reportDate1 = '';
this.searchData.reportDate2 = '';
}
},
// //
calculateTableHeight() { calculateTableHeight() {
this.$nextTick(() => { this.$nextTick(() => {
@ -487,6 +534,8 @@ export default {
partDescription: '', partDescription: '',
orderNo: '', orderNo: '',
status: '', status: '',
reportDate1: '',
reportDate2: '',
date1: '', date1: '',
date2: '', date2: '',
date3: '', date3: '',

Loading…
Cancel
Save