This commit is contained in:
		
							parent
							
								
									008210bd80
								
							
						
					
					
						commit
						d1c404535b
					
				| 
						 | 
				
			
			@ -509,7 +509,7 @@ export function getRetainedEquipmentListNoPageApi(query) {
 | 
			
		|||
// 在用详情查询
 | 
			
		||||
export function getUserRecordListApi(query) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/complex_query/getUserRecordList',
 | 
			
		||||
    url: '/material/material_maMachine/getUserRecordList',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    params: query
 | 
			
		||||
  })
 | 
			
		||||
| 
						 | 
				
			
			@ -518,52 +518,7 @@ export function getUserRecordListApi(query) {
 | 
			
		|||
// 在库详情查询
 | 
			
		||||
export function getStorageInfoListApi(query) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/complex_query/getStorageInfoList',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    params: query
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 在修详情查询
 | 
			
		||||
export function getRepairRecordListApi(query) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/complex_query/getRepairRecordList',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    params: query
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 新购待入库详情查询
 | 
			
		||||
export function getPurchaseRecordListApi(query) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/complex_query/getPurchaseRecordList',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    params: query
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//  修饰待入库详情查询
 | 
			
		||||
export function getRepairInputListApi(query) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/complex_query/getRepairInputList',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    params: query
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//  待报废详情查询
 | 
			
		||||
export function getToScrapInputListApi(query) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/complex_query/getScrapList',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    params: query
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//  已审核详情查询
 | 
			
		||||
export function getAuditInputListApi(query) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/complex_query/getScrapAuditList',
 | 
			
		||||
    url: '/material/material_maMachine/getStorageInfoList',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    params: query
 | 
			
		||||
  })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -197,11 +197,6 @@
 | 
			
		|||
import {
 | 
			
		||||
  getStorageInfoListApi,
 | 
			
		||||
  getUserRecordListApi,
 | 
			
		||||
  getRepairRecordListApi,
 | 
			
		||||
  getPurchaseRecordListApi,
 | 
			
		||||
  getRepairInputListApi,
 | 
			
		||||
  getToScrapInputListApi,
 | 
			
		||||
  getAuditInputListApi,
 | 
			
		||||
  getRetainedEquipmentListApi,
 | 
			
		||||
  getRetainedEquipmentListNoPageApi
 | 
			
		||||
} from '@/api/materialsStation'
 | 
			
		||||
| 
						 | 
				
			
			@ -408,146 +403,6 @@ export default {
 | 
			
		|||
        `综合查询_在用设备_${new Date().getTime()}.xlsx`
 | 
			
		||||
      )
 | 
			
		||||
    },
 | 
			
		||||
    // ------------------
 | 
			
		||||
    //查看在修设备
 | 
			
		||||
    openRepairRecords(row) {
 | 
			
		||||
      this.openRepairRecord = true
 | 
			
		||||
      this.dialogRepairQuery.typeId = row.typeId
 | 
			
		||||
      this.dialogRepairQuery.pageNum = 1
 | 
			
		||||
      this.dialogRepairQuery.keyWord = ''
 | 
			
		||||
      this.getRepairRecords()
 | 
			
		||||
    },
 | 
			
		||||
    /** 查询在修设备列表 */
 | 
			
		||||
    getRepairRecords() {
 | 
			
		||||
      getRepairRecordListApi(this.dialogRepairQuery).then(response => {
 | 
			
		||||
        this.repairRecordList = response.data.rows
 | 
			
		||||
        this.dialogRepairTotal = response.data.total
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    /** 搜索在修按钮操作 */
 | 
			
		||||
    handleDialogRepairQuery() {
 | 
			
		||||
      this.dialogRepairQuery.pageNum = 1
 | 
			
		||||
      this.getRepairRecords()
 | 
			
		||||
    },
 | 
			
		||||
    handleDialogRepairExport() {
 | 
			
		||||
      this.download(
 | 
			
		||||
        'material/material_maMachine/exportRepairRecordList',
 | 
			
		||||
        { ...this.dialogRepairQuery },
 | 
			
		||||
        `综合查询_在修设备_${new Date().getTime()}.xlsx`
 | 
			
		||||
      )
 | 
			
		||||
    },
 | 
			
		||||
    // ------------------
 | 
			
		||||
    //查看新购入库设备
 | 
			
		||||
    openPurchaseRecords(row) {
 | 
			
		||||
      this.openPurchaseRecord = true
 | 
			
		||||
      this.dialogPurchaseQuery.typeId = row.typeId
 | 
			
		||||
      this.dialogPurchaseQuery.pageNum = 1
 | 
			
		||||
      this.dialogPurchaseQuery.keyWord = ''
 | 
			
		||||
      this.getPurchaseRecords()
 | 
			
		||||
    },
 | 
			
		||||
    /** 查询新购入库设备列表 */
 | 
			
		||||
    getPurchaseRecords() {
 | 
			
		||||
      getPurchaseRecordListApi(this.dialogPurchaseQuery).then(response => {
 | 
			
		||||
        this.purchaseRecordList = response.data.rows
 | 
			
		||||
        this.dialogPurchaseTotal = response.data.total
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    /** 搜索新购入库按钮操作 */
 | 
			
		||||
    handleDialogPurchaseQuery() {
 | 
			
		||||
      this.dialogPurchaseQuery.pageNum = 1
 | 
			
		||||
      this.getPurchaseRecords()
 | 
			
		||||
    },
 | 
			
		||||
    handleDialogPurchaseExport() {
 | 
			
		||||
      this.download(
 | 
			
		||||
        'material/material_maMachine/exportPurchaseRecordList',
 | 
			
		||||
        { ...this.dialogPurchaseQuery },
 | 
			
		||||
        `综合查询_新购入库设备_${new Date().getTime()}.xlsx`
 | 
			
		||||
      )
 | 
			
		||||
    },
 | 
			
		||||
    // ------------------
 | 
			
		||||
    //查看修试入库设备
 | 
			
		||||
    openTestedRecords(row) {
 | 
			
		||||
      this.openTestedRecord = true
 | 
			
		||||
      this.dialogTestedQuery.typeId = row.typeId
 | 
			
		||||
      this.dialogTestedQuery.pageNum = 1
 | 
			
		||||
      this.dialogTestedQuery.keyWord = ''
 | 
			
		||||
      this.getTestedRecords()
 | 
			
		||||
    },
 | 
			
		||||
    /** 查询修试入库设备列表 */
 | 
			
		||||
    getTestedRecords() {
 | 
			
		||||
      getRepairInputListApi(this.dialogTestedQuery).then(response => {
 | 
			
		||||
        this.testedRecordList = response.data.rows
 | 
			
		||||
        this.dialogTestedTotal = response.data.total
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    /** 搜索修试入库按钮操作 */
 | 
			
		||||
    handleDialogTestedQuery() {
 | 
			
		||||
      this.dialogTestedQuery.pageNum = 1
 | 
			
		||||
      this.getTestedRecords()
 | 
			
		||||
    },
 | 
			
		||||
    handleDialogTestedExport() {
 | 
			
		||||
      this.download(
 | 
			
		||||
        'material/material_maMachine/exportRepairInputList',
 | 
			
		||||
        { ...this.dialogTestedQuery },
 | 
			
		||||
        `综合查询_修试后入库设备_${new Date().getTime()}.xlsx`
 | 
			
		||||
      )
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    //查看待报废设备
 | 
			
		||||
    openToScrapRecords(row) {
 | 
			
		||||
      this.openToScrapRecord = true
 | 
			
		||||
      this.dialogToScrapQuery.typeId = row.typeId
 | 
			
		||||
      this.dialogToScrapQuery.pageNum = 1
 | 
			
		||||
      this.dialogToScrapQuery.keyWord = ''
 | 
			
		||||
      this.getToScrapRecords()
 | 
			
		||||
    },
 | 
			
		||||
    /** 查询待报废设备列表 */
 | 
			
		||||
    getToScrapRecords() {
 | 
			
		||||
      getToScrapInputListApi(this.dialogToScrapQuery).then(response => {
 | 
			
		||||
        this.toScrapRecordList = response.data.rows
 | 
			
		||||
        this.dialogToScrapTotal = response.data.total
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    /** 搜索待报废按钮操作 */
 | 
			
		||||
    handleDialogToScrapQuery() {
 | 
			
		||||
      this.dialogToScrapQuery.pageNum = 1
 | 
			
		||||
      this.getToScrapRecords()
 | 
			
		||||
    },
 | 
			
		||||
    handleDialogToScrapExport() {
 | 
			
		||||
      this.download(
 | 
			
		||||
        'material/material_maMachine/exportScrapList',
 | 
			
		||||
        { ...this.dialogToScrapQuery },
 | 
			
		||||
        `综合查询_待报废设备_${new Date().getTime()}.xlsx`
 | 
			
		||||
      )
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    //查看已审核报废设备
 | 
			
		||||
    openAuditedRecords(row) {
 | 
			
		||||
      this.openAuditedRecord = true
 | 
			
		||||
      this.dialogAuditedQuery.typeId = row.typeId
 | 
			
		||||
      this.dialogAuditedQuery.pageNum = 1
 | 
			
		||||
      this.dialogAuditedQuery.keyWord = ''
 | 
			
		||||
      this.getAuditedRecords()
 | 
			
		||||
    },
 | 
			
		||||
    /** 查询已审核报废设备列表 */
 | 
			
		||||
    getAuditedRecords() {
 | 
			
		||||
      getAuditInputListApi(this.dialogAuditedQuery).then(response => {
 | 
			
		||||
        this.auditedRecordList = response.data.rows
 | 
			
		||||
        this.dialogAuditedTotal = response.data.total
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    /** 搜索已审核报废按钮操作 */
 | 
			
		||||
    handleDialogAuditedQuery() {
 | 
			
		||||
      this.dialogAuditedQuery.pageNum = 1
 | 
			
		||||
      this.getAuditedRecords()
 | 
			
		||||
    },
 | 
			
		||||
    handleDialogAuditedExport() {
 | 
			
		||||
      this.download(
 | 
			
		||||
        'material/material_maMachine/exportScrapAuditList',
 | 
			
		||||
        { ...this.dialogAuditedQuery },
 | 
			
		||||
        `综合查询_已审核报废设备_${new Date().getTime()}.xlsx`
 | 
			
		||||
      )
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue