2025修订内容更改
This commit is contained in:
+81
-2
@@ -3,6 +3,7 @@ import { getCodeCommon } from '../views/facilityManage/common'
|
||||
const mixin = {
|
||||
data() {
|
||||
return {
|
||||
showOption: false,
|
||||
/**
|
||||
* 字典表数据
|
||||
*/
|
||||
@@ -23,10 +24,69 @@ const mixin = {
|
||||
* vuex方法
|
||||
*/
|
||||
vuexFunc: '',
|
||||
vuexChangeFun: ''
|
||||
vuexChangeFun: '',
|
||||
|
||||
datePicker: false,
|
||||
currentDate: new Date(),
|
||||
maxDate: new Date(),
|
||||
equipTypeOption: {
|
||||
'01':[
|
||||
{value: "0101", text: "螺杆式空压机"},
|
||||
{value: "0102", text: "活塞式空压机"},
|
||||
{value: "0103", text: "离心式空压机"},
|
||||
{value: "0104", text: "涡旋式空压机"},
|
||||
{value: "0105", text: "滑片式空压机"},
|
||||
{value: "0106", text: "无油空压机"},
|
||||
],
|
||||
'02':[
|
||||
{value: "0201", text: "离心泵"},
|
||||
{value: "0202", text: "轴流泵"},
|
||||
{value: "0203", text: "混流泵"},
|
||||
{value: "0204", text: "往复泵"},
|
||||
{value: "0205", text: "旋转泵"},
|
||||
{value: "0206", text: "喷射泵"},
|
||||
{value: "0207", text: "空气提升泵"},
|
||||
],
|
||||
'03':[
|
||||
{value: "0301", text: "离心式风机"},
|
||||
{value: "0302", text: "轴流式风机"},
|
||||
{value: "0303", text: "混流式(斜流式)风机"},
|
||||
{value: "0304", text: "横流式(贯流式)风机"},
|
||||
{value: "0305", text: "罗茨风机(容积式)"},
|
||||
]
|
||||
},
|
||||
equipEfficiencyOption: [
|
||||
{ value: '01', text: '一级能效'},
|
||||
{ value: '02', text: '二级能效'},
|
||||
{ value: '03', text: '三级能效'},
|
||||
{ value: '04', text: '四级能效'},
|
||||
{ value: '05', text: '五级能效'},
|
||||
],
|
||||
element: '',
|
||||
columnsList: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 企业公用弹窗
|
||||
handelClickOptionShow(name, key){
|
||||
this.element = name
|
||||
if(key){
|
||||
this.columnsList = this[name+'Option'][key]
|
||||
}else{
|
||||
this.columnsList = this[name+'Option']
|
||||
}
|
||||
this.showOption = true
|
||||
},
|
||||
onConfirmOption(data){
|
||||
if(this.$route.params&&this.$route.params.type=='3'){
|
||||
this.$set(this.form1, this.element, data.value)
|
||||
this.form1[this.element+'Name'] = data.text
|
||||
}else{
|
||||
this.form[this.element] = data.value
|
||||
this.form[this.element+'Name'] = data.text
|
||||
}
|
||||
this.showOption = false
|
||||
},
|
||||
//通用的弹框获取数据
|
||||
async handelClickHeatingShow(type, id, feildName, feild, title) {
|
||||
this.show = !this.showForm
|
||||
@@ -153,7 +213,26 @@ const mixin = {
|
||||
//控制年份取消
|
||||
onCancelYear() {
|
||||
this.yearShow = false
|
||||
}
|
||||
},
|
||||
|
||||
// 日期选择赋值
|
||||
onConfirmDate(val) {
|
||||
var date2 = new Date(val);
|
||||
var y = date2.getFullYear();
|
||||
var m = date2.getMonth() + 1;
|
||||
m = m < 10 ? "0" + m : m;
|
||||
var d = date2.getDate();
|
||||
d = d < 10 ? "0" + d : d;
|
||||
this.form.produceDate = y + "-" + m + "-" + d;
|
||||
console.log(this.form.produceDate);
|
||||
if(this.$route.query&&this.$route.query.id=='heating'){
|
||||
this.$store.commit('search/SET_HEAT_YEAR', this.form)
|
||||
}
|
||||
if(this.$route.params&&this.$route.params.type=='3'){
|
||||
this.form1.produceDate = y + "-" + m + "-" + d;
|
||||
}
|
||||
this.datePicker = false;
|
||||
},
|
||||
// change(data) {
|
||||
// console.log(data);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user