feature(标准跟踪清单): 详情
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="margin-bottom: 10px;"
|
style="margin-bottom: 10px;"
|
||||||
|
:disabled="disabled"
|
||||||
@click="handleSearchStandard"
|
@click="handleSearchStandard"
|
||||||
>
|
>
|
||||||
手动查找
|
手动查找
|
||||||
@@ -12,6 +13,7 @@
|
|||||||
type="danger"
|
type="danger"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="margin-bottom: 10px;"
|
style="margin-bottom: 10px;"
|
||||||
|
:disabled="disabled"
|
||||||
@click="handleDeleteStandard"
|
@click="handleDeleteStandard"
|
||||||
>
|
>
|
||||||
批量删除
|
批量删除
|
||||||
@@ -67,6 +69,7 @@
|
|||||||
placeholder="请选择产品类型"
|
placeholder="请选择产品类型"
|
||||||
size="mini"
|
size="mini"
|
||||||
clearable
|
clearable
|
||||||
|
:disabled="disabled"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.trackingChecklistProductType"
|
v-for="item in dict.trackingChecklistProductType"
|
||||||
@@ -90,6 +93,7 @@
|
|||||||
type="date"
|
type="date"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
placeholder="选择日期"
|
placeholder="选择日期"
|
||||||
|
:disabled="disabled"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -105,6 +109,7 @@
|
|||||||
placeholder="请选择实施要求"
|
placeholder="请选择实施要求"
|
||||||
clearable
|
clearable
|
||||||
size="mini"
|
size="mini"
|
||||||
|
:disabled="disabled"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.trackingChecklistPutDemand"
|
v-for="item in dict.trackingChecklistPutDemand"
|
||||||
@@ -132,7 +137,11 @@ export default {
|
|||||||
value: {
|
value: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => []
|
default: () => []
|
||||||
}
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -21,19 +21,31 @@
|
|||||||
class="form-item-first"
|
class="form-item-first"
|
||||||
prop="checkListName"
|
prop="checkListName"
|
||||||
label="核查清单名称"
|
label="核查清单名称"
|
||||||
|
:disabled="disabled"
|
||||||
/>
|
/>
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
v-if="reloadForm"
|
v-if="reloadForm"
|
||||||
label="模板"
|
label="模板"
|
||||||
:ids.sync="form.checklistTemplate"
|
:ids.sync="form.checklistTemplate"
|
||||||
:names.sync="form.checklistTemplateName"
|
:names.sync="form.checklistTemplateName"
|
||||||
|
:disabled="disabled"
|
||||||
/>
|
/>
|
||||||
<el-tabs v-model="activeName">
|
<el-tabs v-model="activeName">
|
||||||
<el-tab-pane label="核查清单" name="1" />
|
<el-tab-pane label="核查清单" name="1" />
|
||||||
<el-tab-pane label="人员信息" name="2" />
|
<el-tab-pane label="人员信息" name="2" />
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<Inventory v-show="activeName === '1'" v-model="form.issueTrackList" />
|
<Inventory
|
||||||
<PersonInfo v-show="activeName === '2'" ref="roleForm" :roleForm="roleForm" :roleRules="roleRules" />
|
v-show="activeName === '1'"
|
||||||
|
v-model="form.issueTrackList"
|
||||||
|
:disabled="disabled"
|
||||||
|
/>
|
||||||
|
<PersonInfo
|
||||||
|
v-show="activeName === '2'"
|
||||||
|
ref="roleForm"
|
||||||
|
:roleForm="roleForm"
|
||||||
|
:roleRules="roleRules"
|
||||||
|
:disabled="disabled"
|
||||||
|
/>
|
||||||
<loading :loading="loading">数据获取中...</loading>
|
<loading :loading="loading">数据获取中...</loading>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,6 +55,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
:loading="isSubmit"
|
:loading="isSubmit"
|
||||||
|
:disabled="disabled"
|
||||||
@click="onSubmit"
|
@click="onSubmit"
|
||||||
>
|
>
|
||||||
提交
|
提交
|
||||||
@@ -146,6 +159,7 @@ export default {
|
|||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
reloadForm: true,
|
reloadForm: true,
|
||||||
|
disabled: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -167,8 +181,14 @@ export default {
|
|||||||
})
|
})
|
||||||
this.showDrawer = true
|
this.showDrawer = true
|
||||||
},
|
},
|
||||||
edit (id) {
|
edit (id, type) {
|
||||||
this.title = '编辑'
|
if (type && type === 'detail') {
|
||||||
|
this.title = '详情'
|
||||||
|
this.disabled = true
|
||||||
|
} else {
|
||||||
|
this.title = '编辑'
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
this.showDrawer = true
|
this.showDrawer = true
|
||||||
const config = { _this: this, loading: 'loading' }
|
const config = { _this: this, loading: 'loading' }
|
||||||
this.$http._getData(this.url.getById, { checklistId: id }, config).then(res => {
|
this.$http._getData(this.url.getById, { checklistId: id }, config).then(res => {
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="{row, column, $index}">
|
<template slot-scope="{row, column, $index}">
|
||||||
<a class="table-jump" style="color: #2d8cf0" @click="handlePreview(row.id)">{{ row.checkListName }}</a>
|
<a class="table-jump" style="color: #2d8cf0" @click="detail(row.id)">{{ row.checkListName }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -344,6 +344,9 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$refs.addModel.edit(this.selectedList[0])
|
this.$refs.addModel.edit(this.selectedList[0])
|
||||||
},
|
},
|
||||||
|
detail (id) {
|
||||||
|
this.$refs.addModel.edit(id, 'detail')
|
||||||
|
},
|
||||||
downTemplate () {
|
downTemplate () {
|
||||||
window.open(`${this.url.exportTemplateFile}?fileName=标准跟踪清单导入模板`)
|
window.open(`${this.url.exportTemplateFile}?fileName=标准跟踪清单导入模板`)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user