| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"> |
| | | <div class="bodySearchReset" |
| | | :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}" |
| | | > |
| | | <el-button v-waves type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | </div> |
| | |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-tooltip class="item" effect="dark" content="编辑" placement="top"> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-edit-outline" @click="edit('edit',row)" /> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-edit-outline" |
| | | @click="edit('edit',row)" |
| | | /> |
| | | </el-tooltip> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top"> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)" /> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)"/> |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | |
| | | > |
| | | <el-form ref="dialogForm" inline :rules="dialogFormRules" :model="dialogForm" label-width="80px"> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" style="margin-top: -20px" /> |
| | | <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" style="margin-top: -20px"/> |
| | | <el-form-item prop="partcode" label="产品名称"> |
| | | <el-select |
| | | v-show="operation==='add'" |
| | |
| | | <el-option |
| | | v-for="item in partArr2" |
| | | :key="item.partcode" |
| | | :label="item.partname" |
| | | :label="item.partname+'/'+item.partcode" |
| | | :value="item.partcode" |
| | | /> |
| | | </el-select> |
| | |
| | | </el-form> |
| | | <div style="display: flex;flex-direction: column;margin-bottom: 20px"> |
| | | <div> |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" style="margin: -20px 10px 20px 0" />工序集合 |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" |
| | | style="margin: -20px 10px 20px 0;" |
| | | />工序集合 |
| | | </div> |
| | | <div style="display: flex;background-color: #F2F6FC;padding:20px 0 20px 20px; min-height: 100px"> |
| | | <el-radio-group v-model="dialogForm.stepcode" @change="radioChange"> |
| | |
| | | |
| | | <div style="display: flex;flex-direction: column;min-height: 300px"> |
| | | <div> |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" style="margin: -20px 10px 20px 0" />设备列表 |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" |
| | | style="margin: -20px 10px 20px 0" |
| | | />设备列表 |
| | | </div> |
| | | |
| | | <el-table |
| | |
| | | /> |
| | | <el-table-column |
| | | prop="eqpcode" |
| | | label="设备编码" |
| | | :label="eqpTable.steptype==='W'?'供应商编码':'设备编码'" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | min-width="110" |
| | | min-width="120" |
| | | /> |
| | | <el-table-column |
| | | prop="eqpname" |
| | | label="设备名称" |
| | | min-width="110" |
| | | :label="eqpTable.steptype==='W'?'供应商名称':'设备名称'" |
| | | min-width="120" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | |
| | | @pagination="getEqpTable" |
| | | /> |
| | | </div> |
| | | <div v-if="eqpTableLength===0" style="width: 100px;height: 84px;" /> |
| | | <div v-if="eqpTableLength===0" style="width: 100px;height: 84px;"/> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | |
| | | partcode: '', |
| | | routecode: '', |
| | | stepcode: '', |
| | | steptype: '', |
| | | page: 1, |
| | | rows: 10, |
| | | prop: 'eqpcode', |
| | |
| | | }, |
| | | async routeDialogChange(val) { |
| | | const { data: res } = await RouteSelectStep({ routecode: val }) |
| | | // this.stepDialogArr = res.filter(i => i.flag === 'Z') |
| | | this.stepDialogArr = res |
| | | this.eqpDialogArr = [] |
| | | this.radioChangeTempValue = '' |
| | |
| | | }, |
| | | async getEqpTable(val) { |
| | | if (typeof val === 'string') { |
| | | this.eqpTable.steptype = this.stepDialogArr.find(item => item.name === val).flag |
| | | this.eqpTable.partcode = this.dialogForm.partcode |
| | | this.eqpTable.routecode = this.dialogForm.routecode |
| | | this.eqpTable.stepcode = this.stepDialogArr.find(item => item.name === val).code |
| | | // } else if (typeof val === 'number') { |
| | | // } else if (typeof val === 'number') { |
| | | } else { |
| | | this.eqpTable.steptype = this.stepDialogArr[0].flag |
| | | this.eqpTable.partcode = this.dialogForm.partcode |
| | | this.eqpTable.routecode = this.dialogForm.routecode |
| | | this.eqpTable.stepcode = this.stepDialogArr[0].code |
| | |
| | | }, |
| | | // 保存行 |
| | | async saveRow(row) { |
| | | if (parseFloat(row.unprice) <= 0) { |
| | | if (parseFloat(row.unprice) <= 0 && this.eqpTable.steptype !== 'W') { |
| | | return this.$message.info('计件单价必须大于零!') |
| | | } |
| | | |
| | | const data = { |
| | | partcode: this.eqpTable.partcode, // 产品编码 |
| | | routecode: this.eqpTable.routecode, // 工艺路线编码 |