| | |
| | | <div |
| | | style=" width:calc(100% - 300px);" |
| | | > |
| | | <div class="bodyTopButtonGroup"> |
| | | <div class="bodyTopButtonGroup" style="justify-content: space-between"> |
| | | <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=8')">导入</el-button> |
| | | </div> |
| | | |
| | | <div class="bodyTopFormGroup"> |
| | |
| | | i.idparent = i.idparent ? i.idparent : '-1' |
| | | }) |
| | | this.treeLeftArr = res.data |
| | | this.treeLeftArr.forEach(e => { |
| | | e.name = e.code + ' ' + e.name |
| | | }) |
| | | this.treeLeft = arrayToTree(this.treeLeft.concat(res.data), { |
| | | parentProperty: 'idparent', |
| | | customID: 'code', |
| | |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | if (!(this.dialogForm.isPurchase || this.dialogForm.isSale || this.dialogForm.isMadeSelf || this.dialogForm.isMaterial || this.dialogForm.isMadeRequest)) { |
| | | return this.$message.info('存货属性不能为空!') |
| | | } |
| | | this.dialogForm.isPurchase = this.dialogForm.isPurchase ? '1' : '0' |
| | | this.dialogForm.isSale = this.dialogForm.isSale ? '1' : '0' |
| | | this.dialogForm.isMadeSelf = this.dialogForm.isMadeSelf ? '1' : '0' |
| | |
| | | treeEditClick(node, data, operation) { |
| | | this.dialogClassForm.data_sources = data.data_sources |
| | | this.dialogClassForm.inventoryclasscode = data.code |
| | | this.dialogClassForm.inventoryclassname = data.name |
| | | this.dialogClassForm.inventoryclassname = data.name.split(' ')[1] |
| | | this.dialogClassForm.parentcode = data.idparent === '-1' ? '' : data.idparent |
| | | this.dialogClassForm.OperType = 'Update' |
| | | this.operation = operation |