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

改接口/改参数(同步领料单)

parent 6f56379f
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<!-- <ImportButton @success="()=>{ <!-- <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;">同步sap出库</el-button> <el-button @click="tbwl(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">同步领料</el-button>
</template> </template>
......
...@@ -40,8 +40,8 @@ this.$post('common/datetime',{}).then(res=>{ ...@@ -40,8 +40,8 @@ this.$post('common/datetime',{}).then(res=>{
let nowTime=res.data.data||new Date().getTime() let nowTime=res.data.data||new Date().getTime()
/* 初始赋值*/ /* 初始赋值*/
this.nowTime=nowTime this.nowTime=nowTime
this.editColItemList[0].value=nowTime-24*60*60*1000 // this.editColItemList[0].value=nowTime-24*60*60*1000
this.editColItemList[1].value=nowTime this.editColItemList[0].value=nowTime
this.loading=true this.loading=true
}) })
...@@ -53,17 +53,17 @@ this.$post('common/datetime',{}).then(res=>{ ...@@ -53,17 +53,17 @@ 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: 'start', prop: 'time',
span: 24,
type: 'datetime',
value: '',
"required": true,
},
{
label: '结束时间',
prop: 'end',
span: 24, span: 24,
type: 'datetime', type: 'datetime',
value: '', 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/ckgl/llck/sap/sync',this.form).then(res=>{ this.$post('lxyl/ckgl/cktz/sync/lld',this.form).then(res=>{
if(res.success){ if(res.success){
this.isLoading=false this.isLoading=false
this.$success('操作成功') this.$success('操作成功')
......
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