This commit is contained in:
liushuai
2019-11-22 17:21:06 +08:00
parent a6f0f43967
commit 440b5484e9
3 changed files with 6 additions and 4 deletions

View File

@@ -168,14 +168,14 @@ export function deleteMateriel(num1, num2, num3) {
}) })
} }
// 关联材料 // 关联材料
export function addMateriel(num1, num2, num3, num4, num5) { export function addMateriel(num1, num2, num3, num4, num5, id) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
data: { data: {
type: '2', type: '2',
name: '备料管理_到货单明细关联', name: '备料管理_到货单明细关联',
param: `到货单明细流水号=${num1}&工艺计划流水号组=${num2}&采购计划明细流水号组=${num3}&本次到货数量组=${num4}&离线采购计划明细流水号组=${num5}` param: `到货单明细流水号=${num1}&工艺计划流水号组=${num2}&采购计划明细流水号组=${num3}&本次到货数量组=${num4}&离线采购计划明细流水号组=${num5}&考勤编号=${id}`
} }
}) })
} }

View File

@@ -26,7 +26,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx` export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx` export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
const service = axios.create({ const service = axios.create({
baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`, baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
timeout: 1500000 // 请求超时时间 timeout: 1500000 // 请求超时时间
}) })
export default service export default service

View File

@@ -526,6 +526,7 @@ export default {
'sidebar', 'sidebar',
'avatar', 'avatar',
'name', 'name',
'userId',
'id' // 人员编号 'id' // 人员编号
]) ])
}, },
@@ -838,6 +839,7 @@ export default {
}) })
}, },
searchTable5(row) { searchTable5(row) {
console.log(this.userId, this.id)
this.disable = row.是否关联 this.disable = row.是否关联
console.log(this.disable) console.log(this.disable)
this.tableData6 = [] this.tableData6 = []
@@ -984,7 +986,7 @@ export default {
this.离线采购计划明细流水号组.push(v.离线采购计划明细流水号) this.离线采购计划明细流水号组.push(v.离线采购计划明细流水号)
this.本次到货数量组.push(v.未到货数量) this.本次到货数量组.push(v.未到货数量)
}) })
addMateriel(this.ArrivalOrderMXNumber, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组).then(response => { addMateriel(this.ArrivalOrderMXNumber, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组, this.userId).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('关联成功') this.$message.success('关联成功')
searchMateriel(this.采购计划流水号).then(response => { searchMateriel(this.采购计划流水号).then(response => {