Merge branch 'master' of https://e.coding.net/g-cphe0354/cashier/cashier-web
This commit is contained in:
commit
b7195ce21e
|
|
@ -104,7 +104,7 @@ export default {
|
||||||
const res = await shopSongApi.url();
|
const res = await shopSongApi.url();
|
||||||
console.log(res);
|
console.log(res);
|
||||||
const baseUrl =
|
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;
|
this.singgerUrl = baseUrl + "/song-H5/index.html?t=" + res;
|
||||||
},
|
},
|
||||||
jumpUrl(url) {
|
jumpUrl(url) {
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
<!-- 耗材添加编辑 -->
|
<!-- 耗材添加编辑 -->
|
||||||
<add-haocai ref="refAddHaocai" @refresh="refresh"></add-haocai>
|
<add-haocai ref="refAddHaocai" @refresh="refresh"></add-haocai>
|
||||||
<!-- 耗材盘点 -->
|
<!-- 耗材盘点 -->
|
||||||
<addConsTakin ref="refAddHaocaiTakin" @refresh="refresh"></addConsTakin>
|
<addConsTakin ref="refAddHaocaiTakin" @success="refresh"></addConsTakin>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ export default {
|
||||||
},
|
},
|
||||||
resetSearchForm: "",
|
resetSearchForm: "",
|
||||||
tableData: {
|
tableData: {
|
||||||
page: 0,
|
page: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|
@ -131,7 +131,7 @@ export default {
|
||||||
// 重置查询
|
// 重置查询
|
||||||
resetHandle() {
|
resetHandle() {
|
||||||
this.searchForm = { ...this.resetSearchForm };
|
this.searchForm = { ...this.resetSearchForm };
|
||||||
this.tableData.page = 0;
|
this.tableData.page = 1;
|
||||||
this.tableData.size = 10;
|
this.tableData.size = 10;
|
||||||
this.tableData.list = [];
|
this.tableData.list = [];
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
|
|
@ -143,7 +143,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 分页回调
|
// 分页回调
|
||||||
paginationChange(e) {
|
paginationChange(e) {
|
||||||
this.tableData.page = e - 1;
|
this.tableData.page = e;
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
// 耗材列表
|
// 耗材列表
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,28 @@
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
@change="consCountTotal($event, scope.row, 'stockNumber')"
|
@change="consCountTotal($event, scope.row, 'stockNumber')"
|
||||||
></el-input-number>
|
></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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="小计">
|
<el-table-column label="小计">
|
||||||
|
|
@ -625,7 +646,6 @@ export default {
|
||||||
this.queryForm.paymentTime = this.queryForm.paymentDate;
|
this.queryForm.paymentTime = this.queryForm.paymentDate;
|
||||||
this.queryForm.supplierId = this.queryForm.vendorId;
|
this.queryForm.supplierId = this.queryForm.vendorId;
|
||||||
const bodyList = this.tableData.list.map((v) => {
|
const bodyList = this.tableData.list.map((v) => {
|
||||||
console.log(v);
|
|
||||||
return {
|
return {
|
||||||
conId: v.id,
|
conId: v.id,
|
||||||
conName: v.conName,
|
conName: v.conName,
|
||||||
|
|
@ -665,7 +685,7 @@ export default {
|
||||||
selectConsumable(res) {
|
selectConsumable(res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
let arr = res.map((item) => {
|
let arr = res.map((item) => {
|
||||||
item.number = formatDecimal(item.stockNumber - item.stockConsume, 2, true);
|
item.number = item.stockNumber;
|
||||||
item.stockNumber = 0;
|
item.stockNumber = 0;
|
||||||
item.costPrice = item.price;
|
item.costPrice = item.price;
|
||||||
item.conInfoId = item.id;
|
item.conInfoId = item.id;
|
||||||
|
|
|
||||||
|
|
@ -379,7 +379,7 @@ async function pointsInit() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const res = await PointsApi.calcOrderUsablePoints({
|
const res = await PointsApi.calcOrderUsablePoints({
|
||||||
userId: props.user.id,
|
shopUserId: props.user.id,
|
||||||
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
|
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
|
||||||
});
|
});
|
||||||
pointsRes.value = res;
|
pointsRes.value = res;
|
||||||
|
|
@ -394,7 +394,7 @@ async function pointsInit() {
|
||||||
// 根据积分计算可抵扣金额
|
// 根据积分计算可抵扣金额
|
||||||
async function pointsToMoney() {
|
async function pointsToMoney() {
|
||||||
const res = await PointsApi.calcPointsToMoney({
|
const res = await PointsApi.calcPointsToMoney({
|
||||||
userId: props.user.id,
|
shopUserId: props.user.id,
|
||||||
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
|
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
|
||||||
points: usePointsNumber.value,
|
points: usePointsNumber.value,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue