仓库-出库单:Vue样式调整
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<el-row type="flex" justify="start" align="top" :gutter="10">
|
||||
<el-form-item label="" prop="search">
|
||||
<el-button type="primary" icon="el-icon-search" size="medium" @click="getList">搜索</el-button>
|
||||
<el-button type="success" icon="el-icon-plus" size="medium" :disabled="dataList.length === 0">添加物料</el-button>
|
||||
<el-button type="success" icon="el-icon-plus" size="medium" :disabled="dataList.length === 0" @click="handelConfirm">添加物料</el-button>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
@@ -35,7 +35,7 @@
|
||||
<el-table-column prop="description" label="显示描述" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="version" label="版本号" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="remarks" label="备注" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="remarks" label="现有库存" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="stockQuantity" label="现有库存" align="center" :show-overflow-tooltip="true" />
|
||||
</el-table>
|
||||
<pagination
|
||||
class="mt10"
|
||||
@@ -49,7 +49,6 @@
|
||||
</el-form>
|
||||
<div slot="footer">
|
||||
<el-button @click="close">取消</el-button>
|
||||
<el-button type="primary" @click="handelConfirm">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@@ -105,8 +104,18 @@ export default {
|
||||
this.$emit('update:visible', false)
|
||||
},
|
||||
handelConfirm() {
|
||||
this.$emit('materialChoused', this.selectList)
|
||||
this.close()
|
||||
let that = this;
|
||||
const list = JSON.parse(JSON.stringify(this.selectList))
|
||||
const len = list.length
|
||||
this.$confirm('是否确认添加所选' + len + '项?')
|
||||
.then(function () {
|
||||
that.$emit('materialChoused', list)
|
||||
that.msgSuccess('添加成功!')
|
||||
})
|
||||
.then(() => {
|
||||
that.close()
|
||||
})
|
||||
|
||||
// this.$refs['elForm'].validate((valid) => {
|
||||
// if (!valid) return
|
||||
// this.close()
|
||||
@@ -122,7 +131,8 @@ export default {
|
||||
const data = this.queryParams
|
||||
getMaterialList(data).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.dataList = res.data
|
||||
this.dataList = res.data.item1
|
||||
this.total = res.data.item2
|
||||
this.loading = false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user