diff --git a/commons/style/common.scss b/commons/style/common.scss
index 5afbff7..b6b3ec8 100644
--- a/commons/style/common.scss
+++ b/commons/style/common.scss
@@ -396,4 +396,11 @@ text {
//覆盖u-view-plus 颜色
.u-primary-light {
color: $my-main-color;
+}
+::v-deep .u-border{
+ border-width: 1px!important;
+}
+
+::v-deep .u-m-t-16 .u-textarea{
+ border-width: 1px!important;
}
\ No newline at end of file
diff --git a/components/my-components/my-upload-file.vue b/components/my-components/my-upload-file.vue
index 0066456..5d187ca 100644
--- a/components/my-components/my-upload-file.vue
+++ b/components/my-components/my-upload-file.vue
@@ -1,5 +1,6 @@
@@ -8,6 +9,7 @@
$uploadFile
} from '@/http/yskApi/file.js'
import {
+ reactive,
ref,
watch
} from 'vue';
@@ -21,6 +23,16 @@
limit: {
type: Number,
default: 10
+ },
+ imageStyles:{
+ type:Object,
+ default:()=>{
+ return {
+ border:{
+ radius:'12rpx'
+ }
+ }
+ }
}
})
const emits = defineEmits(['change'])
diff --git a/http/yskApi/http.js b/http/yskApi/http.js
index ad8678f..e09d557 100644
--- a/http/yskApi/http.js
+++ b/http/yskApi/http.js
@@ -92,7 +92,7 @@ console.log(httpData,'调试1')
return Promise.reject(bodyData) // 跳转到catch函数
}
- // 业务响应异常
+ // // 业务响应异常
// if (bodyData.hasOwnProperty('code') && bodyData.code != 200) {
// isShowErrorToast = true
// infoBox.showToast(bodyData.msg)
diff --git a/pageCategory/edit-category/edit-category.vue b/pageCategory/edit-category/edit-category.vue
index c841e09..e829191 100644
--- a/pageCategory/edit-category/edit-category.vue
+++ b/pageCategory/edit-category/edit-category.vue
@@ -13,13 +13,13 @@
-
-
@@ -72,18 +72,18 @@
子分类
-
-
- 名称
+
+
+ 名称
图片
状态
颜色
操作
-
+
-
+
{{item.name}}
@@ -96,7 +96,7 @@
{{item.style}}
-
+
更多
@@ -747,13 +747,15 @@
.lh40 {
line-height: 40rpx;
}
-
+ ::v-deep .uni-forms-item.is-direction-top .uni-forms-item__label{
+ padding-bottom: 24rpx;
+ }
.box {
font-size: 28rpx;
.block {
background: #FFFFFF;
- border-radius: 18rpx 18rpx 18rpx 18rpx;
+ border-radius: 6px 18rpx 0 18rpx;
padding: 12rpx 24rpx;
margin-bottom: 32rpx;
}
diff --git a/pageCategory/index/components/category.vue b/pageCategory/index/components/category.vue
index 6c17731..002994b 100644
--- a/pageCategory/index/components/category.vue
+++ b/pageCategory/index/components/category.vue
@@ -8,7 +8,8 @@
:checked="data.checked" />
-
+
+
{{data.name}}
@@ -24,7 +25,7 @@
-
+
-
- 开关
-
-
+
+ 是否启用
+
+
-
-
+
删除
编辑
+
@@ -61,7 +65,7 @@
ColorMain
} from '@/commons/color.js'
- const emits = defineEmits(['radioClick', 'changeClick', 'useTypeClick', 'del','isShowChange'])
+ const emits = defineEmits(['radioClick', 'changeClick', 'useTypeClick', 'del', 'isShowChange'])
const props = defineProps({
index: {
@@ -71,7 +75,7 @@
type: Object,
default: () => {
return {
- isShow:true
+ isShow: true
}
}
},
@@ -80,13 +84,17 @@
default: false
}
})
- let isShow=ref(props.data.isShow)
- watch(()=>props.data.isShow,(newval)=>{
- isShow.value=newval
+ let isShow = ref(props.data.isShow)
+ watch(() => props.data.isShow, (newval) => {
+ isShow.value = newval
})
- function isShowChange(){
+
+ function isShowChange() {
console.log(isShow.value);
- emits('isShowChange',{...props.data,isShow:isShow.value})
+ emits('isShowChange', {
+ ...props.data,
+ isShow: isShow.value
+ })
}
const computedUserType = computed(() => {
const len = props.data.useTypes.length
@@ -132,7 +140,7 @@
//携带参数type edit跳转到商品添加页面,编辑与添加同一页面,根据type值来判断
function toEdit() {
- uni.setStorageSync('cateItem',props.data)
+ uni.setStorageSync('cateItem', props.data)
go.to('PAGES_CATEGORY_EDIT', {
type: 'edit',
})
@@ -144,19 +152,19 @@
$price-color: #F02C45;
.btn {
- padding: 10rpx 40rpx;
+ padding: 6rpx 28rpx;
border-radius: 100rpx;
- border: 2rpx solid transparent;
+ font-size: 24rpx;
+ border: 1px solid transparent;
}
.btn-primary {
border-color: $my-main-color;
- ;
color: $my-main-color;
}
.btn-default {
- border-color: #F4F4F4;
+ border-color: #999;
color: #999;
}
diff --git a/pageGoodsGroup/edit-group-goods/edit-group-goods.vue b/pageGoodsGroup/edit-group-goods/edit-group-goods.vue
index e3eefd8..8cac28d 100644
--- a/pageGoodsGroup/edit-group-goods/edit-group-goods.vue
+++ b/pageGoodsGroup/edit-group-goods/edit-group-goods.vue
@@ -1,7 +1,7 @@
-
+
@@ -20,7 +20,9 @@
-
+
+
+
diff --git a/pageGoodsGroup/edit-group/edit-group.vue b/pageGoodsGroup/edit-group/edit-group.vue
index fe861f7..4ec690d 100644
--- a/pageGoodsGroup/edit-group/edit-group.vue
+++ b/pageGoodsGroup/edit-group/edit-group.vue
@@ -5,10 +5,12 @@
-
+
-
+
+
+
@@ -53,7 +55,9 @@
-
+
+
+
@@ -486,7 +490,7 @@
::v-deep .uni-forms-item__error {
display: none !important;
}
-
+
::v-deep .option .uni-forms-item {
padding: 0;
min-height: inherit;
@@ -547,13 +551,26 @@
.lh40 {
line-height: 40rpx;
}
-
+ ::v-deep .uni-forms-item.is-direction-top .uni-forms-item__label{
+ padding: 0;
+ }
+ ::v-deep .uni-forms-item{
+ min-height: inherit;
+ }
+ ::v-deep .input-padding-b-0 .uni-forms-item--border{
+ padding-bottom: 0;
+ padding-top: 0;
+ }
+ ::v-deep .uni-forms-item--border{
+ padding-top: 12px;
+ padding-bottom: 16px;
+ }
.box {
font-size: 28rpx;
.block {
background: #FFFFFF;
- border-radius: 18rpx 18rpx 18rpx 18rpx;
+ border-radius: 12rpx 18rpx 0 18rpx;
padding: 12rpx 24rpx;
margin-bottom: 32rpx;
}
@@ -561,6 +578,8 @@
.save-btn-box {
position: fixed;
+ font-size: 16px;
+ font-weight: 700;
left: 30rpx;
right: 30rpx;
bottom: 60rpx;
diff --git a/pageGoodsGroup/index/index.vue b/pageGoodsGroup/index/index.vue
index f153379..9a98058 100644
--- a/pageGoodsGroup/index/index.vue
+++ b/pageGoodsGroup/index/index.vue
@@ -19,7 +19,7 @@
- 新建分组
+ 新建分组
diff --git a/pagePrinter/add-printer/components/picker-item.vue b/pagePrinter/add-printer/components/picker-item.vue
index 0d77535..f6a4511 100644
--- a/pagePrinter/add-printer/components/picker-item.vue
+++ b/pagePrinter/add-printer/components/picker-item.vue
@@ -44,11 +44,10 @@
const emits = defineEmits(['update:modelValue'], )
const selText = computed(() => {
const item = props.list.filter(ele => ele.value == props.modelValue)[0]
- if (item) {
- return item.name
- } else {
+ if(!item){
return ''
}
+ return item.name
})
watch(() => index.value, (newval) => {
diff --git a/pageProduct/add-Product/add-Product.vue b/pageProduct/add-Product/add-Product.vue
index 7237039..8f06a11 100644
--- a/pageProduct/add-Product/add-Product.vue
+++ b/pageProduct/add-Product/add-Product.vue
@@ -10,27 +10,31 @@
-
-
-
-
-
-
+ -->
+
+
+
-
-
+
注:第一张图为商品封面图,图片尺寸为750x750
@@ -39,7 +43,7 @@
-
+
@@ -109,7 +113,7 @@
-
+
@@ -120,17 +124,17 @@
-
+
- 组合名称
- 售价
- 库存数量
+ 组合名称
+ 售价
+
- {{item.specSnap}}
- ¥{{item.salePrice}}
- {{item.stockNumber||0}}
+ {{item.specSnap}}
+ ¥{{item.salePrice}}
+
@@ -390,7 +394,7 @@
-
+
{
- infoBox.showSuccessToast('更新成功')
- settimeoutBack(1500)
+ $updateProductData([{
+ id: FormData.id,
+ isSku: 0,
+ shopId: uni.getStorageSync('shopId'),
+ key: 'grounding',
+ value: FormData.isGrounding
+ }]).then(() => {
+ infoBox.showSuccessToast('更新成功')
+ settimeoutBack(1500)
+ })
})
+
+
+
}
submitData.selectSpec =
$addProduct(submitData).then(res => {
@@ -1474,7 +1495,7 @@
uni.setStorageSync('guige', FormData.specificationsGroup)
go.to('PAGES_PRODUCT_GUIGE_CHOOSE', {
emitName: 'emitspecificationsSave',
- type:option.type,
+ type: option.type,
productId: option.productId
})
// go.to('PAGES_PRODUCT_GUIGE_ADD', {
@@ -1619,6 +1640,9 @@
onReady(() => {
Forms.value && Forms.value.setRules(rules)
})
+ onBeforeUnmount(() => {
+ clearTimeout(timer)
+ })
\ No newline at end of file
diff --git a/pageProduct/index/index.vue b/pageProduct/index/index.vue
index dca9a33..414dd84 100644
--- a/pageProduct/index/index.vue
+++ b/pageProduct/index/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -21,10 +21,12 @@
-
+
+
+
-
+
#{{index+1}} {{data.name}}
ID:{{data.id}}
-
+
添加时间:
-
+
- {{spec.name}}
-
+ {{spec.name}}
+
{{option}}
-
+
diff --git a/pagesOrder/index/compoents/order-item.vue b/pagesOrder/index/compoents/order-item.vue
index f54fab3..d290f2d 100644
--- a/pagesOrder/index/compoents/order-item.vue
+++ b/pagesOrder/index/compoents/order-item.vue
@@ -1,15 +1,21 @@
-
-
- {{data.tableName}}
- {{data.masterId}}
+
+
+
+
+ {{data.tableName}}
+
+
+
+ {{data.masterId}}
{{returnStatus(data.status)}}
-
+
+
{{sendTypeFilter(data.sendType)}}
@@ -24,7 +30,8 @@
{{goosZhonglei}}种商品,共{{goodsNumber}}件
-
+
{{item.productName}}
@@ -33,7 +40,7 @@
×{{item.num}}
- ¥{{item.price}}
+ ¥{{item.price}}
@@ -66,7 +73,7 @@
ref,
watch
} from 'vue';
- const emits=defineEmits(['printOrder'])
+ const emits = defineEmits(['printOrder'])
const props = defineProps({
data: {
type: Object,
@@ -80,27 +87,44 @@
}
})
let $goodsMap = {}
- let goosZhonglei =ref(0)
+ let goosZhonglei = ref(0)
let goodsNumber = ref(0)
- function goodsMapInit(){
+
+ const priceSize = 9
+
+ function computedPriceStyle() {
+ const item = props.data.detailList.reduce((prev, current) => (`${prev.price}`.length > `${current.price}`
+ .length) ? prev : current)
+ if (!item) {
+ return ''
+ }
+ return {
+ width: `${item.price}`.length * priceSize + 'px'
+ }
+ }
+ // const computedPriceStyle = computed(() => {
+
+ // })
+
+ function goodsMapInit() {
for (let i in props.data.detailList) {
const goods = props.data.detailList[i]
if ($goodsMap.hasOwnProperty(goods.productId)) {
- $goodsMap[goods.productId] += goods.num*1
- goodsNumber.value+=goods.num*1
+ $goodsMap[goods.productId] += goods.num * 1
+ goodsNumber.value += goods.num * 1
} else {
- $goodsMap[goods.productId] = goods.num*1
- goosZhonglei.value+=1
- goodsNumber.value+=goods.num*1
+ $goodsMap[goods.productId] = goods.num * 1
+ goosZhonglei.value += 1
+ goodsNumber.value += goods.num * 1
}
}
}
goodsMapInit()
watch(() => props.data.detailList.length, (newval) => {
- goodsNumber.value=0
+ goodsNumber.value = 0
goodsMapInit()
})
-
+
function formatTime(time) {
return dayjs(time).format('YYYY-MM-DD HH:mm:ss');
@@ -114,8 +138,8 @@
function sendTypeFilter(t) {
console.log(t);
if (t) {
- const item=orderEnum.sendType.find(item => item.key == t)
- return item?item.label:'';
+ const item = orderEnum.sendType.find(item => item.key == t)
+ return item ? item.label : '';
} else {
return t;
}
@@ -126,8 +150,9 @@
id: props.data.id
})
}
+
function print(item) {
- emits('printOrder',props.data)
+ emits('printOrder', props.data)
}
@@ -157,4 +182,33 @@
font-size: 24rpx;
border-radius: 100rpx;
}
+
+ .line {
+ height: 14px;
+ width: 1px;
+ background-color: #E5E5E5;
+ margin: 0 12rpx;
+ }
+
+ .row {
+ .top {
+ display: flex;
+
+ .name {
+ width: 50%;
+ }
+
+ .num {
+ width: 20%;
+ display: flex;
+ justify-content: flex-end;
+ }
+
+ .price {
+ width: 30%;
+ display: flex;
+ justify-content: flex-end;
+ }
+ }
+ }
\ No newline at end of file
diff --git a/pagesOrder/pay-order/pay-order.vue b/pagesOrder/pay-order/pay-order.vue
index 7746b34..779c032 100644
--- a/pagesOrder/pay-order/pay-order.vue
+++ b/pagesOrder/pay-order/pay-order.vue
@@ -10,7 +10,7 @@
{{order.amount}}
- 修改
+ 修改
@@ -119,9 +119,16 @@
import {
queryAllShopUser
} from '@/http/yskApi/shop-user.js'
+ import {hasPermission} from '@/commons/utils/hasPermission.js'
import * as orderApi from '@/http/yskApi/order.js'
import infoBox from '@/commons/utils/infoBox.js'
import editDiscount from '@/components/my-components/edit-discount.vue'
+ async function discountShow(){
+ const bol=await hasPermission('yun_xu_da_zhe')
+ if(bol){
+ showModel('editMoney',true)
+ }
+ }
let option = {isNowPay:false}
let payFinish=ref(false)
onBackPress(() => {
diff --git a/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue b/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
index a497b85..aa8aa43 100644
--- a/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
+++ b/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
@@ -548,7 +548,7 @@ export default {
.is-required {
// color: $uni-color-error;
- color: #dd524d;
+ color: #EA4025;
font-weight: bold;
}
}