|
|
@ -211,7 +211,7 @@ |
|
|
<a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转正式料号</a> |
|
|
<a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转正式料号</a> |
|
|
<a v-if="scope.row.status === '进行中' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转量产</a> |
|
|
<a v-if="scope.row.status === '进行中' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转量产</a> |
|
|
</div> |
|
|
</div> |
|
|
<div v-else-if="scope.row.status !== '已量产'"> |
|
|
|
|
|
|
|
|
<div v-else-if="scope.row.status !== '已量产' && scope.row.status !== '正式量产'"> |
|
|
<a v-if="scope.row.status === '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="updateModalStatus(scope.row)">下达</a> |
|
|
<a v-if="scope.row.status === '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="updateModalStatus(scope.row)">下达</a> |
|
|
<a v-if="scope.row.status !== '草稿'" type="text" size="small" @click="addProofRecord(scope.row)">新增打样</a> |
|
|
<a v-if="scope.row.status !== '草稿'" type="text" size="small" @click="addProofRecord(scope.row)">新增打样</a> |
|
|
<a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="changeFormalPartNo(scope.row)">转正式料号</a> |
|
|
<a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="changeFormalPartNo(scope.row)">转正式料号</a> |
|
|
@ -4476,19 +4476,27 @@ import {EventBus} from "../../../main"; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getConfirmProgressPusherList() { |
|
|
getConfirmProgressPusherList() { |
|
|
let inData = { |
|
|
|
|
|
site: this.proofingCurrentRow.site, |
|
|
|
|
|
orderRef1: this.proofingCurrentRow.projectId, |
|
|
|
|
|
orderRef2: this.proofingCurrentRow.projectPartId, |
|
|
|
|
|
page: 1, |
|
|
|
|
|
limit: 1000 |
|
|
|
|
|
} |
|
|
|
|
|
searchConfirmProgressPusherList(inData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0){ |
|
|
|
|
|
this.confirmProgressPusherList = data.page.list; |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
|
let inData = { |
|
|
|
|
|
site: this.proofingCurrentRow.site, |
|
|
|
|
|
orderRef1: this.proofingCurrentRow.projectId, |
|
|
|
|
|
orderRef2: this.proofingCurrentRow.projectPartId, |
|
|
|
|
|
page: 1, |
|
|
|
|
|
limit: 1000 |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
searchConfirmProgressPusherList(inData).then(({ data }) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.confirmProgressPusherList = data.page.list; |
|
|
|
|
|
resolve(); // 成功时调用 resolve |
|
|
|
|
|
} else { |
|
|
|
|
|
reject(new Error(data.msg)); // 处理错误 |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
reject(error); // 处理请求错误 |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
} , |
|
|
confirmDocument(row) { |
|
|
confirmDocument(row) { |
|
|
// 将this.$store.state.user.id转为字符串 |
|
|
// 将this.$store.state.user.id转为字符串 |
|
|
let userId = this.$store.state.user.id.toString() |
|
|
let userId = this.$store.state.user.id.toString() |
|
|
@ -4598,7 +4606,37 @@ import {EventBus} from "../../../main"; |
|
|
if (data.code === 0) { |
|
|
if (data.code === 0) { |
|
|
this.confirmVisible = false; |
|
|
this.confirmVisible = false; |
|
|
this.getConfirmProgressDocumentList(); |
|
|
this.getConfirmProgressDocumentList(); |
|
|
this.getConfirmProgressPusherList(); |
|
|
|
|
|
|
|
|
this.getConfirmProgressPusherList().then(() => { |
|
|
|
|
|
// 判断 confirmProgressPusherList 中的 confirmFlag 是否全部为 Y |
|
|
|
|
|
let flag = true; |
|
|
|
|
|
for (let i = 0; i < this.confirmProgressPusherList.length; i++) { |
|
|
|
|
|
if (this.confirmProgressPusherList[i].confirmFlag !== 'Y') { |
|
|
|
|
|
flag = false; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (flag) { |
|
|
|
|
|
this.proofingCurrentRow.status = '正式量产'; |
|
|
|
|
|
eamProjectPartInfoEdit(this.proofingCurrentRow).then(({ data }) => { |
|
|
|
|
|
this.dataList.forEach((item) => { |
|
|
|
|
|
if (item.projectPartId === this.proofingCurrentRow.projectPartId) { |
|
|
|
|
|
this.dataListIndex = this.dataList.indexOf(item) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
this.getDataList(); |
|
|
|
|
|
if (data.code !== 0) { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
this.$alert('获取确认进度推送列表失败', '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
EventBus.$emit('updateAgencyMatterForConfirm') |
|
|
EventBus.$emit('updateAgencyMatterForConfirm') |
|
|
}else { |
|
|
}else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|