|
|
@ -11,6 +11,15 @@ |
|
|
<el-option label="CLOSED" value="CLOSED"></el-option> |
|
|
<el-option label="CLOSED" value="CLOSED"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="推送WCS"> |
|
|
|
|
|
<el-select v-model="searchData.pushWcsFlag" placeholder="请选择" clearable style="width: 120px"> |
|
|
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
|
|
<el-option label="未推送" value="未推送"></el-option> |
|
|
|
|
|
<el-option label="部分推送" value="部分推送"></el-option> |
|
|
|
|
|
<el-option label="推送完成" value="推送完成"></el-option> |
|
|
|
|
|
<el-option label="出库完成" value="出库完成"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item :label="'申请单日期'"> |
|
|
<el-form-item :label="'申请单日期'"> |
|
|
<el-date-picker style="width: 120px" v-model="searchData.startDate" type="date" value-format="yyyy-MM-dd" |
|
|
<el-date-picker style="width: 120px" v-model="searchData.startDate" type="date" value-format="yyyy-MM-dd" |
|
|
placeholder="选择日期"> |
|
|
placeholder="选择日期"> |
|
|
@ -41,7 +50,12 @@ |
|
|
:align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" |
|
|
:align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> |
|
|
|
|
|
<span v-if="item.columnProp === 'transportFlag'" :style="{color: scope.row[item.columnProp] === 'Y' ? '#67C23A' : '#909399'}"> |
|
|
|
|
|
{{ scope.row[item.columnProp] === 'Y' ? '是' : '否' }} |
|
|
|
|
|
</span> |
|
|
|
|
|
<span v-else>{{ scope.row[item.columnProp] }}</span> |
|
|
|
|
|
</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px" /></span> |
|
|
style="width: 100px; height: 80px" /></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -58,7 +72,7 @@ |
|
|
@click="closeModal(scope.row)">关闭</el-link> |
|
|
@click="closeModal(scope.row)">关闭</el-link> |
|
|
</template> |
|
|
</template> |
|
|
<!-- rqrq - 推送WCS按钮,只在状态为ISSUE且未推送完成时显示 --> |
|
|
<!-- rqrq - 推送WCS按钮,只在状态为ISSUE且未推送完成时显示 --> |
|
|
<el-link v-if="scope.row.status==='ISSUE' && scope.row.pushWcsFlag!=='推送完成'" |
|
|
|
|
|
|
|
|
<el-link v-if="scope.row.pushWcsFlag!=='出库完成'&&scope.row.status==='ISSUE' && scope.row.pushWcsFlag!=='推送完成'" |
|
|
style="cursor: pointer; margin-left: 10px;" |
|
|
style="cursor: pointer; margin-left: 10px;" |
|
|
@click="previewInventory(scope.row)">推送WCS</el-link> |
|
|
@click="previewInventory(scope.row)">推送WCS</el-link> |
|
|
<!-- rqrq - 取消下达按钮,只在状态为ISSUE且未推送WCS时显示 --> |
|
|
<!-- rqrq - 取消下达按钮,只在状态为ISSUE且未推送WCS时显示 --> |
|
|
@ -132,7 +146,12 @@ |
|
|
:align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" |
|
|
:align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> |
|
|
|
|
|
<span v-if="item.columnProp === 'pushWmsFlag' || item.columnProp === 'transportFlag'" :style="{color: scope.row[item.columnProp] === 'Y' ? '#67C23A' : '#909399'}"> |
|
|
|
|
|
{{ scope.row[item.columnProp] === 'Y' ? '是' : '否' }} |
|
|
|
|
|
</span> |
|
|
|
|
|
<span v-else>{{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px" /></span> |
|
|
style="width: 100px; height: 80px" /></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -172,6 +191,35 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
|
|
|
<el-tab-pane label="预留标签清单" name="labelDetail"> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:data="dataList7" |
|
|
|
|
|
:height="secondHeight - 68" |
|
|
|
|
|
border |
|
|
|
|
|
v-loading="searchLoading" |
|
|
|
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
v-for="(item,index) in columnList6" :key="index" |
|
|
|
|
|
:sortable="item.columnSortable" |
|
|
|
|
|
:prop="item.columnProp" |
|
|
|
|
|
:header-align="item.headerAlign" |
|
|
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
|
|
:align="item.align" |
|
|
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
|
|
:min-width="item.columnWidth" |
|
|
|
|
|
:label="item.columnLabel"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="!item.columnHidden"> |
|
|
|
|
|
<span v-if="item.columnProp === 'outWcsFlag'" :style="{color: scope.row[item.columnProp] === 'Y' ? '#67C23A' : '#909399'}"> |
|
|
|
|
|
{{ scope.row[item.columnProp] === 'Y' ? '是' : '否' }} |
|
|
|
|
|
</span> |
|
|
|
|
|
<span v-else>{{ scope.row[item.columnProp] }}</span> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</el-tab-pane> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
<!-- 收获入库单明细新增 --> |
|
|
<!-- 收获入库单明细新增 --> |
|
|
@ -568,6 +616,8 @@ import { |
|
|
saveShipmentMaterialDetail, |
|
|
saveShipmentMaterialDetail, |
|
|
searchUnissueNotifyMaterialList |
|
|
searchUnissueNotifyMaterialList |
|
|
} from '@/api/shipment/shipmentIssue.js' |
|
|
} from '@/api/shipment/shipmentIssue.js' |
|
|
|
|
|
// rqrq - 导入预留标签清单API |
|
|
|
|
|
import { searchMaterialListDetail } from '@/api/orderIssure/soIssueNotify.js' |
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
import { getChooselist } from '@/api/chooselist/chooselist.js' |
|
|
import { getChooselist } from '@/api/chooselist/chooselist.js' |
|
|
import { |
|
|
import { |
|
|
@ -597,6 +647,7 @@ export default { |
|
|
orderType: '', |
|
|
orderType: '', |
|
|
orderStatus: '', |
|
|
orderStatus: '', |
|
|
orderStatusList: [], |
|
|
orderStatusList: [], |
|
|
|
|
|
pushWcsFlag: '', // rqrq - 新增推送WCS筛选条件 |
|
|
startDate: '', |
|
|
startDate: '', |
|
|
endDate: '', |
|
|
endDate: '', |
|
|
page: 1, |
|
|
page: 1, |
|
|
@ -820,6 +871,25 @@ export default { |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100, |
|
|
columnWidth: 100, |
|
|
}, |
|
|
}, |
|
|
|
|
|
// rqrq - 添加推送WCS字段 |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 610, |
|
|
|
|
|
serialNumber: '610Table1PushWcsFlag', |
|
|
|
|
|
tableId: '610Table1', |
|
|
|
|
|
tableName: '收货入库任务表', |
|
|
|
|
|
columnProp: 'pushWcsFlag', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '推送WCS', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100, |
|
|
|
|
|
}, |
|
|
/* { |
|
|
/* { |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 610, |
|
|
functionId: 610, |
|
|
@ -1295,6 +1365,60 @@ export default { |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100, |
|
|
columnWidth: 100, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701001, |
|
|
|
|
|
serialNumber: '701001Table2PushWmsFlag', |
|
|
|
|
|
tableId: '701001Table2', |
|
|
|
|
|
tableName: '查询派工单', |
|
|
|
|
|
columnProp: 'pushWmsFlag', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '是否推送WCS', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701001, |
|
|
|
|
|
serialNumber: '701001Table2TransportFlag', |
|
|
|
|
|
tableId: '701001Table2', |
|
|
|
|
|
tableName: '查询派工单', |
|
|
|
|
|
columnProp: 'transportFlag', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '立库取出', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 80, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701001, |
|
|
|
|
|
serialNumber: '701001Table2AreaDesc', |
|
|
|
|
|
tableId: '701001Table2', |
|
|
|
|
|
tableName: '查询派工单', |
|
|
|
|
|
columnProp: 'areaDesc', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '配送区域', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100, |
|
|
|
|
|
}, |
|
|
/* { |
|
|
/* { |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 701001, |
|
|
functionId: 701001, |
|
|
@ -1466,6 +1590,118 @@ export default { |
|
|
columnWidth: 170, |
|
|
columnWidth: 170, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|
|
|
// rqrq - 预留标签清单数据和列定义 |
|
|
|
|
|
dataList7: [], |
|
|
|
|
|
columnList6: [ |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 444002, |
|
|
|
|
|
serialNumber: '444002Table6ItemNo', |
|
|
|
|
|
tableId: '444002Table6', |
|
|
|
|
|
tableName: '预留标签清单表', |
|
|
|
|
|
columnProp: 'itemNo', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'right', |
|
|
|
|
|
columnLabel: '订单序号', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 80, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 444002, |
|
|
|
|
|
serialNumber: '444002Table6BomItemNo', |
|
|
|
|
|
tableId: '444002Table6', |
|
|
|
|
|
tableName: '预留标签清单表', |
|
|
|
|
|
columnProp: 'bomItemNo', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'right', |
|
|
|
|
|
columnLabel: '订单物料行号', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 110, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 444002, |
|
|
|
|
|
serialNumber: '444002Table6SerialNo', |
|
|
|
|
|
tableId: '444002Table6', |
|
|
|
|
|
tableName: '预留标签清单表', |
|
|
|
|
|
columnProp: 'serialNo', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '标签号', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 150, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 444002, |
|
|
|
|
|
serialNumber: '444002Table6TaskRef', |
|
|
|
|
|
tableId: '444002Table6', |
|
|
|
|
|
tableName: '预留标签清单表', |
|
|
|
|
|
columnProp: 'taskRef', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '立库任务号', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 444002, |
|
|
|
|
|
serialNumber: '444002Table6TaskItem', |
|
|
|
|
|
tableId: '444002Table6', |
|
|
|
|
|
tableName: '预留标签清单表', |
|
|
|
|
|
columnProp: 'taskItem', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'right', |
|
|
|
|
|
columnLabel: '立库任务行号', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 110, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 444002, |
|
|
|
|
|
serialNumber: '444002Table6OutWcsFlag', |
|
|
|
|
|
tableId: '444002Table6', |
|
|
|
|
|
tableName: '预留标签清单表', |
|
|
|
|
|
columnProp: 'outWcsFlag', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '立库取出', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 80, |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
rules: { |
|
|
rules: { |
|
|
bu: [ |
|
|
bu: [ |
|
|
{ |
|
|
{ |
|
|
@ -1561,6 +1797,7 @@ export default { |
|
|
|
|
|
|
|
|
// 获取数据列表 |
|
|
// 获取数据列表 |
|
|
getDataList() { |
|
|
getDataList() { |
|
|
|
|
|
this.searchData.site = this.$store.state.user.site // rqrq - 设置site |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.page = this.pageIndex |
|
|
this.searchData.page = this.pageIndex |
|
|
this.searchData.orderStatus = this.searchData.orderStatusList.join(',') |
|
|
this.searchData.orderStatus = this.searchData.orderStatusList.join(',') |
|
|
@ -1830,7 +2067,36 @@ export default { |
|
|
refreshCurrentTabTable() { |
|
|
refreshCurrentTabTable() { |
|
|
if (this.activeTable === 'inboundDetail') { |
|
|
if (this.activeTable === 'inboundDetail') { |
|
|
this.getInboundDetail() |
|
|
this.getInboundDetail() |
|
|
|
|
|
} else if (this.activeTable === 'labelDetail') { |
|
|
|
|
|
// rqrq - 查询预留标签清单 |
|
|
|
|
|
this.searchMaterialListDetail() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// rqrq - 查询预留标签清单 |
|
|
|
|
|
searchMaterialListDetail() { |
|
|
|
|
|
if (!this.currentRow || !this.currentRow.notifyNo) { |
|
|
|
|
|
this.dataList7 = [] |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
const queryData = { |
|
|
|
|
|
site: this.currentRow.site || this.$store.state.user.site, |
|
|
|
|
|
notifyNo: this.currentRow.notifyNo |
|
|
} |
|
|
} |
|
|
|
|
|
this.searchLoading = true |
|
|
|
|
|
searchMaterialListDetail(queryData) |
|
|
|
|
|
.then(({ data }) => { |
|
|
|
|
|
this.searchLoading = false |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.dataList7 = data.rows || [] |
|
|
|
|
|
} else { |
|
|
|
|
|
this.dataList7 = [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
this.searchLoading = false |
|
|
|
|
|
this.dataList7 = [] |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 查询物料缺陷跟踪 |
|
|
// 查询物料缺陷跟踪 |
|
|
|