chenrui 3 lat temu
rodzic
commit
8e4d737478

+ 1 - 1
pages/common/commonModal.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-	<u-mask class="commonModal" :show="isShow" :mask-click-able="false" z-index="999999">
+	<u-mask class="commonModal" :show="isShow" :mask-click-able="false" z-index="999998">
 		<view class="modal-con">
 		<view class="modal-con">
 			<u-icon v-if="isClose" @click="isShow=false" class="close-icon" name="close-circle" size="40" color="#999"></u-icon>
 			<u-icon v-if="isClose" @click="isShow=false" class="close-icon" name="close-circle" size="40" color="#999"></u-icon>
 			<view class="modal-title">{{title}}</view>
 			<view class="modal-title">{{title}}</view>

+ 1 - 1
pages/sales/chooseProduct.vue

@@ -366,7 +366,7 @@
 									})
 									})
 								})
 								})
 								// 添加 产品总库存为0添加为急件时的情况
 								// 添加 产品总库存为0添加为急件时的情况
-								if(listArr.length == 1 && chooseList.length == 1 && chooseList[0].oosFlag==1){
+								if(chooseList.length == 1 && chooseList[0].oosFlag==1){
 									_this.$nextTick(() => {
 									_this.$nextTick(() => {
 										_this.listData[listInd[0]].saleQty = 1  // 非0即可,用于判断是否显示添加产品按钮
 										_this.listData[listInd[0]].saleQty = 1  // 非0即可,用于判断是否显示添加产品按钮
 									})
 									})

+ 1 - 1
pages/sales/selectedProductsModal.vue

@@ -133,7 +133,7 @@
 			handleCommon(){
 			handleCommon(){
 				salesDetailDel({ id: this.infoData.id }).then(res => {
 				salesDetailDel({ id: this.infoData.id }).then(res => {
 					if(res.status == 200){
 					if(res.status == 200){
-						this.listData.splice(this.infoData.no, 1)
+						this.getList(1)  // 已选产品列表
 						this.commonModal = false
 						this.commonModal = false
 						this.$emit('delete', this.infoData)
 						this.$emit('delete', this.infoData)
 					}
 					}