tijiao
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,7 @@
|
||||
<common-order-submit
|
||||
v-if="showOrder"
|
||||
:options="options"
|
||||
|
||||
:urlList="urlList"
|
||||
:initData="initData"
|
||||
:priceKey="priceKey"
|
||||
@@ -198,7 +199,7 @@ export default {
|
||||
.request({
|
||||
url: `${this.urlList.userInfo}`,
|
||||
method: "POST",
|
||||
data,
|
||||
data:{},
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
@@ -260,15 +261,18 @@ export default {
|
||||
for (const item of data) {
|
||||
// Check if vcbList exists and loop through each item in vcbList
|
||||
if (item.vcbList) {
|
||||
this.isHideJf=true
|
||||
const vcbItem = item.vcbList.find((vcb) => vcb.id === id);
|
||||
if (vcbItem) {
|
||||
return vcbItem; // Return the matching item
|
||||
return {...vcbItem,}; // Return the matching item
|
||||
}
|
||||
}
|
||||
if (item.yanqiList) {
|
||||
this.isHideJf=false
|
||||
const vcbItem = item.yanqiList.find((vcb) => vcb.id === id);
|
||||
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(
|
||||
(e) => this.options.goods[0].productName == e.productName
|
||||
);
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
@@ -307,6 +312,9 @@ export default {
|
||||
.then(async (res) => {
|
||||
console.log("res at line 846:", 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);
|
||||
this.goodsDataList = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user