| | |
| | | style="width: 200px;" |
| | | placeholder="请选择" |
| | | :disabled="dialogForm.routecode===''" |
| | | @change="wkshopcodeChange" |
| | | > |
| | | <el-option |
| | | v-for="item in wkshopArr" |
| | |
| | | <div class="footerButton"> |
| | | <el-button v-waves @click="dialogVisibleCancel">取 消</el-button> |
| | | <!-- <el-button v-waves 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, JobCreationSonAddVison, |
| | | MesOrderSearch, PartSelectRoute, RouteSelectWkshop, SearchWorkStep, |
| | | MesOrderSearch, PartSelectRoute, RouteSelectWkshop, SearchWorkStep, SelectRouteOrWkshop, |
| | | SelectRouteStep |
| | | } from '@/api/scgl' |
| | | import { InventoryFileAssociationRoute, PartSelect, SaveInventoryFile } from '@/api/zzmx' |
| | |
| | | disabledDate(time) { |
| | | return time.getTime() < Date.now() - 8.64e7 |
| | | } |
| | | } |
| | | }, |
| | | sumbitBottonIsDisabled: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | |
| | | this.dialogForm.wkshopcode = '' |
| | | |
| | | this.sumbitBottonIsDisabled = false |
| | | }, |
| | | // 工艺路线值改变 |
| | | async routecodeChange(val) { |
| | |
| | | this.wkshopArr = res2 |
| | | this.dialogForm.wkshopcode = '' |
| | | }, |
| | | // 生产车间值改变时 |
| | | 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 |
| | | }) |
| | | }, |
| | | |
| | | // 是否排程值改变时 |
| | | changeIsAps(val) { |
| | | if (val === 'N') { |
| | |
| | | |
| | | this.bomIdArr = [] |
| | | this.$refs.dialogForm.clearValidate() |
| | | this.sumbitBottonIsDisabled = false |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |