Browse Source

plm BMM

master
ruanqi 1 year ago
parent
commit
837a1dd8fd
  1. 1
      src/api/sampleManagement/technicalSpecificationList.js
  2. 29
      src/views/modules/sampleManagement/technicalSpecificationList.vue

1
src/api/sampleManagement/technicalSpecificationList.js

@ -125,3 +125,4 @@ export const getFinalPartData= data => createAPI(`/technicalSpecification/getFin
export const getOADetailForBM= data => createAPI(`/technicalSpecification/getOADetailForBM`,'post',data) export const getOADetailForBM= data => createAPI(`/technicalSpecification/getOADetailForBM`,'post',data)
export const searchCopyPart= data => createAPI(`/technicalSpecification/searchCopyPart`,'post',data) export const searchCopyPart= data => createAPI(`/technicalSpecification/searchCopyPart`,'post',data)
export const copyBm= data => createAPI(`/technicalSpecification/copyBm`,'post',data)

29
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -70,7 +70,7 @@
<!-- <a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)" v-if="scope.row.statusDesc!=='已完成'">修改</a>--> <!-- <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" @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" v-if="scope.row.status === 'cg'" @click="issueModal(scope.row)">下达</a>
<!-- <a type="text" size="small" @click="copyBM(scope.row)">拷贝</a>-->
<a type="text" size="small" v-if="scope.row.statusDesc!=='已升版'" @click="copyBM(scope.row)">拷贝</a>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -406,6 +406,7 @@
upBMRevNo, upBMRevNo,
issueChange, // issueChange, //
searchCopyPart, searchCopyPart,
copyBm,
} 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'
@ -1169,7 +1170,31 @@
this.partModelFlag=true this.partModelFlag=true
}, },
choosePartNo(row){ choosePartNo(row){
this.$message.success( '敬请期待~')
let saveData={
site:this.copyData.site,
codeNo:this.copyData.codeNo,
testPartNo:this.copyData.testPartNo,
projectId:this.copyData.projectId,
revNo:this.copyData.revNo,
newPartNo:row.testPartNo,
username:this.$store.state.user.name
}
this.$confirm('确定要拷贝?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
copyBm(saveData).then(({data}) => {
if (data && data.code === 0) {
this.$message.success( '操作成功')
this.partModelFlag=false;
this.search();
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {
})
}, },
}, },
} }

Loading…
Cancel
Save