主子表的物料添加修改

master
maxw@mesnac.com 1 month ago
parent e291d1c00c
commit 00d981595e

@ -188,7 +188,7 @@
/> />
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
<el-form-item label="仓库ID" prop="warehouseId"> <el-form-item label="仓库" prop="warehouseId">
<el-select v-model="dialogForm.warehouseId" placeholder="请选择所属仓库"> <el-select v-model="dialogForm.warehouseId" placeholder="请选择所属仓库">
<el-option <el-option
v-for="item in baseStoreList" v-for="item in baseStoreList"
@ -222,16 +222,33 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料名称" prop="materialId"> <el-table-column label="物料编码" prop="materialId">
<template #default="scope">
<el-select
v-model="scope.row.materialId"
placeholder="选择物料"
style="width: 240px"
>
<el-option
v-for="i in materialList"
:label="i.materialCode +'('+ i.materialName+')'"
:value="i.materialId"
:key="i.materialId"
/>
</el-select>
</template>
</el-table-column>
<el-table-column label="物料名称">
<template #default="scope"> <template #default="scope">
<el-select <el-select
v-model="scope.row.materialId" v-model="scope.row.materialId"
placeholder="选择物料" placeholder="选择物料"
style="width: 240px" style="width: 240px"
:disabled="true"
> >
<el-option <el-option
v-for="i in materialList" v-for="i in materialList"
:label="i.materialCode" :label="i.materialName"
:value="i.materialId" :value="i.materialId"
:key="i.materialId" :key="i.materialId"
/> />

@ -213,7 +213,7 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料名称" prop="materialId"> <el-table-column label="物料code" prop="materialId">
<template #default="scope"> <template #default="scope">
<el-select <el-select
v-model="scope.row.materialId" v-model="scope.row.materialId"
@ -222,7 +222,24 @@
> >
<el-option <el-option
v-for="i in materialList" v-for="i in materialList"
:label="i.materialCode" :label="i.materialCode+'('+i.materialName+')'"
:value="i.materialId"
:key="i.materialId"
/>
</el-select>
</template>
</el-table-column>
<el-table-column label="物料名称">
<template #default="scope">
<el-select
v-model="scope.row.materialId"
placeholder="选择物料"
style="width: 240px"
:disabled="true"
>
<el-option
v-for="i in materialList"
:label="i.materialName"
:value="i.materialId" :value="i.materialId"
:key="i.materialId" :key="i.materialId"
/> />

@ -195,7 +195,7 @@
</el-row> </el-row>
<el-table :data="dialogtable" style="width: 100%"> <el-table :data="dialogtable" style="width: 100%">
<el-table-column label="物料大类" prop="materialCategories"> <el-table-column label="物料大类" prop="materialCategories">
<el-select v-model="dialogForm.materialCategories" placeholder="" :disabled="true"> <el-select v-model="dialogForm.materialCategories" placeholder="" :disabled="true" style="width: 200px;">
<el-option <el-option
v-for="dict in material_mategories" v-for="dict in material_mategories"
:key="dict.value" :key="dict.value"
@ -204,7 +204,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-table-column> </el-table-column>
<el-table-column label="物料名称" prop="materialId"> <el-table-column label="物料code" prop="materialId">
<template #default="scope"> <template #default="scope">
<el-select <el-select
v-model="scope.row.materialId" v-model="scope.row.materialId"
@ -213,7 +213,24 @@
> >
<el-option <el-option
v-for="i in materialList" v-for="i in materialList"
:label="i.materialCode" :label="i.materialCode+'('+i.materialName+')'"
:value="i.materialId"
:key="i.materialId"
/>
</el-select>
</template>
</el-table-column>
<el-table-column label="物料名称">
<template #default="scope">
<el-select
v-model="scope.row.materialId"
placeholder="选择物料"
style="width: 240px"
:disabled="true"
>
<el-option
v-for="i in materialList"
:label="i.materialName"
:value="i.materialId" :value="i.materialId"
:key="i.materialId" :key="i.materialId"
/> />
@ -222,7 +239,7 @@
</el-table-column> </el-table-column>
<el-table-column label="出库数量" prop="outstockQty"> <el-table-column label="出库数量" prop="outstockQty">
<template #default="scope"> <template #default="scope">
<el-input v-model="scope.row.outstockQty" placeholder="请输入出库数量" /> <el-input v-model="scope.row.outstockQty" placeholder="请输入出库数量" style="width: 200px;"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="200"> <el-table-column label="操作" fixed="right" width="200">

Loading…
Cancel
Save