|
|
@ -21,14 +21,14 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="月/周" >
|
|
|
|
<el-form-item label="日期范围" >
|
|
|
|
<el-select v-model="queryParams.month" clearable placeholder="请选择">
|
|
|
|
<el-select v-model="queryParams.month" clearable placeholder="请选择">
|
|
|
|
<el-option label="日" value="1"></el-option>
|
|
|
|
<el-option label="日" value="1"></el-option>
|
|
|
|
<el-option label="周" value="2"></el-option>
|
|
|
|
<el-option label="周" value="2"></el-option>
|
|
|
|
<el-option label="月" value="3"></el-option>
|
|
|
|
<el-option label="月" value="3"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="起止日期">
|
|
|
|
<el-form-item label="起止日期" v-if="yearShowFlag">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
|
style="width: 240px"
|
|
|
|
style="width: 240px"
|
|
|
@ -39,6 +39,13 @@
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
></el-date-picker>
|
|
|
|
></el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="年份" prop="year" v-if="!yearShowFlag">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
v-model="form.year"
|
|
|
|
|
|
|
|
type="year"
|
|
|
|
|
|
|
|
placeholder="选择年">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@ -129,6 +136,8 @@ export default {
|
|
|
|
isChart: true,
|
|
|
|
isChart: true,
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
|
|
|
|
//判断年份显示
|
|
|
|
|
|
|
|
yearShowFlag: true,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
// 非单个禁用
|
|
|
|
// 非单个禁用
|
|
|
@ -164,7 +173,8 @@ export default {
|
|
|
|
MATERIAL_CODE: null,
|
|
|
|
MATERIAL_CODE: null,
|
|
|
|
MATERIAL_NAME: null,
|
|
|
|
MATERIAL_NAME: null,
|
|
|
|
BEGIN_DATE: null,
|
|
|
|
BEGIN_DATE: null,
|
|
|
|
month:"1"
|
|
|
|
month: "1",
|
|
|
|
|
|
|
|
year: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
@ -183,6 +193,16 @@ export default {
|
|
|
|
findStationList: []
|
|
|
|
findStationList: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
|
|
|
|
'queryParams.month': function(newVal, oldVal) {
|
|
|
|
|
|
|
|
// 执行方法,可以在这里调用你的方法
|
|
|
|
|
|
|
|
if (newVal > 1){
|
|
|
|
|
|
|
|
this.yearShowFlag = false;
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.yearShowFlag = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
findProductLineList({productLineType: 1}).then(response => {
|
|
|
|
findProductLineList({productLineType: 1}).then(response => {
|
|
|
|
this.productLineList = response.data
|
|
|
|
this.productLineList = response.data
|
|
|
@ -200,14 +220,6 @@ export default {
|
|
|
|
this.getChart()
|
|
|
|
this.getChart()
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
|
|
|
|
'queryParams.PRODUCT_LINE_CODE': function (newVal, oldVal) {
|
|
|
|
|
|
|
|
// 执行方法,可以在这里调用你的方法
|
|
|
|
|
|
|
|
findProductLineList({parentId: this.queryParams.PRODUCT_LINE_CODE, stationType: 2}).then(response => {
|
|
|
|
|
|
|
|
this.findStationList = response.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getChart() {
|
|
|
|
getChart() {
|
|
|
|
|
|
|
|
|
|
|
|