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