| | |
| | | |
| | | <div class="bodyTopButtonGroup" style="justify-content: space-between;"> |
| | | |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <!-- <el-button type="primary" icon="el-icon-office-building" @click="office">单位</el-button>--> |
| | | <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <!-- <el-button v-waves type="primary" icon="el-icon-office-building" @click="office">单位</el-button>--> |
| | | <div style="display: flex"> |
| | | <el-button |
| | | v-waves |
| | | icon="el-icon-refresh-right" |
| | | @click="syncSeaveSearchUnit" |
| | | >同步计量单位 |
| | | </el-button> |
| | | <el-button |
| | | v-waves |
| | | icon="el-icon-refresh-right" |
| | | @click="syncInventoryFileSelect" |
| | | >同步存货档案 |
| | | </el-button> |
| | | <el-button |
| | | v-waves |
| | | icon="el-icon-refresh-right" |
| | | @click="syncStockTypeSelect" |
| | | >同步存货类型 |
| | | </el-button> |
| | | </div> |
| | | <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>--> |
| | | <!-- <el-button v-waves type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>--> |
| | | </div> |
| | | |
| | | <div class="bodyTopFormGroup"> |
| | |
| | | class="bodySearchReset" |
| | | :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}" |
| | | > |
| | | <el-button type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | <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-form> |
| | | <div |
| | |
| | | content="" |
| | | placement="top" |
| | | > |
| | | <div slot="content" style="width: 300px">开启后该物料必须做入库检验或质量判断合格后才能做入库反则该物料质量状态为待检状态是不允许入库的。</div> |
| | | <div slot="content" style="width: 300px">开启后该物料必须做入厂检验或质量判断合格后才能做入厂反则该物料质量状态为待检状态是不允许入厂的。</div> |
| | | <i class="el-icon-question" :style="{color:$store.state.settings.theme}" /> |
| | | </el-tooltip> |
| | | </div> |
| | | |
| | | <div style="margin: 0 3px">入库检验:</div> |
| | | <div style="margin: 0 3px">入厂检验:</div> |
| | | <el-switch |
| | | v-model="isInCheck" |
| | | /> |
| | |
| | | content="" |
| | | placement="top" |
| | | > |
| | | <div slot="content" style="width: 300px">开启后该物料必须做出库检验或质量判断合格后才能做出库,反则该物料质量状态为待检状态是不允许出库的。</div> |
| | | <div slot="content" style="width: 300px">开启后该物料必须做出厂检验或质量判断合格后才能做出厂,反则该物料质量状态为待检状态是不允许出厂的。</div> |
| | | <i class="el-icon-question" :style="{color:$store.state.settings.theme}" /> |
| | | </el-tooltip> |
| | | </div> |
| | |
| | | <!-- </div>--> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button v-waves @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | |
| | | @close="handleCloseOffice" |
| | | > |
| | | <div style="margin-bottom: 20px;display: flex"> |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addOffice">新增</el-button> |
| | | <!-- <el-button type="primary" icon="el-icon-delete" @click="delSetting">删除</el-button>--> |
| | | <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="addOffice">新增</el-button> |
| | | <!-- <el-button v-waves type="primary" icon="el-icon-delete" @click="delSetting">删除</el-button>--> |
| | | </div> |
| | | <el-table |
| | | :data="officeTableData" |
| | |
| | | <el-table-column label="操作"> |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="delOffice(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="saveOffice(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="cancelOffice(row)">取消</el-button> |
| | | <el-button v-if="row.isVisible===0" v-waves type="text" @click="delOffice(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="saveOffice(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="cancelOffice(row)">取消</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | /> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="officeDialogVisibleCancel">返回</el-button> |
| | | <!-- <el-button type="primary" @click="settingDialogVisibleConfirm">确 定</el-button>--> |
| | | <el-button v-waves @click="officeDialogVisibleCancel">返回</el-button> |
| | | <!-- <el-button v-waves type="primary" @click="settingDialogVisibleConfirm">确 定</el-button>--> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="routeDialogVisibleCancel">取 消</el-button> |
| | | <el-button v-waves @click="routeDialogVisibleCancel">取 消</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | |
| | | import { SeaveSearchInventory, SeaveSearchInventoryClass, SeaveSearchUnit } from '@/api/ErpSyncMes' |
| | | import { validateCode } from '@/utils/global' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | |
| | | export default { |
| | | name: 'CHDA', |
| | | components: { |
| | | Pagination |
| | | }, |
| | | directives: { elDragDialog }, |
| | | directives: { elDragDialog, waves }, |
| | | data() { |
| | | return { |
| | | mouseHoverType: 'mouseout', |
| | |
| | | warehousecode: '', // 所属仓库编码 |
| | | stocktypecode: '', // 存货类型编码 |
| | | materialtypecode: '', // 物料类型编码 |
| | | minstockqty: '', // 最小库存 |
| | | maxstockqty: '', // 最大库存 |
| | | minstockqty: null, // 最小库存 |
| | | maxstockqty: null, // 最大库存 |
| | | OperType: '' // 操作类型 |
| | | }, |
| | | uomArr: [], // 单位数组编码 |
| | |
| | | this.dialogForm.warehousecode = row.stck_code |
| | | this.dialogForm.stocktypecode = row.stocktypecode |
| | | this.dialogForm.materialtypecode = row.materialtypecode |
| | | this.dialogForm.minstockqty = row.maxqty |
| | | this.dialogForm.maxstockqty = row.minqty |
| | | this.dialogForm.minstockqty = row.minqty |
| | | this.dialogForm.maxstockqty = row.maxqty |
| | | this.isBatchNo = row.is_batchno === 'Y' |
| | | this.isFifo = row.is_fifo === 'Y' |
| | | this.isInCheck = row.is_incheck === 'Y' |
| | |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | console.log(this.dialogForm.minstockqty, 1) |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | this.$store.state.app.buttonIsDisabled = true |
| | |
| | | warehousecode: this.dialogForm.warehousecode, |
| | | stocktypecode: this.dialogForm.stocktypecode, |
| | | materialtypecode: this.dialogForm.materialtypecode, |
| | | minstockqty: this.dialogForm.minstockqty === '' ? 0 : this.dialogForm.minstockqty, |
| | | maxstockqty: this.dialogForm.maxstockqty === '' ? 0 : this.dialogForm.maxstockqty, |
| | | minstockqty: this.dialogForm.minstockqty ? parseFloat(this.dialogForm.minstockqty) : 0, |
| | | maxstockqty: this.dialogForm.maxstockqty ? parseFloat(this.dialogForm.maxstockqty) : 0, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update', |
| | | is_batchno: this.isBatchNo ? 'Y' : 'N', |
| | | is_fifo: this.isFifo ? 'Y' : 'N', |