From 0bfdce51c1bf0222ceaa79daec388cdf0dd298c2 Mon Sep 17 00:00:00 2001
From: 15820893422 <1978476055@qq.com>
Date: Sat, 13 Apr 2024 18:17:00 +0800
Subject: [PATCH] add
---
src/api/setting.js | 7 +
src/components/uploadPicture/index.vue | 1 +
src/views/order/index.vue | 9 +-
src/views/product/addProduct/index.vue | 139 +++++++++++++-----
src/views/product/productList/editAttr.vue | 60 ++++----
.../systemForm/setSystem/modifyStoreInfo.vue | 109 ++++++++++++--
6 files changed, 241 insertions(+), 84 deletions(-)
diff --git a/src/api/setting.js b/src/api/setting.js
index 9356c16..b370658 100644
--- a/src/api/setting.js
+++ b/src/api/setting.js
@@ -106,6 +106,13 @@ export function adminStatusApi(id, status) {
export function adminPasswordApi(id) {
return request.get(`system/admin/password/form/${id}`)
}
+/**
+ * @description 提交 -- 提交转账信息
+ * @param {Object} param params {Object} 传值参数
+ */
+export function offlinePayApi(id) {
+ return request.get(`offline_pay/form/${id}`)
+}
/**
* @description 操作日志 -- 列表
* @param {Object} param params {Object} 传值参数
diff --git a/src/components/uploadPicture/index.vue b/src/components/uploadPicture/index.vue
index a00ef39..115b989 100644
--- a/src/components/uploadPicture/index.vue
+++ b/src/components/uploadPicture/index.vue
@@ -594,6 +594,7 @@ export default {
str += '';
}
/* eslint-disable */
+ console.log(nowEditor.editor.execCommand);
nowEditor.editor.execCommand("insertHtml", str);
nowEditor.dialog.close(true);
}
diff --git a/src/views/order/index.vue b/src/views/order/index.vue
index 40bc4ac..47bd084 100644
--- a/src/views/order/index.vue
+++ b/src/views/order/index.vue
@@ -223,7 +223,7 @@
编辑
发送货
删除
- 开启售后
+ 开启售后
去核销
@@ -705,8 +705,8 @@ export default {
methods: {
// 开启售后
onOrderOpenRefund(id) {
- this.$confirm('此操作将开启售后, 是否继续?', '提示', {
- confirmButtonText: '确定',
+ this.$confirm('此订单顾客已无法申请售后,是否同意给顾客再次开通售后按键?, 是否继续?', '提示', {
+ confirmButtonText: '同意',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
@@ -1343,6 +1343,9 @@ export default {
display: block;
padding: 5px 0;
}
+::v-deep .el-button.is-disabled{
+ color:#C0C4CC !important
+}
.check {
color: #00a2d4;
}
diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue
index 14ac03d..b613ca9 100644
--- a/src/views/product/addProduct/index.vue
+++ b/src/views/product/addProduct/index.vue
@@ -2,7 +2,7 @@
-
+
-
@@ -1050,7 +1053,7 @@
type="text"
size="small"
:disabled="virStatus&&formThead[iii].title === '依据链接'"
- @input="handleCost(scope.row,iii,$event)"
+ @input="handleCost(scope.row,iii,$event,'batchAdd')"
class="priceBox"
/>
@@ -1220,7 +1227,7 @@
v-model="scope.row[iii]"
type="text"
size="small"
- :disabled="virStatus&&formThead[iii].title === '依据链接'"
+ :disabled="virStatus&&(formThead[iii].title === '依据链接' || formThead[iii].title === '商品编号')"
@input="handleCost(scope.row,iii,$event)"
class="priceBox"
/>
@@ -1348,22 +1355,34 @@
class="priceBox"
controls-position="right"
/>
- -->
+
@@ -1396,7 +1415,8 @@
v-model="scope.row[iii]"
type="text"
size="small"
- :disabled="virStatus&&formThead[iii].title === '依据链接'"
+ :class="scope.row[iii]"
+ :disabled="virStatus&&(formThead[iii].title === '依据链接' || formThead[iii].title === '商品编号')"
@input="handleCost(scope.row,iii,$event)"
class="priceBox"
/>
@@ -2512,6 +2532,9 @@ export default {
cost: '',
ot_price: '',
svip_price: '',
+ proportion:'0.6',
+ gist_url:'',
+ growth:0,
stock: '',
cdkey: {},
code: '',
@@ -2536,6 +2559,13 @@ export default {
attrValue() {
const obj = Object.assign({}, this.attrVal)
return obj
+ },
+ isTabs() {
+ if(!this.$route.params.id){
+ return 'none'
+ }else{
+ return 'all'
+ }
}
// oneFormBatch() {
// const obj = [Object.assign({}, defaultObj.attrValue[0])]
@@ -2555,7 +2585,7 @@ export default {
deep: true
},
currentTab(newVal) {
- // this.businessList = this.formValidate.qualification.businessList
+ console.log(newVal);
if (newVal == 6) {
this.$nextTick(e => {
this.setSort()
@@ -2621,12 +2651,18 @@ export default {
window.removeEventListener('popstate', this.goBack, false)
},
methods: {
- handleCost(val,i,e){
- // console.log(val);
+ // handleLeave(activeName, oldActiveName){
+ // console.log(!!this.$route.params.id);
+ // return !!this.$route.params.id
+ // },
+ handleCost(val,i,e,type){
+ if(type == 'batchAdd'){
+ i=='price'?val.cost = (val.price * 0.6).toFixed(2):''
+ }
if(i=='price'){
val.price=val.price.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
- val.cost = (e * 0.6).toFixed(2)
- val.growth = parseInt(e*0.3)
+ val.growth = parseInt(val.price*(0.9-(val.cost/val.price)))
+ val.cost = (e * val.proportion).toFixed(2)
}
if(i=='ot_price'){
val.ot_price=val.ot_price.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')
@@ -3057,6 +3093,7 @@ export default {
: (this.formValidate.is_good = 0)
},
watCh(val) {
+ // console.log(val);
const tmp = {}
const tmpTab = {}
this.formValidate.attr.forEach((o, i) => {
@@ -3104,8 +3141,11 @@ export default {
stock: 0,
cdkey: {},
bar_code: '',
+ gist_url:'',
weight: 0,
volume: 0,
+ growth:0,
+ proportion:'0.6',
extension_one: 0,
extension_two: 0
}
@@ -3136,12 +3176,15 @@ export default {
cost: 0,
ot_price: 0,
select: true,
+ gist_url:'',
sku: '',
stock: 0,
cdkey: {},
bar_code: '',
weight: 0,
volume: 0,
+ growth:0,
+ proportion:'0.6',
extension_one: 0,
extension_two: 0,
detail: { [v['value']]: vv }
@@ -3165,6 +3208,9 @@ export default {
res[i]['bar_code'] = v.bar_code
res[i]['volume'] = v.volume
res[i]['weight'] = v.weight
+ res[i]['growth'] = v.growth
+ res[i]['gist_url'] = v.gist_url
+ res[i]['proportion'] = v.proportion
res[i]['extension_one'] = v.extension_one
res[i]['extension_two'] = v.extension_two
res[i]['cdkey'] = v.cdkey && v.cdkey.length && v.cdkey[0] || null
@@ -3292,7 +3338,6 @@ export default {
})
})
this.attrsList = data
- console.log(this.ManyAttrValue)
},
// 商户分类;
getCategorySelect() {
@@ -3464,7 +3509,9 @@ export default {
// 批量添加
batchAdd() {
let attr = this.oneFormBatch[0]
- if(+attr.ot_price{
return !(+item.ot_price{
ids.push(item.product_id)
diff --git a/src/views/product/productList/editAttr.vue b/src/views/product/productList/editAttr.vue
index 4ac4f65..ec82e06 100644
--- a/src/views/product/productList/editAttr.vue
+++ b/src/views/product/productList/editAttr.vue
@@ -3,6 +3,7 @@
-
-
-
-
-
-
- 提交
-
-
@@ -103,7 +96,7 @@
-
+
-
+
@@ -217,10 +210,13 @@
+
+
+
提交
- -->
+
@@ -273,31 +269,31 @@ const defaultObj = {
is_copoy: 1,
attrValue: [{
image: '',
- price: 0,
- cost: 0,
- ot_price: 0,
+ // price: 0,
+ // cost: 0,
+ // ot_price: 0,
stock: 0,
- bar_code: '',
+ // bar_code: '',
weight: 0,
volume: 0
}]
}
const objTitle = {
- price: {
- title: '售价'
- },
- cost: {
- title: '成本价'
- },
- ot_price: {
- title: '市场价'
- },
+ // price: {
+ // title: '售价'
+ // },
+ // cost: {
+ // title: '成本价'
+ // },
+ // ot_price: {
+ // title: '市场价'
+ // },
stock: {
title: '库存'
},
- bar_code: {
- title: '商品编号'
- },
+ // bar_code: {
+ // title: '商品编号'
+ // },
weight: {
title: '重量(KG)'
},
diff --git a/src/views/systemForm/setSystem/modifyStoreInfo.vue b/src/views/systemForm/setSystem/modifyStoreInfo.vue
index da51b31..d7f7bef 100644
--- a/src/views/systemForm/setSystem/modifyStoreInfo.vue
+++ b/src/views/systemForm/setSystem/modifyStoreInfo.vue
@@ -81,6 +81,7 @@
+ 提交转账信息
@@ -101,6 +102,7 @@
+ 提交转账信息
@@ -120,13 +122,14 @@
+ 提交转账信息
店铺保证金:
{{ merData.margin }}元
-
查看保证金记录
+
查看转账记录
@@ -147,20 +150,91 @@
-
¥{{ merData.margin }}元
+
¥{{ marginNumber }}元
支付账户名称: {{ merData.bank_info.bank_account_name }}
开户银行: {{ merData.bank_info.bank_name }}
银行卡号: {{ merData.bank_info.bank_account_code }}
+
提交转账信息
+
+
+
+
+
技术服务费:
+
{{ merData.service_cost }}元
+
+
查看转账记录
+
+
+
+
+
+ 剩余保证金¥{{ merData.service_cost }}元
+
+
+
+
+
+
+
去补缴保证金
+
+
+
对公账户
+
+
+
+
¥{{ serviceNumber }}元
+
支付账户名称: {{ merData.bank_info.bank_account_name }}
+
开户银行: {{ merData.bank_info.bank_name }}
+
银行卡号: {{ merData.bank_info.bank_account_code }}
+
+
+
+
提交转账信息
+
+
+
+
+
上架费:
+
{{ merData.goods_cost }}元
+
+
查看转账记录
+
+
+
+
+
+ 剩余保证金¥{{ merData.goods_cost }}元
+
+
+
+
+
+
+
去补缴保证金
+
+
+
对公账户
+
+
+
+
¥{{ goodsNumber }}元
+
支付账户名称: {{ merData.bank_info.bank_account_name }}
+
开户银行: {{ merData.bank_info.bank_name }}
+
银行卡号: {{ merData.bank_info.bank_account_code }}
+
+
+
+
提交转账信息
店铺保证金:
{{ merData.margin }}元
-
查看保证金记录
+
查看转账记录
@@ -254,7 +328,7 @@
建议尺寸:120*120px
-
+
+
@@ -382,12 +456,12 @@
拨打电话
-
+
-
+
@@ -491,7 +565,7 @@
// +----------------------------------------------------------------------
// | Author: CRMEB Team
// +----------------------------------------------------------------------
-import { serviceCodeApi,goodsCodeApi,storeGetInfoApi, marginCode, marginMakeCode, marginRecordLst, marginRefund, marginRefundApply } from '@/api/setting'
+import { serviceCodeApi,goodsCodeApi,storeGetInfoApi, marginCode, marginMakeCode, marginRecordLst, marginRefund, marginRefundApply,offlinePayApi } from '@/api/setting'
import { getBaseInfo, merchantUpdate } from '@/api/user.js'
import Maps from '@/components/map/map.vue'
@@ -628,6 +702,7 @@ export default {
{ value: '2', name: '快递配送' }
],
rules: {
+ service_phone:[{required: true,validator: checkPhone,trigger: 'blur'}],
mer_banner: [{ required: true, message: '请上传店铺banner' }],
mer_avatar: [{ required: true, message: '请上传店铺头像' }],
mer_info: [{ required: true, message: '请输入商户简介', trigger: 'blur' },
@@ -672,6 +747,15 @@ export default {
computed: {
fileUrl() {
return SettingMer.https + `/upload/certificate`
+ },
+ marginNumber(){
+ return this.merData.ot_margin-this.merData.margin
+ },
+ serviceNumber(){
+ return this.merData.ot_service_cost-this.merData.service_cost
+ },
+ goodsNumber(){
+ return this.merData.ot_goods_cost-this.merData.goods_cost
}
},
watch: {
@@ -704,6 +788,9 @@ export default {
this.getInfo()
},
methods: {
+ handleTransfer(id){
+ this.$modalForm(offlinePayApi(id)).then(() => this.getInfo())
+ },
// 营业时间
onchangeTime1(e) {
this.value1 = e
@@ -757,6 +844,8 @@ export default {
that.merData.mer_take_status = info.mer_take_status || 0
that.merData.refundMarginOrder = info.refundMarginOrder
that.merData.marginStatus = info.ot_margin > info.margin
+ that.merData.serviceStatus = info.ot_service_cost > info.service_cost
+ that.merData.goodsStatus = info.ot_goods_cost > info.goods_cost
this.merModel = true
if (res.data.mer_certificate instanceof Array) {
res.data.mer_certificate.forEach((item) => {