|
|
|
@ -333,7 +333,7 @@
|
|
|
|
|
<!-- <el-form-item label="销售订单ID" prop="saleOrderId">-->
|
|
|
|
|
<!-- <el-input v-model="form.saleOrderId" placeholder="请输入销售订单ID" />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="销售订单编号" prop="saleorderCode">
|
|
|
|
|
<el-form-item label="销售订单编号" prop="saleorderCode" v-if="form.saleType !== MES_SALE_TYPE.MES_SALE_TYPE_PACKING">
|
|
|
|
|
<el-input v-model="form.saleorderCode" placeholder="请点击右侧检索销售订单编号" :disabled="saleOrderDisabled"
|
|
|
|
|
readonly>
|
|
|
|
|
<el-button slot="append" icon="el-icon-search" @click="handleSaleOrderAdd"></el-button>
|
|
|
|
@ -346,13 +346,13 @@
|
|
|
|
|
<!-- <el-input v-model="form.materialId" placeholder="请输入物料ID" :disabled="true"/>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
<el-form-item label="成品名称" prop="materialName">
|
|
|
|
|
<el-form-item label="成品名称" prop="materialName" v-if="form.saleType !== MES_SALE_TYPE.MES_SALE_TYPE_PACKING">
|
|
|
|
|
<el-input v-model="form.materialName" placeholder="请点击右侧检索物料" :disabled="materialDisabled" readonly>
|
|
|
|
|
<el-button slot="append" icon="el-icon-search" v-if="!materialDisabled" @click="handleMaterialAdd"></el-button>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="成品BOM" prop="materialBomId">
|
|
|
|
|
<el-form-item label="成品BOM" prop="materialBomId" v-if="form.saleType !== MES_SALE_TYPE.MES_SALE_TYPE_PACKING">
|
|
|
|
|
<el-select v-model="form.materialBomId" placeholder="请选择物料BOM">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in materialBomList"
|
|
|
|
@ -371,8 +371,8 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="工艺路线" prop="dispatchId">
|
|
|
|
|
<el-select v-model="form.dispatchId" filterable placeholder="请选择工艺路线" clearable>
|
|
|
|
|
<el-form-item label="工艺路线" prop="dispatchId" v-if="form.saleType !== MES_SALE_TYPE.MES_SALE_TYPE_PACKING">
|
|
|
|
|
<el-select v-model="form.dispatchId" filterable placeholder="请选择工艺路线" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in routeList"
|
|
|
|
|
:key="item.routeId"
|
|
|
|
@ -395,7 +395,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="销售数量" prop="saleAmount">
|
|
|
|
|
<el-form-item label="销售数量" prop="saleAmount" v-if="form.saleType !== MES_SALE_TYPE.MES_SALE_TYPE_PACKING">
|
|
|
|
|
<el-input-number v-model="form.saleAmount" placeholder="请输入销售数量" :disabled="true"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="计划数量" prop="planAmount">
|
|
|
|
@ -732,6 +732,7 @@ export default {
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -830,6 +831,7 @@ export default {
|
|
|
|
|
MES_SALE_TYPE: {
|
|
|
|
|
MES_SALE_TYPE_EXTERNAL: '1',//外部销售
|
|
|
|
|
MES_SALE_TYPE_INTERNAL: '2',//对内生产
|
|
|
|
|
MES_SALE_TYPE_PACKING: '3',//包装
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
MATERIAL_TYPE: {
|
|
|
|
|