追述加工国税
This commit is contained in:
@@ -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 MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
||||
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 // 请求超时时间
|
||||
})
|
||||
export default service
|
||||
|
||||
@@ -422,14 +422,22 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
// 如果路由有变化,会再次执行该方法
|
||||
'$route': {
|
||||
handler(route) {
|
||||
const _this = this
|
||||
if (route.name === 'InitialProduction') {
|
||||
_this.typeChange()
|
||||
}
|
||||
'$route'(to) {
|
||||
const _this = this
|
||||
console.log(to, 2222)
|
||||
if (to.name === 'InitialProduction') {
|
||||
_this.typeChange()
|
||||
}
|
||||
}
|
||||
// '$route': {
|
||||
// handler(route) {
|
||||
// const _this = this
|
||||
// console.log(route.name)
|
||||
// if (route.name === 'InitialProduction') {
|
||||
// _this.typeChange()
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
},
|
||||
created() {
|
||||
// this.typeChange()
|
||||
@@ -503,10 +511,12 @@ export default {
|
||||
})
|
||||
},
|
||||
typeChange() {
|
||||
console.log(Cookie.get('machineValue'), 1111111)
|
||||
this.toolNumValue = ''
|
||||
this.toolNum = []
|
||||
this.NumValue = ''
|
||||
this.Num = []
|
||||
if (Cookie.get('machineValue') !== undefined) {
|
||||
this.toolNumValue = ''
|
||||
this.NumValue = ''
|
||||
this.Num = []
|
||||
getToolNum().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.toolNum.push({
|
||||
@@ -524,9 +534,6 @@ export default {
|
||||
Cookie.remove('group')
|
||||
})
|
||||
} else {
|
||||
this.toolNumValue = ''
|
||||
this.NumValue = ''
|
||||
this.Num = []
|
||||
getToolNum().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.toolNum.push({
|
||||
|
||||
@@ -90,12 +90,12 @@
|
||||
{{ scope.row.跟单号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件图号" show-overflow-tooltip width="180">
|
||||
<el-table-column align="center" label="零件图号" show-overflow-tooltip width="280">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件名称" show-overflow-tooltip width="80">
|
||||
<el-table-column align="center" label="零件名称" show-overflow-tooltip width="200">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
@@ -346,6 +346,7 @@ export default {
|
||||
for (let i = 0; i < response.data.rows.length; i++) {
|
||||
this.tableData.push({
|
||||
工艺计划流水号: response.data.rows[i].工艺计划流水号,
|
||||
考核状态: response.data.rows[i].考核状态,
|
||||
序号: response.data.rows[i].序号,
|
||||
跟单号: response.data.rows[i].跟单号,
|
||||
零件图号: response.data.rows[i].零件图号,
|
||||
@@ -448,7 +449,7 @@ export default {
|
||||
// 完成日期变色
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
row.index = rowIndex
|
||||
if (row.完成日期 !== '') {
|
||||
if (parseInt(row.考核状态) > 6) {
|
||||
return 'CompleteColor'
|
||||
}
|
||||
}, // 重置表单
|
||||
|
||||
Reference in New Issue
Block a user