diff --git a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
index a508f403..773c7427 100644
--- a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
+++ b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
@@ -504,45 +504,53 @@ export default {
})
})
} else {
- this.$message.warning('请选择订单')
+ this.$message.warning('请选择外协加工任务单')
}
},
// 保存
confirmPrice() {
- var 外协加工任务单明细流水号组 = []
- var 加工价格_成交组 = []
- for (let i = 0; i < this.List3.length; i++) {
- 外协加工任务单明细流水号组.push(this.List3[i].外协加工任务单明细流水号)
- 加工价格_成交组.push(this.List3[i].加工价格_成交)
- }
- getPrice(外协加工任务单明细流水号组, 加工价格_成交组).then(response => {
- this.loading = true
- this.List3 = []
- getParts(this.Number).then(response => {
- this.List3 = response.data
- this.loading = false
+ if (this.Number) {
+ var 外协加工任务单明细流水号组 = []
+ var 加工价格_成交组 = []
+ for (let i = 0; i < this.List3.length; i++) {
+ 外协加工任务单明细流水号组.push(this.List3[i].外协加工任务单明细流水号)
+ 加工价格_成交组.push(this.List3[i].加工价格_成交)
+ }
+ getPrice(外协加工任务单明细流水号组, 加工价格_成交组).then(response => {
+ this.loading = true
+ this.List3 = []
+ getParts(this.Number).then(response => {
+ this.List3 = response.data
+ this.loading = false
+ })
})
- })
+ } else {
+ this.$message.warning('请选择外协加工任务单')
+ }
},
// 提交
Deal() {
- this.$confirm('成交后单据不可修改, 确定成交吗?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- editData1(this.Number, this.ManufactorNumber).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('提交成功')
- this.fetchData()
- } else { this.$message.error('提交失败') }
+ if (this.Number) {
+ this.$confirm('成交后单据不可修改, 确定成交吗?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ editData1(this.Number, this.ManufactorNumber).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('提交成功')
+ this.fetchData()
+ } else { this.$message.error('提交失败') }
+ })
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消提交'
+ })
})
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消提交'
- })
- })
+ } else {
+ this.$message.warning('请选择外协加工任务单')
+ }
},
// 导出任务单
exportTable() {
@@ -596,39 +604,5 @@ export default {
-