فهرست منبع

平均成本优化

shish 9 ماه پیش
والد
کامیت
3c1380fcb8

+ 1 - 1
ghsApp/src/admin/cp/item.vue

@@ -74,7 +74,7 @@
  
           <uni-popup ref="rightShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
               <view style="display:flex;width:100vw;padding:20upx 20upx 40upx 20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
-                  <view style="width:100vw;"><button @click="costChange()">成本变动记录</button></view>
+                  <view style="width:100vw;"><button @click="costChange()">采购成本变动</button></view>
                   <view style="width:100vw;margin-top:8upx;"><button @click="priceChange()">价格变动记录</button></view>
                   <view style="width:100vw;margin-top:8upx;"><button @click="varietyManage()">多颜色</button></view>
                   <view style="width:100vw;margin-top:8upx;"><button @click="preSell()">预售</button></view>

+ 1 - 1
ghsApp/src/admin/item/list.vue

@@ -90,7 +90,7 @@
 
 		<uni-popup ref="rightShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
 			<view style="display:flex;width:100vw;padding:20upx 20upx 40upx 20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
-				<view style="width:100vw;"><button @click="costChange()">成本变动记录</button></view>
+				<view style="width:100vw;"><button @click="costChange()">采购成本变动</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="priceChange()">价格变动记录</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="varietyManage()">多颜色</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="preSell()">预售</button></view>

+ 8 - 1
ghsApp/src/admin/item/list2.vue

@@ -108,7 +108,10 @@
 		<uni-popup ref="rightShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
 			<view class="action-popup-container">
 				<view class="action-button-item">
-					<button class="action-button" @click="costChange()">成本变动记录</button>
+					<button class="action-button" @click="costChange()">采购成本变动</button>
+				</view>
+				<view class="action-button-item">
+					<button class="action-button" @click="avCostChange()">平均成本变动</button>
 				</view>
 				<view class="action-button-item">
 					<button class="action-button" @click="priceChange()">价格变动记录</button>
@@ -522,6 +525,10 @@ export default {
 			this.closeRightShow()
 			this.pageTo({url: '/admin/changePrice/costChangeList?id='+this.currentInfo.id})
 		},
+		avCostChange(){
+			this.closeRightShow()
+			this.pageTo({url: '/pagesStorehouse/stockWarn/detailed?id='+this.currentInfo.id+'&name='+this.currentInfo.name})
+		},
 		ptAuth(){
 			let that = this
 			that.$util.confirmModal({content:'确认申请?'},() => {

+ 1 - 1
ghsApp/src/admin/item/simple.vue

@@ -53,7 +53,7 @@
 
 		<uni-popup ref="rightShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
 			<view style="display:flex;width:100vw;padding:20upx 20upx 40upx 20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
-				<view style="width:100vw;"><button @click="costChange()">成本变动记录</button></view>
+				<view style="width:100vw;"><button @click="costChange()">采购成本变动</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="priceChange()">价格变动记录</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="varietyManage()">多颜色</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="preSell()">预售</button></view>

+ 2 - 3
ghsApp/src/manifest.json

@@ -186,8 +186,7 @@
             }
         },
         "uniStatistics" : {
-            "enable" : true,
-            "debug" : true
+            "enable" : true
         }
     },
     /* 快应用特有相关 */
@@ -208,7 +207,7 @@
         "optimization" : {
             "subPackages" : true
         },
-        "lazyCodeLoading" : "requiredComponents",
+        "lazyCodeLoading":"requiredComponents",
         "uniStatistics" : {
             "enable" : false
         },

+ 1 - 1
ghsApp/src/pages.json

@@ -142,7 +142,7 @@
 				{"path": "changeStock","style": {"navigationBarTitleText": "修改库存"}},
 				{"path": "changeStock2","style": {"navigationBarTitleText": "修改库存"}},
 				{"path": "changeList","style": {"navigationBarTitleText": "价格变动记录"}},
-				{"path": "costChangeList","style": {"navigationBarTitleText": "成本变动记录"}},
+				{"path": "costChangeList","style": {"navigationBarTitleText": "采购成本变动"}},
 				{"path": "outList","style": {"navigationBarTitleText": "已下架"}},
 				{"path": "stopList","style": {"navigationBarTitleText": "已删除"}},
 				{"path": "removeList","style": {"navigationBarTitleText": "彻底删除"}},

+ 11 - 2
ghsApp/src/pagesStorehouse/stockWarn/detailed.vue

@@ -51,8 +51,17 @@
 										</view>
 									</t-td>
 								</t-tr>
-								<t-tr v-if="!$util.isEmpty(item.remark)">
-									<td><view style="color:green;margin-left:50upx;">备注:{{ item.remark }}</view></td>
+								<t-tr v-if="!$util.isEmpty(item.remark) || Number(item.avCost)>0">
+									<td>
+										<view style="color:#9c9595;margin-left:50upx;">
+											<view v-if="!$util.isEmpty(item.remark)" style="color:red;">备注:{{ item.remark }}</view>
+											<view v-if="Number(item.avCost)>0"> 
+												<text v-if="item.io == 1">+成本</text><text v-else>-成本</text>¥{{ item.unitCost?parseFloat(item.unitCost):0 }}x{{ item.itemNum?parseFloat(item.itemNum):0 }}=¥{{ item.changeCost?parseFloat(item.changeCost):0 }}
+												总成本 ¥{{item.totalCost?parseFloat(item.totalCost):0}} 
+												<view>总库存 {{item.totalStock?parseFloat(item.totalStock):0}} 平均成本 <text style="color:black;margin-left:8upx;">{{ item.avCost?parseFloat(item.avCost):0 }}</text></view>
+											</view>
+										</view>
+									</td>
 								</t-tr>
 							</view>
 						</view>

+ 2 - 2
hdApp/src/manifest.json

@@ -191,8 +191,8 @@
         "optimization" : {
             "subPackages" : true
         },
-        "lazyCodeLoading" : "requiredComponents",
-        "uniStatistics" : {
+        "lazyCodeLoading":"requiredComponents",
+       "uniStatistics" : {
             "enable" : false
         },
         "unipush" : {