|
|
|
@ -25,17 +25,21 @@
|
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="getList">查询</el-button>
|
|
|
|
|
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(1)"-->
|
|
|
|
|
<!-- v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1">-->
|
|
|
|
|
<!-- 同步单据-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)"
|
|
|
|
|
<el-button type="primary" icon="search" @click="uploadData('IO_ORDER')"
|
|
|
|
|
v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1">
|
|
|
|
|
同步单据
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="uploadData('DOCUMENT_TYPE_DATA')"
|
|
|
|
|
v-if="configParms.typeBus==1||configParms.typeScan==1||configParms.typeThird==1">
|
|
|
|
|
同步单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="createScheduleDialog(3)" v-if="configParms.basicProducts==1||configParms.basicCorp==1||configParms.basicInv==1||configParms.basicThirdProducts==1||
|
|
|
|
|
configParms.basicThirdCorp==1||configParms.basicThirdInv==1||configParms.basicThirdBusOrder==1||configParms.sysUser==1">同步基础信息
|
|
|
|
|
</el-button> -->
|
|
|
|
|
<el-button type="primary" icon="search" @click="uploadData('THIRD_DATA')" v-if="configParms.basicThirdDept==1||configParms.basicThirdInv==1||configParms.basicThirdProducts==1||configParms.basicThirdCorp==1">同步第三方基础数据
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="uploadData('USER_DATA')" v-if="configParms.basicDept==1 || configParms.basicInv==1|| configParms.sysUser==1">同步用户信息
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="uploadData('SYS_SET_DATA')" v-if="configParms.systemConfig==1||configParms.entrustAction==1||configParms.printConfig==1
|
|
|
|
|
||configParms.scanChangeConfig==1||configParms.busChangeConfig==1">同步系统设置信息
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
@ -95,7 +99,8 @@ import {
|
|
|
|
|
createSchedule,
|
|
|
|
|
findConfig,
|
|
|
|
|
updateConfig,
|
|
|
|
|
infoByStatus
|
|
|
|
|
infoByStatus,
|
|
|
|
|
uploadData
|
|
|
|
|
} from "@/api/sync/spsSyncStatus";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
|
|
|
|
@ -140,9 +145,9 @@ export default {
|
|
|
|
|
syncTime: null,
|
|
|
|
|
},
|
|
|
|
|
uploadFileUrl: null,
|
|
|
|
|
uploadData: {
|
|
|
|
|
thirdSys: "thirdId",
|
|
|
|
|
},
|
|
|
|
|
//uploadData: {
|
|
|
|
|
// thirdSys: "thirdId",
|
|
|
|
|
//},
|
|
|
|
|
templateDlUrl: null,
|
|
|
|
|
checked: false,
|
|
|
|
|
configParms: {},
|
|
|
|
@ -349,6 +354,29 @@ export default {
|
|
|
|
|
this.syncInfo = item.remark;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
uploadData(exportType){
|
|
|
|
|
if(!this.filterQuery.syncTime){
|
|
|
|
|
this.$message.error("请选择同步时间");
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
let param = {
|
|
|
|
|
exportType : exportType,
|
|
|
|
|
syncTime: this.filterQuery.syncTime
|
|
|
|
|
}
|
|
|
|
|
uploadData(param).then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.filterQuery.page = 1
|
|
|
|
|
this.$message.success("操作成功");
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
this.filterQuery.syncTime=null
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.getList();
|
|
|
|
|
},1000)
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|