Commit 3b5aa44e authored by 沈翠玲's avatar 沈翠玲

改成代理服务器ip以及生产版本增删改

parent 1a315101
...@@ -5,7 +5,7 @@ VUE_APP_TITLE = 希迈系统 ...@@ -5,7 +5,7 @@ VUE_APP_TITLE = 希迈系统
ENV = 'development' ENV = 'development'
# 若依管理系统/开发环境 # 若依管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.222.60:8088' VUE_APP_BASE_API = '/api'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 希迈系统 ...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 希迈系统
ENV = 'production' ENV = 'production'
# 若依管理系统/生产环境 # 若依管理系统/生产环境
VUE_APP_BASE_API = 'http://192.168.222.60:8088' VUE_APP_BASE_API = '/prod-api'
...@@ -21,7 +21,13 @@ ...@@ -21,7 +21,13 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['mes:pro:productionSolution:add']">新增
</el-button>
</el-col>
</el-row>
<el-table v-loading="loading" :data="productionSolutionList" row-key="productionSolutionId" default-expand-all> <el-table v-loading="loading" :data="productionSolutionList" row-key="productionSolutionId" default-expand-all>
<el-table-column label="生产版本编码" prop="productionSolutionCode"> <el-table-column label="生产版本编码" prop="productionSolutionCode">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -46,7 +52,6 @@ ...@@ -46,7 +52,6 @@
</el-table-column> --> </el-table-column> -->
<!-- <el-table-column label="备注" align="center" prop="usageName" width="180"/> --> <!-- <el-table-column label="备注" align="center" prop="usageName" width="180"/> -->
<!--
<el-table-column <el-table-column
label="操作" label="操作"
width="200px" width="200px"
...@@ -59,13 +64,15 @@ ...@@ -59,13 +64,15 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
v-if="scope.row.status == 'PREPARE'"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['pro:productionSolution:edit']" v-hasPermi="['pro:productionSolution:edit']"
>确认</el-button >修改</el-button
> >
<el-button size="mini" type="text" icon="el-icon-delete"
@click="handleDelete(scope.row)" v-hasPermi="['mes:pro:productionSolution:remove']">删除
</el-button>
</template> </template>
</el-table-column> --> </el-table-column>
</el-table> </el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" /> @pagination="getList" />
...@@ -81,9 +88,6 @@ import { ...@@ -81,9 +88,6 @@ import {
// updatePrototypeRequest, // updatePrototypeRequest,
// dofinish, // dofinish,
listProductionSolution, listProductionSolution,
getProductionSolution,
addProductionSolution,
updateProductionSolution,
delProductionSolution, delProductionSolution,
} from "@/api/mes/pro/productionSolution"; } from "@/api/mes/pro/productionSolution";
import ItemSelect from "@/components/itemSelect/single.vue"; import ItemSelect from "@/components/itemSelect/single.vue";
...@@ -219,21 +223,8 @@ export default { ...@@ -219,21 +223,8 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd(row) { handleAdd(row) {
// 跳转到申请单界面 // 跳转到申请单界面
this.$router.push("/mes/proofing/apply"); this.$router.push("/mes/pro/productionSolution/apply");
return; return;
// this.reset();
// this.getTreeselect();
// if (row != null && row.prototypeRequestId) {
// this.form.parentId = row.prototypeRequestId;
// this.form.orderSource = row.orderSource;
// this.form.sourceCode = row.sourceCode;
// this.form.clientId = row.clientId;
// this.form.clientCode = row.clientCode;
// this.form.clientName = row.clientName;
// } else {
// this.form.parentId = 0;
// }
// this.open = true;
}, },
// 查询明细按钮操作 // 查询明细按钮操作
handleView(row) { handleView(row) {
...@@ -269,9 +260,9 @@ export default { ...@@ -269,9 +260,9 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
this.$modal this.$modal
.confirm('是否确认删除编号为"' + row.prototypeRequestId + '"的打样单?') .confirm('是否确认删除编号为"' + row.productionSolutionCode + '"的生产版本?')
.then(function () { .then(function () {
return delPrototypeRequest(row.prototypeRequestId); return delProductionSolution(row.productionSolutionId);
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
{{ pageTitle }} {{ pageTitle }}
<!-- 申请按钮显示 --> <!-- 申请按钮显示 -->
<template slot="buttons" v-if="mode == 'apply'"> <template slot="buttons" v-if="mode == 'apply'">
<!-- <el-button size="mini" @click="resetForm">重置</el-button> <el-button size="mini" @click="resetForm">重置</el-button>
<el-button size="mini" type="primary" @click="saveForm">提交</el-button> --> <el-button size="mini" type="primary" @click="saveForm">提交</el-button>
</template> </template>
<!-- 修改 按钮显示 --> <!-- 修改 按钮显示 -->
...@@ -142,9 +142,9 @@ import RoutesProcessSelect from "@/components/routesProcessSelect/index.vue"; ...@@ -142,9 +142,9 @@ import RoutesProcessSelect from "@/components/routesProcessSelect/index.vue";
import { listRouteprocess } from "@/api/mes/pro/routeprocess"; import { listRouteprocess } from "@/api/mes/pro/routeprocess";
import tabPlugins from "@/plugins/tab"; import tabPlugins from "@/plugins/tab";
import { import {
// addPrototypeRequest, addProductionSolution,
// getPrototypeRequest, // getPrototypeRequest,
// updatePrototypeRequest, updateProductionSolution,
getProductionSolution, getProductionSolution,
submitProductionSolution, submitProductionSolution,
} from "@/api/mes/pro/productionSolution"; } from "@/api/mes/pro/productionSolution";
...@@ -210,9 +210,9 @@ export default { ...@@ -210,9 +210,9 @@ export default {
}, },
pageTitle() { pageTitle() {
const titles = { const titles = {
edit: "生产版本确认", edit: "生产版本修改",
info: "生产版本详情", info: "生产版本详情",
apply: "生产版本申请", apply: "生产版本新增",
}; };
return titles[this.mode]; return titles[this.mode];
}, },
...@@ -290,7 +290,7 @@ export default { ...@@ -290,7 +290,7 @@ export default {
}; };
this.loading = true; this.loading = true;
if (this.mode == "apply") { if (this.mode == "apply") {
addPrototypeRequest(params) addProductionSolution(params)
.then((res) => { .then((res) => {
this.loading = false; this.loading = false;
this.$modal.msgSuccess("提交成功!"); this.$modal.msgSuccess("提交成功!");
...@@ -302,7 +302,7 @@ export default { ...@@ -302,7 +302,7 @@ export default {
this.loading = false; this.loading = false;
}); });
} else { } else {
submitProductionSolution(params) updateProductionSolution(params)
.then(() => { .then(() => {
this.loading = false; this.loading = false;
this.$modal.msgSuccess("提交成功!"); this.$modal.msgSuccess("提交成功!");
......
...@@ -36,8 +36,8 @@ module.exports = { ...@@ -36,8 +36,8 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8080`, // target: `http://localhost:8080`,
// target: `http://192.168.222.60:9081/mesApi`, target: `http://192.168.222.60:9092/mesApi`,
target: `http://192.168.222.60:8088`, // target: `http://192.168.222.60:8088`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment