| | |
| | | </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> |
| | |
| | | <!-- <el-button v-waves v-if="operation==='add'" type="primary" @click="dialogVisibleConfirmPreview('add')">预览</el-button>--> |
| | | |
| | | <el-button |
| | | v-if="!sumbitBottonIsDisabled" |
| | | v-if="!submitBottonIsDisabled" |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | |
| | | >确 定</el-button> |
| | | |
| | | <el-button |
| | | v-if="sumbitBottonIsDisabled" |
| | | v-if="submitBottonIsDisabled" |
| | | v-waves |
| | | type="primary" |
| | | disabled |
| | |
| | | return time.getTime() < Date.now() - 8.64e7 |
| | | } |
| | | }, |
| | | sumbitBottonIsDisabled: false |
| | | submitBottonIsDisabled: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | |
| | | this.dialogForm.wkshopcode = '' |
| | | |
| | | this.sumbitBottonIsDisabled = false |
| | | this.submitBottonIsDisabled = false |
| | | }, |
| | | // 工艺路线值改变 |
| | | async routecodeChange(val) { |
| | |
| | | this.wkshopArr = res2 |
| | | this.dialogForm.wkshopcode = '' |
| | | |
| | | this.sumbitBottonIsDisabled = false |
| | | this.submitBottonIsDisabled = false |
| | | }, |
| | | // 生产车间值改变时 |
| | | wkshopcodeChange(val) { |
| | |
| | | // console.log(res, 1) |
| | | }).catch(err => { |
| | | // console.log(err, 2) |
| | | this.sumbitBottonIsDisabled = true |
| | | this.submitBottonIsDisabled = true |
| | | }) |
| | | }, |
| | | |
| | |
| | | |
| | | this.bomIdArr = [] |
| | | this.$refs.dialogForm.clearValidate() |
| | | this.sumbitBottonIsDisabled = false |
| | | this.submitBottonIsDisabled = false |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | |
| | | this.$nextTick(() => { |
| | | console.log(this.qrForm.qrvalue, 3333) |
| | | this.bindQRCode2(this.qrForm.qrvalue) |
| | | |
| | | const div = document.getElementById('qrCode2') |
| | | // 这么多代码只需要这一句实现我们所需要的功能,定位div滚动条位置在底部,scrollHeight计算出div的高度,再scrollTop 设置滚动条的高度为多少 |
| | | div.scrollTop = div.scrollHeight // 滚动条位于最底部 |
| | | // div.scrollTop = 0 // 滚动条位于最顶部 |
| | | }) |
| | | } |
| | | }) |