更新
This commit is contained in:
@@ -48,4 +48,14 @@ export function selecttable(check1, value1, check2, value2, check3, value3, chec
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function searchPic(num) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '质检管理_图片_查询数据',
|
||||||
|
param: '质检流水号=' + num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ export function getprocedure(processPlan, single) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 外协厂家查询
|
// 外协厂家查询
|
||||||
export function searchManufactor(name) {
|
export function searchManufactor(check, name) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件',
|
name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件',
|
||||||
param: '序号_check=0=bit&序号=' + ' ' + '=string&外协厂家名称_check=1=bit&外协厂家名称=' + name + '=string&外协厂家简称_check=0=bit&外协厂家简称=' + ' ' + '=string&地址_check=0=bit&地址=' + ' ' + '=string&联系人_check=0=bit&联系人=' + ' ' + '=string&电话_check=0=bit&电话=' + ' ' + '=string&传真_check=0=bit&传真=' + ' ' + '=string&备注_check=0=bit&备注=' + ' ' + '=string&类别_check=0=bit&类别=' + ' ' + '=string&关注_check=0=bit&关注=' + ' ' + '=string&设备情况_check=0=bit&设备情况=' + ' ' + '=string'
|
param: '序号_check=0=bit&序号=' + ' ' + '=string&外协厂家名称_check=' + check + '=bit&外协厂家名称=' + name + '&外协厂家简称_check=0=bit&外协厂家简称=' + ' ' + '=string&地址_check=0=bit&地址=' + ' ' + '=string&联系人_check=0=bit&联系人=' + ' ' + '=string&电话_check=0=bit&电话=' + ' ' + '=string&传真_check=0=bit&传真=' + ' ' + '=string&备注_check=0=bit&备注=' + ' ' + '=string&类别_check=0=bit&类别=' + ' ' + '=string&关注_check=0=bit&关注=' + ' ' + '=string&设备情况_check=0=bit&设备情况=' + ' ' + '=string'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 // 请求超时时间
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -144,16 +144,17 @@
|
|||||||
@current-change="handleCurrentChange"/>
|
@current-change="handleCurrentChange"/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-dialog :visible.sync="dialogFormVisible" title="图片" center style="" width="600px">
|
<el-dialog :visible.sync="dialogFormVisible" title="图片" center style="" width="1100px">
|
||||||
<div class="demo-image__lazy">
|
<viewer>
|
||||||
<el-image v-for="url in urls" :key="url" :src="url" lazy/>
|
<img v-for="url in urls" :key="url" :src="url" lazy style="width: 1000px;height: 700px">
|
||||||
</div>
|
</viewer>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { initProject, searchgroup, selecttable, QualityType } from '@/api/Assembly/QualityInspectionInformationInquiry'
|
import { initProject, searchgroup, selecttable, QualityType, searchPic } from '@/api/Assembly/QualityInspectionInformationInquiry'
|
||||||
|
import { readFile } from '@/utils/request'
|
||||||
// import { mapGetters } from 'vuex'
|
// import { mapGetters } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -163,6 +164,7 @@ export default {
|
|||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
urls: [],
|
urls: [],
|
||||||
|
URL: '',
|
||||||
number: '',
|
number: '',
|
||||||
groupNumberValue: '',
|
groupNumberValue: '',
|
||||||
groupNumber: [],
|
groupNumber: [],
|
||||||
@@ -234,6 +236,15 @@ export default {
|
|||||||
},
|
},
|
||||||
viewPicture(row) {
|
viewPicture(row) {
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
|
console.log(row)
|
||||||
|
searchPic(row.质检流水号).then(response => {
|
||||||
|
console.log(response.data, 222)
|
||||||
|
this.urls = []
|
||||||
|
// this.URL = readFile + response.data[0].文件标识 + '.' + response.data[0].文件后缀
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.urls.push(readFile + response.data[i].文件标识 + '.' + response.data[i].文件后缀)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 分页
|
// 分页
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
|
|||||||
@@ -588,6 +588,7 @@ export default {
|
|||||||
body.append(printNode)
|
body.append(printNode)
|
||||||
window.print()
|
window.print()
|
||||||
body.children().not('script').show()
|
body.children().not('script').show()
|
||||||
|
body.children().not('#app').hide()
|
||||||
printNode.remove()
|
printNode.remove()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1424,7 +1425,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchData() {
|
searchData() {
|
||||||
searchManufactor(this.input).then(response => {
|
if (this.input !== '') {
|
||||||
|
this.check = 1
|
||||||
|
} else {
|
||||||
|
this.check = 0
|
||||||
|
}
|
||||||
|
searchManufactor(this.check, this.input).then(response => {
|
||||||
this.List2 = response.data
|
this.List2 = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1487,7 +1493,7 @@ export default {
|
|||||||
tr[i].setAttribute('class', 'tableData')
|
tr[i].setAttribute('class', 'tableData')
|
||||||
tr[i].innerHTML = '<td></td>' + '<td colspan="5"></td>' + '<td colspan="2"></td>' + '<td colspan="2"></td>' +
|
tr[i].innerHTML = '<td></td>' + '<td colspan="5"></td>' + '<td colspan="2"></td>' + '<td colspan="2"></td>' +
|
||||||
'<td colspan="9" style="text-align: left;"></td>' + '<td colspan="1"></td>' + '<td></td><td></td><td></td><td></td><td colspan="2"></td><td colspan="2"></td>'
|
'<td colspan="9" style="text-align: left;"></td>' + '<td colspan="1"></td>' + '<td></td><td></td><td></td><td></td><td colspan="2"></td><td colspan="2"></td>'
|
||||||
document.getElementById('tableHead').after(tr[i])
|
$('#tableHead').after(tr[i])
|
||||||
}
|
}
|
||||||
for (let j = 0; j < this.returns.length; j++) {
|
for (let j = 0; j < this.returns.length; j++) {
|
||||||
document.getElementsByClassName('tableData')[j].children[0].innerHTML = j + 1
|
document.getElementsByClassName('tableData')[j].children[0].innerHTML = j + 1
|
||||||
|
|||||||
@@ -431,6 +431,7 @@ export default {
|
|||||||
body.append(printNode)
|
body.append(printNode)
|
||||||
window.print()
|
window.print()
|
||||||
body.children().not('script').show()
|
body.children().not('script').show()
|
||||||
|
body.children().not('#app').hide()
|
||||||
printNode.remove()
|
printNode.remove()
|
||||||
},
|
},
|
||||||
handleSizeChange1(val) {
|
handleSizeChange1(val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user