追述加工国税

This commit is contained in:
zhangdingyu
2019-12-31 17:04:22 +08:00
parent e39e3d31b6
commit d1547f2318
3 changed files with 24 additions and 16 deletions

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

@@ -422,14 +422,22 @@ export default {
}, },
watch: { watch: {
// 如果路由有变化,会再次执行该方法 // 如果路由有变化,会再次执行该方法
'$route': { '$route'(to) {
handler(route) { const _this = this
const _this = this console.log(to, 2222)
if (route.name === 'InitialProduction') { if (to.name === 'InitialProduction') {
_this.typeChange() _this.typeChange()
}
} }
} }
// '$route': {
// handler(route) {
// const _this = this
// console.log(route.name)
// if (route.name === 'InitialProduction') {
// _this.typeChange()
// }
// }
// }
}, },
created() { created() {
// this.typeChange() // this.typeChange()
@@ -503,10 +511,12 @@ export default {
}) })
}, },
typeChange() { typeChange() {
console.log(Cookie.get('machineValue'), 1111111)
this.toolNumValue = ''
this.toolNum = []
this.NumValue = ''
this.Num = []
if (Cookie.get('machineValue') !== undefined) { if (Cookie.get('machineValue') !== undefined) {
this.toolNumValue = ''
this.NumValue = ''
this.Num = []
getToolNum().then(response => { getToolNum().then(response => {
for (let i = 0; i < response.data.length; i++) { for (let i = 0; i < response.data.length; i++) {
this.toolNum.push({ this.toolNum.push({
@@ -524,9 +534,6 @@ export default {
Cookie.remove('group') Cookie.remove('group')
}) })
} else { } else {
this.toolNumValue = ''
this.NumValue = ''
this.Num = []
getToolNum().then(response => { getToolNum().then(response => {
for (let i = 0; i < response.data.length; i++) { for (let i = 0; i < response.data.length; i++) {
this.toolNum.push({ this.toolNum.push({

View File

@@ -90,12 +90,12 @@
{{ scope.row.跟单号 }} {{ scope.row.跟单号 }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
{{ scope.row.零件名称 }} {{ scope.row.零件名称 }}
</template> </template>
@@ -346,6 +346,7 @@ export default {
for (let i = 0; i < response.data.rows.length; i++) { for (let i = 0; i < response.data.rows.length; i++) {
this.tableData.push({ this.tableData.push({
工艺计划流水号: response.data.rows[i].工艺计划流水号, 工艺计划流水号: response.data.rows[i].工艺计划流水号,
考核状态: response.data.rows[i].考核状态,
序号: response.data.rows[i].序号, 序号: 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 }) { tableRowClassName({ row, rowIndex }) {
row.index = rowIndex row.index = rowIndex
if (row.完成日期 !== '') { if (parseInt(row.考核状态) > 6) {
return 'CompleteColor' return 'CompleteColor'
} }
}, // 重置表单 }, // 重置表单