|
|
|
@ -75,14 +75,16 @@
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<!--
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
@click="handleSyncSAP"
|
|
|
|
|
v-hasPermi="['mes:pro:proroute:add']"
|
|
|
|
|
>SAP同步</el-button>
|
|
|
|
|
-->
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -288,7 +290,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listProroute, getProroute, delProroute, addProroute, updateProroute } from "@/api/technology/proroute";
|
|
|
|
|
import { listProroute, getProroute, delProroute, addProroute, updateProroute,syncSAP } from "@/api/technology/proroute";
|
|
|
|
|
import Routeprocess from "./routeprocess";
|
|
|
|
|
import Routeprodproduct from "./routeprodproduct";
|
|
|
|
|
export default {
|
|
|
|
@ -540,6 +542,16 @@ export default {
|
|
|
|
|
strs += list[i].url + separator;
|
|
|
|
|
}
|
|
|
|
|
return strs != '' ? strs.substr(0, strs.length - 1) : '';
|
|
|
|
|
},
|
|
|
|
|
/** SAP同步按钮操作 */
|
|
|
|
|
handleSyncSAP() {
|
|
|
|
|
this.$modal.confirm('是否确认SAP同步操作步骤?').then(function() {
|
|
|
|
|
return syncSAP()
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.$modal.msgSuccess('同步成功')
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|