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

同步销售退货单,同步销售交货单

parent 5c9e070e
......@@ -7,6 +7,7 @@
<Wxfl :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='外协发料同步'" />
<Cbzx :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='成本中心领料同步'" />
<Wwcl :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='委外超领同步'" />
<Tbxsjh :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步销售交货'" />
</template>
<template #toolbar="ctx">
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
......@@ -17,10 +18,12 @@
ctx.basePage.refresh()
}" :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="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>
<el-button @click="tbwl(ctx.basePage)" size='mini' type="primary" >生产领料同步</el-button>
<el-button @click="wxfl(ctx.basePage)" size='mini' type="primary" >外协发料同步</el-button>
<el-button @click="cbzx(ctx.basePage)" size='mini' type="primary" >成本中心领料同步</el-button>
<el-button @click="wwcl(ctx.basePage)" size='mini' type="primary" >委外超领同步</el-button>
<!-- 同步销售订单-->
<el-button @click="tbxsjh(ctx.basePage)" size='mini' type="primary">同步销售交货</el-button>
</template>
......@@ -35,6 +38,7 @@
import Wxfl from './wxfl.vue'
import Cbzx from './cbzx.vue'
import Wwcl from './wwcl.vue'
import Tbxsjh from './tbxsjh.vue'
export default {
data() {
return {
......@@ -255,6 +259,11 @@
ctx.DialogTitle = '成本中心领料同步'
ctx.showDialog = true
},
tbxsjh(ctx){
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '同步销售交货'
ctx.showDialog = true
},
wwcl(ctx) {
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '委外超领同步'
......@@ -270,7 +279,8 @@
Akck,
Wxfl,
Cbzx,
Wwcl
Wwcl,
Tbxsjh
}
}
......
<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: 'ddh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if(valid){
this.isLoading=true
this.$post('lxyl/rkgl/rktz/sync/xsthd',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>
......@@ -5,6 +5,7 @@
<Shd v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步送货单'" :app='ctx.basePage' />
<Dbrktb v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调拨入库同步'" :app='ctx.basePage' />
<Tbcgd v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步采购单'" :app='ctx.basePage' />
<Tbxsth v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步销售退货'" :app='ctx.basePage' />
</template>
<template #toolbar="ctx">
......@@ -17,6 +18,8 @@
<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="tbcgd(ctx.basePage)" size='mini' type="primary">同步采购单</el-button>
<el-button @click="tbxsth(ctx.basePage)" size='mini' type="primary">同步销售退货</el-button>
<!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> -->
</template>
......@@ -28,6 +31,7 @@
import Shd from './shd.vue'
import Dbrktb from './dbrktb.vue'
import Tbcgd from './tbcgd.vue'
import Tbxsth from './tbxsth.vue'
export default {
data() {
return {
......@@ -222,6 +226,11 @@
},
methods: {
tbxsth(ctx){
ctx.DialogWidth='35vw'
ctx.DialogTitle='同步销售退货'
ctx.showDialog=true
},
tbcgd(ctx){
ctx.DialogWidth='35vw'
ctx.DialogTitle='同步采购单'
......@@ -328,7 +337,8 @@
Edit,
Shd,
Dbrktb,
Tbcgd
Tbcgd,
Tbxsth
}
}
......
<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: 'ddh',
span: 24,
type: 'input',
value: '',
}
]
}
},
methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.isLoading = true
this.$post('lxyl/rkgl/rktz/sync/xsthd', 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>
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