更新
This commit is contained in:
@@ -22,7 +22,7 @@ export const ServerIP = `http://192.168.1.231:8411/webpage/file/`
|
|||||||
export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231
|
export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231
|
||||||
export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231
|
export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
|
baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
||||||
timeout: 1500000 // 请求超时时间
|
timeout: 1500000 // 请求超时时间
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchtable, searchtable2, change, handlechange, searchtable3, change2, handlechange2, change3 } from '@/api/ManufacturingCenter/MaterialArrivalManagement'
|
import { searchtable, searchtable2, searchtable3, change2, change3 } from '@/api/ManufacturingCenter/MaterialArrivalManagement'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -143,7 +143,7 @@ export default {
|
|||||||
this.bianliang1.push(this.arrest2[i].工艺计划流水号)
|
this.bianliang1.push(this.arrest2[i].工艺计划流水号)
|
||||||
this.bianliang2.push(this.arrest2[i].工序流水号)
|
this.bianliang2.push(this.arrest2[i].工序流水号)
|
||||||
}
|
}
|
||||||
change3(this.bianliang2, '0000', this.bianliang1).then(response => {
|
change3(this.bianliang2, this.userId, this.bianliang1).then(response => {
|
||||||
this.searchTable()
|
this.searchTable()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -190,20 +190,20 @@ export default {
|
|||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 自家备料确认
|
// // 自家备料确认
|
||||||
handleChange1(row) {
|
// handleChange1(row) {
|
||||||
var date = new Date()
|
// var date = new Date()
|
||||||
var month = this.zeroFill(date.getMonth() + 1)
|
// var month = this.zeroFill(date.getMonth() + 1)
|
||||||
var day = this.zeroFill(date.getDate())
|
// var day = this.zeroFill(date.getDate())
|
||||||
this.editTime = date.getFullYear() + '-' + month + '-' + day
|
// this.editTime = date.getFullYear() + '-' + month + '-' + day
|
||||||
change(row.工艺计划流水号, row.重量, row.单价).then(() => {
|
// change(row.工艺计划流水号, row.重量, row.单价).then(() => {
|
||||||
handlechange(row.工序流水号, '0000').then(response => {
|
// handlechange(row.工序流水号, this.userId).then(response => {
|
||||||
handlechange2(row.工序流水号, this.editTime).then(response => {
|
// handlechange2(row.工序流水号, this.editTime).then(response => {
|
||||||
this.searchTable()
|
// this.searchTable()
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.arrest = val
|
this.arrest = val
|
||||||
},
|
},
|
||||||
@@ -250,7 +250,7 @@ export default {
|
|||||||
this.bianliang1.push(this.arrest[i].工艺计划流水号)
|
this.bianliang1.push(this.arrest[i].工艺计划流水号)
|
||||||
this.bianliang2.push(this.arrest[i].工序流水号)
|
this.bianliang2.push(this.arrest[i].工序流水号)
|
||||||
}
|
}
|
||||||
change2(this.bianliang2, '0000', this.bianliang1).then(response => {
|
change2(this.bianliang2, this.userId, this.bianliang1).then(response => {
|
||||||
this.searchTable2()
|
this.searchTable2()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -519,9 +519,6 @@ export default {
|
|||||||
this.process[i][k] = response.data[k].工艺名称简称
|
this.process[i][k] = response.data[k].工艺名称简称
|
||||||
this.planDate[i][k] = response.data[k].计划日期_短
|
this.planDate[i][k] = response.data[k].计划日期_短
|
||||||
this.realDate[i][k] = response.data[k].完成日期_短
|
this.realDate[i][k] = response.data[k].完成日期_短
|
||||||
if (response.data[k].工艺编号 === 29) {
|
|
||||||
response.data[k].员工姓名 = '备料'
|
|
||||||
}
|
|
||||||
if (response.data[k].工序间是否外协 === 2) {
|
if (response.data[k].工序间是否外协 === 2) {
|
||||||
response.data[k].员工姓名 = '外协'
|
response.data[k].员工姓名 = '外协'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,9 @@
|
|||||||
<span>表单号:</span>
|
<span>表单号:</span>
|
||||||
<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:200px"/>
|
<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:200px"/>
|
||||||
<span>外协厂家:</span>
|
<span>外协厂家:</span>
|
||||||
<el-input v-model="manufacturers" readonly size="small" placeholder="外协厂家" style="width:250px" clearable>
|
<el-input v-model="manufacturers" size="small" placeholder="外协厂家" style="width:200px" clearable/>
|
||||||
<el-button slot="append" icon="el-icon-search" @click="onFocus1();param=0"/>
|
|
||||||
</el-input>
|
|
||||||
<span>下达任务日期:</span>
|
<span>下达任务日期:</span>
|
||||||
<el-date-picker
|
<el-date-picker0
|
||||||
v-model="time"
|
|
||||||
type="date"
|
type="date"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="选择日期"/>
|
placeholder="选择日期"/>
|
||||||
@@ -639,7 +636,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.List = []
|
this.List = []
|
||||||
this.List3 = []
|
this.List3 = []
|
||||||
getTable(this.num, this.formNumber, this.num1, this.ManufactorNumber, this.num2, this.time1, this.time2, this.id, this.pageList, this.pageSize).then(response => {
|
getTable(this.num, this.formNumber, this.num1, this.manufacturers, this.num2, this.time1, this.time2, this.id, this.pageList, this.pageSize).then(response => {
|
||||||
this.total = parseInt(response.data.total)
|
this.total = parseInt(response.data.total)
|
||||||
for (let i = 0; i < response.data.rows.length; i++) {
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
if (response.data.rows[i].任务下达日期 !== null) {
|
if (response.data.rows[i].任务下达日期 !== null) {
|
||||||
@@ -890,7 +887,6 @@ export default {
|
|||||||
handleCurrentChange3(row) {
|
handleCurrentChange3(row) {
|
||||||
if (this.param === 0) {
|
if (this.param === 0) {
|
||||||
this.name1 = row.外协厂家名称
|
this.name1 = row.外协厂家名称
|
||||||
this.ManufactorNumber = row.外协厂家流水号
|
|
||||||
} else {
|
} else {
|
||||||
this.form.外协厂家 = row.外协厂家名称
|
this.form.外协厂家 = row.外协厂家名称
|
||||||
this.ManufactorNumber1 = row.外协厂家流水号
|
this.ManufactorNumber1 = row.外协厂家流水号
|
||||||
|
|||||||
Reference in New Issue
Block a user