Commit c950dd27 authored by 李苏's avatar 李苏 💬

各种领料单同步+路由导入组件

parent c6cd34f7
...@@ -300,6 +300,63 @@ export const powerRoutes = [ ...@@ -300,6 +300,63 @@ export const powerRoutes = [
path: "ckdzb", path: "ckdzb",
}, },
/* 备料管理*/ /* 备料管理*/
/* 客户/供应商等*/
{
erpComponent: true,
component: 'jcsj/kh/khfl/index',
hidden: false,
meta: {
"title": "客户分类",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920011800',
},
name: 'khfl',
path: "khfl",
},
{
erpComponent: true,
component: 'jcsj/kh/khxx/index',
hidden: false,
meta: {
"title": "客户信息",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920011900',
},
name: 'khxx',
path: "khxx",
},
{
erpComponent: true,
component: 'jcsj/gys/khfl/index',
hidden: false,
meta: {
"title": "供应商分类",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920012000',
},
name: 'gysfl',
path: "gysfl",
},
{
erpComponent: true,
component: 'jcsj/gys/gys/index',
hidden: false,
meta: {
"title": "供应商信息",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920012100',
},
name: 'gysxx',
path: "gysxx",
}
......
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row v-if="loading" :gutter="20" :app="this" class="editRow">
<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" v-if="(item.show==false)?false:true"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
/* 初始化数据 */
this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/
this.nowTime=nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[0].value=nowTime
this.loading=true
})
},
data() {
return {
isLoading:false,
text:'正在请求中...',
readonly:false,
loading:false,
editColItemList:[
{
label: '时间',
prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/ckgl/cktz/sync/lxll',this.form).then(res=>{
if(res.success){
this.isLoading=false
this.$success('操作成功')
this.app.showDialog=false
this.app.$refs.TablePager.refresh()
}
}).finally(res=>{
this.isLoading=false
})
}
})
}
}
}
</script>
<style scoped>
</style>
<template> <template>
<BasePage @beforeEdit='beforeEdit' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage @beforeEdit='beforeEdit' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tbwl :app='ctx.basePage' v-if="ctx.basePage.showDialog" /> <Tbwl :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步领料单'" />
<Akck :type="'add'" v-if="ctx.basePage.showAdd" :app='ctx.basePage' :buttonApp='ctx.basePage' /> <Akck :type="'add'" v-if="ctx.basePage.showAdd" :app='ctx.basePage' :buttonApp='ctx.basePage' />
</template> <Wxfl :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='外协发料同步'" />
<template #toolbar="ctx"> <Cbzx :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='成本中心领料同步'" />
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button> <Wwcl :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='委外超领同步'" />
<el-button @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button> </template>
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> <template #toolbar="ctx">
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">直接入库</el-button> --> <el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
<!-- <ImportButton @success="()=>{ <el-button @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button>
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">直接入库</el-button> -->
<!-- <ImportButton @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/lxyl/ckgl/cktz/import'" /> --> }" :url="'/lxyl/ckgl/cktz/import'" /> -->
<el-button @click="tbwl(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">同步领料单</el-button> <!-- <el-button @click="tbwl(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">同步领料单</el-button> -->
<el-button @click="tbwl(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">生产领料同步</el-button>
<el-button @click="wxfl(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">外协发料同步</el-button>
<el-button @click="cbzx(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">成本中心领料同步</el-button>
<el-button @click="wwcl(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">委外超领同步</el-button>
</template>
</BasePage> </template>
</BasePage>
</template> </template>
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
import Tbwl from './tbwl.vue' import Tbwl from './tbwl.vue'
import Akck from './akck.vue' import Akck from './akck.vue'
export default { import Wxfl from './wxfl.vue'
data() { import Cbzx from './cbzx.vue'
return { import Wwcl from './wwcl.vue'
config: { export default {
queryDetail: true, data() {
/* 基本配置*/ return {
url: 'lxyl/ckgl/cktz', config: {
tableTitle: [{ queryDetail: true,
title: "状态", /* 基本配置*/
field: "zt", url: 'lxyl/ckgl/cktz',
fieldType: "ftString", tableTitle: [{
align: 'center', title: "状态",
width: 80, field: "zt",
"transform": { fieldType: "ftString",
"url": "lxyl/ckgl/cktz/init/zt", align: 'center',
"label": "name", width: 80,
"value": "id" "transform": {
} "url": "lxyl/ckgl/cktz/init/zt",
}, "label": "name",
{ "value": "id"
title: "出库单号", }
field: "djid", },
width: 140 {
}, title: "出库单号",
{ field: "djid",
title: "业务日期", width: 140
field: "ywrq", },
fieldType: 'ftDate' {
}, title: "业务日期",
{ field: "ywrq",
title: "货主", fieldType: 'ftDate'
field: "hzName", },
width: 140 {
}, title: "货主",
{ field: "hzName",
title: "事务类型", width: 140
field: "swlxName", },
width: 100 {
}, title: "事务类型",
{ field: "swlxName",
title: "仓库", width: 100
field: "ckName", },
width: 140 {
}, title: "仓库",
// { field: "ckName",
// title: "需求日期", width: 140
// field: "xqrq", },
// fieldType: 'ftDate' // {
// }, // title: "需求日期",
{ // field: "xqrq",
title: "领料部门", // fieldType: 'ftDate'
field: "bmName", // },
width: 140
},
{ {
title: "单据来源", title: "领料部门",
field: "djly", field: "bmName",
width: 140, width: 140
},
{
title: "单据来源",
field: "djly",
width: 140,
"transform": { "transform": {
"url": "lxyl/ckgl/cktz/init/djly", "url": "lxyl/ckgl/cktz/init/djly",
"label": "name", "label": "name",
"value": "id" "value": "id"
} }
}, },
{ {
title: "来源单据号", title: "来源单据号",
field: "lydjDjid", field: "lydjDjid",
width: 140 width: 140
}, },
{ {
title: "备注", title: "备注",
field: "bz", field: "bz",
width: 240 width: 240
}, },
{ {
title: "维护人", title: "维护人",
field: "whr" field: "whr"
}, },
{ {
title: "维护时间", title: "维护时间",
field: "whsj", field: "whsj",
fieldType: 'ftDateTime' fieldType: 'ftDateTime'
} }
], ],
queryParams: [ queryParams: [
[{ [{
label: '日期', label: '日期',
startProp: "start", startProp: "start",
endProp: "end", endProp: "end",
span: 8, span: 8,
type: 'RelDaterangeV2', type: 'RelDaterangeV2',
startValue: new Date().getTime()-1000*60*60*24*30, startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue:new Date().getTime(), endValue: new Date().getTime(),
}, },
{ {
"label": "仓库", "label": "仓库",
"prop": "ckid", "prop": "ckid",
"span": 8, "span": 8,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "jcsj/common/ck/queryCkid", "src": "jcsj/common/ck/queryCkid",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
} }
} }
}, },
{ {
label: '单据编号', label: '单据编号',
prop: 'djid', prop: 'djid',
span: 8, span: 8,
type: 'input', type: 'input',
value: '' value: ''
} }
],[ ],
{ [{
label: '状态', label: '状态',
prop: 'zt', prop: 'zt',
span: 8, span: 8,
type: 'RelSelect', type: 'RelSelect',
typeConfig: { typeConfig: {
src: 'lxyl/ckgl/cktz/init/zt' src: 'lxyl/ckgl/cktz/init/zt'
} }
}, },
{ {
label: '事务类型', label: '事务类型',
prop: 'swlxid', prop: 'swlxid',
...@@ -166,81 +177,103 @@ ...@@ -166,81 +177,103 @@
span: 8, span: 8,
type: 'input', type: 'input',
} }
] ]
], ],
/* 默认启停用 */ /* 默认启停用 */
} }
} }
}, },
methods: { methods: {
beforeEdit(val){ beforeEdit(val) {
let {row,edit} = val let {
if(row.djly=='KC'){ row,
edit.otherEdit=Akck edit
}else{ } = val
edit.otherEdit=false if (row.djly == 'KC') {
edit.otherEdit = Akck
} else {
edit.otherEdit = false
} }
}, },
akck(ctx){ akck(ctx) {
ctx.showAdd=true ctx.showAdd = true
}, },
qr(ctx){ qr(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', { this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('lxyl/ckgl/cktz/confirm', { this.$post('lxyl/ckgl/cktz/confirm', {
id: ctx.singleItem.id id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
this.$success('操作成功') this.$success('操作成功')
ctx.refresh() ctx.refresh()
} }
}) })
}) })
} else { } else {
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
}, },
qxqr(ctx){ qxqr(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', { this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('lxyl/ckgl/cktz/unconfirm', { this.$post('lxyl/ckgl/cktz/unconfirm', {
id: ctx.singleItem.id id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
this.$success('操作成功') this.$success('操作成功')
ctx.refresh() ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
} }
})
})
} else {
this.$warning('请选中一条数据')
}
},
tbwl(ctx) {
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '同步领料单'
ctx.showDialog = true
},
wxfl(ctx) {
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '外协发料同步'
ctx.showDialog = true
},
cbzx(ctx) {
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '成本中心领料同步'
ctx.showDialog = true
}, },
tbwl(ctx){ wwcl(ctx) {
ctx.DialogWidth='30vw' ctx.DialogWidth = '30vw'
ctx.DialogTitle='同步领料单' ctx.DialogTitle = '委外超领同步'
ctx.showDialog=true ctx.showDialog = true
}, },
getRow(val){ getRow(val) {
this.$emit('getRow',val) this.$emit('getRow', val)
} }
}, },
components: { components: {
Edit,Tbwl, Edit,
Akck Tbwl,
} Akck,
Wxfl,
Cbzx,
Wwcl
}
} }
</script> </script>
<style> <style>
......
...@@ -53,14 +53,6 @@ this.$post('common/datetime',{}).then(res=>{ ...@@ -53,14 +53,6 @@ this.$post('common/datetime',{}).then(res=>{
readonly:false, readonly:false,
loading:false, loading:false,
editColItemList:[ editColItemList:[
// {
// label: '开始时间',
// prop: 'start',
// span: 24,
// type: 'datetime',
// value: '',
// "required": true,
// },
{ {
label: '时间', label: '时间',
prop: 'time', prop: 'time',
...@@ -68,7 +60,15 @@ this.$post('common/datetime',{}).then(res=>{ ...@@ -68,7 +60,15 @@ this.$post('common/datetime',{}).then(res=>{
type: 'datetime', type: 'datetime',
value: '', value: '',
"required": true, "required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
} }
] ]
} }
......
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row v-if="loading" :gutter="20" :app="this" class="editRow">
<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" v-if="(item.show==false)?false:true"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
/* 初始化数据 */
this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/
this.nowTime=nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[0].value=nowTime
this.loading=true
})
},
data() {
return {
isLoading:false,
text:'正在请求中...',
readonly:false,
loading:false,
editColItemList:[
{
label: '时间',
prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/ckgl/cktz/sync/wwcl',this.form).then(res=>{
if(res.success){
this.isLoading=false
this.$success('操作成功')
this.app.showDialog=false
this.app.$refs.TablePager.refresh()
}
}).finally(res=>{
this.isLoading=false
})
}
})
}
}
}
</script>
<style scoped>
</style>
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row v-if="loading" :gutter="20" :app="this" class="editRow">
<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" v-if="(item.show==false)?false:true"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
/* 初始化数据 */
this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/
this.nowTime=nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[0].value=nowTime
this.loading=true
})
},
data() {
return {
isLoading:false,
text:'正在请求中...',
readonly:false,
loading:false,
editColItemList:[
{
label: '时间',
prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/ckgl/cktz/sync/wxyl',this.form).then(res=>{
if(res.success){
this.isLoading=false
this.$success('操作成功')
this.app.showDialog=false
this.app.$refs.TablePager.refresh()
}
}).finally(res=>{
this.isLoading=false
})
}
})
}
}
}
</script>
<style scoped>
</style>
...@@ -137,7 +137,6 @@ ...@@ -137,7 +137,6 @@
// }, // },
// treeUrl:'' // treeUrl:''
} }
} }
......
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row v-if="loading" :gutter="20" :app="this" class="editRow">
<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" v-if="(item.show==false)?false:true"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
/* 初始化数据 */
this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/
this.nowTime=nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[0].value=nowTime
this.loading=true
})
},
data() {
return {
isLoading:false,
text:'正在请求中...',
readonly:false,
loading:false,
editColItemList:[
{
label: '时间',
prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/rkgl/rktz/sync/dbrk',this.form).then(res=>{
if(res.success){
this.isLoading=false
this.$success('操作成功')
this.app.showDialog=false
this.app.$refs.TablePager.refresh()
}
}).finally(res=>{
this.isLoading=false
})
}
})
}
}
}
</script>
<style scoped>
</style>
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<BasePage @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd v-if="ctx.basePage.showDialog" :app='ctx.basePage' /> <Shd v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步送货单'" :app='ctx.basePage' />
<Dbrktb v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调拨入库同步'" :app='ctx.basePage' />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
...@@ -13,6 +14,7 @@ ...@@ -13,6 +14,7 @@
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> <el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button> <el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button>
<el-button @click="tbshd(ctx.basePage)" size='mini' type="primary">同步送货单</el-button> <el-button @click="tbshd(ctx.basePage)" size='mini' type="primary">同步送货单</el-button>
<el-button @click="dbrktb(ctx.basePage)" size='mini' type="primary">调拨入库同步</el-button>
<!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> --> <!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> -->
</template> </template>
...@@ -22,6 +24,7 @@ ...@@ -22,6 +24,7 @@
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
import Shd from './shd.vue' import Shd from './shd.vue'
import Dbrktb from './dbrktb.vue'
export default { export default {
data() { data() {
return { return {
...@@ -221,6 +224,11 @@ ...@@ -221,6 +224,11 @@
ctx.DialogTitle='同步送货单' ctx.DialogTitle='同步送货单'
ctx.showDialog=true ctx.showDialog=true
}, },
dbrktb(ctx){
ctx.DialogWidth='35vw'
ctx.DialogTitle='调拨入库同步'
ctx.showDialog=true
},
qktjkw(ctx){ qktjkw(ctx){
if(ctx.singleItem&&ctx.singleItem.id){ if(ctx.singleItem&&ctx.singleItem.id){
this.$confirm('是否继续该操作?', '提示', { this.$confirm('是否继续该操作?', '提示', {
...@@ -310,7 +318,8 @@ ...@@ -310,7 +318,8 @@
}, },
components: { components: {
Edit, Edit,
Shd Shd,
Dbrktb
} }
} }
......
...@@ -53,14 +53,7 @@ this.$post('common/datetime',{}).then(res=>{ ...@@ -53,14 +53,7 @@ this.$post('common/datetime',{}).then(res=>{
readonly:false, readonly:false,
loading:false, loading:false,
editColItemList:[ editColItemList:[
// {
// label: '开始时间',
// prop: 'start',
// span: 24,
// type: 'datetime',
// value: '',
// "required": true,
// },
{ {
label: '时间', label: '时间',
prop: 'time', prop: 'time',
...@@ -68,6 +61,13 @@ this.$post('common/datetime',{}).then(res=>{ ...@@ -68,6 +61,13 @@ this.$post('common/datetime',{}).then(res=>{
type: 'datetime', type: 'datetime',
value: '', value: '',
"required": true, "required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
} }
] ]
...@@ -78,7 +78,7 @@ this.$post('common/datetime',{}).then(res=>{ ...@@ -78,7 +78,7 @@ this.$post('common/datetime',{}).then(res=>{
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if(valid){ if(valid){
this.isLoading=true this.isLoading=true
this.$post('lxyl/thgl/rkthtz/sync/cgth',this.form).then(res=>{ this.$post('lxyl/rkgl/ckthtz/sync/lltl',this.form).then(res=>{
if(res.success){ if(res.success){
this.isLoading=false this.isLoading=false
this.$success('操作成功') this.$success('操作成功')
......
...@@ -2,18 +2,17 @@ ...@@ -2,18 +2,17 @@
<BasePage @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd v-if="ctx.basePage.showDialog" :app='ctx.basePage' /> <Sclltldb v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='生产领料退料同步'" :app='ctx.basePage' />
<Wxtltb v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='外协退料同步'" :app='ctx.basePage' />
<Cbzxtltb v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='成本中心退料同步'" :app='ctx.basePage' />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- <ImportButton @success="()=>{ <el-button @click="sclltldb(ctx.basePage)" size='mini' type="primary">生产领料退料同步</el-button>
ctx.basePage.refresh() <el-button @click="wxtltb(ctx.basePage)" size='mini' type="primary">外协退料同步</el-button>
}" :url="'/lxyl/rkgl/ckthtz/import'" /> <el-button @click="cbzxtltb(ctx.basePage)" size='mini' type="primary">成本中心退料同步</el-button>
<el-button style="margin-left: 10px;" @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button>
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button>
<el-button @click="tbshd(ctx.basePage)" size='mini' type="primary">同步送货单</el-button> -->
<!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> -->
</template> </template>
</BasePage> </BasePage>
...@@ -22,6 +21,9 @@ ...@@ -22,6 +21,9 @@
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
import Shd from './shd.vue' import Shd from './shd.vue'
import Sclltldb from './sclltldb.vue'
import Wxtltb from './wxtltb.vue'
import Cbzxtltb from './cbzxtltb.vue'
export default { export default {
data() { data() {
return { return {
...@@ -216,11 +218,21 @@ ...@@ -216,11 +218,21 @@
}, },
methods: { methods: {
// tbshd(ctx){ sclltldb(ctx){
// ctx.DialogWidth='35vw' ctx.DialogWidth='35vw'
// ctx.DialogTitle='同步送货单' ctx.DialogTitle='生产领料退料同步'
// ctx.showDialog=true ctx.showDialog=true
// }, },
wxtltb(ctx){
ctx.DialogWidth='35vw'
ctx.DialogTitle='外协退料同步'
ctx.showDialog=true
},
cbzxtltb(ctx){
ctx.DialogWidth='35vw'
ctx.DialogTitle='成本中心退料同步'
ctx.showDialog=true
},
getRow(val){ getRow(val){
this.$emit('getRow',val) this.$emit('getRow',val)
...@@ -229,7 +241,10 @@ ...@@ -229,7 +241,10 @@
}, },
components: { components: {
Edit, Edit,
Shd Shd,
Sclltldb,
Wxtltb,
Cbzxtltb
} }
} }
......
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row v-if="loading" :gutter="20" :app="this" class="editRow">
<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" v-if="(item.show==false)?false:true"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
/* 初始化数据 */
this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/
this.nowTime=nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[0].value=nowTime
this.loading=true
})
},
data() {
return {
isLoading:false,
text:'正在请求中...',
readonly:false,
loading:false,
editColItemList:[
{
label: '时间',
prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/rkgl/ckthtz/sync/tld',this.form).then(res=>{
if(res.success){
this.isLoading=false
this.$success('操作成功')
this.app.showDialog=false
this.app.$refs.TablePager.refresh()
}
}).finally(res=>{
this.isLoading=false
})
}
})
}
}
}
</script>
<style scoped>
</style>
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row v-if="loading" :gutter="20" :app="this" class="editRow">
<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" v-if="(item.show==false)?false:true"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
/* 初始化数据 */
this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/
this.nowTime=nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[0].value=nowTime
this.loading=true
})
},
data() {
return {
isLoading:false,
text:'正在请求中...',
readonly:false,
loading:false,
editColItemList:[
{
label: '时间',
prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/rkgl/ckthtz/sync/wxtl',this.form).then(res=>{
if(res.success){
this.isLoading=false
this.$success('操作成功')
this.app.showDialog=false
this.app.$refs.TablePager.refresh()
}
}).finally(res=>{
this.isLoading=false
})
}
})
}
}
}
</script>
<style scoped>
</style>
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row v-if="loading" :gutter="20" :app="this" class="editRow">
<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" v-if="(item.show==false)?false:true"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
/* 初始化数据 */
this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/
this.nowTime=nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[0].value=nowTime
this.loading=true
})
},
data() {
return {
isLoading:false,
text:'正在请求中...',
readonly:false,
loading:false,
editColItemList:[
{
label: '时间',
prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '业务单号',
prop: 'ywdh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/rkgl/rkthtz/sync/cgth',this.form).then(res=>{
if(res.success){
this.isLoading=false
this.$success('操作成功')
this.app.showDialog=false
this.app.$refs.TablePager.refresh()
}
}).finally(res=>{
this.isLoading=false
})
}
})
}
}
}
</script>
<style scoped>
</style>
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck :type="'add'" v-if="ctx.basePage.showAdd" :app='ctx.basePage' :buttonApp='ctx.basePage' /> <Akck :type="'add'" v-if="ctx.basePage.showAdd" :app='ctx.basePage' :buttonApp='ctx.basePage' />
<Tblld :app='ctx.basePage' v-if="ctx.basePage.showDialog" /> <Cgthtb :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button> <el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
<el-button @click="cgth(ctx.basePage)" size='mini' type="primary">同步采购退货单</el-button> <el-button @click="cgthtb(ctx.basePage)" size='mini' type="primary">采购退货单同步</el-button>
<!-- <el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> --> <!-- <el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> -->
</template> </template>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
import Akck from './akck.vue' import Akck from './akck.vue'
import Tblld from './tblld.vue' import Cgthtb from './cgthtb.vue'
export default { export default {
data() { data() {
return { return {
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
}, },
methods: { methods: {
cgth(ctx){ cgthtb(ctx){
ctx.DialogWidth='30vw' ctx.DialogWidth='30vw'
ctx.DialogTitle='同步采购退货单' ctx.DialogTitle='同步采购退货单'
ctx.showDialog=true ctx.showDialog=true
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
components: { components: {
Edit, Edit,
Akck, Akck,
Tblld Cgthtb
} }
} }
......
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