Commit 62adf20e authored by 秦嘉's avatar 秦嘉

修改bug

parent 2fb476fe
......@@ -71,7 +71,7 @@ export function listStation(query) {
}
// 查询工单-模型列表
export function listModel(query) {
export function listModelOrder(query) {
return request({
url: '/nltifsorder/queryNltIfsOrderModelByPagination',
method: 'get',
......
......@@ -478,14 +478,13 @@
import {
delOrder,
getOrder,
getOrder1,
getOrder1, listModelOrder,
listOrder,
listOrderLine,
listOrderMater,
listStation,
manualImport
} from '@/api/workOrder'
import { listModel } from '@/api/model'
export default {
name: 'WorkOrder',
......@@ -544,12 +543,12 @@ export default {
rowsStation: {
page: 1,
rows: 10,
orderModelId: undefined
businessId: undefined
},
rowsModel: {
page: 1,
rows: 10,
partNo: undefined
businessId: undefined,
},
// 导入弹窗
importDialog: false,
......@@ -615,18 +614,16 @@ export default {
this.rowsBom.contract = row.contract
this.rowsBom.orderNo = row.orderNo
this.rowsLine.businessId = row.businessId
this.rowsModel.partNo = row.partNo
this.rowsStation.orderModelId = row.orderModelId
let states = row.state
this.rowsModel.businessId = row.businessId
this.rowsStation.businessId = row.businessId
let status = row.status
this.getBomTable()
this.getLineTable()
this.getStationTable(states)
this.getStationTable(status)
},
/** 查询工单BOM数据 */
getBomTable() {
this.Loading1 = true
// this.rowsBom.contract = row.contract
// this.rowsBom.orderNo = row.orderNo
listOrderMater(this.rowsBom).then(response => {
this.bomList = response.rows
this.total1 = response.total
......@@ -644,11 +641,12 @@ export default {
})
},
/** 查询工单工站和模型数据 */
getStationTable(states) {
getStationTable(status) {
this.Loading3 = true
if (states === '0') {
console.log(status,'工单状态')
if (status === 0) {
// this.rowsModel.partNo = row.partNo
listModel(this.rowsModel).then(response => {
listModelOrder(this.rowsModel).then(response => {
this.stationList = response.rows
this.total3 = response.total
this.Loading3 = false
......@@ -768,7 +766,6 @@ export default {
* 表格颜色变化
*/
tableRowClassName({row,rowIndex}) {
console.log(row,'表格数据')
if (row.isModel === '1') {
return 'warning-row'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment