lilei 1 年間 前
コミット
cf96356ed4

+ 3 - 3
config/request.js

@@ -4,9 +4,9 @@ module.exports = (vm) => {
     // 初始化请求配置
     uni.$u.http.setConfig((config) => {
         /* config 为默认全局配置*/
-        // config.baseURL = 'http://192.168.2.117/qpls-md'; /* 开发 */
+        config.baseURL = 'http://192.168.2.117/qpls-md'; /* 开发 */
 		// config.baseURL = 'https://iscm.360arrow.com/qpls-md'; /* 生产 */
-		config.baseURL = 'https://p.iscm.360arrow.com/qpls-md'; /* 预发布 */
+		// config.baseURL = 'https://p.iscm.360arrow.com/qpls-md'; /* 预发布 */
 		config.custom.auth = true
         return config
     })
@@ -20,7 +20,7 @@ module.exports = (vm) => {
 			// 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
 			config.header['access-token'] = vm.$store.state.vuex_token
 		}
-		config.header['hand-device-no'] = vm.$store.state.vuex_deviceId
+		// config.header['hand-device-no'] = vm.$store.state.vuex_deviceId
 	    return config 
 	}, config => { // 可使用async await 做异步操作
 	    return Promise.reject(config)

+ 8 - 2
pages/purchasing/index.vue

@@ -50,11 +50,11 @@
 				<uni-tr 
 				v-for="item in detailList" 
 				:key="item.id" 
-				:checkedRow="curProduct&&curProduct.dealerProductEntity.code == item.dealerProductEntity.code"
+				:checkedRow="curProduct&&curProduct.dealerProductEntity&&curProduct.dealerProductEntity.code == item.dealerProductEntity.code"
 				 @click="editRow(item)"
 				>
 					<uni-td width="30%" align="center">
-						<view>{{item.dealerProductEntity.code}}</view>
+						<view>{{item.dealerProductEntity&&item.dealerProductEntity.code||'--'}}</view>
 					</uni-td>
 					<uni-td width="30%" align="center">
 						<view>
@@ -185,6 +185,7 @@
 					this.closePop()
 				}else{
 					uni.$u.toast("请输入数量!")
+					playAudio('warn')
 				}
 			},
 			keyDown(e){
@@ -240,12 +241,14 @@
 				  })
 			  }else{
 				  uni.$u.toast("入库数量不能为0")
+				  playAudio('warn')
 			  }
 			},
 			//拣货
 			addQty(flag){
 				if(this.code==''){
 					uni.$u.toast("请扫描或输入条形码")
+					playAudio('warn')
 					return
 				}
 				const row = this.getCurRow()
@@ -254,9 +257,11 @@
 						this.changePutQty(row,row.realPutQty + (flag?1:-1))
 					}else{
 						uni.$u.toast("此商品没有仓库仓位")
+						playAudio('warn')
 					}
 				}else{
 					uni.$u.toast("此商品不存在")
+					playAudio('error')
 				}
 			},
 			// 详情
@@ -285,6 +290,7 @@
 					this.$refs.popup.open()
 				}else{
 					uni.$u.toast("此商品不存在")
+					playAudio('error')
 				}
 			},
 			// 入库

+ 6 - 2
pages/stock/index.vue

@@ -38,7 +38,7 @@
 <script>
 	import scanCode from '@/libs/scan-code.vue';
 	import { dealerProductTypeList , stockDetailList } from '@/config/api'
-	import { toThousands } from '@/libs/tools'
+	import { playAudio, toThousands } from '@/libs/tools.js'
 	export default{
 		components: { scanCode },
 		data(){
@@ -71,6 +71,7 @@
 				  _this.handleSearch()
 			  }else{
 				  _this.$message("扫描失败,请重试!")
+				  playAudio('error')
 			  }
 			})
 		},
@@ -112,13 +113,16 @@
 							this.listData = res.data.list
 						}else{
 							this.listData = []
-							this.$message(res.message)
+						}
+						if(this.listData.length==0){
+							this.$message('没有查询到商品')
 						}
 						 
 						this.loading = false
 					})
 				}else{
 					this.$message("请输入查询条件")
+					playAudio('warn')
 				}
 			},
 			toDetail(item){

+ 68 - 21
pages/stockOut/chainTransferOut/index.vue

@@ -14,7 +14,8 @@
 			 	<view>条形码:</view>
 			 	<view>
 			 		<input
-			 		@blur="addQty(true)"
+			 		@blur="pickFun(true)"
+			 		@change="curProductIndex = 0"
 			 		style="width: 100%;text-align: left;" 
 			 		class="uni-input" 
 			 		placeholder="扫描或输入条形码" 
@@ -26,7 +27,8 @@
 			 	<view>产品编码:</view>
 			 	<view>
 			 		<input
-			 		@blur="addQty(true)"
+			 		@blur="pickFun(true)"
+			 		@change="curProductIndex = 0"
 			 		style="width: 100%;text-align: left;" 
 			 		class="uni-input" 
 			 		placeholder="请输入产品编码" 
@@ -40,7 +42,7 @@
 			 </view>
 		</view>
 		<view class="p-body">
-			<uni-table style="width: 100%;" border emptyText="暂无数据" :loading="loading" >
+			<uni-table style="width: 100%;" border emptyText="暂无数据" :loading="loading1" >
 				<!-- 表头行 -->
 				<uni-tr>
 					<uni-td align="center">产品编码</uni-td>
@@ -52,7 +54,8 @@
 				<uni-tr 
 				v-for="item in detailList" 
 				:key="item.id" 
-				:checkedRow="curProduct&&(item.dealerProductEntity.code == curProduct.dealerProductEntity.code)">
+				:checkedRow="hasCheck(item)"
+				>
 					<uni-td width="30%" align="center">
 						<view @click="copyText(item.dealerProductEntity.code)">{{item.dealerProductEntity.code}}</view>
 					</uni-td>
@@ -69,8 +72,8 @@
 			</uni-table>
 		</view>
 		<view class="p-footer">
-			<button size="mini" type="warn" @click="addQty(false)"> <text class="iconfont icon-reduce-btn"> 减 </text></button>
-			<button size="mini" type="primary" @click="addQty(true)"> <text class="iconfont icon-add-btn"> 加 </text></button>
+			<button :disabled="loading" size="mini" type="warn" @click="pickFun(false)"> <text class="iconfont icon-reduce-btn"> 减 </text></button>
+			<button :disabled="loading" size="mini" type="primary" @click="pickFun(true)"> <text class="iconfont icon-add-btn"> 加 </text></button>
 		</view>
 		<scanCode></scanCode>
 		<u-modal :show="showModal" :title="msg.title" :confirmText="msg.confirmText" showCancelButton :content='msg.content' @cancel="showModal=false" @confirm="confirmModal"></u-modal>
@@ -87,6 +90,7 @@
 		data() {
 			return {
 				loading: false,
+				loading1: false,
 				baseData: null,
 				showModal: false,
 				msg:{title:'提示',content:''},
@@ -95,7 +99,8 @@
 				productCode: '',
 				allocationLinkageOutSn: null,
 				salesId: null,
-				curProduct: null
+				curProductIndex: 0,
+				curProductArr: [],
 			};
 		},
 		onLoad(opts) {
@@ -108,7 +113,8 @@
 		  uni.$on('scancodedate', function(content) {
 			  console.log("扫描到的内容为:", content)
 			  _this.code = content||''
-			  _this.addQty(true)
+			  _this.curProductIndex = 0
+			  _this.pickFun(true)
 		  })
 		},
 		onUnload() {
@@ -129,21 +135,62 @@
 					title: '编码已复制成功'
 				})
 			},
+			hasCheck(item){
+				const curProduct = this.curProductArr[this.curProductIndex]
+				return curProduct&&(item.dealerProductEntity&&item.dealerProductEntity.code == curProduct.dealerProductEntity&&curProduct.dealerProductEntity.code)
+			},
 			getCurProduct(){
-				const curProduct = this.detailList.find(item => item.dealerProductEntity.qrCode == this.code || item.dealerProductEntity.code == this.productCode)
-				this.curProduct = curProduct || null
-				return curProduct || null
+				const curProduct = this.detailList.filter(item => item.dealerProductEntity.qrCode == this.code || item.dealerProductEntity.code == this.productCode)
+				// console.log(curProduct)
+				this.curProductArr = curProduct || []
+			},
+			pickFun(flag){
+				this.getCurProduct()
+				this.addQty(flag)
 			},
 			addQty(flag){
-				const curProduct = this.getCurProduct()
+				console.log(this.curProductArr, this.curProductIndex)
+				const curProduct = this.curProductArr[this.curProductIndex]
+				// console.log(curProduct)
 				if(curProduct){
-					if(curProduct.pickFlag != 1 || !flag){
-						this.queryProduct((curProduct.pickQty||0)+1*(flag?1:-1))
+					this.loading = true
+					// 加
+					if(flag){
+						// 如果不是拣货完成
+						if(curProduct.pickFlag != 1){
+							this.queryProduct((curProduct.pickQty||0)+1,curProduct)
+						}else{
+							// 当前商品拣货完,判断是否有其它仓库同样商品
+							// 切换到下一个商品
+							if(this.curProductIndex<this.curProductArr.length-1){
+								this.curProductIndex = this.curProductIndex + 1
+								this.pickFun(flag)
+							}else{
+								this.loading = false
+								uni.$u.toast("此商品已全部拣货")
+								playAudio('warn')
+							}
+						}
 					}else{
-						uni.$u.toast("此商品已全部拣货")
-						playAudio('warn')
+						// 减
+						// 如果状态不是未拣货
+						if(curProduct.pickFlag != 0){
+							this.queryProduct((curProduct.pickQty||0)-1,curProduct)
+						}else{
+							// 判断是否有它仓库同样商品
+							// 切换到上一个商品
+							if(this.curProductIndex){
+								this.curProductIndex = this.curProductIndex - 1
+								this.pickFun(flag)
+							}else{
+								this.loading = false
+								uni.$u.toast("没有可以减的商品了")
+								playAudio('warn')
+							}
+						}
 					}
 				}else{
+					this.curProductIndex = 0
 					if(this.code == '' && this.productCode == ''){
 						uni.$u.toast("请扫描条形码或输入编码")
 					}else{
@@ -153,15 +200,15 @@
 				}
 			},
 			//拣货
-			queryProduct(pickQty){
+			queryProduct(pickQty, curProduct){
+				// console.log(curProduct)
 				this.loading = true
 				const params = {
 					allocationLinkageOutSn: this.allocationLinkageOutSn, 
-					productQrCode: this.code,
-					productCode: this.productCode,
+					id: curProduct.id,
 					pickQty: pickQty
 				}
-				console.log(params)
+				// console.log(params)
 				allocLinkageOutPick(params).then(res => {
 					console.log(res)
 					if(res.status == 200){
@@ -179,7 +226,7 @@
 			// 详情
 			getDetail(){
 				allocLinkageOutDetail({sn: this.allocationLinkageOutSn}).then(res => {
-					console.log(res,'详情')
+					// console.log(res,'详情')
 					if(res.status == 200){
 						this.baseData = res.data
 					}

+ 72 - 23
pages/stockOut/salesOut/index.vue

@@ -14,7 +14,8 @@
 				<view>条形码:</view>
 				<view>
 					<input
-					@blur="addQty(true)"
+					@blur="pickFun(true)"
+					@change="curProductIndex = 0"
 					style="width: 100%;text-align: left;" 
 					class="uni-input" 
 					placeholder="扫描或输入条形码" 
@@ -26,7 +27,8 @@
 				<view>产品编码:</view>
 				<view>
 					<input
-					@blur="addQty(true)"
+					@blur="pickFun(true)"
+					@change="curProductIndex = 0"
 					style="width: 100%;text-align: left;" 
 					class="uni-input" 
 					placeholder="请输入产品编码" 
@@ -40,7 +42,7 @@
 			</view>
 		</view>
 		<view class="p-body">
-			<uni-table style="width: 100%;" border emptyText="暂无数据" :loading="loading" >
+			<uni-table style="width: 100%;" border emptyText="暂无数据" :loading="loading1" >
 				<!-- 表头行 -->
 				<uni-tr>
 					<uni-td align="center">产品编码</uni-td>
@@ -52,7 +54,7 @@
 				<uni-tr 
 				v-for="item in detailList" 
 				:key="item.id" 
-				:checkedRow="curProduct&&(item.dealerProductEntity.code == curProduct.dealerProductEntity.code)">
+				:checkedRow="hasCheck(item)">
 					<uni-td width="30%" align="center">
 						<view @click="copyText(item.dealerProductEntity.code)">{{item.dealerProductEntity.code}}</view>
 					</uni-td>
@@ -69,8 +71,8 @@
 			</uni-table>
 		</view>
 		<view class="p-footer">
-			<button size="mini" type="warn" @click="addQty(false)"> <text class="iconfont icon-reduce-btn"> 减 </text></button>
-			<button size="mini" type="primary" @click="addQty(true)"> <text class="iconfont icon-add-btn"> 加 </text></button>
+			<button :disabled="loading" size="mini" type="warn" @click="pickFun(false)"> <text class="iconfont icon-reduce-btn"> 减 </text></button>
+			<button :disabled="loading" size="mini" type="primary" @click="pickFun(true)"> <text class="iconfont icon-add-btn"> 加 </text></button>
 		</view>
 		<scanCode></scanCode>
 		<u-modal :show="showModal" :title="msg.title" :confirmText="msg.confirmText" showCancelButton :content='msg.content' @cancel="showModal=false" @confirm="confirmModal"></u-modal>
@@ -87,6 +89,7 @@
 		data() {
 			return {
 				loading: false,
+				loading1: false,
 				baseData: null,
 				showModal: false,
 				msg:{title:'提示',content:''},
@@ -95,7 +98,8 @@
 				productCode: '',
 				salesBillSn: null,
 				salesId: null,
-				curProduct: null
+				curProductIndex: 0,
+				curProductArr: [],
 			};
 		},
 		onLoad(opts) {
@@ -108,7 +112,8 @@
 		  uni.$on('scancodedate', function(content) {
 			  console.log("扫描到的内容为:", content)
 			  _this.code = content||''
-			  _this.addQty(true)
+			  _this.curProductIndex = 0
+			  _this.pickFun(true)
 		  })
 		},
 		onShow() {
@@ -129,39 +134,81 @@
 			hideKeyborder(){
 				uni.hideKeyboard()
 			},
+			hasCheck(item){
+				const curProduct = this.curProductArr[this.curProductIndex]
+				return curProduct&&(item.dealerProductEntity.code == curProduct.dealerProductEntity.code)
+			},
 			getCurProduct(){
-				const curProduct = this.detailList.find(item => item.dealerProductEntity.qrCode == this.code || item.dealerProductEntity.code == this.productCode)
-				this.curProduct = curProduct || null
-				return curProduct || null
+				const curProduct = this.detailList.filter(item => item.dealerProductEntity.qrCode == this.code || item.dealerProductEntity.code == this.productCode)
+				// console.log(curProduct)
+				this.curProductArr = curProduct || []
+			},
+			pickFun(flag){
+				this.getCurProduct()
+				this.addQty(flag)
 			},
 			addQty(flag){
-				const curProduct = this.getCurProduct()
+				console.log(this.curProductArr, this.curProductIndex)
+				const curProduct = this.curProductArr[this.curProductIndex]
+				// console.log(curProduct)
 				if(curProduct){
-					if(curProduct.pickFlag != 1 || !flag){
-						this.queryProduct((curProduct.pickQty||0)+1*(flag?1:-1))
+					this.loading = true
+					// 加
+					if(flag){
+						// 如果不是拣货完成
+						if(curProduct.pickFlag != 1){
+							this.queryProduct((curProduct.pickQty||0)+1,curProduct)
+						}else{
+							// 当前商品拣货完,判断是否有其它仓库同样商品
+							// 切换到下一个商品
+							if(this.curProductIndex<this.curProductArr.length-1){
+								this.curProductIndex = this.curProductIndex + 1
+								this.pickFun(flag)
+							}else{
+								this.loading = false
+								uni.$u.toast("此商品已全部拣货")
+								playAudio('warn')
+							}
+						}
 					}else{
-						uni.$u.toast("此商品已全部拣货")
-						playAudio('warn')
+						// 减
+						// 如果状态不是未拣货
+						if(curProduct.pickFlag != 0){
+							this.queryProduct((curProduct.pickQty||0)-1,curProduct)
+						}else{
+							// 判断是否有它仓库同样商品
+							// 切换到上一个商品
+							if(this.curProductIndex){
+								this.curProductIndex = this.curProductIndex - 1
+								this.pickFun(flag)
+							}else{
+								this.loading = false
+								uni.$u.toast("没有可以减的商品了")
+								playAudio('warn')
+							}
+						}
 					}
 				}else{
+					this.curProductIndex = 0
 					if(this.code == '' && this.productCode == ''){
 						uni.$u.toast("请扫描条形码或输入编码")
+						playAudio('warn')
 					}else{
 						uni.$u.toast("此商品不存在")
+						playAudio('error')
 					}
-					playAudio('warn')
 				}
 			},
 			//拣货
-			queryProduct(pickQty){
+			queryProduct(pickQty, curProduct){
+				// console.log(curProduct)
 				this.loading = true
 				const params = {
 					salesBillSn: this.salesBillSn, 
-					productQrCode: this.code,
-					productCode: this.productCode,
+					id: curProduct.id,
 					pickQty: pickQty
 				}
-				console.log(params)
+				// console.log(params)
 				salesPick(params).then(res => {
 					console.log(res)
 					if(res.status == 200){
@@ -179,7 +226,7 @@
 			// 详情
 			getDetail(){
 				salesDetail({salesBillSn: this.salesBillSn}).then(res => {
-					console.log(res,'详情')
+					// console.log(res,'详情')
 					if(res.status == 200){
 						this.baseData = res.data
 					}
@@ -187,11 +234,13 @@
 			},
 			// 产品明细列表
 			getDetailList(){
+				this.loading1 = true
 				salesDetailList({pageNo:1,pageSize:1000,salesBillSn:this.salesBillSn,orderBy: 'sales_bill_detail.CREATE_DATE desc'}).then(res => {
 					if(res.status == 200){
 						this.detailList = res.data.list
 						this.getCurProduct()
 					}
+					this.loading1 = false
 				})
 			},
 			confirmModal(e){
@@ -249,7 +298,7 @@
 		.p-body{
 			overflow: auto;
 			flex-grow: 1;
-			height: 50%;
+			height: 60%;
 		}
 		.p-footer{
 			padding: 20upx 30upx;

+ 62 - 20
pages/stockOut/storeTransferOut/index.vue

@@ -14,7 +14,8 @@
 				<view>条形码:</view>
 				<view>
 					<input
-					@blur="addQty(true)"
+					@blur="pickFun(true)"
+					@change="curProductIndex = 0"
 					style="width: 100%;text-align: left;" 
 					class="uni-input" 
 					placeholder="扫描或输入条形码" 
@@ -26,7 +27,8 @@
 				<view>产品编码:</view>
 				<view>
 					<input
-					@blur="addQty(true)"
+					@blur="pickFun(true)"
+					@change="curProductIndex = 0"
 					style="width: 100%;text-align: left;" 
 					class="uni-input" 
 					placeholder="请输入产品编码" 
@@ -40,7 +42,7 @@
 			</view>
 		</view>
 		<view class="p-body">
-			<uni-table style="width: 100%;" border emptyText="暂无数据" :loading="loading" >
+			<uni-table style="width: 100%;" border emptyText="暂无数据" :loading="loading1" >
 				<!-- 表头行 -->
 				<uni-tr>
 					<uni-td align="center">产品编码</uni-td>
@@ -52,7 +54,7 @@
 				<uni-tr 
 				v-for="item in detailList" 
 				:key="item.id" 
-				:checkedRow="curProduct&&(item.productCode == curProduct.productCode)">
+				:checkedRow="hasCheck(item)">
 					<uni-td width="30%" align="center">
 						<view @click="copyText(item.productCode)">{{item.productCode}}</view>
 					</uni-td>
@@ -69,8 +71,8 @@
 			</uni-table>
 		</view>
 		<view class="p-footer">
-			<button size="mini" type="warn" @click="addQty(false)"> <text class="iconfont icon-reduce-btn"> 减 </text></button>
-			<button size="mini" type="primary" @click="addQty(true)"> <text class="iconfont icon-add-btn"> 加 </text></button>
+			<button :disabled="loading" size="mini" type="warn" @click="pickFun(false)"> <text class="iconfont icon-reduce-btn"> 减 </text></button>
+			<button :disabled="loading" size="mini" type="primary" @click="pickFun(true)"> <text class="iconfont icon-add-btn"> 加 </text></button>
 		</view>
 		<scanCode></scanCode>
 		<u-modal :show="showModal" :title="msg.title" :confirmText="msg.confirmText" showCancelButton :content='msg.content' @cancel="showModal=false" @confirm="confirmModal"></u-modal>
@@ -87,6 +89,7 @@
 		data() {
 			return {
 				loading: false,
+				loading1: false,
 				baseData: null,
 				showModal: false,
 				msg:{title:'提示',content:''},
@@ -95,7 +98,8 @@
 				productCode: '',
 				storeCallOutSn: null,
 				storeCallOutId: null,
-				curProduct: null
+				curProductIndex: 0,
+				curProductArr: [],
 			};
 		},
 		onLoad(opts) {
@@ -108,7 +112,8 @@
 		  uni.$on('scancodedate', function(content) {
 			  console.log("扫描到的内容为:", content)
 			  _this.code = content||''
-			  _this.addQty(true)
+			  _this.curProductIndex = 0
+			  _this.pickFun(true)
 		  })
 		},
 		onUnload() {
@@ -129,21 +134,58 @@
 					title: '编码已复制成功'
 				})
 			},
+			hasCheck(item){
+				const curProduct = this.curProductArr[this.curProductIndex]
+				return curProduct&&(item.productCode == curProduct.productCode)
+			},
 			getCurProduct(){
 				const curProduct = this.detailList.find(item => item.productQrCode == this.code || item.productCode == this.productCode)
-				this.curProduct = curProduct || null
-				return curProduct || null
+				// console.log(curProduct)
+				this.curProductArr = curProduct || []
 			},
 			addQty(flag){
-				const curProduct = this.getCurProduct()
+				console.log(this.curProductArr, this.curProductIndex)
+				const curProduct = this.curProductArr[this.curProductIndex]
+				console.log(curProduct)
 				if(curProduct){
-					if(curProduct.pickFlag != 1 || !flag){
-						this.queryProduct((curProduct.pickQty||0)+1*(flag?1:-1))
+					this.loading = true
+					// 加
+					if(flag){
+						// 如果不是拣货完成
+						if(curProduct.pickFlag != 1){
+							this.queryProduct((curProduct.pickQty||0)+1,curProduct)
+						}else{
+							// 当前商品拣货完,判断是否有其它仓库同样商品
+							// 切换到下一个商品
+							if(this.curProductIndex<this.curProductArr.length-1){
+								this.curProductIndex = this.curProductIndex + 1
+								this.pickFun(flag)
+							}else{
+								this.loading = false
+								uni.$u.toast("此商品已全部拣货")
+								playAudio('warn')
+							}
+						}
 					}else{
-						uni.$u.toast("此商品已全部拣货")
-						playAudio('warn')
+						// 减
+						// 如果状态不是未拣货
+						if(curProduct.pickFlag != 0){
+							this.queryProduct((curProduct.pickQty||0)-1,curProduct)
+						}else{
+							// 判断是否有它仓库同样商品
+							// 切换到上一个商品
+							if(this.curProductIndex){
+								this.curProductIndex = this.curProductIndex - 1
+								this.pickFun(flag)
+							}else{
+								this.loading = false
+								uni.$u.toast("没有可以减的商品了")
+								playAudio('warn')
+							}
+						}
 					}
 				}else{
+					this.curProductIndex = 0
 					if(this.code == '' && this.productCode == ''){
 						uni.$u.toast("请扫描条形码或输入编码")
 					}else{
@@ -153,15 +195,15 @@
 				}
 			},
 			//拣货
-			queryProduct(pickQty){
+			queryProduct(pickQty, curProduct){
+				// console.log(curProduct)
 				this.loading = true
 				const params = {
 					storeCallOutSn: this.storeCallOutSn, 
-					productQrCode: this.code,
-					productCode: this.productCode,
+					id: curProduct.id,
 					pickQty: pickQty
 				}
-				console.log(params)
+				// console.log(params)
 				storeCallOutPick(params).then(res => {
 					console.log(res)
 					if(res.status == 200){
@@ -179,7 +221,7 @@
 			// 详情
 			getDetail(){
 				storeCallOutDetail({sn: this.storeCallOutSn}).then(res => {
-					console.log(res,'详情')
+					// console.log(res,'详情')
 					if(res.status == 200){
 						this.baseData = res.data
 					}

ファイルの差分が大きいため隠しています
+ 20 - 11
unpackage/dist/dev/app-plus/app-service.js


+ 55 - 7
unpackage/dist/dev/app-plus/app-view.js

@@ -5394,6 +5394,9 @@ var render = function () {
                           blur: function ($event) {
                             return _vm.$handleViewEvent($event)
                           },
+                          change: function ($event) {
+                            return _vm.$handleViewEvent($event)
+                          },
                         },
                         model: {
                           value: _vm._$g(12, "v-model"),
@@ -5430,6 +5433,9 @@ var render = function () {
                           blur: function ($event) {
                             return _vm.$handleViewEvent($event)
                           },
+                          change: function ($event) {
+                            return _vm.$handleViewEvent($event)
+                          },
                         },
                         model: {
                           value: _vm._$g(16, "v-model"),
@@ -5598,7 +5604,12 @@ var render = function () {
           _c(
             "v-uni-button",
             {
-              attrs: { size: "mini", type: "warn", _i: 41 },
+              attrs: {
+                disabled: _vm._$g(41, "a-disabled"),
+                size: "mini",
+                type: "warn",
+                _i: 41,
+              },
               on: {
                 click: function ($event) {
                   return _vm.$handleViewEvent($event)
@@ -5617,7 +5628,12 @@ var render = function () {
           _c(
             "v-uni-button",
             {
-              attrs: { size: "mini", type: "primary", _i: 43 },
+              attrs: {
+                disabled: _vm._$g(43, "a-disabled"),
+                size: "mini",
+                type: "primary",
+                _i: 43,
+              },
               on: {
                 click: function ($event) {
                   return _vm.$handleViewEvent($event)
@@ -7310,7 +7326,7 @@ if(false) {}
 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../HBuilderX.2.9.8.20201110.full/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 10);
 exports = ___CSS_LOADER_API_IMPORT___(false);
 // Module
-exports.push([module.i, "@charset \"UTF-8\";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\n.p-content .p-head {\r\n  font-size: 32upx;\r\n  color: #333;\n}\n.p-content .p-head > uni-view {\r\n  display: flex;\r\n  align-items: center;\r\n  padding: 10upx 20upx;\r\n  border-bottom: 1px solid #eee;\r\n  justify-content: space-between;\n}\n.p-content .p-head > uni-view > uni-view {\r\n  display: flex;\r\n  padding: 0 10upx;\r\n  align-items: center;\n}\n.p-content .p-head .uni-input {\r\n  border: 1px solid #eee;\r\n  width: 150upx;\r\n  text-align: center;\r\n  padding: 8upx;\n}\n.p-content .p-body {\r\n  overflow: auto;\r\n  flex-grow: 1;\r\n  height: 50%;\n}\n.p-content .p-footer {\r\n  padding: 20upx 30upx;\r\n  display: flex;\n}\n.p-content .p-footer > uni-button {\r\n  width: 40%;\n}\r\n", ""]);
+exports.push([module.i, "@charset \"UTF-8\";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\n.p-content .p-head {\r\n  font-size: 32upx;\r\n  color: #333;\n}\n.p-content .p-head > uni-view {\r\n  display: flex;\r\n  align-items: center;\r\n  padding: 10upx 20upx;\r\n  border-bottom: 1px solid #eee;\r\n  justify-content: space-between;\n}\n.p-content .p-head > uni-view > uni-view {\r\n  display: flex;\r\n  padding: 0 10upx;\r\n  align-items: center;\n}\n.p-content .p-head .uni-input {\r\n  border: 1px solid #eee;\r\n  width: 150upx;\r\n  text-align: center;\r\n  padding: 8upx;\n}\n.p-content .p-body {\r\n  overflow: auto;\r\n  flex-grow: 1;\r\n  height: 60%;\n}\n.p-content .p-footer {\r\n  padding: 20upx 30upx;\r\n  display: flex;\n}\n.p-content .p-footer > uni-button {\r\n  width: 40%;\n}\r\n", ""]);
 // Exports
 module.exports = exports;
 
@@ -7809,6 +7825,9 @@ var render = function () {
                           blur: function ($event) {
                             return _vm.$handleViewEvent($event)
                           },
+                          change: function ($event) {
+                            return _vm.$handleViewEvent($event)
+                          },
                         },
                         model: {
                           value: _vm._$g(12, "v-model"),
@@ -7845,6 +7864,9 @@ var render = function () {
                           blur: function ($event) {
                             return _vm.$handleViewEvent($event)
                           },
+                          change: function ($event) {
+                            return _vm.$handleViewEvent($event)
+                          },
                         },
                         model: {
                           value: _vm._$g(16, "v-model"),
@@ -8013,7 +8035,12 @@ var render = function () {
           _c(
             "v-uni-button",
             {
-              attrs: { size: "mini", type: "warn", _i: 41 },
+              attrs: {
+                disabled: _vm._$g(41, "a-disabled"),
+                size: "mini",
+                type: "warn",
+                _i: 41,
+              },
               on: {
                 click: function ($event) {
                   return _vm.$handleViewEvent($event)
@@ -8032,7 +8059,12 @@ var render = function () {
           _c(
             "v-uni-button",
             {
-              attrs: { size: "mini", type: "primary", _i: 43 },
+              attrs: {
+                disabled: _vm._$g(43, "a-disabled"),
+                size: "mini",
+                type: "primary",
+                _i: 43,
+              },
               on: {
                 click: function ($event) {
                   return _vm.$handleViewEvent($event)
@@ -8664,6 +8696,9 @@ var render = function () {
                           blur: function ($event) {
                             return _vm.$handleViewEvent($event)
                           },
+                          change: function ($event) {
+                            return _vm.$handleViewEvent($event)
+                          },
                         },
                         model: {
                           value: _vm._$g(12, "v-model"),
@@ -8700,6 +8735,9 @@ var render = function () {
                           blur: function ($event) {
                             return _vm.$handleViewEvent($event)
                           },
+                          change: function ($event) {
+                            return _vm.$handleViewEvent($event)
+                          },
                         },
                         model: {
                           value: _vm._$g(16, "v-model"),
@@ -8868,7 +8906,12 @@ var render = function () {
           _c(
             "v-uni-button",
             {
-              attrs: { size: "mini", type: "warn", _i: 41 },
+              attrs: {
+                disabled: _vm._$g(41, "a-disabled"),
+                size: "mini",
+                type: "warn",
+                _i: 41,
+              },
               on: {
                 click: function ($event) {
                   return _vm.$handleViewEvent($event)
@@ -8887,7 +8930,12 @@ var render = function () {
           _c(
             "v-uni-button",
             {
-              attrs: { size: "mini", type: "primary", _i: 43 },
+              attrs: {
+                disabled: _vm._$g(43, "a-disabled"),
+                size: "mini",
+                type: "primary",
+                _i: 43,
+              },
               on: {
                 click: function ($event) {
                   return _vm.$handleViewEvent($event)

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません