Browse Source

fix:[系统管理][存储位置]

luojie
HanLong 4 weeks ago
parent
commit
e6eda4ff3e
1 changed files with 21 additions and 19 deletions
  1. +21
    -19
      src/views/business/storageLocation/list.vue

+ 21
- 19
src/views/business/storageLocation/list.vue View File

@ -11,8 +11,9 @@
<el-form-item :label="$t('page.system.storageLocation.fzhj') + ':'" prop="shelfPlacement">
<el-input v-model="queryParams.shelfPlacement" placeholder="" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item :label="$t('page.system.storageLocation.zt')" prop="status" >
<el-select v-model="queryParams.status" :placeholder="$t('form.placeholderSelect')" clearable @change="handleQuery">
<el-form-item :label="$t('page.system.storageLocation.zt')" prop="status">
<el-select v-model="queryParams.status" :placeholder="$t('form.placeholderSelect')" clearable
@change="handleQuery">
<el-option key="1" :label="$t('page.system.storageLocation.no')" :value="1" />
<el-option key="10" :label="$t('page.system.storageLocation.yes')" :value="10" />
</el-select>
@ -115,8 +116,8 @@
<el-col :span="12">
<el-form-item :label="$t('form.signerPsw')" prop="qmrmm">
<div class="sbzdtcma"> <input type="text"></div>
<el-input v-model="form.qmrmm" show-password
:placeholder="$t('form.placeholderInput')" type="password" maxlength="20" />
<el-input v-model="form.qmrmm" show-password :placeholder="$t('form.placeholderInput')" type="password"
maxlength="20" />
</el-form-item>
</el-col>
</el-row>
@ -127,12 +128,12 @@
</div>
</el-dialog>
<StorageLocationDetail ref="storageLocationDetail"/>
<StorageLocationDetail ref="storageLocationDetail" />
</div>
</template>
<script>
import { storageLocation_list, storageLocation_add, storageLocation_edit } from '@/api/business/storageLocation/storageLocation'
import { storageLocation_list, storageLocation_add, storageLocation_edit, storageLocation_info } from '@/api/business/storageLocation/storageLocation'
import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
import SelectDept from '@/views/business/comps/select/SelectDept';
@ -233,18 +234,16 @@ export default {
reset() {
this.form = {
id: null,
mc: null,
bh: null,
xh: null,
ly: null,
jzrq: null,
bmId: null,
wc: null,
ccwz: null,
fzdd: null,
location: null,
name: null,
shelfPlacement: null,
status: null,
compartment: null,
deptId: null,
qmrmm: null,
qmyy: this.$t('page.system.storageLocation.addStroageLocation'),
}
console.log('resetreset')
this.resetForm('form')
},
/** 搜索按钮操作 */
@ -261,17 +260,20 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset()
console.log(this.form)
this.open = true
this.title = this.$t('form.add')
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset()
storageLocation_info({ id: row.id }).then(res => {
this.form = res.data
this.form.qmyy = this.$t('page.system.storageLocation.editStroageLocation')
this.open = true
this.title = this.$t('form.edit')
})
this.form = row
this.form.qmyy = this.$t('page.system.storageLocation.editStroageLocation')
this.open = true
this.title = this.$t('form.edit')
},
handleDetail(row) {
this.$refs.storageLocationDetail.show(row)

Loading…
Cancel
Save