fix:出入库i详情添加调整

This commit is contained in:
shijing 2025-04-21 11:28:25 +08:00
parent 5b82dc8880
commit f126d3c90d
2 changed files with 21 additions and 53 deletions

View File

@ -51,9 +51,6 @@
>{{ mioObj.customer_name }}</el-descriptions-item >{{ mioObj.customer_name }}</el-descriptions-item
> >
</el-descriptions> </el-descriptions>
<!-- <el-button type="primary" @click="mioSubmit" v-auth="'mio.submit'" v-if="mioObj.state == 10">
提交
</el-button> -->
</el-card> </el-card>
</div> </div>
<div style="height: 8px"></div> <div style="height: 8px"></div>
@ -213,6 +210,7 @@
v-if="dialog.save" v-if="dialog.save"
ref="saveDialog" ref="saveDialog"
:mioId="mioId" :mioId="mioId"
:mgroup="mioObj.mgroup"
:belongDeptId="belongDeptId" :belongDeptId="belongDeptId"
:belongDeptName="mioObj.belong_dept_name" :belongDeptName="mioObj.belong_dept_name"
:mioObj="mioObj" :mioObj="mioObj"

View File

@ -13,7 +13,7 @@
label-width="120px" label-width="120px"
> >
<el-row> <el-row>
<el-col :md="12" :sm="24"> <el-col>
<el-form-item label="物料" prop="material"> <el-form-item label="物料" prop="material">
<xtSelect <xtSelect
:apiObj="apiObj" :apiObj="apiObj"
@ -26,38 +26,18 @@
> >
<el-table-column label="物料" prop="full_name"></el-table-column> <el-table-column label="物料" prop="full_name"></el-table-column>
</xtSelect> </xtSelect>
<!-- <el-select
v-model="selectMaterial"
value-key="id"
clearable
filterable
style="width: 100%"
@change="selectMaterialChange"
>
<el-option
v-for="item in materialOptions"
:key="item.id"
:label="item.full_name"
:value="item"
>
<span style="float: left">{{ item.full_name }}</span>
<span
style="
float: right;
color: '#E6A23C';
font-size: 13px;
"
v-if="item.is_hidden"
></span
>
</el-option>
</el-select> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :md="12" :sm="24"> <el-col>
<el-form-item label="批次号" prop="batch"> <el-form-item label="批次号" prop="batch">
<!-- <el-input v-model="form.batch" placeholder="手动输入批次号" :disabled="inputBatchDisable" /> --> <el-input
v-if="form.type == 'pur_in'||form.type == 'other_in'"
v-model="form.batch"
placeholder="手动输入批次号"
:disabled="inputBatchDisable"
/>
<el-select <el-select
v-else
v-model="form.batch" v-model="form.batch"
filterable filterable
allow-create allow-create
@ -85,7 +65,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :md="12" :sm="24"> <el-col v-if="form.type == 'pur_in'||form.type == 'other_in'||form.type == 'do_out'||form.type=='sale_out'">
<el-form-item label="仓库已有批次"> <el-form-item label="仓库已有批次">
<el-select <el-select
v-model="selectBatch" v-model="selectBatch"
@ -222,10 +202,11 @@ const defaultForm = {
export default { export default {
emits: ["success", "closed"], emits: ["success", "closed"],
props: { props: {
cate: { type: String, default: "" }, cate: { type: String, default: null },
mioId: { type: String, default: "" }, mioId: { type: String, default: null },
belongDeptName: { type: String, default: "" }, belongDeptName: { type: String, default: null },
belongDeptId: { type: String, default: null }, belongDeptId: { type: String, default: null },
mgroup: { type: String, default: null },
mioObj: { type: Object }, mioObj: { type: Object },
}, },
data() { data() {
@ -311,21 +292,11 @@ export default {
}, },
// //
getWBatchs() { getWBatchs() {
// let that = this;
if ( if (this.mgroup != null) {
this.belongDeptId != null && this.$API.wpm.wmaterial.list.req({mgroup: this.mgroup,material: this.form.material,state:10,page: 0}).then((res) => {
this.belongDeptId != undefined && this.wbatchOptions = res;
this.belongDeptId != "" });
) {
this.$API.wpm.wmaterial.list
.req({
belong_dept: this.belongDeptId,
material: this.form.material,
page: 0,
})
.then((res) => {
this.wbatchOptions = res;
});
} }
}, },
getMaterialOptions() { getMaterialOptions() {
@ -435,7 +406,6 @@ export default {
that.form.wm = item.id; that.form.wm = item.id;
} }
}) })
}, },
selectMaterialChange() { selectMaterialChange() {
var that = this; var that = this;
@ -465,7 +435,7 @@ export default {
selectBatchChange(item) { selectBatchChange(item) {
this.form.batch = item.batch; this.form.batch = item.batch;
this.form.mb = item.id; this.form.mb = item.id;
this.form.count = item.count; this.form.count = 0;
this.form.warehouse = item.warehouse; this.form.warehouse = item.warehouse;
this.warehouseDisable = true; this.warehouseDisable = true;
this.inputBatchDisable = true; this.inputBatchDisable = true;