|
@@ -390,12 +390,12 @@
|
|
align="center"
|
|
align="center"
|
|
prop="duration"
|
|
prop="duration"
|
|
/>
|
|
/>
|
|
- <!-- <el-table-column
|
|
|
|
|
|
+ <el-table-column
|
|
label="工作类别"
|
|
label="工作类别"
|
|
sortable
|
|
sortable
|
|
align="center"
|
|
align="center"
|
|
prop="work"
|
|
prop="work"
|
|
- /> -->
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
label="操作"
|
|
label="操作"
|
|
align="center"
|
|
align="center"
|
|
@@ -1180,6 +1180,7 @@
|
|
ref="license"
|
|
ref="license"
|
|
v-model="createTemp.license"
|
|
v-model="createTemp.license"
|
|
placeholder="物联网编码"
|
|
placeholder="物联网编码"
|
|
|
|
+ :disabled="dialogStatus == 'update' && isEditWork"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -1191,19 +1192,20 @@
|
|
ref="duration"
|
|
ref="duration"
|
|
v-model="createTemp.duration"
|
|
v-model="createTemp.duration"
|
|
placeholder="标准工作时长"
|
|
placeholder="标准工作时长"
|
|
|
|
+ :disabled="dialogStatus == 'update' && isEditWork"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <!-- <el-col :span="6">
|
|
|
|
|
|
+ <el-col :span="6">
|
|
<el-form-item label="工作类别" prop="work">
|
|
<el-form-item label="工作类别" prop="work">
|
|
<el-input
|
|
<el-input
|
|
ref="duration"
|
|
ref="duration"
|
|
- v-model="seeTemp.work"
|
|
|
|
|
|
+ v-model="createTemp.work"
|
|
placeholder="工作类别"
|
|
placeholder="工作类别"
|
|
- disabled
|
|
|
|
|
|
+ :disabled="dialogStatus == 'update' && isEditWork"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col> -->
|
|
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
@@ -1671,7 +1673,7 @@
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <!-- <el-col :span="6">
|
|
|
|
|
|
+ <el-col :span="6">
|
|
<el-form-item label="工作类别" prop="work">
|
|
<el-form-item label="工作类别" prop="work">
|
|
<el-input
|
|
<el-input
|
|
ref="duration"
|
|
ref="duration"
|
|
@@ -1680,7 +1682,7 @@
|
|
disabled
|
|
disabled
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col> -->
|
|
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col>
|
|
<el-col>
|
|
@@ -2815,6 +2817,7 @@ export default {
|
|
directives: { waves },
|
|
directives: { waves },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ isEditWork: true,
|
|
isBasicsAdd: [],
|
|
isBasicsAdd: [],
|
|
isBasicsCard: [],
|
|
isBasicsCard: [],
|
|
isBasicsUpdate: [],
|
|
isBasicsUpdate: [],
|
|
@@ -3048,6 +3051,7 @@ export default {
|
|
width: '',
|
|
width: '',
|
|
|
|
|
|
createTemp: {
|
|
createTemp: {
|
|
|
|
+ work: '', // 工作类别
|
|
license: '',
|
|
license: '',
|
|
duration: '',
|
|
duration: '',
|
|
inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
@@ -3331,7 +3335,7 @@ export default {
|
|
name: 'importStockUse',
|
|
name: 'importStockUse',
|
|
pastureId: Cookies.get('pastureid'),
|
|
pastureId: Cookies.get('pastureid'),
|
|
importParams:
|
|
importParams:
|
|
- '牧场,设备类别,资产编号,设备名称,设备内部编号,设备规格,品牌,供应商,用途,状态,购置日期,入场日期,折旧年限,财务编号,原值,残值,月核减值,保养级别,保养费用,维修费用,维修费用,基数(小时),部门,责任人,录入人,录入时间,使用时长(年),使用率(%),物联网编码,标准工作时长,SignColumn',
|
|
|
|
|
|
+ '牧场,设备类别,资产编号,设备名称,设备内部编号,设备规格,品牌,供应商,用途,状态,购置日期,入场日期,折旧年限,财务编号,原值,残值,月核减值,保养级别,保养费用,维修费用,维修费用,基数(小时),部门,责任人,录入人,录入时间,使用时长(年),使用率(%),物联网编码,标准工作时长,工作类别,SignColumn',
|
|
sheetname: 'SheetJS'
|
|
sheetname: 'SheetJS'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -3345,7 +3349,11 @@ export default {
|
|
|
|
|
|
created() {
|
|
created() {
|
|
const gshebquanx = Cookies.get('gshebquanx')
|
|
const gshebquanx = Cookies.get('gshebquanx')
|
|
-
|
|
|
|
|
|
+ const roles = JSON.parse(sessionStorage.getItem('roles'))
|
|
|
|
+ const arrId = roles.map((item) => {
|
|
|
|
+ return item.id
|
|
|
|
+ })
|
|
|
|
+ this.isEditWork = !arrId.includes(44)
|
|
// 不是设备处长,没有所有权限
|
|
// 不是设备处长,没有所有权限
|
|
if (gshebquanx == '0') {
|
|
if (gshebquanx == '0') {
|
|
this.requestParams[4].parammaps.id = Cookies.get('pastureid')
|
|
this.requestParams[4].parammaps.id = Cookies.get('pastureid')
|
|
@@ -3981,6 +3989,14 @@ export default {
|
|
},
|
|
},
|
|
add_dialog_saveAdd() {
|
|
add_dialog_saveAdd() {
|
|
console.log('点击了保存', this.createTemp.maintenance)
|
|
console.log('点击了保存', this.createTemp.maintenance)
|
|
|
|
+ if (this.createTemp.status == '') {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'warning',
|
|
|
|
+ message: '请选择状态值s',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.isokDisable = false
|
|
this.isokDisable = false
|
|
@@ -5482,7 +5498,8 @@ export default {
|
|
'三级督办',
|
|
'三级督办',
|
|
'三级间隔时间',
|
|
'三级间隔时间',
|
|
'物联网编码',
|
|
'物联网编码',
|
|
- '标准工作时长'
|
|
|
|
|
|
+ '标准工作时长',
|
|
|
|
+ '工作类别'
|
|
],
|
|
],
|
|
filterVal: [
|
|
filterVal: [
|
|
'pastureName',
|
|
'pastureName',
|
|
@@ -5520,7 +5537,8 @@ export default {
|
|
'levelthreeName',
|
|
'levelthreeName',
|
|
'levelthreeTime',
|
|
'levelthreeTime',
|
|
'license',
|
|
'license',
|
|
- 'duration'
|
|
|
|
|
|
+ 'duration',
|
|
|
|
+ 'work'
|
|
],
|
|
],
|
|
tableDatas: this.downLoadList,
|
|
tableDatas: this.downLoadList,
|
|
sheetName: '设备基础信息'
|
|
sheetName: '设备基础信息'
|