| | |
| | | @keyup.enter.native="goSearch($event)"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="原辅料名称" prop="entrustCode" v-if="tabIndex === 1"> |
| | | <el-form-item label="原辅材名称" prop="entrustCode" v-if="tabIndex === 1"> |
| | | <el-input v-model="entity.entrustCode" clearable placeholder="请输入" size="small" |
| | | @keyup.enter.native="goSearch($event)"> |
| | | </el-input> |
| | |
| | | <div> |
| | | <ul class="tab"> |
| | | <li :class="{ active: tabIndex === 0 }" @click="handleTab(0)">成品</li> |
| | | <li :class="{ active: tabIndex === 1 }" @click="handleTab(1)">原辅料</li> |
| | | <li :class="{ active: tabIndex === 1 }" @click="handleTab(1)">原辅材</li> |
| | | </ul> |
| | | </div> |
| | | <div> |
| | |
| | | </div> |
| | | <!--成品--> |
| | | <div class="table"> |
| | | <lims-table :tableData="tableData" :column="column" |
| | | v-if="tabIndex === 0" |
| | | @pagination="pagination" |
| | | ref="tableData" |
| | | :height="'calc(100vh - 290px)'" |
| | | key="tableData" :page="page" |
| | | <lims-table :tableData="tableData" :column="column" v-if="tabIndex === 0" @pagination="pagination" |
| | | ref="tableData" :height="'calc(100vh - 290px)'" key="tableData" :page="page" |
| | | :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | | <!--原辅料--> |
| | | <!--原辅材--> |
| | | <div class="table"> |
| | | <lims-table :tableData="tableData1" :column="column1" |
| | | v-if="tabIndex === 1" :isSelection="true" |
| | | @pagination="pagination1" |
| | | :height="'calc(100vh - 290px)'" |
| | | key="tableData1" :page="page1" :tableLoading="tableLoading1"></lims-table> |
| | | <lims-table :tableData="tableData1" :column="column1" v-if="tabIndex === 1" :isSelection="true" |
| | | @pagination="pagination1" :height="'calc(100vh - 290px)'" key="tableData1" :page="page1" |
| | | :tableLoading="tableLoading1"></lims-table> |
| | | </div> |
| | | </div> |
| | | <el-dialog :visible.sync="proPlanDia" title="成品计划"> |
| | | <el-form :model="proPlanForm" ref="proPlanForm" :rules="proPlanRules" label-width="80px" size="small"> |
| | | <el-form-item label="产品型号" prop="productType"> |
| | | <el-input v-model="proPlanForm.productType" placeholder="请填写产品型号" :disabled="operationType === 'review'"></el-input> |
| | | <el-input v-model="proPlanForm.productType" placeholder="请填写产品型号" |
| | | :disabled="operationType === 'review'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="产品名称" prop="productName"> |
| | | <el-input v-model="proPlanForm.productName" placeholder="请填写产品名称" :disabled="operationType === 'review'"></el-input> |
| | | <el-input v-model="proPlanForm.productName" placeholder="请填写产品名称" |
| | | :disabled="operationType === 'review'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="零件号" prop="partNo"> |
| | | <el-input v-model="proPlanForm.partNo" placeholder="请填写零件号" :disabled="operationType === 'review'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="审核人" prop="reviewerId"> |
| | | <el-select v-model="proPlanForm.reviewerId" clearable filterable size="small" style="width: 50%;" :disabled="operationType === 'review'"> |
| | | <el-select v-model="proPlanForm.reviewerId" clearable filterable size="small" style="width: 50%;" |
| | | :disabled="operationType === 'review'"> |
| | | <el-option v-for="item in responsibleOptions" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </el-form> |
| | | <div slot="footer" class="foot"> |
| | | <el-button v-if="operationType !== 'review'" @click="closeProDia">取 消</el-button> |
| | | <el-button v-if="operationType !== 'review'" type="primary" :loading="submitProLoading" @click="submitProForm">保 存</el-button> |
| | | <el-button v-if="operationType === 'review'" :loading="submitProLoading" @click="submitProForm(0)">不通过</el-button> |
| | | <el-button v-if="operationType === 'review'" type="primary" :loading="submitProLoading" @click="submitProForm(1)">通过</el-button> |
| | | <el-button v-if="operationType !== 'review'" type="primary" :loading="submitProLoading" @click="submitProForm">保 |
| | | 存</el-button> |
| | | <el-button v-if="operationType === 'review'" :loading="submitProLoading" |
| | | @click="submitProForm(0)">不通过</el-button> |
| | | <el-button v-if="operationType === 'review'" type="primary" :loading="submitProLoading" |
| | | @click="submitProForm(1)">通过</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="materialDia" title="原辅料计划"> |
| | | <el-dialog :visible.sync="materialDia" title="原辅材计划"> |
| | | <el-form :model="materialForm" ref="materialForm" :rules="materialRules" label-width="90px" size="small"> |
| | | <el-form-item label="原辅料名称" prop="materialName"> |
| | | <el-input v-model="materialForm.materialName" placeholder="请填写产品名称" :disabled="operationType === 'review'"></el-input> |
| | | <el-form-item label="原辅材名称" prop="materialName"> |
| | | <el-input v-model="materialForm.materialName" placeholder="请填写产品名称" |
| | | :disabled="operationType === 'review'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="零件号" prop="partNo"> |
| | | <el-input v-model="materialForm.partNo" placeholder="请填写零件号" :disabled="operationType === 'review'"></el-input> |
| | | <el-input v-model="materialForm.partNo" placeholder="请填写零件号" |
| | | :disabled="operationType === 'review'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="审核人" prop="reviewerId"> |
| | | <el-select v-model="proPlanForm.reviewerId" clearable filterable size="small" style="width: 50%;" :disabled="operationType === 'review'"> |
| | | <el-select v-model="proPlanForm.reviewerId" clearable filterable size="small" style="width: 50%;" |
| | | :disabled="operationType === 'review'"> |
| | | <el-option v-for="item in responsibleOptions" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </el-form> |
| | | <div slot="footer" class="foot"> |
| | | <el-button v-if="operationType !== 'review'" @click="closeMaterialRulesDia">取 消</el-button> |
| | | <el-button v-if="operationType !== 'review'" type="primary" :loading="submitMatLoading" @click="submitMaterialRulesForm">保 存</el-button> |
| | | <el-button v-if="operationType === 'review'" :loading="submitMatLoading" @click="submitMaterialRulesForm(0)">不通过</el-button> |
| | | <el-button v-if="operationType === 'review'" type="primary" :loading="submitMatLoading" @click="submitMaterialRulesForm(1)">通过</el-button> |
| | | <el-button v-if="operationType !== 'review'" type="primary" :loading="submitMatLoading" |
| | | @click="submitMaterialRulesForm">保 存</el-button> |
| | | <el-button v-if="operationType === 'review'" :loading="submitMatLoading" |
| | | @click="submitMaterialRulesForm(0)">不通过</el-button> |
| | | <el-button v-if="operationType === 'review'" type="primary" :loading="submitMatLoading" |
| | | @click="submitMaterialRulesForm(1)">通过</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | current: 1 |
| | | }, |
| | | // |
| | | // 原辅料table数据 |
| | | // 原辅材table数据 |
| | | tableData1: [], |
| | | tableLoading1: false, |
| | | column1: [ |
| | | { label: '原辅料名称', prop: 'materialName' }, |
| | | { label: '原辅材名称', prop: 'materialName' }, |
| | | { label: '零件号', prop: 'partNo' }, |
| | | { |
| | | dataType: 'tag', |
| | |
| | | // 成品查询 |
| | | this.getProductOrderList() |
| | | } else if (this.tabIndex === 1) { |
| | | // 原辅料查询 |
| | | // 原辅材查询 |
| | | this.getMaterialOrderList() |
| | | } |
| | | }, |
| | |
| | | this.resetForm('proPlanDia') |
| | | this.proPlanDia = false |
| | | }, |
| | | // 原辅料信息提交 |
| | | // 原辅材信息提交 |
| | | submitMaterialRulesForm (state) { |
| | | this.submitMatLoading = true |
| | | if (this.operationType === 'add') { |
| | |
| | | this.submitMatLoading = false |
| | | }) |
| | | }, |
| | | // 关闭原辅料信息弹框 |
| | | // 关闭原辅材信息弹框 |
| | | closeMaterialRulesDia() { |
| | | this.resetForm('materialForm') |
| | | this.materialDia = false |