|
|
@ -118,6 +118,16 @@ |
|
|
border |
|
|
border |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
style="width: 100%; "> |
|
|
style="width: 100%; "> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
width="80" |
|
|
|
|
|
label="操作"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<a type="text" size="small" v-if="currentRow.status==='已下达'" @click="deleteNotifySOSPlus(scope.row)">删除</a> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item,index) in columnList2" :key="index" |
|
|
v-for="(item,index) in columnList2" :key="index" |
|
|
:sortable="item.columnSortable" |
|
|
:sortable="item.columnSortable" |
|
|
@ -134,17 +144,6 @@ |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
width="80" |
|
|
|
|
|
fixed="left" |
|
|
|
|
|
label="操作"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<a type="text" size="small" v-if="currentRow.status==='已下达'" @click="deleteNotifySOSPlus(scope.row)">删除</a> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
@ -165,6 +164,16 @@ |
|
|
<!-- <a type="text" size="small" @click="printLabel(scope.row)">打印标签</a>--> |
|
|
<!-- <a type="text" size="small" @click="printLabel(scope.row)">打印标签</a>--> |
|
|
<!-- </template>--> |
|
|
<!-- </template>--> |
|
|
<!-- </el-table-column>--> |
|
|
<!-- </el-table-column>--> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
width="80" |
|
|
|
|
|
label="操作"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<a type="text" size="small" v-if="currentRow.status==='已下达'" @click="deleteNotifyMaterial(scope.row)">删除</a> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item,index) in columnList3" :key="index" |
|
|
v-for="(item,index) in columnList3" :key="index" |
|
|
:sortable="item.columnSortable" |
|
|
:sortable="item.columnSortable" |
|
|
@ -181,22 +190,46 @@ |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</el-tab-pane> |
|
|
|
|
|
<el-tab-pane label="材料汇总" name="sum"> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:data="dataList4" |
|
|
|
|
|
:height="height" |
|
|
|
|
|
border |
|
|
|
|
|
v-loading="dataListLoading" |
|
|
|
|
|
style="width: 100%; "> |
|
|
|
|
|
<!-- <el-table-column--> |
|
|
|
|
|
<!-- header-align="center"--> |
|
|
|
|
|
<!-- align="center"--> |
|
|
|
|
|
<!-- width="80"--> |
|
|
|
|
|
<!-- fixed="left"--> |
|
|
|
|
|
<!-- label="操作">--> |
|
|
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
|
|
<!-- <a type="text" size="small" @click="printLabel(scope.row)">打印标签</a>--> |
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
<!-- </el-table-column>--> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
width="80" |
|
|
|
|
|
fixed="left" |
|
|
|
|
|
label="操作"> |
|
|
|
|
|
|
|
|
v-for="(item,index) in columnList4" :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"> |
|
|
<template slot-scope="scope"> |
|
|
<a type="text" size="small" v-if="currentRow.status==='已下达'" @click="deleteNotifyMaterial(scope.row)">删除</a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="材料汇总" name="sum"> |
|
|
|
|
|
|
|
|
<el-tab-pane label="删除记录" name="change"> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="dataList4" |
|
|
|
|
|
|
|
|
:data="dataList5" |
|
|
:height="height" |
|
|
:height="height" |
|
|
border |
|
|
border |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
@ -212,7 +245,7 @@ |
|
|
<!-- </template>--> |
|
|
<!-- </template>--> |
|
|
<!-- </el-table-column>--> |
|
|
<!-- </el-table-column>--> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item,index) in columnList4" :key="index" |
|
|
|
|
|
|
|
|
v-for="(item,index) in columnList5" :key="index" |
|
|
:sortable="item.columnSortable" |
|
|
:sortable="item.columnSortable" |
|
|
:prop="item.columnProp" |
|
|
:prop="item.columnProp" |
|
|
:header-align="item.headerAlign" |
|
|
:header-align="item.headerAlign" |
|
|
@ -245,6 +278,7 @@ |
|
|
,deleteNotifySOSPlus |
|
|
,deleteNotifySOSPlus |
|
|
,updateNotifyStatus |
|
|
,updateNotifyStatus |
|
|
,deleteNotifyMaterial |
|
|
,deleteNotifyMaterial |
|
|
|
|
|
,searchNotifyLog |
|
|
}from "@/api/orderIssure/soIssueNotify.js" |
|
|
}from "@/api/orderIssure/soIssueNotify.js" |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
export default { |
|
|
export default { |
|
|
@ -260,6 +294,7 @@ |
|
|
dataList2: [], |
|
|
dataList2: [], |
|
|
dataList3: [], |
|
|
dataList3: [], |
|
|
dataList4: [], |
|
|
dataList4: [], |
|
|
|
|
|
dataList5: [], |
|
|
addOrUpdateVisible:false, |
|
|
addOrUpdateVisible:false, |
|
|
searchData: { |
|
|
searchData: { |
|
|
page: 1, |
|
|
page: 1, |
|
|
@ -910,6 +945,170 @@ |
|
|
columnWidth: 80 |
|
|
columnWidth: 80 |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|
|
|
columnList5:[ |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5UpdateType', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "updateType", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "center", |
|
|
|
|
|
columnLabel: "删除类型", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5ItemNo', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
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: 701002, |
|
|
|
|
|
serialNumber: '701002Table5SOOrderNo', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "sOOrderNo", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: "生产订单", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 80 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5SeqNo', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "seqNo", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: "派工单", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5ComponentPartNo', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "componentPartNo", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: "材料物料编码", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5IssueType', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "issueType", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: "材料类型", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5QtyToIssue', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "qtyToIssue", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "right", |
|
|
|
|
|
columnLabel: "要求领料数量", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5UpdateBy', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "updateBy", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: "删除账号", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table5UpdateDate', |
|
|
|
|
|
tableId: "701002Table5", |
|
|
|
|
|
tableName: "申请单材料删除记录表", |
|
|
|
|
|
columnProp: "updateDate", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "center", |
|
|
|
|
|
columnLabel: "删除时间", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120 |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
dataRole: { |
|
|
dataRole: { |
|
|
partTypeDesc: [ |
|
|
partTypeDesc: [ |
|
|
{ |
|
|
{ |
|
|
@ -936,7 +1135,7 @@ |
|
|
}, |
|
|
}, |
|
|
mounted () { |
|
|
mounted () { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.height = (window.innerHeight- 260) / 2 |
|
|
|
|
|
|
|
|
this.height = (window.innerHeight- 250) / 2 |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -1017,6 +1216,16 @@ |
|
|
this.dataList3 = []; |
|
|
this.dataList3 = []; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
}else if(this.activeName==='change'){ |
|
|
|
|
|
searchNotifyLog(this.currentRow).then(({data}) => { |
|
|
|
|
|
//区分请求成功和失败的状况 |
|
|
|
|
|
if (data && data.code == 0) { |
|
|
|
|
|
this.dataList5 = data.rows |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
this.dataList5 = []; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
}else { |
|
|
}else { |
|
|
searchSumNotifyMaterialList(this.currentRow).then(({data}) => { |
|
|
searchSumNotifyMaterialList(this.currentRow).then(({data}) => { |
|
|
//区分请求成功和失败的状况 |
|
|
//区分请求成功和失败的状况 |
|
|
|