shish 1 rok temu
rodzic
commit
873db2383d

+ 0 - 13
ghsApp/src/admin/billing/result.vue

@@ -97,7 +97,6 @@ export default {
         this.$msg('请填写赠送数量')
         return false
       }
-
       this.$util.confirmModal({content:'确认赠送?'},() => {
           uni.showLoading({mask:true})
           giveItem({id:this.giveTargetId,num:this.giveNum}).then(res=>{
@@ -110,18 +109,6 @@ export default {
           })
       })
     },
-    subHalf(item){
-      let that = this
-      let orderSn = this.detailInfo.orderSn
-      let remark = "开订单"+orderSn+",减半扎"
-      that.$util.confirmModal({content:'确认减半扎?'},() => {
-        changeHalf({productId:item.productId,add:0,remark:remark}).then((res) => {
-            that.init()
-            let stock = res.data.stock ? res.data.stock : 0
-            uni.showToast({title: '成功,剩 '+stock,duration:4000,icon:'success'})
-          })
-      })
-    },
     partOne(item){
       let that = this
       let product = [{ productId: item.productId, bigNum: 1, smallNum: 0, classId: 0, itemId: item.itemId, ratio:item.ratio }]

+ 0 - 21
ghsApp/src/admin/item/list2.vue

@@ -121,7 +121,6 @@
 				<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="copyCreate()">复制新建</button></view>
-				<view style="width:100vw;margin-top:8upx;"><button @click="toSubHalf()">减半扎</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="moveToLose()">挪到处理区</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="shareItem()">打开分享(批发)</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="getHdPosterFn()">分享海报(批发)</button></view>
@@ -207,26 +206,6 @@ export default {
 		})
 	},
 	methods: {
-		toSubHalf(){
-			let that = this
-			that.$util.confirmModal({content:'请选择操作项',okText:'拆散',cancelText:'报损',cacelTextColor:'#37863a',okTextColor:'#37863a'},() => {
-				that.halfRemark = '拆散减半扎'
-				that.subHalf()
-			},()=>{
-				that.halfRemark = '报损减半扎'
-				that.subHalf()
-			})
-		},
-		subHalf(){
-			let that = this
-			that.closeRightShow()
-			uni.showLoading()
-			changeHalf({productId:this.currentInfo.id,add:0,remark:this.halfRemark}).then((res) => {
-				uni.hideLoading()
-				let stock = res.data.stock ? res.data.stock : 0
-				uni.showToast({title: '成功,剩 '+stock,duration:1400,icon:'success'})
-			})			
-		},
 		moveToLose(){
 			this.moveLabelShow = true
 			this.moveNum = this.currentInfo.stock?parseFloat(this.currentInfo.stock):0