Просмотр исходного кода

app 被记住花材需要同步修改

shish 4 лет назад
Родитель
Сommit
39020f2543
2 измененных файлов с 7 добавлено и 3 удалено
  1. 3 3
      ghsApp/src/admin/custom/selectCustom.vue
  2. 4 0
      ghsApp/src/mixins/product.js

+ 3 - 3
ghsApp/src/admin/custom/selectCustom.vue

@@ -16,10 +16,10 @@
               </div>
               <div class="tui-msg-content">
                 <span>{{ item.visitTime.substr(5,11) }}</span>
-                <span style="margin-left:30upx;width:70upx;color:red;font-weight:500">
-                  <text v-if="item.level == 1"></text>
+                <span style="margin-left:30upx;width:70upx;font-weight:500">
+                  <text v-if="item.level == 1" style="color:green;">{{ item.levelName }}</text>
                   <text v-else-if="item.level == 0" style="color:#999;">{{ item.levelName }}</text>
-                  <text v-else>{{ item.levelName }}</text>
+                  <text v-else style="color:red;">{{ item.levelName }}</text>
                 </span>
                 <span v-if="item.debtAmount > 0" class="debt-amount">欠款<span class="amount_num">{{parseFloat(item.debtAmount)}}</span></span>
               </div>

+ 4 - 0
ghsApp/src/mixins/product.js

@@ -178,6 +178,10 @@ export default {
 						if(this.globalItemList[currentId]){
 							currentArray[currentIndex].bigPrice = this.globalItemList[currentId].bigPrice
 							currentArray[currentIndex].smallPrice = this.globalItemList[currentId].smallPrice
+							//已经记住的花材,价格修改之后,被记住的价格也要同步修改
+							if(!this.$util.isEmpty(currentArray[currentIndex].userPrice)){
+								currentArray[currentIndex].userPrice = this.globalItemList[currentId].bigPrice
+							}
 						}
 					})
 					this.setSelectInfo({ selectJobType: this.selectJobType, info: currentInfo,selectJobId:this.selectJobId })