|
|
|
@ -70,6 +70,7 @@ |
|
|
|
<!-- <a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)" v-if="scope.row.statusDesc!=='已完成'">修改</a>--> |
|
|
|
<a type="text" size="small" @click="deleteData(scope.row)" v-if="scope.row.statusDesc!=='已完成'&&scope.row.statusDesc!=='已升版'">删除</a> |
|
|
|
<a type="text" size="small" v-if="scope.row.status === 'cg'" @click="issueModal(scope.row)">下达</a> |
|
|
|
<!-- <a type="text" size="small" @click="copyBM(scope.row)">拷贝</a>--> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -320,7 +321,79 @@ |
|
|
|
<el-button type="primary" @click="revNoFlag = false">{{'关闭'}}</el-button> |
|
|
|
</el-form> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
width="750px" |
|
|
|
title="选择物料" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="partModelFlag"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" > |
|
|
|
<el-form-item style="margin-left: 0px" label="技术参数卡"> |
|
|
|
|
|
|
|
<el-input v-model="copyData.oriCodeNo" style="width: 130px" disabled ></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-left: 0px" label="版本"> |
|
|
|
<el-input v-model="copyData.revNo" style="width: 130px" disabled ></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-left: 0px" label="项目料号"> |
|
|
|
<el-input v-model="copyData.testPartNo" style="width: 130px" disabled ></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-left: 0px" label="项目编码"> |
|
|
|
<el-input v-model="copyData.projectId" style="width: 130px" disabled ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
height="450" |
|
|
|
:data="partList" |
|
|
|
border |
|
|
|
@row-dblclick="choosePartNo" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
prop="finalPartNo" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
style="font-size: 20px" |
|
|
|
label="正式料号"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="testPartNo" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
style="font-size: 20px" |
|
|
|
label="项目料号"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="projectId" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
style="font-size: 20px" |
|
|
|
label="项目编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="customerPartNo" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
label="客户料号"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="partDesc" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
label="物料名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="buNo" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="70" |
|
|
|
label="BU"> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-dialog> |
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -332,6 +405,7 @@ |
|
|
|
deleteTechnicalSpecificationList, |
|
|
|
upBMRevNo, |
|
|
|
issueChange, // 下达 |
|
|
|
searchCopyPart, |
|
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
import AddOrUpdate from './com_technical-add-or-update' |
|
|
|
@ -357,6 +431,17 @@ |
|
|
|
addOrUpdateVisible:false, |
|
|
|
height:200, |
|
|
|
dataList1: [], |
|
|
|
partList:[], |
|
|
|
copyData:{ |
|
|
|
site:'', |
|
|
|
codeNo:'', |
|
|
|
oriCodeNo:'', |
|
|
|
testPartNo:'', |
|
|
|
projectId:'', |
|
|
|
revNo:'', |
|
|
|
newPartNo:'', |
|
|
|
}, |
|
|
|
partModelFlag:false, |
|
|
|
searchData: { |
|
|
|
page: 1, |
|
|
|
limit: 100, |
|
|
|
@ -819,6 +904,7 @@ |
|
|
|
if(this.dataList1.length>0){ |
|
|
|
this.$refs.mainTable.setCurrentRow(this.dataList1[0]); |
|
|
|
this.changeData(this.dataList1[0]) |
|
|
|
this.jumpDetail(this.dataList1[0]) |
|
|
|
} |
|
|
|
} |
|
|
|
this.dataListLoading = false |
|
|
|
@ -1064,6 +1150,24 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
copyBM(row){ |
|
|
|
this.copyData={ |
|
|
|
site:row.site, |
|
|
|
codeNo:row.codeNo, |
|
|
|
oriCodeNo:row.oriCodeNo, |
|
|
|
testPartNo:row.testPartNo, |
|
|
|
projectId:row.projectId, |
|
|
|
revNo:row.revNo, |
|
|
|
newPartNo:'', |
|
|
|
} |
|
|
|
searchCopyPart(this.copyData).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
this.partList=data.rows |
|
|
|
} |
|
|
|
this.dataListLoading = false |
|
|
|
}) |
|
|
|
this.partModelFlag=true |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|