|
|
@@ -4038,11 +4038,15 @@
|
|
|
console.log(getDocumentDatas)
|
|
|
//1.2获取历史工艺信息
|
|
|
const getHistorys = await getHistory({order:workData.value.Gd_gdbh,peijian:''})
|
|
|
- update.value = getHistorys.data.update
|
|
|
- gyData.value=getHistorys.data.data.map((item)=>({
|
|
|
- gy:item
|
|
|
- }))
|
|
|
- console.log(getHistorys.data.data)
|
|
|
+ console.log(getHistorys)
|
|
|
+ update.value = getHistorys.data.update
|
|
|
+ if(getHistorys.data.data){
|
|
|
+ gyData.value = getHistorys.data.data.map((item)=>({
|
|
|
+ gy:item
|
|
|
+ }))
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(getHistorys.data)
|
|
|
|
|
|
if (getDocumentDatas.code === 0) {
|
|
|
workData.value.version=getDocumentDatas.data.paper[0].产品版本号;
|
|
|
@@ -4062,7 +4066,7 @@
|
|
|
workData.value.product=getDocumentDatas.data.paper[0].bom_物料名称;
|
|
|
}
|
|
|
workData.value.num=getDocumentDatas.data.paper[0].bom_计划用量;
|
|
|
- if(getDocumentDatas.data.peijian){
|
|
|
+ if(getDocumentDatas.data.peijian.length){
|
|
|
peijian.value=getDocumentDatas.data.peijian[0]['id']
|
|
|
const getHistory = async() => {
|
|
|
const getDocumentHistorys = await getDocumentHistory({
|