|
|
|
@ -18,6 +18,26 @@ |
|
|
|
<el-form-item label="刀版号"> |
|
|
|
<el-input v-model="searchData.cutterNumber" style="width: 120px" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'节点审批人'"> |
|
|
|
<el-input v-model="searchData.sp" style="width: 130px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'当前节点'"> |
|
|
|
<el-select v-model="searchData.nodeId" placeholder="请选择节点" clearable style="width: 130px"> |
|
|
|
<el-option |
|
|
|
v-for="option in nodeOptions" |
|
|
|
:key="option.id" |
|
|
|
:label="option.name" |
|
|
|
:value="option.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'单据来源'"> |
|
|
|
<el-select v-model="searchData.documentSource" clearable style="width: 130px"> |
|
|
|
<el-option label="新增" value="新增"></el-option> |
|
|
|
<el-option label="ECN" value="ECN"></el-option> |
|
|
|
<el-option label="Copy" value="Copy"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'状态'"> |
|
|
|
<el-select v-model="searchData.statusDesc" clearable style="width: 130px"> |
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
@ -52,6 +72,7 @@ |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ '导出' }} |
|
|
|
</download-excel> |
|
|
|
<!-- <el-button @click="filterVisible = true">搜索</el-button>--> |
|
|
|
<!-- <el-button @click="test()" type="primary" style="margin-left: 2px;margin-top:0px">测试</el-button>--> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -355,6 +376,21 @@ |
|
|
|
<el-tab-pane label="变更记录" name="changelog"> |
|
|
|
<change-log :row="currentRow" :height="240"></change-log> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="附件信息" name="file"> |
|
|
|
<oss-components style="margin-top: 5px" |
|
|
|
ref="ossRef2" |
|
|
|
:save-visible="isAuth('107001:tab5:save')" |
|
|
|
:download-visible="isAuth('107001:tab5:download')" |
|
|
|
:remove-visible="isAuth('107001:tab5:remove')" |
|
|
|
:preview-visible="isAuth('107001:tab5:preview')" |
|
|
|
:disabled="currentRow.testStatus === '已完成'" |
|
|
|
label="测试单号" |
|
|
|
height="45vh" |
|
|
|
:columns="fileColumnList" |
|
|
|
:order-ref2="currentRow.codeNo" |
|
|
|
:order-ref1="currentRow.site" |
|
|
|
></oss-components> |
|
|
|
</el-tab-pane> |
|
|
|
<!-- 审批信息 --> |
|
|
|
<el-tab-pane label="审批信息" name="approvalInformation"> |
|
|
|
<approval-information ref="approvalTable" v-model:data-list="approvalList" :height="240"></approval-information> |
|
|
|
@ -475,6 +511,7 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
<!-- <filter-search :visible.sync="filterVisible" @search="queryByAnyField"></filter-search>--> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -490,6 +527,7 @@ |
|
|
|
bmStatusToDead, // Dead |
|
|
|
bmStatusToCg, // Re-Sample |
|
|
|
bmStatusToFinish, // 归档 |
|
|
|
getNodeList |
|
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
import AddOrUpdate from './com_technical-add-or-update' |
|
|
|
@ -501,8 +539,12 @@ |
|
|
|
import ApprovalInformation from "../changeManagement/approvalInformation.vue"; |
|
|
|
import CustomerInfo from "../quotation/sellForQuotation/customerInfo.vue"; |
|
|
|
import ChangeLog from "./technicalSpecificationDetail/changeLog.vue"; |
|
|
|
import FilterSearch from "../../common/filterSearch.vue"; |
|
|
|
import OssComponents from "../oss/ossComponents.vue"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
OssComponents, |
|
|
|
FilterSearch, |
|
|
|
ChangeLog, |
|
|
|
CustomerInfo, |
|
|
|
ApprovalInformation, |
|
|
|
@ -513,8 +555,10 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
approvalList: [], |
|
|
|
fileContentList: [], |
|
|
|
activeName: 'info', |
|
|
|
addOrUpdateVisible: false, |
|
|
|
filterVisible: false, |
|
|
|
height: 200, |
|
|
|
dataList1: [], |
|
|
|
partList: [], |
|
|
|
@ -543,7 +587,11 @@ |
|
|
|
ecnFlag: '', |
|
|
|
buNo: '', |
|
|
|
customerDesc: '', |
|
|
|
sp: '', |
|
|
|
nodeId: '', |
|
|
|
documentSource: '', |
|
|
|
}, |
|
|
|
nodeOptions: [], |
|
|
|
pageIndex: 1, |
|
|
|
pageSize: 20, |
|
|
|
totalPage: 0, |
|
|
|
@ -918,6 +966,80 @@ |
|
|
|
columnWidth: 200 |
|
|
|
}, |
|
|
|
], |
|
|
|
fileColumnList: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 103001, |
|
|
|
serialNumber: '103001Table2FileName', |
|
|
|
tableId: '103001Table2', |
|
|
|
tableName: '文件信息表', |
|
|
|
columnProp: 'fileName', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '文件名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 140 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 103001, |
|
|
|
serialNumber: '103001Table2FileRemark', |
|
|
|
tableId: '103001Table2', |
|
|
|
tableName: '文件信息表', |
|
|
|
columnProp: 'fileRemark', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '备注', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 240 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 103001, |
|
|
|
serialNumber: '103001Table2CreateDate', |
|
|
|
tableId: '103001Table2', |
|
|
|
tableName: '文件信息表', |
|
|
|
columnProp: 'createDate', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '上传时间', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 140 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 103001, |
|
|
|
serialNumber: '103001Table2CreatedBy', |
|
|
|
tableId: '103001Table2', |
|
|
|
tableName: '文件信息表', |
|
|
|
columnProp: 'createBy', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '上传人', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 140 |
|
|
|
} |
|
|
|
], |
|
|
|
infoData:{ |
|
|
|
testPartNo:'', |
|
|
|
partTypeDesc:'', |
|
|
|
@ -975,6 +1097,7 @@ |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.height = window.innerHeight - 520; |
|
|
|
this.fetchNodeOptions() |
|
|
|
}) |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
@ -1415,6 +1538,21 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
fetchNodeOptions() { |
|
|
|
getNodeList(this.searchData).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.nodeOptions = data.rows.map(item => ({ |
|
|
|
id: item.nodeId, |
|
|
|
name: item.nodeName |
|
|
|
})); |
|
|
|
} else { |
|
|
|
this.$message.error('获取节点列表失败'); |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
this.$message.error('请求失败:' + error); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|