fix: 修改积分相关接口传参userId改为shopUserId,修改耗材出入库展示,修改点歌页面跳转

This commit is contained in:
YeMingfei666 2025-03-17 18:07:55 +08:00
parent 4599274813
commit 61607fcc44
5 changed files with 30 additions and 10 deletions

View File

@ -104,7 +104,7 @@ export default {
const res = await shopSongApi.url();
console.log(res);
const baseUrl =
location.hostname === "localhost" ? "https://admintestweb.sxczgkj.cn" : location.origin;
location.hostname === "localhost" ? "https://tapi.cashier.sxczgkj.cn" : location.origin;
this.singgerUrl = baseUrl + "/song-H5/index.html?t=" + res;
},
jumpUrl(url) {

View File

@ -88,7 +88,7 @@
<!-- 耗材添加编辑 -->
<add-haocai ref="refAddHaocai" @refresh="refresh"></add-haocai>
<!-- 耗材盘点 -->
<addConsTakin ref="refAddHaocaiTakin" @refresh="refresh"></addConsTakin>
<addConsTakin ref="refAddHaocaiTakin" @success="refresh"></addConsTakin>
</div>
</template>

View File

@ -81,7 +81,7 @@ export default {
},
resetSearchForm: "",
tableData: {
page: 0,
page: 1,
size: 10,
total: 0,
loading: false,
@ -131,7 +131,7 @@ export default {
//
resetHandle() {
this.searchForm = { ...this.resetSearchForm };
this.tableData.page = 0;
this.tableData.page = 1;
this.tableData.size = 10;
this.tableData.list = [];
this.getTableData();
@ -143,7 +143,7 @@ export default {
},
//
paginationChange(e) {
this.tableData.page = e - 1;
this.tableData.page = e;
this.getTableData();
},
//

View File

@ -200,7 +200,28 @@
controls-position="right"
@change="consCountTotal($event, scope.row, 'stockNumber')"
></el-input-number>
<div class="tips" style="font-size: 16px">入库前</div>
<div class="tips" style="font-size: 16px">
{{ type == "in" ? "入库" : "出库" }}
{{
!scope.row.unit
? scope.row.defaultUnit
? scope.row.defaultUnit == scope.row.conUnitTwo
? scope.row.number / scope.row.conUnitTwoConvert
: scope.row.number
: scope.row.number
: scope.row.unit == scope.row.conUnitTwo
? scope.row.number / scope.row.conUnitTwoConvert
: scope.row.number
}}
{{
!scope.row.unit
? scope.row.defaultUnit
? scope.row.defaultUnit
: scope.row.conUnit
: scope.row.unit
}}
</div>
</template>
</el-table-column>
<el-table-column label="小计">
@ -625,7 +646,6 @@ export default {
this.queryForm.paymentTime = this.queryForm.paymentDate;
this.queryForm.supplierId = this.queryForm.vendorId;
const bodyList = this.tableData.list.map((v) => {
console.log(v);
return {
conId: v.id,
conName: v.conName,
@ -665,7 +685,7 @@ export default {
selectConsumable(res) {
console.log(res);
let arr = res.map((item) => {
item.number = formatDecimal(item.stockNumber - item.stockConsume, 2, true);
item.number = item.stockNumber;
item.stockNumber = 0;
item.costPrice = item.price;
item.conInfoId = item.id;

View File

@ -379,7 +379,7 @@ async function pointsInit() {
return;
}
const res = await PointsApi.calcOrderUsablePoints({
userId: props.user.id,
shopUserId: props.user.id,
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
});
pointsRes.value = res;
@ -394,7 +394,7 @@ async function pointsInit() {
//
async function pointsToMoney() {
const res = await PointsApi.calcPointsToMoney({
userId: props.user.id,
shopUserId: props.user.id,
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
points: usePointsNumber.value,
});