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

master
zhaoxiaolin 1 year ago
parent 139c0ce488
commit 8728f13a8c

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

@ -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(() => {
})
}
}
};

Loading…
Cancel
Save