Commit 132b2c71 authored by jingnan's avatar jingnan 👀

批量签审供外申请开发

parent c15fb86a
...@@ -11,19 +11,15 @@ ...@@ -11,19 +11,15 @@
:basic-data=" { selectData,selectionRows }" :basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'OutStorageExpire', layKey: 'batchSign_outStorageExpireConfirm'}" :lay-config="{ typeName: 'OutStorageExpire', layKey: 'batchSign_outStorageExpireConfirm'}"
@selectionChange="selectionChange" @selectionChange="selectionChange"
@tableToolHandler="tableToolHandler"
/> />
<!-- 打印标签 -->
<PrintTag ref="print" :config="printConfig" />
</div> </div>
</template> </template>
<script> <script>
import PrintTag from '@/../../dee-mes/src/privateComponents/components/WarehousingConfirmationConfirm/component/PrintTag.vue'
export default { export default {
name: 'OutStorageExpireConfirm', name: 'OutStorageExpireConfirm',
components: { PrintTag }, components: { },
props: { props: {
selectData: { selectData: {
type: Object, type: Object,
...@@ -32,13 +28,7 @@ export default { ...@@ -32,13 +28,7 @@ export default {
}, },
data() { data() {
return { return {
selectionRows: [], selectionRows: []
// 打印标签
printConfig: {
visible: false,
width: 300,
prints: []
}
} }
}, },
computed: {}, computed: {},
...@@ -49,41 +39,6 @@ export default { ...@@ -49,41 +39,6 @@ export default {
methods: { methods: {
selectionChange(val) { selectionChange(val) {
this.selectionRows = val this.selectionRows = val
},
tableToolHandler(val) {
if (val.key.btnValue === 'print') {
this.print()
}
},
print() {
// 获取需要打印的数据
this.printConfig.prints = []
let JobResponseInStorageEntryId = ''
this.selectionRows.forEach((row) => {
this.$message.closeAll()
JobResponseInStorageEntryId = row.extWorkUnit.extcode
this.printConfig = Object.assign({}, this.printConfig, {
visible: true
})
this.printConfig.prints.push({
text: JobResponseInStorageEntryId,
propertys: [
{ label: '编码', value: row.jobOrder.extMaterial.resCode },
{ label: '名称', value: row.jobOrder.extMaterial.resName },
{ label: '型号/牌号/件号', value: row.jobOrder.extMaterial.modelNo },
{ label: '规格', value: row.jobOrder.extMaterial.spec },
{ label: '批号', value: row.jobOrder.lotNo },
{ label: '系列号/序列号', value: row.jobOrder.serialNo },
{ label: '机型', value: row.jobOrder.airModel },
{ label: '验收单号', value: row.testNo },
{ label: '库位号', value: row.extWorkUnit.extcode || '' },
{ label: '备注', value: row.jobOrder.remark || '' }
]
})
})
// 打印操作
this.$refs.print.print()
} }
} }
} }
......
<!--
* @Author: gjn
* @Date: 2023-08-22 16:29:39
* @Description:批量签审_供外出库申请
-->
<template>
<div class="outStorageOutApply">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData: selectData }"
:lay-config="{ typeName: 'OutStorageOut', layKey: 'batchSign_outStorageOutApply'}"
/>
</div>
</template>
<script>
export default {
name: 'OutStorageOutApply',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {}
},
computed: {},
watch: {},
created() {},
mounted() {},
// 组件方法
methods: {}
}
</script>
<style lang='scss'>
.outStorageOutApply{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
<!--
* @Author: gjn
* @Date: 2023-08-22 15:45:30
* @Description:批量签审_供外出库确认
-->
<template>
<div class="outStorageOutConfirm">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'OutStorageExpire', layKey: 'batchSign_outStorageOutConfirm'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'OutStorageOutConfirm',
components: { },
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.outStorageOutConfirm{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
...@@ -11,19 +11,15 @@ ...@@ -11,19 +11,15 @@
:basic-data=" { selectData,selectionRows }" :basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'OutStorageExpire', layKey: 'batchSign_outStorageRecallConfirm'}" :lay-config="{ typeName: 'OutStorageExpire', layKey: 'batchSign_outStorageRecallConfirm'}"
@selectionChange="selectionChange" @selectionChange="selectionChange"
@tableToolHandler="tableToolHandler"
/> />
<!-- 打印标签 -->
<PrintTag ref="print" :config="printConfig" />
</div> </div>
</template> </template>
<script> <script>
import PrintTag from '@/../../dee-mes/src/privateComponents/components/WarehousingConfirmationConfirm/component/PrintTag.vue'
export default { export default {
name: 'OutStorageRecallConfirm', name: 'OutStorageRecallConfirm',
components: { PrintTag }, components: { },
props: { props: {
selectData: { selectData: {
type: Object, type: Object,
...@@ -32,13 +28,7 @@ export default { ...@@ -32,13 +28,7 @@ export default {
}, },
data() { data() {
return { return {
selectionRows: [], selectionRows: []
// 打印标签
printConfig: {
visible: false,
width: 300,
prints: []
}
} }
}, },
computed: {}, computed: {},
...@@ -49,41 +39,6 @@ export default { ...@@ -49,41 +39,6 @@ export default {
methods: { methods: {
selectionChange(val) { selectionChange(val) {
this.selectionRows = val this.selectionRows = val
},
tableToolHandler(val) {
if (val.key.btnValue === 'print') {
this.print()
}
},
print() {
// 获取需要打印的数据
this.printConfig.prints = []
let JobResponseInStorageEntryId = ''
this.selectionRows.forEach((row) => {
this.$message.closeAll()
JobResponseInStorageEntryId = row.extWorkUnit.extcode
this.printConfig = Object.assign({}, this.printConfig, {
visible: true
})
this.printConfig.prints.push({
text: JobResponseInStorageEntryId,
propertys: [
{ label: '编码', value: row.jobOrder.extMaterial.resCode },
{ label: '名称', value: row.jobOrder.extMaterial.resName },
{ label: '型号/牌号/件号', value: row.jobOrder.extMaterial.modelNo },
{ label: '规格', value: row.jobOrder.extMaterial.spec },
{ label: '批号', value: row.jobOrder.lotNo },
{ label: '系列号/序列号', value: row.jobOrder.serialNo },
{ label: '机型', value: row.jobOrder.airModel },
{ label: '验收单号', value: row.testNo },
{ label: '库位号', value: row.extWorkUnit.extcode || '' },
{ label: '备注', value: row.jobOrder.remark || '' }
]
})
})
// 打印操作
this.$refs.print.print()
} }
} }
} }
......
...@@ -16,7 +16,11 @@ export default { ...@@ -16,7 +16,11 @@ export default {
OutStorageRecallApply: () => import('./outStorageRecallApply'), // 返厂出库申请 OutStorageRecallApply: () => import('./outStorageRecallApply'), // 返厂出库申请
WarehouseConfirm: () => import('./warehouseConfirm'), // 验收入库确认 WarehouseConfirm: () => import('./warehouseConfirm'), // 验收入库确认
OutStorageExpireConfirm: () => import('./outStorageExpireConfirm'), // 三期出库确认 OutStorageExpireConfirm: () => import('./outStorageExpireConfirm'), // 三期出库确认
OutStorageRecallConfirm: () => import('./outStorageRecallConfirm')// 返厂出库确认 OutStorageRecallConfirm: () => import('./outStorageRecallConfirm'), // 返厂出库确认
OutStorageOutApply: () => import('./outStorageOutApply'), // 供外出库申请
// OutStorageOutExamine: () => import('./outStorageOutExamine'), // 供外出库审核
// OutStorageOutApproval: () => import('./outStorageOutApproval'), // 供外出库批准
OutStorageOutConfirm: () => import('./outStorageOutConfirm')// 供外出库确认
}, },
props: { props: {
selectData: { selectData: {
......
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