shish hace 3 años
padre
commit
e09c214bf7

+ 7 - 5
ghsApp/src/admin/item/add.vue

@@ -133,6 +133,13 @@
           <input v-model="form.skMore" placeholder-class="phcolor" class="tui-input" name="skMore" @focus="form.skMore=''" placeholder="请填写" maxlength="50" type="digit" />
         </tui-list-cell>
 
+        <tui-list-cell class="line-cell" :hover="false">
+          <view class="tui-title">拆散单价涨</view>
+          <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="请填写" maxlength="50" 
+          type="number" style="width:160upx;border:1upx solid #cccccc;text-align:center;" />
+          <text style="margin-left:12upx;" v-if="Number(form.ratio)>0">X ¥{{parseFloat((Number(form.price)/Number(form.ratio)).toFixed(2))}} = ¥{{parseFloat((Number(form.smallRatio)*((Number(form.price)/Number(form.ratio)).toFixed(2))).toFixed(2))}}</text>
+        </tui-list-cell>
+
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title">颜色管理</view>
           <view class="switch_bx">
@@ -156,11 +163,6 @@
             </view>
           </tui-list-cell>
 
-          <tui-list-cell class="line-cell" :hover="false">
-            <view class="tui-title">单支价格倍数</view>
-            <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="请填写" maxlength="50" type="number" />
-          </tui-list-cell>
-
       </view>
 
       <view class="app-footer">

+ 7 - 5
ghsApp/src/admin/item/copy.vue

@@ -133,6 +133,13 @@
           <input v-model="form.skMore" placeholder-class="phcolor" class="tui-input" name="skMore" @focus="form.skMore=''" placeholder="请填写" maxlength="50" type="digit" />
         </tui-list-cell>
 
+          <tui-list-cell class="line-cell" :hover="false">
+            <view class="tui-title">拆散单价涨</view>
+            <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="请填写" maxlength="50" 
+            type="number" style="width:160upx;border:1upx solid #cccccc;text-align:center;" />
+            <text style="margin-left:12upx;" v-if="Number(form.ratio)>0">X ¥{{parseFloat((Number(form.price)/Number(form.ratio)).toFixed(2))}} = ¥{{parseFloat((Number(form.smallRatio)*((Number(form.price)/Number(form.ratio)).toFixed(2))).toFixed(2))}}</text>
+          </tui-list-cell>
+
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title">颜色管理</view>
           <view class="switch_bx">
@@ -156,11 +163,6 @@
             </view>
           </tui-list-cell>
 
-          <tui-list-cell class="line-cell" :hover="false">
-            <view class="tui-title">单支价格倍数</view>
-            <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="请填写" maxlength="50" type="number" />
-          </tui-list-cell>
-
       </view>
 
       <view class="app-footer">

+ 8 - 6
ghsApp/src/admin/item/detail.vue

@@ -140,6 +140,13 @@
             <input v-model="form.skMore" placeholder-class="phcolor" class="tui-input" name="skMore" @focus="form.skMore=''" placeholder="请填写" maxlength="50" type="digit" />
           </tui-list-cell>
 
+          <tui-list-cell class="line-cell" :hover="false">
+            <view class="tui-title">拆散单价涨</view>
+            <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="填写数值" 
+            type="number" style="width:160upx;border:1upx solid #cccccc;text-align:center;" />
+            <text style="margin-left:12upx;" v-if="Number(form.ratio)>0">X ¥{{parseFloat((Number(form.price)/Number(form.ratio)).toFixed(2))}} = ¥{{parseFloat((Number(form.smallRatio)*((Number(form.price)/Number(form.ratio)).toFixed(2))).toFixed(2))}}</text>
+          </tui-list-cell>
+
           <tui-list-cell class="line-cell" :hover="false">
             <view class="tui-title">颜色管理</view>
             <view class="switch_bx">
@@ -172,11 +179,6 @@
             </view>
           </tui-list-cell>
 
-          <tui-list-cell class="line-cell" :hover="false">
-            <view class="tui-title">单支价格倍数</view>
-            <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="请填写" type="number" />
-          </tui-list-cell>
-
       </view>
 
       <view class="app-footer">
@@ -287,7 +289,7 @@ export default {
 			this.printFocus = false
 		},
     modify(){
-      this.$msg('功能开发中,请联系管理员修改')
+      this.$msg('功能开发中,请联系客服修改')
     },
 		doPrintLabel(id){
 			this.printItemId = id

+ 1 - 1
ghsApp/src/pagesStore/me/expressSet.vue

@@ -29,7 +29,7 @@
             />
           </tui-list-cell>
 
-          <div style="padding:20upx 0 0 30upx;color:#CCCCCC;">设置完成后请联系管理员进行授权</div>
+          <div style="padding:20upx 0 0 30upx;color:#CCCCCC;">设置完成后请联系客服进行授权</div>
 
         </div>