外协任务执行
This commit is contained in:
@@ -97,26 +97,26 @@ export function addTable(contractNumber, personNum, manufacturers, time, freight
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 外协加工任务单修改
|
// 外协加工任务单修改
|
||||||
export function editData(Number, manufacturers, freight, documentStatus, sign, Explain) {
|
export function editData(Number, manufacturers, freight, Explain) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '车间生产管理_外协加工任务单_修改数据',
|
name: '车间生产管理_外协加工任务单_修改数据',
|
||||||
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain
|
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=2&入库标志=1&扣款说明=' + Explain
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 成交
|
// 成交
|
||||||
export function editData1(Number, manufacturers, freight, documentStatus, sign, Explain) {
|
export function editData1(Number, manufacturers, freight, Explain) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '车间生产管理_外协加工任务单_修改数据',
|
name: '车间生产管理_外协加工任务单_修改数据',
|
||||||
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain + '&扣款_质量=0&扣款_计划=0&扣款_其他=0'
|
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=2&入库标志=1&扣款说明=' + Explain + '&扣款_质量=0&扣款_计划=0&扣款_其他=0'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1207,14 +1207,12 @@ export default {
|
|||||||
},
|
},
|
||||||
// 成交
|
// 成交
|
||||||
Deal() {
|
Deal() {
|
||||||
this.documentStatus = 2
|
|
||||||
this.sign = 1
|
|
||||||
this.$confirm('成交后单据不可修改, 确定成交吗?', '提示', {
|
this.$confirm('成交后单据不可修改, 确定成交吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
editData1(this.Number, this.ManufactorNumber, this.freight, this.documentStatus, this.sign, this.Explain).then(response => {
|
editData1(this.Number, this.ManufactorNumber, this.freight, this.Explain).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
@@ -1265,7 +1263,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交编辑
|
// 提交编辑
|
||||||
submitEdit() {
|
submitEdit() {
|
||||||
editData(this.Number, this.ManufactorNumber1, this.form.运费, this.documentStatus, 1, this.Explain).then(response => {
|
editData(this.Number, this.ManufactorNumber1, this.form.运费, this.Explain).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('编辑成功')
|
this.$message.success('编辑成功')
|
||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
|
|||||||
Reference in New Issue
Block a user