工艺隐藏主动同步更新功能

master
zhaoxiaolin 1 year ago
parent 139c0ce488
commit 8728f13a8c

@ -50,4 +50,12 @@ export function importProroute(data) {
method: 'post', method: 'post',
data: data data: data
}) })
}
// 同步SAP订单
export function syncSAP() {
return request({
url: '/technology/pro/proroute/syncSAP',
method: 'post'
});
} }

@ -75,14 +75,16 @@
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<!--
<el-button <el-button
type="warning" type="warning"
plain plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleSyncSAP"
v-hasPermi="['mes:pro:proroute:add']" v-hasPermi="['mes:pro:proroute:add']"
>SAP同步</el-button> >SAP同步</el-button>
-->
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -288,7 +290,7 @@
</template> </template>
<script> <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 Routeprocess from "./routeprocess";
import Routeprodproduct from "./routeprodproduct"; import Routeprodproduct from "./routeprodproduct";
export default { export default {
@ -540,6 +542,16 @@ export default {
strs += list[i].url + separator; strs += list[i].url + separator;
} }
return strs != '' ? strs.substr(0, strs.length - 1) : ''; 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(() => {
})
} }
} }
}; };

Loading…
Cancel
Save