| | |
| | | style="width: 200px;" |
| | | placeholder="请选择" |
| | | :disabled="dialogForm.routecode===''" |
| | | @change="wkshopcodeChange" |
| | | > |
| | | <el-option |
| | | v-for="item in wkshopArr" |
| | |
| | | <el-button @click="dialogVisibleCancel">取 消</el-button> |
| | | <!-- <el-button v-if="operation==='add'" type="primary" @click="dialogVisibleConfirmPreview('add')">预览</el-button>--> |
| | | <el-button |
| | | v-if="!sumbitBottonIsDisabled" |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | | @click="dialogVisibleConfirm" |
| | | >确 定</el-button> |
| | | |
| | | <el-button |
| | | v-if="sumbitBottonIsDisabled" |
| | | v-waves |
| | | type="primary" |
| | | disabled |
| | | @click="dialogVisibleConfirm" |
| | | >确 定</el-button> |
| | | </div> |
| | |
| | | AddUpdateMesOrder, |
| | | ClosedMesOrder, |
| | | DeleteMesOrder, ErpOrderSearch, |
| | | MesOrderSearch, PartSelectRoute, RouteSelectWkshop, SearchWorkStep, SearchWorkStepSopList, |
| | | MesOrderSearch, PartSelectRoute, RouteSelectWkshop, SearchWorkStep, SearchWorkStepSopList, SelectRouteOrWkshop, |
| | | SelectRouteStep |
| | | } from '@/api/scgl' |
| | | import { InventoryFileAssociationRoute, PartSelect, SaveInventoryFile } from '@/api/zzmx' |
| | |
| | | /* 文件预览部分*/ |
| | | dialogVisibleCheck: false, |
| | | sopSelectArr: [], // sop下拉选项数组 |
| | | sopSelectValue: ''// sop下拉选中值 |
| | | sopSelectValue: '', // sop下拉选中值 |
| | | |
| | | sumbitBottonIsDisabled: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | getCurrentRow(wo_code) { |
| | | this.radioSelected = wo_code |
| | | }, |
| | | // 生产车间值改变时 |
| | | wkshopcodeChange(val) { |
| | | const data = { |
| | | partcode: this.dialogForm.partcode, |
| | | routecode: this.dialogForm.routecode, |
| | | wkshopcode: val |
| | | } |
| | | SelectRouteOrWkshop(data).then((res) => { |
| | | // console.log(res, 1) |
| | | }).catch(err => { |
| | | // console.log(err, 2) |
| | | this.sumbitBottonIsDisabled = true |
| | | }) |
| | | }, |
| | | // 新增按钮 |
| | | async add(operation) { |
| | | this.operation = operation |
| | |
| | | } |
| | | |
| | | this.dialogForm.wkshopcode = '' |
| | | |
| | | this.sumbitBottonIsDisabled = false |
| | | }, |
| | | // 工艺路线值改变 |
| | | async routecodeChange(val) { |
| | |
| | | const { data: res2 } = await RouteSelectWkshop(data) |
| | | this.wkshopArr = res2 |
| | | this.dialogForm.wkshopcode = '' |
| | | this.sumbitBottonIsDisabled = false |
| | | }, |
| | | // 预览 |
| | | async check(row) { |
| | |
| | | this.dialogForm.orderlev = '' // 工单等级 |
| | | |
| | | this.$refs.dialogForm.clearValidate() |
| | | this.sumbitBottonIsDisabled = false |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |