|
|
|
@ -179,7 +179,109 @@
|
|
|
|
|
@pagination="getTaskList"
|
|
|
|
|
></pagination>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="任务列表-详情"
|
|
|
|
|
:visible.sync="open"
|
|
|
|
|
class="dialog-two"
|
|
|
|
|
width="60%"
|
|
|
|
|
top="5vh"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="formView" :rules="formRules" ref="dataForm" label-width="100px">
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="任务类型" prop="taskType">
|
|
|
|
|
<el-input v-model="taskTypeText" size="small" style="width: 90%" :disabled="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="任务状态" prop="status">
|
|
|
|
|
<el-input v-model="statusText" size="small" style="width: 90%" :disabled="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="医疗器械注册人" prop="ylqxzcrbarmc">
|
|
|
|
|
<el-input v-model="formView.ylqxzcrbarmc" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="医疗器械注册人统一社会信用号" prop="creditNum">
|
|
|
|
|
<el-input v-model="formView.creditNum" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="产品名称" prop="cpmctymc">
|
|
|
|
|
<el-input v-model="formView.cpmctymc" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="规格型号" prop="ggxh">
|
|
|
|
|
<el-input v-model="formView.ggxh" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="批次号" prop="batchNo">
|
|
|
|
|
<el-input v-model="formView.batchNo" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="序列号" prop="companyName">
|
|
|
|
|
<el-input v-model="formView.companyName" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="生产日期" prop="produceDate">
|
|
|
|
|
<el-input v-model="formView.produceDate" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="失效日期" prop="expireDate">
|
|
|
|
|
<el-input v-model="formView.expireDate" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="创建时间" prop="createTime">
|
|
|
|
|
<el-input v-model="formView.createTime" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="更新时间" prop="updateTime">
|
|
|
|
|
<el-input v-model="formView.updateTime" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="open = false" size="small">关闭</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -211,9 +313,22 @@ export default {
|
|
|
|
|
manuCodeRelLoading: false,
|
|
|
|
|
taskList: [],
|
|
|
|
|
listCodeRel: [],
|
|
|
|
|
openManuOrder: false,
|
|
|
|
|
open: false,
|
|
|
|
|
openManuCodeRel: false,
|
|
|
|
|
formView: {},
|
|
|
|
|
formView: {
|
|
|
|
|
taskType:null,
|
|
|
|
|
status: null,
|
|
|
|
|
},
|
|
|
|
|
taskTypes: [
|
|
|
|
|
{ value: 1, label: '关联关系' },
|
|
|
|
|
{ value: 2, label: '入库' },
|
|
|
|
|
{ value: 3, label: '出库' },
|
|
|
|
|
],
|
|
|
|
|
taskStatus: [
|
|
|
|
|
{ value: 1, label: '未处理' },
|
|
|
|
|
{ value: 2, label: '正在处理' },
|
|
|
|
|
{ value: 3, label: '已处理' },
|
|
|
|
|
],
|
|
|
|
|
formViewCodeRel: {},
|
|
|
|
|
showSearch: true,
|
|
|
|
|
actDateRange: [],
|
|
|
|
@ -252,6 +367,16 @@ export default {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
taskTypeText() {
|
|
|
|
|
const taskType = this.taskTypes.find(item => item.value === this.formView.taskType);
|
|
|
|
|
return taskType ? taskType.label : '';
|
|
|
|
|
},
|
|
|
|
|
statusText() {
|
|
|
|
|
const status = this.taskStatus.find(item => item.value === this.formView.status);
|
|
|
|
|
return status ? status.label : '';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//隐藏搜索
|
|
|
|
|
hideSearch() {
|
|
|
|
@ -313,13 +438,13 @@ export default {
|
|
|
|
|
// },
|
|
|
|
|
//详情
|
|
|
|
|
handleView(row){
|
|
|
|
|
this.taskOrder.forEach(obj => {
|
|
|
|
|
this.taskList.forEach(obj => {
|
|
|
|
|
if (row.id == obj.id) {
|
|
|
|
|
this.formView = obj
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(this.formView)
|
|
|
|
|
this.openManuOrder = true
|
|
|
|
|
this.open = true
|
|
|
|
|
},
|
|
|
|
|
handleViewCoderel(row){
|
|
|
|
|
this.listCodeRel.forEach(obj => {
|
|
|
|
|