Compare commits
No commits in common. "56ae63493d06730d7b1605231c44757359e065bc" and "d1b87c152c6e8b66bf6e6b39e975b2c286a23a9b" have entirely different histories.
56ae63493d
...
d1b87c152c
@ -8,20 +8,7 @@
|
|||||||
<span>{{ scope.$index + 1 }}</span>
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="名称" prop="name" :show-overflow-tooltip="true" width="180" />
|
||||||
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-column label="价格" prop="price" :show-overflow-tooltip="true" width="180"/>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination @pagination="getPage" v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
<pagination @pagination="getPage" v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
||||||
@ -44,17 +31,11 @@ export default {
|
|||||||
queryParams:{
|
queryParams:{
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
name:undefined
|
|
||||||
},
|
},
|
||||||
loading: true
|
loading: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.queryParams={
|
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
name:undefined
|
|
||||||
}
|
|
||||||
this.getPage()
|
this.getPage()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -7,21 +7,7 @@
|
|||||||
<span>{{ scope.$index + 1 }}</span>
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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="model" width="120"/>
|
||||||
<el-table-column label="商品编码" prop="code" width="120"/>
|
<el-table-column label="商品编码" prop="code" width="120"/>
|
||||||
<el-table-column label="可用库存" prop="stock" width="80"/>
|
<el-table-column label="可用库存" prop="stock" width="80"/>
|
||||||
@ -93,19 +79,13 @@ export default {
|
|||||||
],
|
],
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10
|
||||||
name:undefined
|
|
||||||
},
|
},
|
||||||
total: 2,
|
total: 2,
|
||||||
loading: true
|
loading: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.queryParams={
|
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
name:undefined
|
|
||||||
}
|
|
||||||
this.listPart()
|
this.listPart()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -8,21 +8,7 @@
|
|||||||
<span>{{ scope.$index + 1 }}</span>
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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="spec" :show-overflow-tooltip="true" width="180"/>
|
||||||
<el-table-column label="商品编码" prop="code" :show-overflow-tooltip="true" width="180"/>
|
<el-table-column label="商品编码" prop="code" :show-overflow-tooltip="true" width="180"/>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -46,17 +32,11 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
queryParams:{
|
queryParams:{
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10
|
||||||
name:undefined
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.queryParams={
|
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
name:undefined
|
|
||||||
}
|
|
||||||
this.listPage()
|
this.listPage()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -201,10 +201,10 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 添加的提交
|
// 添加的提交
|
||||||
const res = await RepairProjectApi.createRepairProject(data);
|
await RepairProjectApi.createRepairProject(data);
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
this.$emit('success',res.data);
|
this.$emit('success');
|
||||||
} finally {
|
} finally {
|
||||||
this.formLoading = false;
|
this.formLoading = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,7 +113,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<WaresForm ref="partFormRef" class="noPadding" @success="returnPart"/>
|
<WaresForm ref="partFormRef" class="noPadding" @success="returnPart"/>
|
||||||
<RepairProjectForm class="noPadding" ref="projectFormRef" @success="returnProject"/>
|
<RepairProjectForm class="noPadding" ref="projectFormRef" @success="returnProject"/>
|
||||||
<OtherForm ref="otherFormRef" class="noPadding" @success="returnOther"/>
|
<OtherForm ref="otherFormRef" class="noPadding" @success="returnOther"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -333,12 +333,11 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
returnProject(row) {
|
returnProject() {
|
||||||
// this.list.push(row)
|
// console.log("新增项目回调")
|
||||||
|
|
||||||
},
|
},
|
||||||
returnPart(row) {
|
returnPart() {
|
||||||
// this.list.push(row)
|
// console.log("新增配件回调")
|
||||||
},
|
},
|
||||||
returnOther() {
|
returnOther() {
|
||||||
|
|
||||||
|
|||||||
@ -216,6 +216,7 @@ export default {
|
|||||||
// 表单校验
|
// 表单校验
|
||||||
formRules: {
|
formRules: {
|
||||||
name: [{required: true, message: '商品名称不能为空', trigger: 'blur'}],
|
name: [{required: true, message: '商品名称不能为空', trigger: 'blur'}],
|
||||||
|
barCode: [{required: true, message: '条形码不能为空', trigger: 'blur'}],
|
||||||
price: [{required: true, message: '销售价格不能为空', trigger: 'blur'}],
|
price: [{required: true, message: '销售价格不能为空', trigger: 'blur'}],
|
||||||
unit: [{required: true, message: '计量单位不能为空', trigger: 'blur'}],
|
unit: [{required: true, message: '计量单位不能为空', trigger: 'blur'}],
|
||||||
type: [{required: true, message: '所属分类不能为空', trigger: 'blur'}],
|
type: [{required: true, message: '所属分类不能为空', trigger: 'blur'}],
|
||||||
@ -294,10 +295,10 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 添加的提交
|
// 添加的提交
|
||||||
const res = await WaresApi.createWares(data);
|
await WaresApi.createWares(data);
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
this.$emit('success',res.data);
|
this.$emit('success');
|
||||||
} finally {
|
} finally {
|
||||||
this.formLoading = false;
|
this.formLoading = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user