|
|
@ -61,6 +61,7 @@ |
|
|
fixed="right" |
|
|
fixed="right" |
|
|
label="操作"> |
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<a type="text" size="small" @click="addRevModel(scope.row)">升版</a> |
|
|
<a type="text" size="small" @click="jumpDetail(scope.row)">详情</a> |
|
|
<a type="text" size="small" @click="jumpDetail(scope.row)">详情</a> |
|
|
<a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</a> |
|
|
<a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</a> |
|
|
<a type="text" size="small" @click="deleteData(scope.row)">删除</a> |
|
|
<a type="text" size="small" @click="deleteData(scope.row)">删除</a> |
|
|
@ -278,6 +279,33 @@ |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="search" v-drag></add-or-update> |
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="search" v-drag></add-or-update> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog width="500px" |
|
|
|
|
|
:title="'升版'" |
|
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
|
:visible.sync="revNoFlag"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" > |
|
|
|
|
|
<el-form-item :label="'参数卡编码'"> |
|
|
|
|
|
<el-input v-model="revNoData.oriCodeNo" style="width: 130px" disabled></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'版本号'"> |
|
|
|
|
|
<el-input v-model="revNoData.oldRevNo" style="width: 130px" disabled></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'项目物料'"> |
|
|
|
|
|
<el-input v-model="revNoData.testPartNo" style="width: 130px" disabled></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" > |
|
|
|
|
|
<el-form-item :label="'版本号'"> |
|
|
|
|
|
<el-input v-model="revNoData.revNo" style="width: 130px" ></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form label-position="top" style="margin-top: 60px; margin-left: 0px;text-align:center"> |
|
|
|
|
|
<el-button type="primary" @click="upBMRevNo()">{{'确定'}}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="revNoFlag = false">{{'关闭'}}</el-button> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
@ -287,6 +315,7 @@ |
|
|
getTechnicalCustomerInfoData, |
|
|
getTechnicalCustomerInfoData, |
|
|
technicalSpecificationListSearch, |
|
|
technicalSpecificationListSearch, |
|
|
deleteTechnicalSpecificationList, |
|
|
deleteTechnicalSpecificationList, |
|
|
|
|
|
upBMRevNo, |
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import AddOrUpdate from './com_technical-add-or-update' |
|
|
import AddOrUpdate from './com_technical-add-or-update' |
|
|
@ -319,10 +348,10 @@ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 103002, |
|
|
functionId: 103002, |
|
|
serialNumber: '103002Table1CodeNo', |
|
|
|
|
|
|
|
|
serialNumber: '103002Table1OriCodeNo', |
|
|
tableId: "103002Table1", |
|
|
tableId: "103002Table1", |
|
|
tableName: "技术参数卡列表", |
|
|
tableName: "技术参数卡列表", |
|
|
columnProp: "codeNo", |
|
|
|
|
|
|
|
|
columnProp: "oriCodeNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "left", |
|
|
align: "left", |
|
|
columnLabel: "参数卡编码", |
|
|
columnLabel: "参数卡编码", |
|
|
@ -661,6 +690,15 @@ |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
|
|
|
revNoFlag:false, |
|
|
|
|
|
revNoData: { |
|
|
|
|
|
site:'', |
|
|
|
|
|
oriCodeNo:'', |
|
|
|
|
|
oldCodeNo:'', |
|
|
|
|
|
oldRevNo:'', |
|
|
|
|
|
revNo:'', |
|
|
|
|
|
testPartNo:'', |
|
|
|
|
|
}, |
|
|
// 导出 start |
|
|
// 导出 start |
|
|
exportData: [], |
|
|
exportData: [], |
|
|
exportName: '技术参数卡清单'+this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
exportName: '技术参数卡清单'+this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
@ -794,6 +832,35 @@ |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
addRevModel(row){ |
|
|
|
|
|
this.revNoData={ |
|
|
|
|
|
site:row.site, |
|
|
|
|
|
oriCodeNo:row.oriCodeNo, |
|
|
|
|
|
oldCodeNo:row.codeNo, |
|
|
|
|
|
oldRevNo:row.revNo, |
|
|
|
|
|
revNo:'', |
|
|
|
|
|
testPartNo:row.testPartNo, |
|
|
|
|
|
} |
|
|
|
|
|
this.revNoFlag=true; |
|
|
|
|
|
}, |
|
|
|
|
|
upBMRevNo(){ |
|
|
|
|
|
this.$confirm('确定要升版?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
upBMRevNo(this.revNoData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.$message.success( '操作成功') |
|
|
|
|
|
this.revNoFlag=false; |
|
|
|
|
|
this.search(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
//导出excel |
|
|
//导出excel |
|
|
async createExportData() { |
|
|
async createExportData() { |
|
|
this.searchData.limit = -1 |
|
|
this.searchData.limit = -1 |
|
|
|