|
|
@ -101,7 +101,7 @@ |
|
|
|
<!-- https://avuejs.com/form/form-rules.html#%E5%A4%96%E7%BD%AE%E9%AA%8C%E8%AF%81--> |
|
|
|
<!-- https://avuejs.com/form/form-rules.html#%E5%A4%96%E7%BD%AE%E9%AA%8C%E8%AF%81--> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getList, getDetail, add, update, remove} from "@/api/leger/equipmentledger"; |
|
|
|
import {getList, getDetail, add, update, remove} from "@/api/leger/toolinventoryrecord"; |
|
|
|
import { |
|
|
|
import { |
|
|
|
inspection_add, |
|
|
|
inspection_add, |
|
|
|
inspection_update, |
|
|
|
inspection_update, |
|
|
@ -113,14 +113,14 @@ import { |
|
|
|
parameters_add, |
|
|
|
parameters_add, |
|
|
|
parameters_update, |
|
|
|
parameters_update, |
|
|
|
parameters_remove, |
|
|
|
parameters_remove, |
|
|
|
parameters_getListBylegerId, |
|
|
|
parameters_tools_getListBylegerId, |
|
|
|
parameters_Del |
|
|
|
parameters_Del |
|
|
|
} from "@/api/leger/techparameters"; |
|
|
|
} from "@/api/leger/techparameters"; |
|
|
|
import { |
|
|
|
import { |
|
|
|
document_add, |
|
|
|
document_add, |
|
|
|
document_update, |
|
|
|
document_update, |
|
|
|
document_remove, |
|
|
|
document_remove, |
|
|
|
document_getListBylegerId, |
|
|
|
document_tools_getListBylegerId, |
|
|
|
document_Del |
|
|
|
document_Del |
|
|
|
} from "@/api/leger/inventorydocument"; |
|
|
|
} from "@/api/leger/inventorydocument"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
@ -235,16 +235,25 @@ export default { |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "是否检验周期内", |
|
|
|
label: "是否检验周期内", |
|
|
|
prop: "isInspectionPeriod", |
|
|
|
prop: "isInspectionPeriod", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
search: true, |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=yes_no", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "场站", |
|
|
|
label: "场站", |
|
|
|
prop: "stations", |
|
|
|
prop: "stations", |
|
|
|
rules: [{ |
|
|
|
type: "select", |
|
|
|
required: true, |
|
|
|
search: true, |
|
|
|
message: "请输入场站", |
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=station", |
|
|
|
trigger: "blur" |
|
|
|
props: { |
|
|
|
}], |
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
@ -436,9 +445,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
created () { |
|
|
|
created () { |
|
|
|
this.type = this.option.column[0]; |
|
|
|
this.type = this.option.column[0]; |
|
|
|
this.option.column.push({ label: '检验标准', prop: 'inspection' },{ label: '技术参数', prop: 'parameters' },{ label: '文档清册', prop: 'document' }); |
|
|
|
|
|
|
|
if(this.$route.query.frameMode == "search"){ |
|
|
|
if(this.$route.query.frameMode == "search"){ |
|
|
|
this.option.column.push({ label: '检验标准', prop: 'Inspection' },{ label: '技术参数', prop: 'parameters' },{ label: '文档清册', prop: 'document' }); |
|
|
|
this.option.column.push({ label: '检验标准', prop: 'inspection' },{ label: '技术参数', prop: 'parameters' },{ label: '文档清册', prop: 'document' }); |
|
|
|
this.readonlyForm=true; |
|
|
|
this.readonlyForm=true; |
|
|
|
this.shouldShowButton=true; |
|
|
|
this.shouldShowButton=true; |
|
|
|
this.addUpdateShowButton=false; |
|
|
|
this.addUpdateShowButton=false; |
|
|
@ -545,10 +553,10 @@ export default { |
|
|
|
this.inspection_onLoad(); |
|
|
|
this.inspection_onLoad(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 技术参数 新增按钮处理 |
|
|
|
// 检验标准 新增按钮处理 |
|
|
|
inspection_rowSave (form, done, loading) { |
|
|
|
inspection_rowSave (form, done, loading) { |
|
|
|
loading(); |
|
|
|
loading(); |
|
|
|
form.toolsCodeId = '111'; |
|
|
|
form.toolsCodeId = this.$route.query.id; |
|
|
|
inspection_add(form).then(() => { |
|
|
|
inspection_add(form).then(() => { |
|
|
|
done(form); |
|
|
|
done(form); |
|
|
|
this.inspection_onLoad(this.page); |
|
|
|
this.inspection_onLoad(this.page); |
|
|
@ -561,7 +569,7 @@ export default { |
|
|
|
loading(); |
|
|
|
loading(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 技术参数 编辑按钮处理 |
|
|
|
// 检验标准 编辑按钮处理 |
|
|
|
inspection_rowUpdate(form, index, done, loading) { |
|
|
|
inspection_rowUpdate(form, index, done, loading) { |
|
|
|
inspection_update(form).then(() => { |
|
|
|
inspection_update(form).then(() => { |
|
|
|
done(form); |
|
|
|
done(form); |
|
|
@ -575,7 +583,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 技术参数 删除按钮处理 |
|
|
|
// 检验标准 删除按钮处理 |
|
|
|
inspection_rowDel(form, index, done) { |
|
|
|
inspection_rowDel(form, index, done) { |
|
|
|
this.$confirm("确定将选择数据删除?", { |
|
|
|
this.$confirm("确定将选择数据删除?", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: "确定", |
|
|
@ -596,7 +604,7 @@ export default { |
|
|
|
// 技术参数 新增按钮处理 |
|
|
|
// 技术参数 新增按钮处理 |
|
|
|
parameters_rowSave (form, done, loading) { |
|
|
|
parameters_rowSave (form, done, loading) { |
|
|
|
loading(); |
|
|
|
loading(); |
|
|
|
form.eqLedgerId = this.$route.query.id; |
|
|
|
form.toolsCodeId = this.$route.query.id; |
|
|
|
parameters_add(form).then(() => { |
|
|
|
parameters_add(form).then(() => { |
|
|
|
done(form); |
|
|
|
done(form); |
|
|
|
this.parameters_onLoad(this.page); |
|
|
|
this.parameters_onLoad(this.page); |
|
|
@ -644,7 +652,7 @@ export default { |
|
|
|
// 文档清册 新增按钮处理 |
|
|
|
// 文档清册 新增按钮处理 |
|
|
|
document_rowSave(form, done, loading) { |
|
|
|
document_rowSave(form, done, loading) { |
|
|
|
loading(); |
|
|
|
loading(); |
|
|
|
form.eqLedgerId = this.$route.query.id; |
|
|
|
form.toolsCodeId = this.$route.query.id; |
|
|
|
document_add(form).then(() => { |
|
|
|
document_add(form).then(() => { |
|
|
|
done(form); |
|
|
|
done(form); |
|
|
|
this.document_onLoad(this.page); |
|
|
|
this.document_onLoad(this.page); |
|
|
@ -768,14 +776,14 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
parameters_onLoad(row, params = {}) { |
|
|
|
parameters_onLoad(row, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
parameters_getListBylegerId(this.$route.query.id).then(res => { |
|
|
|
parameters_tools_getListBylegerId(this.$route.query.id).then(res => { |
|
|
|
this.parameters_data = res.data.data; |
|
|
|
this.parameters_data = res.data.data; |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
document_onLoad(row, params = {}) { |
|
|
|
document_onLoad(row, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
document_getListBylegerId(this.$route.query.id).then(res => { |
|
|
|
document_tools_getListBylegerId(this.$route.query.id).then(res => { |
|
|
|
this.document_data = res.data.data; |
|
|
|
this.document_data = res.data.data; |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|