|
|
|
@ -7,24 +7,21 @@ |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="orderRef1" label="PO号" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="partNo" label="产品编码" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="item" label="Item" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="partDesc" label="物料名称" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="sku" label="SKU" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="categoryLevel2" label="一级物料分类" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="categoryLevel3" label="二级物料分类" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="qty" label="验货数量" header-align="center" align="right" width="120"/> |
|
|
|
<el-table-column prop="approveQty" label="检验通过数量" header-align="center" align="right" width="120"/> |
|
|
|
<el-table-column prop="status" label="状态" header-align="center" align="center" width="100"/> |
|
|
|
<el-table-column prop="inspectNo" label="验货单号" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="inspectResult" label="验货结果" header-align="center" align="center" width="120"/> |
|
|
|
<el-table-column prop="orderRef2" label="PO行号" header-align="center" align="center" width="80"/> |
|
|
|
<el-table-column prop="orderRef1" label="PO号" header-align="center" align="center" width="120" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="item" label="Item" header-align="center" align="left" min-width="100" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="aQty" label="订单数量" header-align="center" align="right" width="90"/> |
|
|
|
<el-table-column prop="qty" label="此次验货数量" header-align="center" align="right" width="110"/> |
|
|
|
<el-table-column prop="shipMothod" label="运输方式" header-align="center" align="center" width="100"/> |
|
|
|
<el-table-column prop="crd" label="CRD" header-align="center" align="center" width="120"/> |
|
|
|
<el-table-column prop="eta" label="ETA" header-align="center" align="center" width="120"/> |
|
|
|
<el-table-column prop="planner" label="Planner" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { getInspectionRequestDetailList } from '@/api/inspection/inspectionRequestHeader.js' |
|
|
|
import { getInspectionRequestDetailSubList } from '@/api/inspection/inspectionRequestHeader.js' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'InspectionRequestDetailTab', |
|
|
|
@ -63,7 +60,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// 加载明细列表 |
|
|
|
// 加载明细列表(与新增弹窗「PO明细」同源,按 PO 行级展示) |
|
|
|
loadDetailList () { |
|
|
|
if (!this.detailData.requestNo || !this.detailData.site) { |
|
|
|
this.detailList = [] |
|
|
|
@ -71,37 +68,17 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
this.loading = true |
|
|
|
getInspectionRequestDetailList({ |
|
|
|
getInspectionRequestDetailSubList({ |
|
|
|
requestNo: this.detailData.requestNo, |
|
|
|
site: this.detailData.site |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data.code === 0) { |
|
|
|
const list = (data.page && data.page.list) || [] |
|
|
|
// 转换状态显示 |
|
|
|
this.detailList = list.map(item => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
status: item.status || this.getStatusText(item.statusDb) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.detailList = (data.page && data.page.list) || [] |
|
|
|
} |
|
|
|
this.loading = false |
|
|
|
}).catch(() => { |
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 状态转换 |
|
|
|
getStatusText (statusDb) { |
|
|
|
const statusMap = { |
|
|
|
'DRAFT': '草稿', |
|
|
|
'PENDING': '待检验', |
|
|
|
'INSPECTING': '检验中', |
|
|
|
'INSPECTED': '已检验', |
|
|
|
'COMPLETED': '已完成', |
|
|
|
'CANCELLED': '已取消' |
|
|
|
} |
|
|
|
return statusMap[statusDb] || statusDb || '-' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|