1
This commit is contained in:
parent
dd6490f5ff
commit
bf3aac5b3b
@ -8,7 +8,20 @@
|
||||
<span>{{ scope.$index + 1 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="名称" prop="name" :show-overflow-tooltip="true" width="180" />
|
||||
<el-table-column
|
||||
width="180"
|
||||
align="right">
|
||||
<template slot="header" slot-scope="scope">
|
||||
<el-input
|
||||
v-model="queryParams.name"
|
||||
size="mini"
|
||||
@keyup.enter.native="getPage"
|
||||
placeholder="输入关键字搜索"/>
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.name}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="价格" prop="price" :show-overflow-tooltip="true" width="180"/>
|
||||
</el-table>
|
||||
<pagination @pagination="getPage" v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
||||
@ -31,11 +44,17 @@ export default {
|
||||
queryParams:{
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
name:undefined
|
||||
},
|
||||
loading: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.queryParams={
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
name:undefined
|
||||
}
|
||||
this.getPage()
|
||||
},
|
||||
methods: {
|
||||
|
@ -7,7 +7,21 @@
|
||||
<span>{{ scope.$index + 1 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="商品名称" prop="name" width="120"/>
|
||||
<!-- <el-table-column label="商品名称" prop="name" width="120"/>-->
|
||||
<el-table-column
|
||||
width="180"
|
||||
align="right">
|
||||
<template slot="header" slot-scope="scope">
|
||||
<el-input
|
||||
v-model="queryParams.name"
|
||||
size="mini"
|
||||
@keyup.enter.native="listPart"
|
||||
placeholder="输入关键字搜索"/>
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.name}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规格" prop="model" width="120"/>
|
||||
<el-table-column label="商品编码" prop="code" width="120"/>
|
||||
<el-table-column label="可用库存" prop="stock" width="80"/>
|
||||
@ -79,13 +93,19 @@ export default {
|
||||
],
|
||||
queryParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
name:undefined
|
||||
},
|
||||
total: 2,
|
||||
loading: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.queryParams={
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
name:undefined
|
||||
}
|
||||
this.listPart()
|
||||
},
|
||||
methods: {
|
||||
|
@ -8,7 +8,21 @@
|
||||
<span>{{ scope.$index + 1 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="商品名称" prop="name" :show-overflow-tooltip="true" width="180" />
|
||||
<!-- <el-table-column label="商品名称" prop="name" :show-overflow-tooltip="true" width="180" />-->
|
||||
<el-table-column
|
||||
width="180"
|
||||
align="right">
|
||||
<template slot="header" slot-scope="scope">
|
||||
<el-input
|
||||
v-model="queryParams.name"
|
||||
size="mini"
|
||||
@keyup.enter.native="listPage"
|
||||
placeholder="输入关键字搜索"/>
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.name}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规格" prop="spec" :show-overflow-tooltip="true" width="180"/>
|
||||
<el-table-column label="商品编码" prop="code" :show-overflow-tooltip="true" width="180"/>
|
||||
</el-table>
|
||||
@ -32,11 +46,17 @@ export default {
|
||||
total: 0,
|
||||
queryParams:{
|
||||
pageNo: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
name:undefined
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.queryParams={
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
name:undefined
|
||||
}
|
||||
this.listPage()
|
||||
},
|
||||
methods: {
|
||||
|
@ -201,10 +201,10 @@ export default {
|
||||
return;
|
||||
}
|
||||
// 添加的提交
|
||||
await RepairProjectApi.createRepairProject(data);
|
||||
const res = await RepairProjectApi.createRepairProject(data);
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.dialogVisible = false;
|
||||
this.$emit('success');
|
||||
this.$emit('success',res.data);
|
||||
} finally {
|
||||
this.formLoading = false;
|
||||
}
|
||||
|
@ -333,11 +333,12 @@ export default {
|
||||
break
|
||||
}
|
||||
},
|
||||
returnProject() {
|
||||
// console.log("新增项目回调")
|
||||
returnProject(row) {
|
||||
// this.list.push(row)
|
||||
|
||||
},
|
||||
returnPart() {
|
||||
// console.log("新增配件回调")
|
||||
returnPart(row) {
|
||||
// this.list.push(row)
|
||||
},
|
||||
returnOther() {
|
||||
|
||||
|
@ -216,7 +216,6 @@ export default {
|
||||
// 表单校验
|
||||
formRules: {
|
||||
name: [{required: true, message: '商品名称不能为空', trigger: 'blur'}],
|
||||
barCode: [{required: true, message: '条形码不能为空', trigger: 'blur'}],
|
||||
price: [{required: true, message: '销售价格不能为空', trigger: 'blur'}],
|
||||
unit: [{required: true, message: '计量单位不能为空', trigger: 'blur'}],
|
||||
type: [{required: true, message: '所属分类不能为空', trigger: 'blur'}],
|
||||
@ -295,10 +294,10 @@ export default {
|
||||
return;
|
||||
}
|
||||
// 添加的提交
|
||||
await WaresApi.createWares(data);
|
||||
const res = await WaresApi.createWares(data);
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.dialogVisible = false;
|
||||
this.$emit('success');
|
||||
this.$emit('success',res.data);
|
||||
} finally {
|
||||
this.formLoading = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user