|
|
@ -236,6 +236,16 @@
|
|
|
|
v-hasPermi="['wms:put:add']"
|
|
|
|
v-hasPermi="['wms:put:add']"
|
|
|
|
>新增</el-button>
|
|
|
|
>新增</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleUpdateKEN"
|
|
|
|
|
|
|
|
v-hasPermi="['wms:put:edit']"
|
|
|
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
@ -268,6 +278,7 @@
|
|
|
|
v-hasPermi="['wms:put:export']"
|
|
|
|
v-hasPermi="['wms:put:export']"
|
|
|
|
>导出</el-button>
|
|
|
|
>导出</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
@ -357,36 +368,43 @@
|
|
|
|
<!-- 添加或修改成品生产入库对话框 -->
|
|
|
|
<!-- 添加或修改成品生产入库对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form-item label="报工单号" prop="workOrder">
|
|
|
|
<!-- <el-form-item label="报工单号" prop="workOrder">-->
|
|
|
|
<el-input v-model="form.workOrder" placeholder="请输入报工单号" />
|
|
|
|
<!-- <el-input v-model="form.workOrder" placeholder="请输入报工单号" />-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="工厂编码" prop="factoryCode">
|
|
|
|
<el-form-item label="工厂编码" prop="factoryCode">
|
|
|
|
<el-input v-model="form.factoryCode" placeholder="请输入工厂编码" />
|
|
|
|
<el-input v-model="form.factoryCode" placeholder="请输入工厂编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="生产工单号" prop="productOrder">
|
|
|
|
<el-form-item label="生产工单" prop="productOrder">
|
|
|
|
<el-input v-model="form.productOrder" placeholder="请输入生产工单号" />
|
|
|
|
<el-input v-model="form.productOrder" placeholder="请输入生产工单号" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="生产批次" prop="batchNumber">
|
|
|
|
|
|
|
|
<el-input v-model="form.batchNumber" placeholder="请输入生产工单号" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="入库批次" prop="attr4">
|
|
|
|
|
|
|
|
<el-input v-model="form.attr4" placeholder="请输入生产工单号" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="仓库编码" prop="whCode">
|
|
|
|
<el-form-item label="仓库编码" prop="whCode">
|
|
|
|
<el-input v-model="form.whCode" placeholder="请输入仓库编码" />
|
|
|
|
<el-input v-model="form.whCode" placeholder="请输入仓库编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="库区编码" prop="waCode">
|
|
|
|
<!-- <el-form-item label="库区编码" prop="waCode">-->
|
|
|
|
<el-input v-model="form.waCode" placeholder="请输入库区编码" />
|
|
|
|
<!-- <el-input v-model="form.waCode" placeholder="请输入库区编码" />-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="库位编码" prop="wlCode">
|
|
|
|
<!-- <el-form-item label="库位编码" prop="wlCode">-->
|
|
|
|
<el-input v-model="form.wlCode" placeholder="请输入库位编码" />
|
|
|
|
<!-- <el-input v-model="form.wlCode" placeholder="请输入库位编码" />-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="产品名称" prop="productName">
|
|
|
|
<el-form-item label="产品名称" prop="productName">
|
|
|
|
<el-input v-model="form.productName" placeholder="请输入产品名称" />
|
|
|
|
<el-input v-model="form.productName" placeholder="请输入产品名称" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="产品编码" prop="productCode">
|
|
|
|
<el-form-item label="产品编码" prop="productCode">
|
|
|
|
<el-input v-model="form.productCode" placeholder="请输入产品编码" />
|
|
|
|
<el-input v-model="form.productCode" placeholder="请输入产品编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="产品分类" prop="productSort">
|
|
|
|
|
|
|
|
<el-input v-model="form.productSort" placeholder="请输入产品分类" />
|
|
|
|
<!-- <el-form-item label="产品分类" prop="productSort">-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-input v-model="form.productSort" placeholder="请输入产品分类" />-->
|
|
|
|
<el-form-item label="规格型号" prop="specification">
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-input v-model="form.specification" placeholder="请输入规格型号" />
|
|
|
|
<!-- <el-form-item label="规格型号" prop="specification">-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-input v-model="form.specification" placeholder="请输入规格型号" />-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="单位" prop="unitOfMeasure">
|
|
|
|
<el-form-item label="单位" prop="unitOfMeasure">
|
|
|
|
<el-input v-model="form.unitOfMeasure" placeholder="请输入单位" />
|
|
|
|
<el-input v-model="form.unitOfMeasure" placeholder="请输入单位" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -598,7 +616,7 @@ export default {
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "添加成品生产入库";
|
|
|
|
this.title = "添加成品生产入库";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 过账按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
let postData = this.ids.map(id => ({ id: id }));
|
|
|
|
let postData = this.ids.map(id => ({ id: id }));
|
|
|
@ -610,6 +628,16 @@ export default {
|
|
|
|
this.$modal.msgSuccess("过账完成");
|
|
|
|
this.$modal.msgSuccess("过账完成");
|
|
|
|
}).catch(() => {});
|
|
|
|
}).catch(() => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
|
|
|
handleUpdateKEN(row) {
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
const ID = row.ID || this.ids
|
|
|
|
|
|
|
|
getPut(ID).then(response => {
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
this.open = true;
|
|
|
|
|
|
|
|
this.title = "修改";
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
formatProductCode(code) {
|
|
|
|
formatProductCode(code) {
|
|
|
|
// 检查是否有效,去掉前7个零
|
|
|
|
// 检查是否有效,去掉前7个零
|
|
|
|
if (!code) return code; // 处理 null 或 undefined 情况
|
|
|
|
if (!code) return code; // 处理 null 或 undefined 情况
|
|
|
|