Commit 4fe3893f authored by 李苏's avatar 李苏 💬

新增功能

parent 6c67667c
......@@ -819,6 +819,19 @@ export const powerRoutes = [
name: 'bz',
path: "bz",
},
{
component: 'ccgl/kngl/sapdb/index',
hidden: false,
meta: {
"title": "SAP调拨",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070505,
},
name: 'sapdb',
path: "sapdb",
},
/* 包装作业*/
{
component: 'ccgl/kngl/bzzy/index',
......
......@@ -4,7 +4,9 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'lxyl/common/import'" />
</template>
</BasePage>
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '过账单号',
prop: 'djid',
span: 12,
type: 'input',
},
{
label: '特殊库存标识',
prop: 'sobkz',
span: 12,
type: 'input',
},
{
label: '物料',
prop: 'wlid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: 'MATERIAL',
label: 'wlxxName',
transform: {
value: 'id',
label: 'name'
}
}
},
{
label: '工厂',
prop: 'hzid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'HZID',
label: 'hzName',
transform: {
value: 'id',
label: 'name'
}
}
},
/* 物料工厂*/
{
label: '数量',
prop: 'erfmg',
span: 12,
type: 'input',
},
{
label: '发出地点',
prop: 'lgort',
span: 12,
type: 'input',
},
{
label: '发出批次',
prop: 'charg',
span: 12,
type: 'input',
},
{
label: '发出销售订单',
prop: 'matKdauf',
span: 12,
type: 'input',
},
{
label: '发出销售行项目',
prop: 'matKdpos',
span: 12,
type: 'input',
},
{
label: '接收存储地点',
prop: 'umlgo',
span: 12,
type: 'input',
},
{
label: '接收批次',
prop: 'umcha',
span: 12,
type: 'input',
},
{
label: '接收销售订单',
prop: 'kdauf',
span: 12,
type: 'input',
},
{
label: '接收销售行项目',
prop: 'kdpos',
span: 12,
type: 'input',
}
]
}
}
}
</script>
<template>
<BasePage :power='power' class="min_full" :config="config" >
<template #dialog="ctx" >
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx" >
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="gz(ctx.basePage)" size='mini' type="primary">过账</el-button>
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default{
data(){
return{
power: {
add: true,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config:{
/* 基本配置*/
url:'lxyl/kcgl/sapdb',
tableTitle: [
{label: "过账单号", prop: "djid", fieldType: "ftString",width:144},
{label: "特殊库存标识", prop: "sobkz", fieldType: "ftString",width:12},
/* */
{label: "物料", prop: "wlxxName", fieldType: "ftString",width:192},
{label: "工厂", prop: "hzName", fieldType: "ftString",width:192},
/* */
{label: "数量", prop: "erfmg", fieldType: "float"},
{label: "发出地点", prop: "lgort", fieldType: "ftString",width:192},
{label: "发出批次", prop: "charg", fieldType: "ftString",width:210},
{label: "发出销售订单", prop: "matKdauf", fieldType: "ftString",width:60},
{label: "发出销售行项目", prop: "matKdpos", fieldType: "int"},
{label: "接收存储地点", prop: "umlgo", fieldType: "ftString",width:192},
{label: "接收批次", prop: "umcha", fieldType: "ftString",width:210},
{label: "接收销售订单", prop: "kdauf", fieldType: "ftString",width:60},
{label: "接收销售行项目", prop: "kdpos", fieldType: "int"},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
],
queryParams:[[
{
label: '单据号',
prop: 'djid',
span: 6,
type: 'input',
value:''
},
]],
}
}
},
methods: {
/* 示例*/
gz(ctx){
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/kcgl/sapdb/sync/dbGz', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
}
},
components:{
Edit
}
}
</script>
<style>
</style>
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