|
|
|
@ -113,6 +113,16 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputSearch8"> |
|
|
|
<el-select v-model="saveAuditTypeData.familyId" placeholder="请选择" style="width: 110px;"> |
|
|
|
<el-option |
|
|
|
v-for="item in partFamilyList" |
|
|
|
:key="item.familyID" |
|
|
|
:label="item.familyName" |
|
|
|
:value="item.familyID"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputSearch5"> |
|
|
|
<el-input type="textarea" :rows="4" style="width: 238px;" v-model="saveAuditTypeData.remark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -153,6 +163,7 @@ import { |
|
|
|
getBusinessRoleList, |
|
|
|
saveBusinessRole, |
|
|
|
deleteBusinessRole, |
|
|
|
getPartFamilyList, |
|
|
|
} from '@/api/auditManagement/auditType.js' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
@ -167,11 +178,13 @@ import { |
|
|
|
inputSearch5 : '备注', |
|
|
|
inputSearch6 : '状态', |
|
|
|
inputSearch7 : '记录类型', |
|
|
|
inputSearch8 : '工具类型', |
|
|
|
saveAuditTypeData:{ |
|
|
|
roleItemNo : 0, |
|
|
|
roleDesc : '', |
|
|
|
remark : '', |
|
|
|
active : '', |
|
|
|
familyId : '', |
|
|
|
}, |
|
|
|
//设置 |
|
|
|
setUp :{ |
|
|
|
@ -205,6 +218,7 @@ import { |
|
|
|
value: 'N', |
|
|
|
label: '禁用' |
|
|
|
},], |
|
|
|
partFamilyList : [], |
|
|
|
// 默认table 查询参数 |
|
|
|
queryTable: { |
|
|
|
functionId: 2201, |
|
|
|
@ -263,6 +277,23 @@ import { |
|
|
|
status: true, |
|
|
|
fixed: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2201, |
|
|
|
serialNumber: 'auditType2201FamilyName', |
|
|
|
tableId: "auditType2201", |
|
|
|
tableName: "auditType", |
|
|
|
columnProp: "familyName", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "工具类型", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2201, |
|
|
|
@ -500,8 +531,21 @@ import { |
|
|
|
activated() { |
|
|
|
this.getDataList() |
|
|
|
this.getLanguageList() |
|
|
|
this.getPartFamily() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getPartFamily(){ |
|
|
|
let jsonData = { |
|
|
|
site : this.site, |
|
|
|
active : 'Y', |
|
|
|
} |
|
|
|
this.partFamilyList = [] |
|
|
|
getPartFamilyList(jsonData).then(({data}) => { |
|
|
|
if (data.success) { |
|
|
|
this.partFamilyList = data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
delAuditType(row){ |
|
|
|
this.$confirm("确定删除该记录吗?", '删除提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
@ -520,6 +564,13 @@ import { |
|
|
|
}, |
|
|
|
saveAuditType(){ |
|
|
|
this.setUp.saveButton = true |
|
|
|
if(this.saveAuditTypeData.familyId == ''){ |
|
|
|
this.$alert('请选择记录类型!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
this.setUp.saveButton = false |
|
|
|
return false |
|
|
|
} |
|
|
|
saveBusinessRole(this.saveAuditTypeData).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
this.getDataList() |
|
|
|
@ -544,11 +595,13 @@ import { |
|
|
|
this.saveAuditTypeData.remark = '' |
|
|
|
this.saveAuditTypeData.active = 'Y' |
|
|
|
this.saveAuditTypeData.recordTypeDb = '87' |
|
|
|
this.saveAuditTypeData.familyId = '' |
|
|
|
}else { |
|
|
|
this.saveAuditTypeData.roleItemNo = row.roleItemNo |
|
|
|
this.saveAuditTypeData.roleDesc = row.roleDesc |
|
|
|
this.saveAuditTypeData.remark = row.remark |
|
|
|
this.saveAuditTypeData.recordTypeDb = row.recordTypeDb |
|
|
|
this.saveAuditTypeData.familyId = row.familyId |
|
|
|
if(row.active == "启用"){ |
|
|
|
this.saveAuditTypeData.active = 'Y' |
|
|
|
}else { |
|
|
|
|