1111
This commit is contained in:
@@ -8,7 +8,7 @@ VUE_APP_BASE_API = '/api'
|
||||
# VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi"
|
||||
|
||||
|
||||
VUE_APP_URL = "http://192.168.2.106:7201"
|
||||
VUE_APP_URL = "http://192.168.2.111:7201"
|
||||
VUE_APP_REPORT_URL = "http://192.168.2.106:7202"
|
||||
##VUE_APP_REPORT_URL = "https://lpk.yyundong.com"
|
||||
##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk"
|
||||
|
||||
@@ -162,7 +162,7 @@ export default {
|
||||
// 初始化礼包
|
||||
AppletGiftBagInit: function(data) {
|
||||
return request({
|
||||
url: '/lpkgiftbag/giftBagInit/'+data,
|
||||
url: '/appletgiftbag/giftBagInit/'+data,
|
||||
method: 'get'
|
||||
});
|
||||
},
|
||||
|
||||
@@ -142,9 +142,11 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="商品名称" prop="name" align="center" />
|
||||
<el-table-column label="商品数量" prop="goodsNumber" align="center" />
|
||||
<el-table-column label="商品价格" prop="price" align="center" />
|
||||
<el-table-column label="商品单位" prop="unitName" align="center" />
|
||||
<el-table-column label="份数" prop="goodsNumber" align="center" />
|
||||
<el-table-column label="价格(元/斤)" prop="price" align="center" />
|
||||
<el-table-column label="商品单位" prop="specificationUnit" align="center" />
|
||||
<el-table-column label="规格(斤份)" prop="weight" align="center" />
|
||||
<el-table-column label="小计" prop="subtotal" align="center" />
|
||||
</el-table>
|
||||
|
||||
</el-collapse-item>
|
||||
@@ -175,7 +177,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>单价</td>
|
||||
<td>价格(元/斤)</td>
|
||||
<td>
|
||||
<!-- <span style="width:100%">{{GiftBagGood.price}}</span> -->
|
||||
<el-input v-model="GiftBagGood.price" style="width:100%"
|
||||
@@ -185,7 +187,21 @@
|
||||
<tr>
|
||||
<td>商品单位</td>
|
||||
<td>
|
||||
<span style="width:100%">{{GiftBagGood.unitName}}</span>
|
||||
<span style="width:100%">{{GiftBagGood.specificationUnit}}</span>
|
||||
<!-- <el-input v-model="GiftBagGood.unitName" style="width:100%"></el-input> -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>规格(斤份)</td> <!-- // 一份多少斤 -->
|
||||
<td>
|
||||
<span style="width:100%">{{GiftBagGood.weight}}</span>
|
||||
<!-- <el-input v-model="GiftBagGood.unitName" style="width:100%"></el-input> -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>小计</td> <!-- // 份数*份单价 -->
|
||||
<td>
|
||||
<span style="width:100%">{{GiftBagGood.subtotal}}</span>
|
||||
<!-- <el-input v-model="GiftBagGood.unitName" style="width:100%"></el-input> -->
|
||||
</td>
|
||||
</tr>
|
||||
@@ -233,6 +249,9 @@
|
||||
name: "",
|
||||
unitName: "",
|
||||
price: "",
|
||||
specificationUnit: "",
|
||||
weight: "",
|
||||
subtotal: "0.00"
|
||||
|
||||
},
|
||||
goods: [],
|
||||
@@ -254,6 +273,8 @@
|
||||
const index = this.formobj.goods.findIndex((item) => item.goodsSid === sid)
|
||||
console.log("index》》》》", index)
|
||||
this.formobj.goods.splice(index, 1)
|
||||
|
||||
this.countPrice()
|
||||
})
|
||||
},
|
||||
save() {
|
||||
@@ -289,6 +310,9 @@
|
||||
name: "",
|
||||
unitName: "",
|
||||
price: "",
|
||||
specificationUnit: "",
|
||||
weight: "",
|
||||
subtotal: "0.00"
|
||||
|
||||
}
|
||||
this.editDialog = false
|
||||
@@ -313,14 +337,14 @@
|
||||
for (var i = 0; i < this.formobj.goods.length; i++) {
|
||||
var item = this.formobj.goods[i]
|
||||
|
||||
num+=item.goodsNumber*item.price
|
||||
num += Number(item.subtotal)
|
||||
|
||||
}
|
||||
|
||||
console.log("num", num);
|
||||
|
||||
this.formobj.price = num.toFixed(2)
|
||||
this.formobj.preferentialPrice = num.toFixed(2)
|
||||
this.formobj.price = Number(num).toFixed(2)
|
||||
this.formobj.preferentialPrice = Number(num).toFixed(2)
|
||||
|
||||
},
|
||||
|
||||
@@ -331,6 +355,9 @@
|
||||
name: "",
|
||||
unitName: "",
|
||||
price: "",
|
||||
specificationUnit: "",
|
||||
weight: "",
|
||||
subtotal: "0.00"
|
||||
|
||||
}
|
||||
this.editDialog = false
|
||||
@@ -338,6 +365,10 @@
|
||||
input(val) {
|
||||
console.log("input》》》》", val)
|
||||
this.GiftBagGood.goodsNumber = val
|
||||
|
||||
this.GiftBagGood.subtotal = this.GiftBagGood.goodsNumber * this.GiftBagGood.price * this.GiftBagGood.weight
|
||||
|
||||
|
||||
},
|
||||
add() {
|
||||
this.editDialog = true
|
||||
@@ -358,6 +389,8 @@
|
||||
this.GiftBagGood.name = choose[0].name
|
||||
this.GiftBagGood.unitName = choose[0].unitName
|
||||
this.GiftBagGood.price = choose[0].price
|
||||
this.GiftBagGood.specificationUnit = choose[0].specificationUnit
|
||||
this.GiftBagGood.weight = choose[0].weight
|
||||
|
||||
|
||||
},
|
||||
|
||||
@@ -32,15 +32,38 @@
|
||||
</el-col>
|
||||
<el-col :span="4" class="trightb">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">边界金额</span>
|
||||
<!-- <span slot="label">边界金额</span> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">{{formobj.boundaryPrice}}</span>
|
||||
<!-- <span slot="label">{{formobj.boundaryPrice}}</span> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="4" class="trightb">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">礼包总价格</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">{{formobj.price}}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4" class="trightb">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">优惠后价格</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">{{formobj.preferentialPrice}}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="4" class="trightb">
|
||||
<el-form-item class="trightb_item">
|
||||
@@ -63,28 +86,6 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="4" class="trightb">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">发放条件</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label">{{formobj.boundary}}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4" class="trightb">
|
||||
<el-form-item class="trightb_item">
|
||||
<span slot="label"></span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item class="trightb_item">
|
||||
<span></span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="4" class="trightb">
|
||||
@@ -126,9 +127,11 @@
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="商品名称" prop="name" align="center" />
|
||||
<el-table-column label="商品数量" prop="goodsNumber" align="center" />
|
||||
<el-table-column label="商品价格" prop="price" align="center" />
|
||||
<el-table-column label="商品单位" prop="unitName" align="center" />
|
||||
<el-table-column label="份数" prop="goodsNumber" align="center" />
|
||||
<el-table-column label="价格(元/斤)" prop="price" align="center" />
|
||||
<el-table-column label="商品单位" prop="specificationUnit" align="center" />
|
||||
<el-table-column label="规格(斤份)" prop="weight" align="center" />
|
||||
<el-table-column label="小计" prop="subtotal" align="center" />
|
||||
</el-table>
|
||||
|
||||
</el-collapse-item>
|
||||
@@ -186,7 +189,7 @@
|
||||
},
|
||||
showAdd(row) {
|
||||
console.log("showAdd》》》》", row)
|
||||
req.giftBagInit(row.sid)
|
||||
req.AppletGiftBagInit(row.sid)
|
||||
.then(resp => {
|
||||
if (resp.success) {
|
||||
this.formobj = resp.data
|
||||
|
||||
Reference in New Issue
Block a user