| | |
| | | <el-form-item label="存货类型" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.stocktypecode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @change="val=>stocktypecodeChange(val,'form')" |
| | | > |
| | | <!-- @change="val=>stocktypecodeChange(val,'form')"--> |
| | | <el-option |
| | | v-for="item in stocktypeArr" |
| | | :key="item.code" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="物料类型" style=" display: flex;"> |
| | | <el-form-item v-if="false" label="物料类型" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.materialtypecode" |
| | | filterable |
| | | :disabled="form.stocktypecode===''" |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | |
| | | <el-form-item label="所属仓库" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.storehousecode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | > |
| | | <!-- @focus="getWareHouseSelect"--> |
| | | <el-option |
| | | v-for="item in storehouseArr" |
| | | :key="item.code" |
| | |
| | | /> |
| | | <el-table-column |
| | | prop="partcode" |
| | | show-overflow-tooltip |
| | | label="物料编码" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partname" |
| | | show-overflow-tooltip |
| | | label="物料名称" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partspec" |
| | | label="物料规格" |
| | | show-overflow-tooltip |
| | | width="110" |
| | | sortable="custom" |
| | | /> |
| | |
| | | label="存货类型" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="materialtypename" |
| | | label="物料类别" |
| | | sortable="custom" |
| | | /> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="materialtypename"--> |
| | | <!-- label="物料类别"--> |
| | | <!-- sortable="custom"--> |
| | | <!-- />--> |
| | | <el-table-column |
| | | prop="stck_name" |
| | | label="仓库名称" |
| | | show-overflow-tooltip |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-table-column |
| | | prop="lm_date" |
| | | label="创建时间" |
| | | show-overflow-tooltip |
| | | sortable="custom" |
| | | width="160" |
| | | /> |
| | | <el-table-column |
| | | label="工艺路线" |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button type="text" @click="edit('edit',row)">修改</el-button> |
| | | <el-button type="text" @click="edit('edit',row)">编辑</el-button> |
| | | <el-button type="text" @click="del(row)">删除</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | <!--新增编辑对话框--> |
| | | <el-dialog |
| | | :close-on-click-modal="false" |
| | | :title="operation==='add'?'新增':'修改'" |
| | | :title="operation==='add'?'新增':'编辑'" |
| | | :visible.sync="dialogVisible" |
| | | width="50%" |
| | | width="800px" |
| | | top="15vh" |
| | | @closed="handleClose" |
| | | @close="handleClose" |
| | | > |
| | | <el-form ref="dialogForm" inline :rules="dialogFormRules" :model="dialogForm" label-width="80px"> |
| | | <el-form-item label="物料编码" prop="materialcode"> |
| | | <el-input v-model="dialogForm.materialcode" :disabled="operation!=='add'" style="width: 220px" /> |
| | | <el-input v-model="dialogForm.materialcode" :disabled="operation!=='add'" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="物料名称" prop="materialname"> |
| | | <el-input v-model="dialogForm.materialname" style="width: 220px" /> |
| | | <el-input v-model="dialogForm.materialname" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="物料规格" prop="materialspec"> |
| | | <el-input v-model="dialogForm.materialspec" style="width: 220px" /> |
| | | <el-input v-model="dialogForm.materialspec" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="使用单位" prop="uomcode"> |
| | | <el-select |
| | | v-model="dialogForm.uomcode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 220px" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | |
| | | <el-form-item label="所属仓库" prop="warehousecode"> |
| | | <el-select |
| | | v-model="dialogForm.warehousecode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 220px" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | > |
| | | <!-- @focus="getWareHouseSelect2"--> |
| | | <el-option |
| | | v-for="item in storehouseArr" |
| | | :key="item.code" |
| | |
| | | <el-form-item label="存货类型" prop="stocktypecode"> |
| | | <el-select |
| | | v-model="dialogForm.stocktypecode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 220px" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @change="val=>stocktypecodeChange(val,'dialogForm')" |
| | | > |
| | | <!-- @change="val=>stocktypecodeChange(val,'dialogForm')"--> |
| | | |
| | | <el-option |
| | | v-for="item in stocktypeArr" |
| | | :key="item.code" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="物料类型" prop="materialtypecode"> |
| | | <el-form-item v-if="false" label="物料类型" prop="materialtypecode"> |
| | | <el-select |
| | | v-model="dialogForm.materialtypecode" |
| | | :popper-append-to-body="false" |
| | | style="width: 220px" |
| | | style="width: 200px" |
| | | filterable |
| | | :disabled="dialogForm.stocktypecode===''" |
| | | placeholder="请选择" |
| | | > |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="最小库存" prop="minstockqty"> |
| | | <el-input v-model="dialogForm.minstockqty" style="width: 220px" /> |
| | | <el-input v-model="dialogForm.minstockqty" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="最大库存" prop="maxstockqty"> |
| | | <el-input v-model="dialogForm.maxstockqty" style="width: 220px" /> |
| | | <el-input v-model="dialogForm.maxstockqty" style="width: 200px" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | :close-on-click-modal="false" |
| | | title="单位设置" |
| | | :visible.sync="officeDialogVisible" |
| | | width="50%" |
| | | width="800px" |
| | | top="15vh" |
| | | class="officeDialogVisible" |
| | | @close="handleCloseOffice" |
| | |
| | | :data="officeTableData" |
| | | border |
| | | highlight-current-row |
| | | height="400" |
| | | height="300" |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | @sort-change="sortChangeOfOffice" |
| | |
| | | :close-on-click-modal="false" |
| | | title="关联工艺路线" |
| | | :visible.sync="dialogVisibleRoute" |
| | | width="50%" |
| | | width="800px" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | class="dialogVisibleRoute" |
| | | @closed="handleCloseRoute" |
| | | @close="handleCloseRoute" |
| | |
| | | |
| | | const SER_HZ = /^[\u4e00-\u9fa5]+$/ |
| | | export default { |
| | | name: 'Zzjg', |
| | | name: 'CHDA', |
| | | components: { |
| | | Pagination |
| | | }, |
| | |
| | | } |
| | | } |
| | | return { |
| | | isFullscreen: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | stocktypeArr: [], // 存货类型数组 |
| | | materialtypeArr: [], // 物料类型数组 |
| | | storehouseArr: [], // 所属仓库数组 |
| | | storehouseArr2: [], // 所属仓库数组对话框 |
| | | tableData: [], |
| | | dialogVisible: false, |
| | | dialogForm: { |
| | |
| | | const { data: res } = await WareHouseSelect() |
| | | this.storehouseArr = res |
| | | }, |
| | | // async getWareHouseSelect2() { |
| | | // const { data: res } = await WareHouseSelect() |
| | | // this.storehouseArr2 = res |
| | | // }, |
| | | async getuomSelect() { |
| | | const { data: res } = await UomSelect() |
| | | this.uomArr = res |
| | |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | // this.isFullscreen = window.innerHeight < 800 |
| | | if (window.innerHeight < 800) { |
| | | this.tableHeight = this.tableHeight - 50 |
| | | } |
| | | }) |
| | | }, |
| | | /* 点击关联工艺路线模块*/ |
| | |
| | | // 新增 |
| | | addOffice() { |
| | | let number = Math.random() * Math.random()// 作为删除时的标识符 |
| | | number = number === 0 ? Math.random() * Math.random() : number |
| | | number = number === 0 ? (10 + Math.random()) : number |
| | | const data = { code: '', name: '', digdect: '', r_ule: '', isVisible: 1, number: number } |
| | | this.officeTableData.unshift(data) |
| | | }, |