This commit is contained in:
2025-04-18 17:55:28 +08:00
parent 5d17820abc
commit c738befac4
2 changed files with 2286 additions and 2164 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -7,6 +7,7 @@
<common-order-submit <common-order-submit
v-if="showOrder" v-if="showOrder"
:options="options" :options="options"
:urlList="urlList" :urlList="urlList"
:initData="initData" :initData="initData"
:priceKey="priceKey" :priceKey="priceKey"
@@ -198,7 +199,7 @@ export default {
.request({ .request({
url: `${this.urlList.userInfo}`, url: `${this.urlList.userInfo}`,
method: "POST", method: "POST",
data, data:{},
header: { header: {
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
@@ -260,15 +261,18 @@ export default {
for (const item of data) { for (const item of data) {
// Check if vcbList exists and loop through each item in vcbList // Check if vcbList exists and loop through each item in vcbList
if (item.vcbList) { if (item.vcbList) {
this.isHideJf=true
const vcbItem = item.vcbList.find((vcb) => vcb.id === id); const vcbItem = item.vcbList.find((vcb) => vcb.id === id);
if (vcbItem) { if (vcbItem) {
return vcbItem; // Return the matching item return {...vcbItem,}; // Return the matching item
} }
} }
if (item.yanqiList) { if (item.yanqiList) {
this.isHideJf=false
const vcbItem = item.yanqiList.find((vcb) => vcb.id === id); const vcbItem = item.yanqiList.find((vcb) => vcb.id === id);
if (vcbItem) { if (vcbItem) {
return vcbItem; // Return the matching item
return {...vcbItem,}; // Return the matching item
} }
} }
} }
@@ -291,6 +295,7 @@ export default {
this.goodsDataList = res.productList.filter( this.goodsDataList = res.productList.filter(
(e) => this.options.goods[0].productName == e.productName (e) => this.options.goods[0].productName == e.productName
); );
}); });
}, },
@@ -307,6 +312,9 @@ export default {
.then(async (res) => { .then(async (res) => {
console.log("res at line 846:", res); console.log("res at line 846:", res);
var data = await this.findById(this.options.goods[0].id, res.res); var data = await this.findById(this.options.goods[0].id, res.res);
if(this.isHideJf){
this.initData.user.jf=0;
}
console.log("data at line 200:", data); console.log("data at line 200:", data);
this.goodsDataList = [ this.goodsDataList = [
{ {