Explorar o código

从工单添加

xiaohaizhao hai 1 semana
pai
achega
c26743247d

+ 3 - 1
app.json

@@ -83,7 +83,9 @@
         "contacts/index",
         "account/index",
         "product1/index",
-        "address/addAndEdit"
+        "address/addAndEdit",
+        "workOrder/index",
+        "workOrderProduct/index"
       ]
     },
     {

+ 34 - 3
packageA/fittings/modules/product/index.js

@@ -69,7 +69,6 @@ Component({
                 clearTimeout(downCounter);
                 this.changeItem(queue)
             }
-
             _Http.basic({
                 "classname": "sysmanage.develop.optiontype.optiontype",
                 "method": "optiontypeselect",
@@ -180,7 +179,7 @@ Component({
             let that = this;
             wx.showModal({
                 title: '提示',
-                content: that.data.packagetype ? '该商品为套餐商品,删除后该套餐下所有商品都会被删除,确认删除吗?' : `是否确认删除“${detail.itemname}”?`,
+                content: `是否确认删除“${detail.itemname || '该商品'}”?`,
                 complete: (res) => {
                     if (res.confirm) _Http.basic({
                         "id": 20221109093702,
@@ -210,6 +209,7 @@ Component({
             })
         },
         onSelected(e) {
+            let that = this;
             if (e.detail.name == '从产品库添加') {
                 let detail = getCurrentPages().find(v => v.__route__ == 'packageA/orderForm/detail').data.detail,
                     id = '2025080510311403';
@@ -231,7 +231,38 @@ Component({
                 })
                 getApp().globalData.handleSelect = this.handleSelect.bind(this);
             } else {
-
+                wx.navigateTo({
+                    url: `/select/workOrder/index?params=${JSON.stringify({
+                        "id": 20230208140203,
+                        "content": {
+                            "isadmin": 1,
+                            "where": {
+                                "sys_enterpriseid_service": this.data.base.sys_enterpriseid,
+                            },
+                            "pageSize": 20,
+                            "pageNumber": 1,
+                        }
+                    })}&butText=选择工单&radio=true`
+                });
+                getApp().globalData.handleSelect = function ({
+                    id
+                }) {
+                    wx.redirectTo({
+                        url: `/select/workOrderProduct/index?params=${JSON.stringify({
+                    "id":2025080511210103,
+                    "content": {
+                        nocache:true,
+                        sa_orderid, //订单ID
+                        sa_workorderid:id[0],
+                        "total": 0,
+                        "where": {
+                            "condition": ""
+                        }
+                    }
+                })}&butText=添加产品`
+                    });
+                    getApp().globalData.handleSelect = that.handleSelect.bind(that);
+                }
             }
             this.onCancel()
         },

+ 121 - 0
select/workOrder/index.js

@@ -0,0 +1,121 @@
+const _Http = getApp().globalData.http;
+import currency from "../../utils/currency";
+
+Page({
+	data: {
+		loading: true,
+		params: {}, //请求体
+		result: [], //返回结果
+		radio: false, //是否为单选
+		idname: "sa_workorderid", //idkey
+		showName: "itemname"
+	},
+	onLoad(options) {
+		if (options.params) {
+			let params = JSON.parse(options.params);
+			if (!params.content.pageNumber || !params.content.pageTotal) {
+				params.content.pageNumber = 1;
+				params.content.pageTotal = 1;
+			}
+			this.setData({
+				params
+			});
+		};
+		this.setData({
+			radio: options.radio ? true : false,
+			idname: options.idname || this.data.idname,
+			showName: options.showName || this.data.showName
+		});
+		this.getList();
+	},
+	getList(init = false) {
+		//init 用于初始化分页
+		if (init.detail != undefined) init = init.detail;
+		let params = this.data.params;
+		if (init) params.content.pageNumber = 1
+		if (params.content.pageNumber > params.content.pageTotal) return;
+		_Http.basic(params).then(res => {
+			console.log("选择产品列表", res)
+			this.selectComponent('#ListBox').RefreshToComplete();
+			if (res.msg != '成功') return wx.showToast({
+				title: res.msg,
+				icon: "none"
+			})
+			this.setData({
+				'params.content.pageNumber': res.pageNumber + 1,
+				'params.content.pageTotal': res.pageTotal,
+				'params.content.total': res.total,
+				list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
+				loading: false
+			})
+		})
+	},
+	/* 选中 */
+	changeResult(e) {
+		let {
+			id,
+			item
+		} = e.currentTarget.dataset, result = this.data.result;
+		if (this.data.radio) {
+			result = [id];
+		} else {
+			let isAdd = result.some(v => v == id);
+			if (!isAdd) {
+				if (item.iscustomsize == 1) {
+					if ((item.widthschemeid && item.width == 0) || (item.lengthschemeid && item.length == 0)) {
+						item.pitchOn = true;
+						this.bindChangeFun()
+						if (item) this.selectComponent("#Custom").onClick(item)
+					} else {
+						result.push(id)
+					}
+				} else {
+					result.push(id)
+				}
+			} else {
+				result = result.filter(v => v != id)
+			}
+		}
+		this.setData({
+			result
+		});
+		if (this.data.radio) this.submit();
+	},
+	/* 提交 */
+	submit() {
+		let result = this.data.result,
+			obj = this.data.radio ? {
+				id: result,
+				item: this.data.list.find(value => value[this.data.idname] == result),
+				value: [this.data.list.find(value => value[this.data.idname] == result)[this.data.showName], result]
+			} : {
+				result,
+				list: result.map(v => this.data.list.find(value => value[this.data.idname] == v)),
+				value: [result.map(v => {
+					let data = this.data.list.find(value => value[this.data.idname] == v);
+					return data ? data[this.data.showName] : ""
+				}), result]
+			}
+		getApp().globalData.handleSelect && getApp().globalData.handleSelect(obj)
+	},
+	/* 开始搜索 */
+	startSearch({
+		detail
+	}) {
+		let condition = this.data.content ? this.data.content.where.condition : this.data.params.content.where.condition;
+		if (detail == condition) return;
+		this.setData({
+			'content.where.condition': detail,
+			'params.content.where.condition': detail
+		});
+		this.getList(true);
+	},
+	/* 取消搜索 */
+	onClear() {
+		this.setData({
+			'content.where.condition': "",
+			'params.content.where.condition': ""
+		});
+		this.getList(true);
+	}
+})

+ 4 - 0
select/workOrder/index.json

@@ -0,0 +1,4 @@
+{
+	"usingComponents": {
+	}
+}

+ 135 - 0
select/workOrder/index.scss

@@ -0,0 +1,135 @@
+page {
+	height: 100vh;
+	overflow: hidden;
+}
+
+.total {
+	height: 60rpx;
+	line-height: 60rpx;
+	font-size: 24rpx;
+	font-family: PingFang SC-Regular, PingFang SC;
+	color: #666666;
+	padding-left: 30rpx;
+}
+
+.setclient-list-item {
+	width: 100vw;
+	background-color: #FFFFFF;
+	border-bottom: 1rpx solid #DDDDDD;
+	margin-bottom: 20rpx;
+
+	.mian {
+		position: relative;
+		display: flex;
+		align-items: center;
+		width: 100%;
+		padding: 20rpx 30rpx;
+		box-sizing: border-box;
+
+		.checkbox {
+			position: absolute;
+			top: 20rpx;
+			right: 10rpx;
+		}
+
+		.img {
+			flex-shrink: 0;
+			width: 128rpx;
+			height: 128rpx;
+			border-radius: 16rpx;
+			margin-right: 30rpx;
+			overflow: hidden;
+
+			.err {
+				display: flex;
+				width: 100%;
+				height: 100%;
+				align-items: center;
+				justify-content: center;
+				font-size: 22rpx;
+				border: 1px solid #ddd;
+				box-sizing: border-box;
+				color: #666;
+			}
+		}
+
+		.dec {
+			flex: 1;
+			width: 0;
+			min-height: 128rpx;
+			height: 100%;
+			font-size: 24rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+			color: #999999;
+
+			.title {
+				height: 40rpx;
+				line-height: 40rpx;
+				font-size: 28rpx;
+				font-family: PingFang SC-Semibold, PingFang SC;
+				font-weight: 600;
+				color: #333333;
+			}
+
+			.subfield {
+				margin-top: 6rpx;
+				height: 34rpx;
+				line-height: 34rpx;
+
+
+				text {
+					display: inline-block;
+					max-width: 250rpx;
+					min-width: 150rpx;
+				}
+			}
+
+			.price {
+				height: 40rpx;
+				line-height: 40rpx;
+				margin-top: 8rpx;
+
+				.num {
+					font-size: 28rpx;
+					color: #FF3B30;
+					font-weight: 600;
+				}
+
+				text {
+					color: #333333;
+				}
+			}
+		}
+	}
+}
+
+.footer {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	padding: 0 30rpx;
+	position: fixed;
+	width: 100vw;
+	height: 130rpx;
+	background: #FFFFFF;
+	box-shadow: 0px -4rpx 16rpx 2rpx rgba(150, 157, 165, 0.16);
+	bottom: 0;
+	box-sizing: border-box;
+
+	.count {
+		font-size: 28rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		color: #333333;
+	}
+
+	.but {
+		width: 156rpx;
+		height: 90rpx;
+		background: #3874F6;
+		border-radius: 8rpx;
+		font-size: 28rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+		font-weight: bold;
+		color: #FFFFFF;
+	}
+}

+ 57 - 0
select/workOrder/index.wxml

@@ -0,0 +1,57 @@
+<van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
+<view class="total">共{{params.content.total}}个</view>
+
+<Yl_ListBox id='ListBox' bind:getlist='getList'>
+    <view class="setclient-list-item" wx:for="{{list}}" wx:key="sa_workorderid">
+        <navigator url="#" class="mian" data-id="{{item[idname]}}" data-item="{{item}}" bindtap="changeResult">
+            <view class="checkbox">
+                <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
+            </view>
+            <view class="dec">
+                <view class="title line-1">
+                    {{item.billno}}
+                </view>
+                <view class="subfield line-1">
+                    状态:{{item.status}}
+                </view>
+                <view class="subfield line-1">
+                    工单类型:{{item.type||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    省市县:{{item.province + item.city + item.county ||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    地址:{{item.address||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    创建日期:{{item.createdate||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    结束日期:{{item.enddate||' --'}}
+                </view>
+            </view>
+        </navigator>
+    </view>
+    <view wx:if="{{!radio}}" style="height: 130rpx;" />
+    <Yl_Empty wx:if="{{list.length==0}}" />
+</Yl_ListBox>
+
+<block wx:if="{{!radio}}">
+    <view class="footer">
+        <view class="count">
+            已选:{{result.length}}
+        </view>
+        <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
+    </view>
+    <wxs module="handle">
+        module.exports = {
+            isCheck: function (id, list) {
+                return list.some(function (v) {
+                    return v == id
+                });
+            },
+        }
+    </wxs>
+</block>
+
+<wxs src="/utils/hidePrice.wxs" module="handleHide" />

+ 251 - 0
select/workOrderProduct/index.js

@@ -0,0 +1,251 @@
+const _Http = getApp().globalData.http,
+	file = require("../../utils/FormatTheAttachment");
+import currency from "../../utils/currency";
+
+import {
+	getCustomText
+} from "../../utils/customItemType";
+
+
+Page({
+	data: {
+		loading: true,
+		params: {}, //请求体
+		result: [], //返回结果
+		radio: false, //是否为单选
+		idname: "itemid", //idkey
+		showName: "itemname",
+		privacyFieldC: []
+	},
+	onLoad(options) {
+		if (options.params) {
+			let params = JSON.parse(options.params);
+			if (!params.content.pageNumber || !params.content.pageTotal) {
+				params.content.pageNumber = 1;
+				params.content.pageTotal = 1;
+			}
+			this.setData({
+				params
+			});
+		};
+		this.setData({
+			radio: options.radio ? true : false,
+			idname: options.idname || this.data.idname,
+			showName: options.showName || this.data.showName,
+			newPrice: options.newprice || "price", //红色价格
+		});
+		try {
+			let privacyFieldC = wx.getStorageSync('auth').worderform.forms.add.formcols.map(v => v.title);
+			this.setData({
+				privacyFieldC
+			})
+			console.log("privacyFieldC", privacyFieldC)
+		} catch (error) {
+			console.error(error)
+		}
+		this.getList();
+	},
+	getList(init = false) {
+		//init 用于初始化分页
+		if (init.detail != undefined) init = init.detail;
+		let params = this.data.params;
+		if (init) params.content.pageNumber = 1
+		if (params.content.pageNumber > params.content.pageTotal) return;
+		_Http.basic(params).then(res => {
+			console.log("选择产品列表", res)
+			this.selectComponent('#ListBox').RefreshToComplete();
+			if (res.msg != '成功') return wx.showToast({
+				title: res.msg,
+				icon: "none"
+			})
+			const CNY = num => currency(num, {
+				symbol: "¥",
+				precision: 2
+			}).format();
+
+			let newPrice = this.data.newPrice;
+			res.data = res.data.map(value => {
+				if (value.cover) {
+					value.cover = _Http.getImageUrl(value.cover)
+				} else {
+					if (value.attinfos.length != 0) {
+						value.attinfos = file.fileList(value.attinfos)
+						let image = value.attinfos.find(v => v.fileType == "image");
+						value.cover = image ? _Http.getSpecifiedImage(image) : "";
+					}
+				}
+				if (newPrice) value.newPrice = CNY(value[newPrice] || 0);
+				value.brandName = value.brand.map(name => name.brandname)
+				value.tradefields = value.tradefield.map(name => name.tradefield)
+				value.width = 0;
+				value.length = 0;
+				if (value.iscustomsize) value.customText = getCustomText(value);
+				return value;
+			})
+			this.setData({
+				'params.content.pageNumber': res.pageNumber + 1,
+				'params.content.pageTotal': res.pageTotal,
+				'params.content.total': res.total,
+				list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
+				loading: false
+			})
+		})
+	},
+	customization(e) {
+		let {
+			item
+		} = e.target.dataset;
+		item.pitchOn = false;
+		this.bindChangeFun()
+		if (item) this.selectComponent("#Custom").onClick(item)
+	},
+	bindChangeFun() {
+		getApp().globalData.customizedProduct = (item, custom) => {
+			return new Promise((resolve) => {
+				item = Object.assign(item, custom)
+				item.customText = getCustomText(item);
+				let index = this.data.list.findIndex(v => v[this.data.idname] == item[this.data.idname]);
+				if (index != -1) this.data.list[index] = item;
+				if (item.pitchOn) this.data.result.push(item[this.data.idname])
+				this.setData({
+					list: this.data.list,
+					result: this.data.result
+				})
+				resolve(true)
+			})
+		}
+	},
+	/* 选中 */
+	changeResult(e) {
+		let {
+			id,
+			item
+		} = e.currentTarget.dataset, result = this.data.result;
+		if (this.data.radio) {
+			result = [id];
+		} else {
+			let isAdd = result.some(v => v == id);
+			if (!isAdd) {
+				if (item.iscustomsize == 1) {
+					if ((item.widthschemeid && item.width == 0) || (item.lengthschemeid && item.length == 0)) {
+						item.pitchOn = true;
+						this.bindChangeFun()
+						if (item) this.selectComponent("#Custom").onClick(item)
+					} else {
+						result.push(id)
+					}
+				} else {
+					result.push(id)
+				}
+			} else {
+				result = result.filter(v => v != id)
+			}
+		}
+		this.setData({
+			result
+		});
+		if (this.data.radio) this.submit();
+	},
+	/* 提交 */
+	submit() {
+		let result = this.data.result,
+			obj = this.data.radio ? {
+				id: result,
+				item: this.data.list.find(value => value[this.data.idname] == result),
+				value: [this.data.list.find(value => value[this.data.idname] == result)[this.data.showName], result]
+			} : {
+				result,
+				list: result.map(v => this.data.list.find(value => value[this.data.idname] == v)),
+				value: [result.map(v => {
+					let data = this.data.list.find(value => value[this.data.idname] == v);
+					return data ? data[this.data.showName] : ""
+				}), result]
+			}
+		getApp().globalData.handleSelect && getApp().globalData.handleSelect(obj)
+	},
+	/* 预览图片 */
+	viewImage(e) {
+		const {
+			file
+		} = e.currentTarget.dataset;
+		if (file.length) wx.previewMedia({
+			sources: file.filter(value => ['image', 'vadio'].includes(value.fileType)).map(v => {
+				return {
+					url: v.url,
+					type: v.fileType
+				}
+			}),
+			current: 0,
+			showmenu: true
+		})
+	},
+	/* 开始搜索 */
+	startSearch({
+		detail
+	}) {
+		let condition = this.data.content ? this.data.content.where.condition : this.data.params.content.where.condition;
+		if (detail == condition) return;
+		this.setData({
+			'content.where.condition': detail,
+			'params.content.where.condition': detail
+		});
+		this.getList(true);
+	},
+	/* 取消搜索 */
+	onClear() {
+		this.setData({
+			'content.where.condition': "",
+			'params.content.where.condition': ""
+		});
+		this.getList(true);
+	},
+	onReady() {
+		this.selectComponent("#ListBox").setHeight(".total", this);
+	},
+	/* 步进器输入框失去焦点 */
+	inputBlur(e) {
+		const {
+			index
+		} = e.currentTarget.dataset;
+		let item = this.data.list[index];
+		let qty = 0;
+		if (item.orderminqty > e.detail.value) {
+			wx.showToast({
+				title: '输入数量低于最低起订量!',
+				icon: "none"
+			})
+			qty = item.orderminqty;
+		} else if (item.orderminqty < e.detail.value) {
+			var currencyRounding = value => currency(value, {
+				increment: item.orderaddqty
+			});
+			qty = currency(currencyRounding(currency(e.detail.value).subtract(item.orderminqty)).format()).add(item.orderminqty).value;
+
+		} else {
+			qty = e.detail.value;
+		}
+		this.setData({
+			[`list[${index}].qty`]: 0
+		});
+		this.setData({
+			[`list[${index}].qty`]: qty
+		});
+	},
+	stepperChange(e) {
+		const {
+			index
+		} = e.currentTarget.dataset;
+		let item = this.data.list[index];
+		if (e.type == 'plus') {
+			item.qty += (item.orderaddqty) - 0
+		} else {
+			item.qty -= item.orderaddqty
+		}
+		this.setData({
+			[`list[${index}]`]: item
+		})
+	},
+	onUnload() {
+		getApp().globalData.handleSelect = null;
+	}
+})

+ 6 - 0
select/workOrderProduct/index.json

@@ -0,0 +1,6 @@
+{
+	"usingComponents": {
+		"van-stepper": "@vant/weapp/stepper/index",
+		"custom": "../../pages/index/collect/modules/custom"
+	}
+}

+ 164 - 0
select/workOrderProduct/index.scss

@@ -0,0 +1,164 @@
+
+page {
+	height: 100vh;
+	overflow: hidden;
+}
+
+.total {
+	height: 60rpx;
+	line-height: 60rpx;
+	font-size: 24rpx;
+	font-family: PingFang SC-Regular, PingFang SC;
+	color: #666666;
+	padding-left: 30rpx;
+}
+
+.setclient-list-item {
+	width: 100vw;
+	background-color: #FFFFFF;
+	border-bottom: 1rpx solid #DDDDDD;
+	margin-bottom: 20rpx;
+
+	.mian {
+		position: relative;
+		display: flex;
+		align-items: center;
+		width: 100%;
+		padding: 20rpx 30rpx;
+		box-sizing: border-box;
+
+		.checkbox {
+			position: absolute;
+			top: 20rpx;
+			right: 10rpx;
+		}
+
+		.img {
+			flex-shrink: 0;
+			width: 128rpx;
+			height: 128rpx;
+			border-radius: 16rpx;
+			margin-right: 30rpx;
+			overflow: hidden;
+
+			.err {
+				display: flex;
+				width: 100%;
+				height: 100%;
+				align-items: center;
+				justify-content: center;
+				font-size: 22rpx;
+				border: 1px solid #ddd;
+				box-sizing: border-box;
+				color: #666;
+			}
+		}
+
+		.dec {
+			flex: 1;
+			width: 0;
+			min-height: 128rpx;
+			height: 100%;
+			font-size: 24rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+			color: #999999;
+
+			.title {
+				height: 40rpx;
+				line-height: 40rpx;
+				font-size: 28rpx;
+				font-family: PingFang SC-Semibold, PingFang SC;
+				font-weight: 600;
+				color: #333333;
+			}
+
+			.subfield {
+				margin-top: 6rpx;
+				height: 34rpx;
+				line-height: 34rpx;
+
+
+				text {
+					display: inline-block;
+					max-width: 250rpx;
+					min-width: 150rpx;
+				}
+			}
+
+			.price {
+				height: 40rpx;
+				line-height: 40rpx;
+				margin-top: 8rpx;
+
+				.num {
+					font-size: 28rpx;
+					color: #FF3B30;
+					font-weight: 600;
+				}
+
+				text {
+					color: #333333;
+				}
+			}
+		}
+	}
+
+	.bottom {
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		border-top: 1rpx solid #DDDDDD;
+		width: 690rpx;
+		margin: 0 auto;
+		padding: 6rpx 20rpx;
+
+		.check {
+			display: flex;
+			align-items: center;
+			height: 100%;
+			width: 380rpx;
+
+			.label-class {
+				font-size: 24rpx;
+				font-family: PingFang SC-Regular, PingFang SC;
+				color: #999999;
+				margin-left: -6rpx;
+			}
+		}
+
+		.input-class {
+			width: 120rpx;
+		}
+	}
+}
+
+.footer {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	padding: 0 30rpx;
+	position: fixed;
+	width: 100vw;
+	height: 130rpx;
+	background: #FFFFFF;
+	box-shadow: 0px -4rpx 16rpx 2rpx rgba(150, 157, 165, 0.16);
+	bottom: 0;
+	box-sizing: border-box;
+
+	.count {
+		font-size: 28rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		color: #333333;
+	}
+
+	.but {
+		width: 156rpx;
+		height: 90rpx;
+		background: #3874F6;
+		border-radius: 8rpx;
+		font-size: 28rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+		font-weight: bold;
+		color: #FFFFFF;
+	}
+}

+ 69 - 0
select/workOrderProduct/index.wxml

@@ -0,0 +1,69 @@
+<custom id="Custom" />
+
+<van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
+<view class="total">共{{params.content.total}}个</view>
+
+<Yl_ListBox id='ListBox' bind:getlist='getList'>
+    <view class="setclient-list-item" wx:for="{{list}}" wx:key="itemno">
+        <navigator url="#" class="mian" data-id="{{item[idname]}}" data-item="{{item}}" bindtap="changeResult">
+            <view class="checkbox">
+                <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
+            </view>
+            <view class="img" data-file="{{item.attinfos}}" catchtap="viewImage">
+                <van-image width="100%" height="100%" wx:if="{{item.cover}}" src="{{item.cover}}" use-loading-slot use-error-slot lazy-load>
+                    <van-loading slot="loading" type="spinner" size="20" vertical />
+                    <text slot="error" style="font-size: 24rpx;">暂无图片</text>
+                </van-image>
+                <text wx:else class="err">暂无图片</text>
+            </view>
+            <view class="dec">
+                <view class="title line-1">
+                    {{item.itemname}}
+                </view>
+                <view class="subfield line-1">
+                    品号:{{item.itemno}}
+                </view>
+                <view class="subfield line-1">
+                    型号:{{item.model||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    规格:{{item.standards||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    配件分类:{{item.bomfullname||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    售后品号:{{item.aftersalesitemno||' --'}}
+                </view>
+                <view class="subfield line-1">
+                    数量:{{item.qty||' --'}}
+                </view>
+                <view class="price line-1">
+                    销售单价:<text class="num">{{handleHide.verify(item.newPrice,'列表价格',privacyFieldC)}}元</text>
+                </view>
+            </view>
+        </navigator>
+    </view>
+    <view wx:if="{{!radio}}" style="height: 130rpx;" />
+    <Yl_Empty wx:if="{{list.length==0}}" />
+</Yl_ListBox>
+
+<block wx:if="{{!radio}}">
+    <view class="footer">
+        <view class="count">
+            已选:{{result.length}}
+        </view>
+        <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
+    </view>
+    <wxs module="handle">
+        module.exports = {
+            isCheck: function (id, list) {
+                return list.some(function (v) {
+                    return v == id
+                });
+            },
+        }
+    </wxs>
+</block>
+
+<wxs src="/utils/hidePrice.wxs" module="handleHide" />