耗材修改

This commit is contained in:
魏啾 2024-10-18 15:15:32 +08:00
parent d21d4f490d
commit 0c7637f507
8 changed files with 34 additions and 37 deletions

View File

@ -154,17 +154,6 @@ export function deletetbProskuCon(data) {
data
});
}
/**
* 查询耗材流水信息
* @returns
*/
export function gettbConsInfoFlow(data) {
return request({
url: "/api/viewConInfoFlow/get",
method: "post",
data
});
}
/**

View File

@ -168,8 +168,7 @@ export default {
this.form.stockNumber = obj.stockNumber
this.form.balance = obj.stockNumber
this.form.price == null ? 0 : this.form.price
this.searhForm.skuId = obj.productId
this.searhForm.productId = obj.consId
this.searhForm.productId = obj.id
this.getTableData()
},
//
@ -187,6 +186,7 @@ export default {
try {
this.tableData.loading = true
const res = await tbConCheckGet({
page: this.tableData.page,
size: this.tableData.size,
conInfoId: this.searhForm.productId,

View File

@ -76,7 +76,7 @@
</template>
<script>
import { gettbConsInfoFlow } from "@/api/consumable";
import { gettbConsInfo } from "@/api/consumable";
import orderDetail from "@/views/order_manage/components/orderDetail";
export default {
components:{
@ -144,7 +144,7 @@ export default {
async getTableData() {
try {
this.clickseetableData.loading = true;
const res = await gettbConsInfoFlow({
const res = await gettbConsInfo({
page: this.clickseetableData.page,
size: this.clickseetableData.size,
...this.query,

View File

@ -96,7 +96,7 @@
</template>
<script>
import { gettbConsInfoFlow, gettbConsInfo } from "@/api/consumable";
import { gettbConsInfo } from "@/api/consumable";
export default {
data() {
return {
@ -139,7 +139,7 @@ export default {
async getGroupConInfoFlow(row) {
try {
row.loading = true;
const res = await gettbConsInfoFlow({
const res = await gettbConsInfo({
page: row.page,
size: row.size,
consId: row.consId,
@ -157,7 +157,7 @@ export default {
total: res.totalElements,
});
}
// const res = await gettbConsInfoFlow({
// const res = await gettbConsInfo({
// page: this.clickseetableData.page,
// size: this.clickseetableData.size,
// consId: "",
@ -213,7 +213,7 @@ export default {
conName: this.query.conName,
shopId: localStorage.getItem("shopId"),
});
// const res = await gettbConsInfoFlow({
// const res = await gettbConsInfo({
// page: this.clickseetableData.page,
// size: this.clickseetableData.size,
// consId: "",

View File

@ -81,7 +81,7 @@
</template>
<script>
import { gettbConsInfoFlow, gettbConsInfo } from "@/api/consumable";
import { gettbConsInfo } from "@/api/consumable";
import consRecordDetail from "../components/cons_record_detail";
export default {

View File

@ -38,7 +38,6 @@
<el-button type="primary" icon="el-icon-plus" @click="clickdialogframe('add')">添加</el-button>
<el-button @click="routerGo('operation_in')">入库</el-button>
<el-button @click="routerGo('operation_out')">出库</el-button>
<el-button @click="$router.push({ name: 'cons_record' })">耗材记录</el-button>
<el-button @click="$router.push({ name: 'type' })">分类管理</el-button>
<el-button @click="$router.push({ name: 'supplier_manage' })">供应商管理</el-button>
<el-button icon="el-icon-download" :loading="downloadLoading" @click="protHandle">导出耗材</el-button>
@ -264,8 +263,8 @@
<i class="el-icon-caret-bottom el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item class="clearfix" v-for="(item) in scope.row.product" :key="item.productId"
:command="item.productId">
<el-dropdown-item class="clearfix" v-for="(item) in scope.row.product" :key="item.id"
:command="item.id">
{{ item.name }}
</el-dropdown-item>
</el-dropdown-menu>
@ -581,7 +580,6 @@ import {
gettbConsType,
gettbConsInfo,
posttbConsInfo,
gettbConsInfoFlow,
posttbConsInfostockIn,
postapitbConsInfo,
tbConsInfoFlowcount,
@ -820,7 +818,7 @@ export default {
//
async showChange(e, row) {
await postapitbConsInfo([{
id: row.consId,
id: row.id,
"isCheck": row.isCheck,
shopId: localStorage.getItem('shopId')
}])
@ -845,7 +843,7 @@ export default {
this.ruleForm[key] = row[key];
}
console.log(row, '调试1')
this.ruleForm.id = row.consId;
this.ruleForm.id = row.id;
this.dialogshow = true;
},
//
@ -1146,7 +1144,7 @@ export default {
async getConsRecord() {
try {
this.clickseetableData.loading = true;
const res = await gettbConsInfoFlow({
const res = await gettbConsInfo({
page: this.clickseetableData.page,
size: this.clickseetableData.size,
// consId: this.consRecordItem.consId,

View File

@ -487,9 +487,14 @@ export default {
break;
}
this.queryFormLoading = false
this.showResult = true
this.$refs.shopList.reset()//
this.$refs.ConsumableList.reset()//
this.$message({
message: '入库提交成功',
type: 'success'
})
this.resetHandle()//
// this.showResult = true
// this.$refs.shopList.reset()//
// this.$refs.ConsumableList.reset()//
} catch (error) {
console.log(error)
this.queryFormLoading = false

View File

@ -450,9 +450,14 @@ export default {
break;
}
this.queryFormLoading = false
this.showResult = true
this.$refs.shopList.clearSelection()//
this.$refs.ConsumableList.clearSelection()//
this.$message({
message: '出库提交成功',
type: 'success'
})
this.resetHandle()//
// this.showResult = true
// this.$refs.shopList.clearSelection()//
// this.$refs.ConsumableList.clearSelection()//
} catch (error) {
console.log(error)
this.queryFormLoading = false