外协零件到货

This commit is contained in:
zhangdingyu
2019-12-30 15:57:35 +08:00
parent 8f6c0c0b4d
commit 5b5a473592
3 changed files with 9 additions and 5 deletions

View File

@@ -156,14 +156,14 @@ export function deleteData1(Number) {
}) })
} }
// 零件到货 // 零件到货
export function Arrival(Number) { export function Arrival(Number, Num) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
data: { data: {
type: '2', type: '2',
name: '车间生产管理_外协零件_到货', name: '车间生产管理_外协零件_到货',
param: `外协加工任务单明细流水号组=${Number}` param: `外协加工任务单明细流水号组=${Number}&工艺计划流水号组=${Num}`
} }
}) })
} }

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.1.231:8411/submit/MESCommonBase.ashx`, baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`,
timeout: 1500000 // 请求超时时间 timeout: 1500000 // 请求超时时间
}) })
export default service export default service

View File

@@ -167,6 +167,7 @@ export default {
}, },
data() { data() {
return { return {
工艺计划流水号: [],
OutsouringNumber: [], OutsouringNumber: [],
wancheng: '', wancheng: '',
gongxulsh: [], gongxulsh: [],
@@ -529,6 +530,7 @@ export default {
getProcedure(row) { getProcedure(row) {
for (let i = 0; i < row.length; i++) { for (let i = 0; i < row.length; i++) {
getprocedure(row[i].工艺计划流水号, row[i].单件是否外协).then(response => { getprocedure(row[i].工艺计划流水号, row[i].单件是否外协).then(response => {
this.List3[i].外协工序 = ''
this.procedure[i] = '' this.procedure[i] = ''
for (let j = 0; j < response.data.length; j++) { for (let j = 0; j < response.data.length; j++) {
this.procedure[i] = this.procedure[i] + ' ' + response.data[j].工艺名称简称 this.procedure[i] = this.procedure[i] + ' ' + response.data[j].工艺名称简称
@@ -597,13 +599,15 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.OutsouringNumber = [] this.OutsouringNumber = []
this.工艺计划流水号 = []
for (let i = 0; i < val.length; i++) { for (let i = 0; i < val.length; i++) {
this.OutsouringNumber.push(val[i].外协加工任务单明细流水号) this.OutsouringNumber.push(val[i].外协加工任务单明细流水号)
this.工艺计划流水号.push(val[i].工艺计划流水号)
} }
}, },
getSpareParts() { // 选入零件 getSpareParts() {
if (this.OutsouringNumber.length !== 0) { if (this.OutsouringNumber.length !== 0) {
Arrival(this.OutsouringNumber).then(response => { Arrival(this.OutsouringNumber, this.工艺计划流水号).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('到货成功') this.$message.success('到货成功')
this.contrast = 3000000000000 this.contrast = 3000000000000