a
This commit is contained in:
@@ -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 {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.el-card{
|
||||
margin: 0px;
|
||||
}
|
||||
td{
|
||||
width: 100px;
|
||||
height: 30px;
|
||||
text-align:center;
|
||||
}
|
||||
.el-table .chengjiao {
|
||||
background: #AEF199;
|
||||
}
|
||||
.el-input__inner {
|
||||
height: 30px;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.el-table .chajia {
|
||||
background: #EBF953;
|
||||
}
|
||||
#tableHead td{
|
||||
border:1px solid black;
|
||||
}
|
||||
.tableData td{
|
||||
border:1px solid black;
|
||||
}
|
||||
#tableFoot td{
|
||||
border:1px solid black;
|
||||
}
|
||||
.tbodyHead td{
|
||||
text-align: left;
|
||||
}
|
||||
.foot td{
|
||||
width: 7%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user