|
@@ -5,14 +5,14 @@
|
|
|
<h4 style="padding-left: 10px;line-height: 0;">导出进度:</h4>
|
|
|
<el-progress style="padding-left: 10px;" :text-inside="true" :stroke-width="26" :percentage="percentage" />
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="filter-container">
|
|
|
<el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
|
|
|
<el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
|
|
|
</el-select>
|
|
|
<tree-select
|
|
|
v-model="getdataListParm.parammaps.eqClassId"
|
|
|
- :height="150"
|
|
|
+ :height="300"
|
|
|
:width="250"
|
|
|
class="typeSelect"
|
|
|
size="small"
|
|
@@ -26,9 +26,9 @@
|
|
|
style="display: inline-block;"
|
|
|
@popoverHide="popoverHide"
|
|
|
/>
|
|
|
-
|
|
|
+
|
|
|
<el-input v-model="getdataListParm.parammaps.eqCode" placeholder="指定维修人" clearable style="width: 150px;" class="filter-item" />
|
|
|
-
|
|
|
+
|
|
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
|
|
|
<div>
|
|
|
<el-button v-if="isBasicsAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
|
|
@@ -38,7 +38,7 @@
|
|
|
<el-button v-waves class="filter-item" type="warning" icon="el-icon-upload2">导入</el-button>
|
|
|
</el-upload>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
<el-table
|
|
|
:key="tableKey"
|
|
@@ -52,10 +52,10 @@
|
|
|
:row-style="rowStyle"
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable"
|
|
|
-
|
|
|
+
|
|
|
@sort-change="tableSort2"
|
|
|
>
|
|
|
-
|
|
|
+
|
|
|
<el-table-column label="序号" align="center" type="index" width="50px">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
|
|
@@ -69,8 +69,8 @@
|
|
|
<el-table-column label="二级督办" align="center" prop="brandName" />
|
|
|
<el-table-column label="三级督办" align="center" prop="brandName" />
|
|
|
<el-table-column label="推送时间(分)" align="center" prop="brandName" />
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<el-table-column label="折旧年限" sortable align="center" prop="depreciation" />
|
|
|
<el-table-column label="使用时长(年)" sortable align="center" prop="serviceDuration" />
|
|
|
<el-table-column label="使用率(%)" sortable align="center" prop="utilizationRate" />
|
|
@@ -85,7 +85,7 @@
|
|
|
</el-table>
|
|
|
<pagination v-show="total>=0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<!-- 新增 -->
|
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" v-show = "dialogFormVisible" :close-on-click-modal="false" width="90%">
|
|
@@ -96,7 +96,7 @@
|
|
|
<el-form-item label="设备类别:" prop="eqClassId">
|
|
|
<tree-select
|
|
|
v-model="createTemp.eqClassId"
|
|
|
- :height="200"
|
|
|
+ :height="300"
|
|
|
:width="300"
|
|
|
size="small"
|
|
|
:data="parentClass"
|
|
@@ -475,7 +475,7 @@
|
|
|
<el-row>
|
|
|
<el-col>
|
|
|
<el-form-item label="操作:">
|
|
|
-
|
|
|
+
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -699,7 +699,7 @@
|
|
|
</el-select>
|
|
|
<el-date-picker ref="inputDatetime2" v-model="getChartSeeParm.parammaps.inputDatetime2" class="inputDatetime" type="datetimerange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
|
|
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_searchChartSee">搜索</el-button>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
<el-table
|
|
|
:key="tableKey"
|
|
@@ -796,7 +796,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+
|
|
|
<!-- 变更 -->
|
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_change" :close-on-click-modal="false" width="30%">
|
|
|
<div class="app-change">
|
|
@@ -889,7 +889,7 @@ export default {
|
|
|
{ name: 'getdictbyname', offset: 0, pagecount: 0, params: ['保养级别'] }
|
|
|
],
|
|
|
getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
|
|
|
- disabled: false,
|
|
|
+ disabled: false,
|
|
|
nodeKey: 'id',
|
|
|
defaultCheckedKeys: [],
|
|
|
parentClass: [],
|
|
@@ -903,7 +903,7 @@ export default {
|
|
|
name: 'getAssetList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
|
|
|
parammaps: {proId:'',brandId:'', assetCode:'',eqCode: '', eqName: '', departmentId: '', pastureId: Cookies.get('pastureid'), pastureName: Cookies.get('pasturename'), status: '', inputDatetime1: '', startTime: '', stopTime: '', inputDatetime2: '', startTime2: '', stopTime2: '', inputDatetime3: '', startTime3: '', stopTime3: '', warning: '', eqClassId: '' }
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
textMap: { update: '编辑', create: '新增', card: '查看设备信息', examine: '审核', change: '批量变更' },
|
|
|
dialogFormVisible: false,
|
|
|
dialogStatus: '',
|
|
@@ -922,7 +922,7 @@ export default {
|
|
|
createTemp: { inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'), employeId: this.$store.state.user.employeid, inputUser: this.$store.state.user.employeid, deptId: this.$store.state.user.departmentid, departmentName: Cookies.get('departmentname'), pastureId: this.$store.state.user.pastureid, assetCode: '', eqClassName: '', eqClassId: '', eqCode: '', eqName: '', specification: '', providerName: '', brandName: '', financeCode: '', status: '正常', purpose: '', purchaseDate: parseTime(new Date(), '{y}-{m}-{d}'), entranceDate: parseTime(new Date(), '{y}-{m}-{d}'), yearUpkeepCost: '', yearMaintainDost: '', yuanzhi: '', baseHours: '', upkeepgrade: '', salvage: '', subtractvalue: '', yearMaintainCost: '', brandId: '', providerId: '', inputUserName: '', employeName: this.$store.state.user.employename, depreciation: '' },
|
|
|
requestParam: { name: 'insertAsset', offset: 0, pagecount: 0, parammaps: {}},
|
|
|
seeTemp: {},
|
|
|
-
|
|
|
+
|
|
|
dialogFormVisible_See: false,
|
|
|
activeName: 'first',
|
|
|
|
|
@@ -1065,7 +1065,7 @@ export default {
|
|
|
sheetname: 'SheetJS'
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 设置上传地址
|
|
|
uploadExcelUrl() {
|
|
|
// process.env.VUE_APP_BASE_API是服务器的路径,也是axios的基本路径
|
|
@@ -1078,15 +1078,15 @@ export default {
|
|
|
that.buttons = response.data.list
|
|
|
that.get_auto_buttons()
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
this.getDownClassList()
|
|
|
this.getdataListParm.parammaps.pastureName = Cookies.get('pasturename')
|
|
|
this.getdataListParm.parammaps.pastureId = Cookies.get('pastureid')
|
|
|
-
|
|
|
+
|
|
|
|
|
|
this.get_table_data()
|
|
|
// Window.addEventListener('keyup', )
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
// 导入
|
|
@@ -1113,7 +1113,7 @@ export default {
|
|
|
duration: 2000
|
|
|
})
|
|
|
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
} else {
|
|
|
this.$notify({
|
|
@@ -1260,7 +1260,7 @@ export default {
|
|
|
console.log('table数据', response.data.list)
|
|
|
if (response.data.list !== null) {
|
|
|
this.list = response.data.list
|
|
|
-
|
|
|
+
|
|
|
this.pageNum = response.data.pageNum
|
|
|
this.pageSize = response.data.pageSize
|
|
|
} else {
|
|
@@ -1273,7 +1273,7 @@ export default {
|
|
|
this.get_select_list()
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
SHStatus: function(cellValue) {
|
|
|
if (cellValue.SHStatus == 0) {
|
|
|
return '审核中'
|
|
@@ -1321,7 +1321,7 @@ export default {
|
|
|
this.getdataListParm.offset = 1
|
|
|
this.get_table_data()
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
handlePicChange(file, fileList) {
|
|
|
if (fileList.length > 0) {
|
|
|
this.$nextTick(() => {
|
|
@@ -1480,7 +1480,7 @@ export default {
|
|
|
this.createTemp.yearUpkeepCost = ''
|
|
|
this.createTemp.yearMaintainDost = ''
|
|
|
this.createTemp.yuanzhi = ''
|
|
|
-
|
|
|
+
|
|
|
this.createTemp.baseHours = ''
|
|
|
this.createTemp.upkeepgrade = 113
|
|
|
this.createTemp.salvage = ''
|
|
@@ -2245,7 +2245,7 @@ export default {
|
|
|
this.getChartSeeParm.offset = 1
|
|
|
this.getChartSeeList()
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
form_delete(row) {
|
|
|
MessageBox.confirm('确认删除此信息?', {
|
|
|
confirmButtonText: '确认',
|
|
@@ -2260,7 +2260,7 @@ export default {
|
|
|
this.getdataListParm.parammaps.inputDatetime1 = ''
|
|
|
}
|
|
|
this.get_table_data()
|
|
|
-
|
|
|
+
|
|
|
this.dialogFormVisible = false
|
|
|
this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
|
|
|
})
|
|
@@ -2278,17 +2278,17 @@ export default {
|
|
|
this.getdataEQNumber.parammaps.pastureId = Cookies.get('pastureid')
|
|
|
GetDataByName(this.getdataEQNumber).then(response => {
|
|
|
|
|
|
-
|
|
|
+
|
|
|
this.createTemp.assetCode = response.data.list[0].createNumber
|
|
|
console.log(response.data.list[0].createNumber)
|
|
|
console.log(this.createTemp.assetCode)
|
|
|
this.$forceUpdate()
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
changeSHStatue(val) {
|
|
|
if (val == 2) {
|
|
|
this.statueReason = true
|
|
@@ -2296,10 +2296,10 @@ export default {
|
|
|
this.statueReason = false
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
changeBatchDept(item) {
|
|
|
console.log(item)
|
|
|
this.batchChange.getdataListParmPerson.parammaps.deptId = item
|