| | |
| | | prop="RowNum" |
| | | width="50" |
| | | label="序号" |
| | | fixed |
| | | /> |
| | | <el-table-column |
| | | prop="partcode" |
| | | label="物料编码" |
| | | min-width="160" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partname" |
| | | min-width="160" |
| | | label="物料名称" |
| | | sortable="custom" |
| | | /> |
| | |
| | | prop="stocktypename" |
| | | label="存货类型" |
| | | sortable="custom" |
| | | min-width="110" |
| | | /> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="materialtypename"--> |
| | |
| | | prop="stck_name" |
| | | label="仓库名称" |
| | | sortable="custom" |
| | | min-width="110" |
| | | /> |
| | | <el-table-column |
| | | prop="maxqty" |
| | |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <i v-if="row.proute_id==='Y'" class="el-icon-share" @click="routeClick(row)" /> |
| | | <i v-if="row.proute_id==='N'" style="color: #E4E7ED" class="el-icon-share" @click="routeClick(row)" /> |
| | | <i v-if="row.proute_id==='N'" style="color:rgb(180 ,181, 185)" class="el-icon-share" @click="routeClick(row)" /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | |
| | | :visible.sync="dialogVisibleRoute" |
| | | width="800px" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :fullscreen="isIpad" |
| | | class="dialogVisibleRoute" |
| | | @closed="handleCloseRoute" |
| | | @close="handleCloseRoute" |
| | |
| | | <div style="margin-bottom: 10px"> |
| | | <i class="el-icon-s-operation" style="color:#42b983;" /> 工序列表 |
| | | </div> |
| | | <div style="height: 400px;overflow-y: scroll"> |
| | | <div style="overflow-y: scroll"> |
| | | <el-table |
| | | :data="projectTableData" |
| | | border |
| | | height="300" |
| | | height="280" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | |
| | | |
| | | <script> |
| | | import Pagination from '@/components/Pagination' |
| | | import { |
| | | AddUpdateOrganization, |
| | | DeleteOrganization |
| | | } from '@/api/jcsz' |
| | | import { getCookie } from '@/utils/auth' |
| | | import { WareHouseSelect } from '@/api/wlgl' |
| | | import { |
| | | AddUpdateInventoryFile, DeleteInventoryFile, InventoryFileAssociationRoute, |
| | |
| | | UomSearch, UomSelect |
| | | } from '@/api/zzmx' |
| | | import $ from 'jquery' |
| | | import { SeaveSearchErpOrder, SeaveSearchInventory, SeaveSearchInventoryClass, SeaveSearchUnit } from '@/api/ErpSyncMes' |
| | | import { SeaveSearchInventory, SeaveSearchInventoryClass, SeaveSearchUnit } from '@/api/ErpSyncMes' |
| | | |
| | | const SER_HZ = /^[\u4e00-\u9fa5]+$/ |
| | | export default { |
| | |
| | | } |
| | | } |
| | | return { |
| | | isFullscreen: false, |
| | | isIpad: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | materialname: [ |
| | | { required: true, message: '请输入物料名称', trigger: ['blur', 'change'] } |
| | | ], |
| | | materialspec: [ |
| | | { required: true, message: '请输入物料规格', trigger: ['blur', 'change'] } |
| | | ], |
| | | // materialspec: [//物料规格暂时改为非必填 |
| | | // { required: true, message: '请输入物料规格', trigger: ['blur', 'change'] } |
| | | // ], |
| | | uomcode: [ |
| | | { required: true, message: '请选择使用单位', trigger: ['blur', 'change'] } |
| | | ], |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getInventoryFileSelect() |
| | | this.getStockTypeSelect() |
| | | this.getWareHouseSelect() |
| | | this.handleRequest() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | handleRequest() { |
| | | this.getInventoryFileSelect().then(res => { |
| | | if (res.code === '200') { |
| | | this.getStockTypeSelect() |
| | | this.getWareHouseSelect() |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 同步计量单位 |
| | | async syncSeaveSearchUnit() { |
| | | const loading = this.$loading({ |
| | |
| | | const res = await InventoryFileSelect(this.form) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | return { code: res.code } |
| | | }, |
| | | async getStockTypeSelect() { |
| | | const { data: res } = await StockTypeSelect() |
| | |
| | | this.dialogForm.minstockqty = row.maxqty |
| | | this.dialogForm.maxstockqty = row.minqty |
| | | }) |
| | | await this.getuomSelect() |
| | | }, |
| | | // 删除按钮 |
| | | async del(row) { |
| | |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | // this.isFullscreen = window.innerHeight < 800 |
| | | if (window.innerHeight < 800) { |
| | | this.tableHeight = this.mainHeight - 50 |
| | | if (window.innerHeight < 769) { |
| | | this.tableHeight = this.tableHeight - 50 |
| | | } |
| | | this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 |
| | | }) |
| | | }, |
| | | /* 点击关联工艺路线模块*/ |