|
|
|
@ -30,14 +30,19 @@
|
|
|
|
|
<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="createSchedule(1)"
|
|
|
|
|
:disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck">同步单据</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="createSchedule(2)"
|
|
|
|
|
:disabled="!configParms.typeBus&& !configParms.typeScan&& !configParms.typeThird">同步单据类型</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="createSchedule(3)"
|
|
|
|
|
<el-button type="primary" icon="search" @click="createScheduleDialog(1)"
|
|
|
|
|
:disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck">
|
|
|
|
|
同步单据
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="createScheduleDialog(2)"
|
|
|
|
|
:disabled="!configParms.typeBus&& !configParms.typeScan&& !configParms.typeThird">
|
|
|
|
|
同步单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="createScheduleDialog(3)"
|
|
|
|
|
:disabled="!configParms.basicProducts&& !configParms.basicCorp&&
|
|
|
|
|
!configParms.basicInv&&!configParms.basicThirdProducts&& !configParms.basicThirdCorp&& !configParms.basicThirdInv
|
|
|
|
|
&& !configParms.basicThirdBusOrder&& !configParms.sysUser">同步基础信息</el-button>
|
|
|
|
|
&& !configParms.basicThirdBusOrder&& !configParms.sysUser">同步基础信息
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
@ -279,6 +284,25 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createScheduleDialog(type) {
|
|
|
|
|
if (this.$isNotBlank(this.syncTime)) {
|
|
|
|
|
this.$confirm("此操作将从" + this.syncTime + "开始同步最新数据,是否继续", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.createSchedule(type);
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.createSchedule(type);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
createSchedule(type) {
|
|
|
|
|
let query = {
|
|
|
|
|
createType: type,
|
|
|
|
|