|
|
@@ -201,7 +201,7 @@
|
|
|
<el-button type="primary" size="small" @click="save('齐套')"
|
|
|
>齐套</el-button
|
|
|
>
|
|
|
- <el-button type="primary" size="small" @click="save('缺料')"
|
|
|
+ <el-button type="primary" size="small" @click="save('不齐套')"
|
|
|
>不齐套</el-button
|
|
|
>
|
|
|
</template>
|
|
|
@@ -228,6 +228,15 @@
|
|
|
</el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
+ <template v-slot:footer>
|
|
|
+ <el-button size="small" @click="fileVisible = false">返回</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="saveFile('齐套')"
|
|
|
+ >齐套</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" size="small" @click="saveFile('不齐套')"
|
|
|
+ >不齐套</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
</ele-modal>
|
|
|
|
|
|
<kitting-complete ref="kittingCompleteRef"></kitting-complete>
|
|
|
@@ -547,11 +556,32 @@
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
save(statusStr) {
|
|
|
- let data = this.preReleaseList.find((item) => item.preType == 5);
|
|
|
- console.log(data);
|
|
|
- data.statusStr = statusStr;
|
|
|
- this.updatePreRelease(data);
|
|
|
- this.routeVisible = false;
|
|
|
+ this.$confirm(`NC代码是否确认设置为"${statusStr}"?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let data = this.preReleaseList.find((item) => item.preType == 5);
|
|
|
+ data.statusStr = statusStr;
|
|
|
+ this.updatePreRelease(data);
|
|
|
+ this.routeVisible = false;
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+ saveFile(statusStr) {
|
|
|
+ this.$confirm(`工艺文件是否确认设置为"${statusStr}"?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let data = this.preReleaseList.find((item) => item.preType == 4);
|
|
|
+ data.statusStr = statusStr;
|
|
|
+ this.updatePreRelease(data);
|
|
|
+ this.fileVisible = false;
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
updatePreRelease(item) {
|
|
|
if (this.type == 'plan') {
|