| | |
| | | v-if="mesSetting.workOrder" |
| | | class="el-icon-files" |
| | | style="cursor: pointer;color:#42b983;margin-right: 15px" |
| | | @click="pre(row,1)" |
| | | @click.stop="pre(row,1)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | |
| | | <i |
| | | class="el-icon-edit-outline" |
| | | :style="{color:$store.state.settings.theme}" |
| | | @click="edit('edit',row)" |
| | | @click.stop="edit('edit',row)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top"> |
| | | <i class="el-icon-delete" :style="{color:$store.state.settings.theme}" @click="del(row)" /> |
| | | <i class="el-icon-delete" :style="{color:$store.state.settings.theme}" @click.stop="del(row)" /> |
| | | </el-tooltip> |
| | | |
| | | <el-tooltip class="item" effect="dark" content="打印工单" placement="top"> |
| | |
| | | :style="{color:$store.state.settings.theme}" |
| | | class="el-icon-printer" |
| | | style="cursor: pointer;margin-right: 15px" |
| | | @click="handlePrint(row.wo_code,row.saleOrderCod)" |
| | | @click.stop="handlePrint(row.wo_code,row.saleOrderCod)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | |
| | | class="el-icon-view" |
| | | style="cursor: pointer;" |
| | | :style="{color:$store.state.settings.theme}" |
| | | @click="edit('view',row)" |
| | | @click.stop="edit('view',row)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | |
| | | :cell-style="this.$cellStyle" |
| | | row-key="stepcode" |
| | | > |
| | | <el-table-column type="expand"> |
| | | <template slot-scope="props"> |
| | | |
| | | <el-table |
| | | :data="props.row.children" |
| | | style="width: 96%;margin: auto;" |
| | | border |
| | | :row-class-name="tableRowClassName" |
| | | > |
| | | <el-table-column |
| | | prop="eqp_code" |
| | | label="设备/往来编码" |
| | | min-width="120" |
| | | /> |
| | | <el-table-column |
| | | prop="eqp_name" |
| | | label="设备/往来名称" |
| | | min-width="120" |
| | | /> |
| | | <el-table-column |
| | | prop="eqp_value" |
| | | label="设备节拍" |
| | | min-width="150" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div style="display: flex;align-items: center"> |
| | | <el-input |
| | | v-model="row.eqp_value" |
| | | placeholder="请输入" |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | @change="val=>eqpValueChange(val,row)" |
| | | /> |
| | | <div style="margin-left: 5px">秒</div> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="stand_value" |
| | | label="生产节拍" |
| | | min-width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div>{{ row.stand_value + ' ' + '秒/次' }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="cavity_qty" |
| | | label="腔型数" |
| | | min-width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input |
| | | v-model="row.cavity_qty" |
| | | placeholder="请输入" |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | @change="val=>cavityQtyChange(val,row)" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="unprice" |
| | | label="工序工价" |
| | | min-width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input v-model="row.unprice" oninput="value=value.replace(/[^0-9.]/g,'')" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="enable" |
| | | label="是否启用" |
| | | min-width="150" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | v-model="row.enable" |
| | | inactive-value="N" |
| | | active-value="Y" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | type="index" |
| | | label="序号" |
| | |
| | | placeholder="请输入工序单价" |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | style="width: 100%" |
| | | @click="" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | class="sop" |
| | | title="设备SOP预览" |
| | | title="SOP预览" |
| | | :visible.sync="SopDialogVisible" |
| | | width="800px" |
| | | :close-on-click-modal="false" |
| | |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | this.dialogForm.data_sources = 'MES' |
| | | |
| | | this.sourceType = true |
| | | this.$nextTick(() => { |
| | | this.setSort() |
| | | }) |
| | |
| | | this.dialogForm.mesmaxqty = res.canupdate_qty |
| | | |
| | | if (this.mesSetting.route) { // 按工艺路线走模式 |
| | | if (!this.dialogForm.routecode) { |
| | | if (this.dialogForm.routecode) { |
| | | await this.getPartcodeChangeDialog() |
| | | } |
| | | |
| | |
| | | ) |
| | | }) |
| | | this.stepSelectedValue = this.stepTableData.map(i => i.stepcode) |
| | | this.sourceType = true |
| | | } else { |
| | | const data2 = { |
| | | wkshopcode: this.dialogForm.wkshopcode, |
| | |
| | | ) |
| | | }) |
| | | this.stepSelectedValue = this.stepTableData.map(i => i.stepcode) |
| | | this.sourceType = false |
| | | } |
| | | } |
| | | } else { |
| | |
| | | ) |
| | | }) |
| | | this.stepSelectedValue = this.stepTableData.map(i => i.stepcode) |
| | | this.sourceType = true |
| | | } else { |
| | | this.sourceType = false |
| | | await this.getBasicProcessData() |
| | | } |
| | | } |
| | |
| | | res.forEach(i => { |
| | | this.stepTableData.push( |
| | | { |
| | | stepcode: i.step_code, |
| | | stepcode: i.code, |
| | | // stepname: i.stepname, |
| | | stepprice: i.unprice |
| | | } |
| | |
| | | } |
| | | }, 0) |
| | | |
| | | sums[index] += ' 单' |
| | | sums[index] += '' |
| | | } |
| | | }) |
| | | |