Commit 5ec24008 authored by “lixuyan”'s avatar “lixuyan”

胶起材料的接口调试

parent 94b7ef88
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
align="center" align="center"
/> />
<el-table-column <el-table-column
prop="dxProcessMaterial.resCode" prop="extMaterial.resCode"
align="center" align="center"
label="物料编码" label="物料编码"
:width="120" :width="120"
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="dxProcessMaterial.modelNo" prop="extMaterial.modelNo"
align="center" align="center"
label="牌号/规格/GPM号" label="牌号/规格/GPM号"
:width="200" :width="200"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="dxProcessMaterial.resName" prop="extMaterial.resName"
align="center" align="center"
label="材料名称" label="材料名称"
:min-width="120" :min-width="120"
...@@ -65,14 +65,14 @@ ...@@ -65,14 +65,14 @@
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="dxProcessMaterial.resType2.typeName" prop="extMaterial.resType2.typeName"
align="center" align="center"
label="类型" label="类型"
:width="90" :width="90"
sortable sortable
/> />
<el-table-column <el-table-column
prop="dxProcessMaterial.unit.unitCode" prop="extMaterial.extUnit.unitCode"
align="center" align="center"
label="单位" label="单位"
:width="90" :width="90"
...@@ -173,23 +173,46 @@ export default { ...@@ -173,23 +173,46 @@ export default {
this.loading = true this.loading = true
this.tableData = [] this.tableData = []
const params = { const params = {
pageFrom: this.tablePagination.currentPage, 'pageFrom': this.tablePagination.currentPage,
pageSize: this.tablePagination.pageSize, 'pageSize': this.tablePagination.pageSize,
indices: ['StorageRequestItem'], 'searchItems': {
searchItems: { 'children': [],
items: [ 'items': [
{ {
fieldName: 'aoId', 'fieldName': 'extSupporting.extProcessPlan.id',
operator: 'EQ', 'operator': 'EQ',
value: this.$parent.$parent.$parent.$parent.headerData.aoId // 'value': 249231383474000
'value': this.$parent.$parent.$parent.$parent.headerData.aoId
} }
], ],
operator: 'AND' 'operator': 'AND'
},
'openProps': [
{
'name': 'inStorageRequestItems'
},
{
'name': 'extMaterial',
'openProps': [
{
'name': 'resType2'
},
{
'name': 'extUnit'
} }
]
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
]
} }
// 发送请求 // 发送请求
post( post(
'/StorageRequestItem/getStorageReqItemByAoId', '/ExtSupportingItem/findSupportingItemMaterialByAO',
params params
) )
.then((res) => { .then((res) => {
...@@ -238,6 +261,9 @@ export default { ...@@ -238,6 +261,9 @@ export default {
case ' invalid': case ' invalid':
label = '已失效' label = '已失效'
break break
case null:
label = '未申请'
break
default: default:
label = '' label = ''
} }
...@@ -245,7 +271,7 @@ export default { ...@@ -245,7 +271,7 @@ export default {
}, },
rowClick(row) { rowClick(row) {
this.rowData = row this.rowData = row
this.$parent.$parent.$parent.$refs.footer.getTableData(this.rowData.id) // this.$parent.$parent.$parent.$refs.footer.getTableData(this.rowData.id)
}, },
/** /**
* 胶漆使用申请 * 胶漆使用申请
...@@ -253,10 +279,8 @@ export default { ...@@ -253,10 +279,8 @@ export default {
applyStorageReqItem(row) { applyStorageReqItem(row) {
var that = this var that = this
post( post(
'/StorageRequestItem/applyStorageReqItem', `/ExtSupportingItem/deal/supportingItem?extSupportingItemVOId=${that.rowData.id}&applyState=true`,
{ {}
id: that.rowData.id // 问题id
}
) )
.then((res) => { .then((res) => {
if (res.message.includes('成功')) { if (res.message.includes('成功')) {
...@@ -283,10 +307,8 @@ export default { ...@@ -283,10 +307,8 @@ export default {
cancelApplyStorageReqItem() { cancelApplyStorageReqItem() {
var that = this var that = this
post( post(
'/StorageRequestItem/cancelApplyStorageReqItem', `/ExtSupportingItem/deal/supportingItem?extSupportingItemVOId=${that.rowData.id}&applyState=false`,
{ {}
id: that.rowData.id // 问题id
}
) )
.then((res) => { .then((res) => {
if (res.message.includes('成功')) { if (res.message.includes('成功')) {
......
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