|
|
@ -62,6 +62,18 @@
|
|
|
|
>修改</el-button
|
|
|
|
>修改</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="success"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="single"
|
|
|
|
|
|
|
|
@click="handleUpdateAttached"
|
|
|
|
|
|
|
|
v-hasPermi="['wms:attached:edit']"
|
|
|
|
|
|
|
|
>修改附属属性</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="danger"
|
|
|
|
type="danger"
|
|
|
@ -94,7 +106,7 @@
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
@click="handleSyncProductSAP"
|
|
|
|
@click="handleSyncProductSAP"
|
|
|
|
v-hasPermi="['wms:product:edit']"
|
|
|
|
v-hasPermi="['wms:product:edit']"
|
|
|
|
>同步物料工艺
|
|
|
|
>同步物料工艺
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar
|
|
|
|
<right-toolbar
|
|
|
@ -206,7 +218,7 @@
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="操作"
|
|
|
|
label="操作"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
width="150"
|
|
|
|
width="150"
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -420,93 +432,120 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 查看物料附属信息 -->
|
|
|
|
<!-- 更新附属属性 -->
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="title"
|
|
|
|
:title="title"
|
|
|
|
:visible.sync="openAttached"
|
|
|
|
:visible.sync="openAttached"
|
|
|
|
|
|
|
|
width="500px"
|
|
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
|
|
|
|
<el-form-item label="标准效率" prop="iei">
|
|
|
|
|
|
|
|
<el-input-number
|
|
|
|
|
|
|
|
v-model="form.iei"
|
|
|
|
|
|
|
|
style="width: 320px"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="标准用人" prop="manStandar">
|
|
|
|
|
|
|
|
<el-input-number
|
|
|
|
|
|
|
|
v-model="form.manStandar"
|
|
|
|
|
|
|
|
style="width: 320px"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="submitAttachedForm">确 定</el-button>
|
|
|
|
|
|
|
|
<el-button @click="cancelOpenAttached">取 消</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 查看物料附属信息 -->
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
:title="title"
|
|
|
|
|
|
|
|
:visible.sync="openAttachedView"
|
|
|
|
width="1000px"
|
|
|
|
width="1000px"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-descriptions
|
|
|
|
<el-descriptions
|
|
|
|
:column="2"
|
|
|
|
:column="2"
|
|
|
|
border
|
|
|
|
border
|
|
|
|
:contentStyle="CS"
|
|
|
|
:contentStyle="CS"
|
|
|
|
:label-style="LS"
|
|
|
|
:label-style="LS"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-descriptions-item label="产品编码">{{
|
|
|
|
<el-descriptions-item label="产品编码">{{
|
|
|
|
form.productCode
|
|
|
|
form.productCode
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="产品名称">{{
|
|
|
|
<el-descriptions-item label="产品名称">{{
|
|
|
|
form.productDescZh
|
|
|
|
form.productDescZh
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<!-- <el-descriptions-item label="产品型号">{{
|
|
|
|
<!-- <el-descriptions-item label="产品型号">{{
|
|
|
|
form.productModel
|
|
|
|
form.productModel
|
|
|
|
}}</el-descriptions-item> -->
|
|
|
|
}}</el-descriptions-item> -->
|
|
|
|
<el-descriptions-item label="物料组编码">{{
|
|
|
|
<el-descriptions-item label="物料组编码">{{
|
|
|
|
form.productGroup
|
|
|
|
form.productGroup
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="物料组名称">{{
|
|
|
|
<el-descriptions-item label="物料组名称">{{
|
|
|
|
form.productGroupName
|
|
|
|
form.productGroupName
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="物料类别">{{
|
|
|
|
<el-descriptions-item label="物料类别">{{
|
|
|
|
form.mtart
|
|
|
|
form.mtart
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="报工折算率">{{
|
|
|
|
<el-descriptions-item label="报工折算率">{{
|
|
|
|
form.reportRate
|
|
|
|
form.reportRate
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="品类">{{
|
|
|
|
<el-descriptions-item label="品类">{{
|
|
|
|
form.category
|
|
|
|
form.category
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="每PC单圈">{{
|
|
|
|
<el-descriptions-item label="每PC单圈">{{
|
|
|
|
form.pc
|
|
|
|
form.pc
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="标准效率">{{
|
|
|
|
<el-descriptions-item label="标准效率">{{
|
|
|
|
form.iei
|
|
|
|
form.iei
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="标准用人">{{
|
|
|
|
<el-descriptions-item label="标准用人">{{
|
|
|
|
form.manStandar
|
|
|
|
form.manStandar
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="喷药方式">{{
|
|
|
|
<el-descriptions-item label="喷药方式">{{
|
|
|
|
form.sprayWay
|
|
|
|
form.sprayWay
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="白坯直径">{{
|
|
|
|
<el-descriptions-item label="白坯直径">{{
|
|
|
|
form.blankDiameter
|
|
|
|
form.blankDiameter
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="白胚物料号">{{
|
|
|
|
<el-descriptions-item label="白胚物料号">{{
|
|
|
|
form.blankNo
|
|
|
|
form.blankNo
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="标准喷药量">{{
|
|
|
|
<el-descriptions-item label="标准喷药量">{{
|
|
|
|
form.sprayVolume
|
|
|
|
form.sprayVolume
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="药液料号">{{
|
|
|
|
<el-descriptions-item label="药液料号">{{
|
|
|
|
form.liquidNo
|
|
|
|
form.liquidNo
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="标准内膜用量">{{
|
|
|
|
<el-descriptions-item label="标准内膜用量">{{
|
|
|
|
form.endometrialDosage
|
|
|
|
form.endometrialDosage
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="标准外膜用量(KG/PC)">{{
|
|
|
|
<el-descriptions-item label="标准外膜用量(KG/PC)">{{
|
|
|
|
form.outerFilmDosage
|
|
|
|
form.outerFilmDosage
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="支架">{{
|
|
|
|
<el-descriptions-item label="支架">{{
|
|
|
|
form.support
|
|
|
|
form.support
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="支架物料号">{{
|
|
|
|
<el-descriptions-item label="支架物料号">{{
|
|
|
|
form.supportNo
|
|
|
|
form.supportNo
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="吸塑">{{
|
|
|
|
<el-descriptions-item label="吸塑">{{
|
|
|
|
form.pvc
|
|
|
|
form.pvc
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="支架盘">{{
|
|
|
|
<el-descriptions-item label="支架盘">{{
|
|
|
|
form.supportPlate
|
|
|
|
form.supportPlate
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="其他">{{
|
|
|
|
<el-descriptions-item label="其他">{{
|
|
|
|
form.other
|
|
|
|
form.other
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button @click="cancelAttached">取 消</el-button>
|
|
|
|
<el-button @click="cancelAttachedView">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -519,6 +558,7 @@ import {
|
|
|
|
delProduct,
|
|
|
|
delProduct,
|
|
|
|
addProduct,
|
|
|
|
addProduct,
|
|
|
|
updateProduct,
|
|
|
|
updateProduct,
|
|
|
|
|
|
|
|
updateProductAttached,
|
|
|
|
} from "@/api/wms/product";
|
|
|
|
} from "@/api/wms/product";
|
|
|
|
import { syncProductSAP } from "@/api/technology/proroute";
|
|
|
|
import { syncProductSAP } from "@/api/technology/proroute";
|
|
|
|
|
|
|
|
|
|
|
@ -537,7 +577,7 @@ export default {
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
productCodes:[],
|
|
|
|
productCodes: [],
|
|
|
|
// 非单个禁用
|
|
|
|
// 非单个禁用
|
|
|
|
single: true,
|
|
|
|
single: true,
|
|
|
|
// 非多个禁用
|
|
|
|
// 非多个禁用
|
|
|
@ -552,6 +592,7 @@ export default {
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
|
|
|
|
openAttachedView: false,
|
|
|
|
openAttached: false,
|
|
|
|
openAttached: false,
|
|
|
|
// 查询参数
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
queryParams: {
|
|
|
@ -637,14 +678,22 @@ export default {
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
// 查看取消按钮
|
|
|
|
cancelAttached() {
|
|
|
|
cancelAttachedView() {
|
|
|
|
|
|
|
|
this.openAttachedView = false;
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 更新附属表取消按钮
|
|
|
|
|
|
|
|
cancelOpenAttached() {
|
|
|
|
this.openAttached = false;
|
|
|
|
this.openAttached = false;
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单重置
|
|
|
|
// 表单重置
|
|
|
|
reset() {
|
|
|
|
reset() {
|
|
|
|
this.form = {
|
|
|
|
this.form = {
|
|
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
|
|
iei: null,
|
|
|
|
|
|
|
|
manStandar: null,
|
|
|
|
productId: null,
|
|
|
|
productId: null,
|
|
|
|
productCode: null,
|
|
|
|
productCode: null,
|
|
|
|
productDescZh: null,
|
|
|
|
productDescZh: null,
|
|
|
@ -704,7 +753,7 @@ export default {
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map((item) => item.productId);
|
|
|
|
this.ids = selection.map((item) => item.productId);
|
|
|
|
this.productCodes = selection.map(item => item.productCode)
|
|
|
|
this.productCodes = selection.map((item) => item.productCode);
|
|
|
|
this.single = selection.length !== 1;
|
|
|
|
this.single = selection.length !== 1;
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -724,16 +773,18 @@ export default {
|
|
|
|
this.title = "修改产品信息";
|
|
|
|
this.title = "修改产品信息";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 查询明细按钮操作
|
|
|
|
// 查询明细按钮操作
|
|
|
|
handleView(row) {
|
|
|
|
handleView(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const productId = row.productId || this.ids;
|
|
|
|
const productId = row.productId || this.ids;
|
|
|
|
getProduct(productId).then((response) => {
|
|
|
|
getProduct(productId).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.openAttached = true;
|
|
|
|
this.openAttachedView = true;
|
|
|
|
this.title = "查看产品信息";
|
|
|
|
this.title = "查看产品信息";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
@ -754,6 +805,37 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
|
|
|
handleUpdateAttached(row) {
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
const productId = row.productId || this.ids;
|
|
|
|
|
|
|
|
getProduct(productId).then((response) => {
|
|
|
|
|
|
|
|
this.form.id = response.data.id;
|
|
|
|
|
|
|
|
this.form.iei = response.data.iei;
|
|
|
|
|
|
|
|
this.form.manStandar = response.data.manStandar;
|
|
|
|
|
|
|
|
this.openAttached = true;
|
|
|
|
|
|
|
|
this.title = "查看产品信息";
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
|
|
|
submitAttachedForm() {
|
|
|
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
|
|
|
console.log(this.form);
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
|
|
|
console.log(this.form);
|
|
|
|
|
|
|
|
updateProductAttached(this.form).then((response) => {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("修改产品附属信息成功");
|
|
|
|
|
|
|
|
this.openAttached = false;
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const productIds = row.productId || this.ids;
|
|
|
|
const productIds = row.productId || this.ids;
|
|
|
@ -781,10 +863,10 @@ export default {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**选择产品进行工艺同步**/
|
|
|
|
/**选择产品进行工艺同步**/
|
|
|
|
handleSyncProductSAP(){
|
|
|
|
handleSyncProductSAP() {
|
|
|
|
const productCodes = this.productCodes;
|
|
|
|
const productCodes = this.productCodes;
|
|
|
|
return syncProductSAP(productCodes);
|
|
|
|
return syncProductSAP(productCodes);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|