瀏覽代碼

前端小程序sdy

zhongtianhaoyuan 3 年之前
父節點
當前提交
be37ae5056

文件差異過大導致無法顯示
+ 0 - 0
components/uview-ui/libs/util/area.js


文件差異過大導致無法顯示
+ 0 - 0
components/uview-ui/libs/util/city.js


+ 1 - 0
pageA/product/business_buy.vue

@@ -264,6 +264,7 @@
 						}
 					}
 					var that=this
+					this.purchaseOrder.pcFlag=0
 					uni.showModal({
 						content: '订单提交后将发送给买方,是否确定提交?',
 						success: function (res) {

+ 1 - 1
pageB/contract/contract.vue

@@ -781,7 +781,7 @@
 
 	.forList .title {
 		line-height: 30px;
-		margin-left: 20px;
+		margin-left: 15px;
 		color: #9698A2;
 	}
 

+ 1 - 0
pageB/contract/contract_detail.vue

@@ -179,6 +179,7 @@
 			onShow() {
 			},
 			onLoad(option) {
+				this.goods.planId=options.planId
 				this.goodsName=option.goodsName
 				this.contractNo = option.contractNo
 				this.goods.goodsName=option.goodsName

+ 12 - 2
pageB/contract/look.vue

@@ -130,7 +130,12 @@
 				},
 				imgstatus: false,
 				reason: "",
-				price: undefined
+				price: undefined,
+
+				imgstatus:false,
+				reason:"",
+				price:undefined,
+				planId:'',
 
 			};
 		},
@@ -141,6 +146,7 @@
 			this.goods.goodsName = option.goodsName
 			this.goods.customer = option.customer
 			this.id = option.id
+			this.planId=option.planId
 			this.goods.contractNo = option.contractNo
 
 		},
@@ -180,8 +186,12 @@
 					tranCarNo = 'C' + (this.carlist.length + 1)
 				}
 				uni.navigateTo({
+
 					url: `/pageB/contract/contract_detail?contractNo=` + this.goods.contractNo + '&goodsName=' +
-						this.goods.goodsName + '&tranCarNo=' + tranCarNo
+						this.goods.goodsName + '&tranCarNo=' + tranCarNo,
+
+					url: `/pageB/contract/contract_detail?contractNo=`+this.goods.contractNo+'&goodsName='+this.goods.goodsName+'&tranCarNo='+tranCarNo+'&palnId='+this.planId
+
 				})
 			},
 			confirmunload(item) {

+ 2 - 11
pageD/myRelease/Identity_switching.vue

@@ -45,6 +45,7 @@
 				scrollTop: 0,
 				TabCur: 0,
 				current: 1,
+				id:0,
 				checked:false,
 				goodsName:'',
 				receivePrivate:'',
@@ -70,17 +71,7 @@
 			this.getList()
 		},
 		onLoad(options) {
-			this.goodsName = options.goodsName
-			this.receivePrivate = options.receivePrivate
-			this.receiveCity = options.receiveCity
-			this.receiveArea = options.receiveArea
-			this.minimumVolume = options.minimumVolume
-			this.buyer = options.buyer
-			this.basis = options.basisPrice
-			this.unitPrice = options.unitPrice
-			this.receiveWarehouse = options.receiveWarehouse
-			this.procurementPlanType = options.procurementPlanType
-			this.procurementPlan=options.procurementPlanNo
+			this.id=options.id
 		},
 		computed: {
 			...mapState(['hasLogin', 'userInfo'])

+ 55 - 92
pageD/myRelease/buyDetails.vue

@@ -33,157 +33,120 @@
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">类型</text>
-			
-				<view class="picker">
+			<view class="con-list">
 				{{procurementPlanInfos.procurementPlanType}}
-				</view>
+			</view>
 			
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">价格类型</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.priceType}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.priceType}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">基差(元/吨)</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.basisPrice}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.basisPrice}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">产地</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.outputPrivate}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.outputPrivate}}{{procurementPlanInfos.outputCity}}
+			</view>
 		</view>
 		<view class="c-row b-b">
-			<text class="tit">发货地区</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					<input placeholder="请填写发货地区" name="input" @input="addressInput"></input>
-				</view>
-			</picker>
+			<text class="tit">收货地区</text>
+			<view class="con-list">
+				{{procurementPlanInfos.receivePrivate}}{{procurementPlanInfos.receiveCity}}{{procurementPlanInfos.receiveArea}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">买方手机号</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					<input placeholder="请填写卖方手机号" name="input" @input="addressInput"></input>
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.buyerPhone}}
+			</view>
 		</view>
 		<text class="title">附加要求</text>
 		<view class="c-row b-b">
 			<text class="tit">水分(%)<= </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.waterContent}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.waterContent}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">容重(g/L)<= </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.bulkDensity}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.bulkDensity}}
+			</view>
 		</view>
 
 		<view class="c-row b-b">
 			<text class="tit">热损伤(%)<= </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.jiaorenli}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.jiaorenli}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">杂质(%)<= </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
+			<view class="con-list">
 					{{procurementPlanInfos.impurity}}
-				</view>
-			</picker>
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">霉变粒(%)<= </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.mildewGrain}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.mildewGrain}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">不完整粒(%)<= </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.imperfectGrain}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.imperfectGrain}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">蛋白(%)<= </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.protein}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.protein}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">粒型 </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.grain}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.grain}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">品级 </text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.procurementPlanInfos}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.procurementPlanInfos}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">产出年份</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
+			<view class="con-list">
 				{{procurementPlanInfos.outputYear}}
-				</view>
-			</picker>
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">包装方式</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.packingType}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.packingType}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">袋装备注</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.baggingNotes}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.baggingNotes}}
+			</view>
 		</view>
 		<view class="c-row b-b">
 			<text class="tit">运费承担方</text>
-			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
-				<view class="con-list">
-					{{procurementPlanInfos.freightPayer}}
-				</view>
-			</picker>
+			<view class="con-list">
+				{{procurementPlanInfos.freightPayer}}
+			</view>
 		</view>
 	</view>
 </template>

+ 649 - 0
pageD/myRelease/buyEdit.vue

@@ -0,0 +1,649 @@
+<template>
+	<view class="center">
+		<view class="c-row b-b">
+			<text class="tit">名头</text>
+			<view class="con-list">
+				<text @click="navToDetailPage">{{deptList.procurementPlanNo}}</text>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">标题</text>
+			<view class="con-list">
+				<input maxlength='16' minlength='2' placeholder="请输入标题,不超过16个字" name="input" v-model="deptList.title"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">货名</text>
+			<view class="con-list">
+				<input placeholder="请输入货名,如玉米" name="input" v-model="deptList.goodsName"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">采购量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请输入采购重量,如1000" name="input" v-model="deptList.plannedPurchaseVolume"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">最小成交量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请输入最小成交量" name="input" v-model="deptList.minimumVolume"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list"
+				>
+				<view class="picker" v-model="deptList.procurementPlanType">
+					{{typesIndex>-1?typesType[typesIndex]:'请选择类型'}}
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">价格类型</text>
+				<view class="con-list">
+					<!-- <input placeholder="请填写价格类型" name="input"  v-model="deptList.priceType"></input> -->
+					{{deptList.priceType}}
+				</view>
+		</view>
+		<view class="c-row b-b" v-if="this.typesIndex != 1">
+			<text class="tit">单价(元/吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写单价" name="input" v-model="deptList.unitPrice"></input>
+			</view>
+		</view>
+		<view class="c-row b-b" v-if="this.typesIndex == 1">
+			<text class="tit">基差(元/吨)</text>
+			<view class="con-list">
+				<input placeholder="请输入基差" name="input" v-model="deptList.basisPrice"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产地</text>
+			<view class="con-list">
+				<view @click='regionchange1'>{{region1}}</view>
+				<u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1" ></u-picker>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">收货地区</text>
+			<view class="con-list">
+				<view @click='regionchange'>{{region}}</view>
+				<u-picker :params='params' @confirm='regionpicker' mode="region" v-model="show" ></u-picker>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">买方手机号</text>
+			<view class="con-list">
+				<input placeholder="请输入买方手机号" name="input" v-model="deptList.buyerPhone"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<button @click='getcode' type="default">{{sendText}}</button>
+			<view class="con-list">
+				<input placeholder="请填写6位短信验证码" name="input" v-model="deptList.title1"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<checkbox style='transform: scale(0.8);'  :checked="checked" @click='checkedbox'></checkbox>完善更多信息(选填,可由客服人员代为完善)
+		</view>
+		<view v-if='checked' class="c-row b-b">
+			<text class="tit">水分(%)<= </text>
+					<view class="con-list">
+						<input placeholder="请填写水分占比" name="input" v-model="deptList.waterContent"></input>
+					</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">容重(g/L)<= </text>
+					<view class="con-list">
+						<input placeholder="请填写容重" name="input" v-model="deptList.bulkDensity"></input>
+					</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">热损伤(%)<= </text>
+					<view class="con-list">
+						<input placeholder="请填写热损伤占比" name="input" v-model="deptList.jiaorenli"></input>
+					</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">杂质(%)<= </text>
+					<view class="con-list">
+						<input placeholder="请填写杂质占比" name="input" v-model="deptList.impurity"></input>
+					</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">霉变粒(%)<= </text>
+					<view class="con-list">
+						<input placeholder="请填写霉变粒占比" name="input" v-model="deptList.mildewGrain"></input>
+					</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">不完整粒(%)<= </text>
+					<view class="con-list">
+						<input placeholder="请填写不完整粒占比" name="input" v-model="deptList.imperfectGrain"></input>
+					</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">蛋白(%)<= </text>
+					<view class="con-list">
+						<input placeholder="请填写蛋白占比" name="input" v-model="deptList.protein"></input>
+					</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">粒型 </text>
+			<picker @change="liChange" :value="liIndex" :range="liType" class="con-list" v-model="deptList.grain">
+				<view class="con-list">
+					{{liIndex>-1?liType[liIndex]:'请选择粒型'}}
+				</view>
+			</picker>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">品级 </text>
+			<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
+				<view class="con-list">
+					{{pinIndex>-1?pinType[pinIndex]:'请选择品级'}}
+				</view>
+			</picker>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">产出年份</text>
+			<picker @change="nianChange" :value="nianIndex" :range="nianType" class="con-list">
+				<view class="con-list">
+					{{nianIndex>-1?nianType[nianIndex]:'请选择产出年份'}}
+				</view>
+			</picker>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">包装方式</text>
+			<picker @change="baoChange" :value="baoIndex" :range="baoType" class="con-list">
+				<view class="con-list">
+					{{baoIndex>-1?baoType[baoIndex]:'请选择包装方式'}}
+				</view>
+			</picker>
+		</view>
+		<view  v-if='checked&&baoIndex==2||!checked&&baoIndex==3'  class="c-row b-b">
+			<text class="tit">袋装备注</text>
+				<view class="con-list">
+					<input placeholder="请填写袋装备注" name="input" v-model="deptList.baggingNotes"></input>
+				</view>
+		</view>
+		<view  v-if='checked'  class="c-row b-b">
+			<text class="tit">运费承担方</text>
+			<picker @change="chengChange" :value="chengIndex" :range="chengType" class="con-list">
+				<view class="con-list">
+					{{chengIndex>-1?chengType[chengIndex]:'请选择运费承担方'}}
+				</view>
+			</picker>
+		</view>
+
+		<button @click="commit()">重新发布</button>
+	</view>
+</template>
+
+<script>
+	import {
+	    mapState 
+	} from 'vuex';
+	export default {
+		data() {
+			return {
+				types: '',
+				goods:{},
+				typesType: ["现货", "期货"],
+				typesIndex: 0,
+				deptList: {
+					priceType: "定价采购",
+					procurementPlanType:"现货",
+					grain:"不限",
+					grainKey:1,
+					grade:"不限",
+					gradeKey:1,
+					outputYear:"2020",
+					packingType:"不限",
+					packingTypeKey:0,
+					freightPayer:"",
+				},
+				params:{
+					province: true,
+					city: true,
+					area: true,
+				},
+				params1:{
+					province: true,
+					city: true,
+				},
+				checked:true,
+				insertProcurementPlanInfo: {},
+				liIndex: 0,
+				liType: ['不限','塔粮', '筛粮', '中粒', '大粒'],
+				pinIndex: 0,
+				pinType: ['不限', '一等品', '二等品', '三等品', '等外'],
+				nianIndex: 3,
+				nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
+					'2011'
+				],
+				id:0,
+				sendText:'获取验证码',
+				show:false,
+				show1:false,
+				region:'请选择收货地区',
+				region1:'请选择产地',
+				baoIndex: 0,
+				baoType: ['不限', '散装', '大袋', '小袋'],
+				chengIndex: -1,
+				chengType: ['可议', '买方承担', '卖方承担']
+			}
+		},
+		computed: {
+			...mapState(['hasLogin','userInfo'])
+		},
+		onLoad(options){
+			this.id=options.id
+			if(options.customerName){
+				this.deptList.procurementPlanNo=options.customerName
+			}
+			
+		},
+		onShow(){
+			this.getList()
+			var that=this
+			this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo',{commonId:this.userInfo.id}).then(res => {
+				if(res.data.code==200){
+					if(res.data.data.customerTypeFlag==1){
+						that.$set(this.deptList,'procurementPlanNo',res.data.data.customerName)
+					}else{
+						that.$set(this.deptList,'procurementPlanNo',res.data.data.compName)
+					}
+					this.goods=res.data.data
+				}
+				uni.hideLoading()
+			})
+		},
+		methods: {
+			getList(){
+				this.$api.doRequest('get','/procurementPlanInfo/getProcurementPlan',{id:this.id}).then(res => {
+					if(res.data.code==200){
+						this.deptList = res.data.data
+						this.region1=this.deptList.outputPrivate+'-'+this.deptList.outputCity
+						this.region=this.deptList.receivePrivate+'-'+this.deptList.receiveCity+'-'+this.deptList.receiveArea
+						if(this.deptList.procurementPlanTypeKey==2){
+							this.typesIndex=0
+						}else if(this.deptList.procurementPlanTypeKey==1){
+							this.typesIndex=1
+						}
+						if(this.deptList.grainKey==1){
+							this.liIndex=0
+						}else if(this.deptList.grainKey==2){
+							this.liIndex=1
+						}else if(this.deptList.grainKey==3){
+							this.liIndex=2
+						}else if(this.deptList.grainKey==4){
+							this.liIndex=3
+						}else if(this.deptList.grainKey==5){
+							this.liIndex=4
+						}
+						this.baoIndex=this.deptList.packingTypeKey
+						this.pinIndex=this.deptList.gradeKey
+						if(this.deptList.freightPayerKey==1){
+							this.chengIndex=0
+						}else if(this.deptList.freightPayerKey==2){
+							this.chengIndex=1
+						}else if(this.deptList.freightPayerKey==3){
+							this.chengIndex=2
+						}
+					}
+				})
+				.catch(res => {
+					uni.showToast({
+						title: res.errmsg,
+						icon:'none',
+						duration: 2000
+					})
+				});
+			},
+			getcode(){
+				var that = this
+				if(/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.deptList.buyerPhone)){
+					this.$api.doRequest('get','/commonUser/sendVerifyCode',{phone:this.deptList.buyerPhone}).then(res => {
+						if(res.data.code==200){
+							that.sendDisabled = true
+							let sec = 60
+							let interval = setInterval(() => {
+								sec--;
+								that.sendText = sec + 's后重发'
+								if (sec <= 0) {
+									that.sendDisabled = false
+									that.sendText = "获取验证码"
+									clearInterval(interval)
+								}
+							}, 1000)
+						}else{
+							uni.showToast({
+								title: res.data.message,
+								icon:'none',
+								duration: 2000
+							})
+						}
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.data.message,
+							icon:'none',
+							duration: 2000
+						})
+					});
+				}else{
+					uni.showToast({
+						title: '请输入正确的手机号',
+						icon:'none',
+						duration: 2000
+					})
+				}
+				
+			},
+			regionpicker(e){
+				this.deptList.receivePrivate=e.province.label
+				this.deptList.receiveCity=e.city.label
+				this.deptList.receiveArea=e.area.label
+				this.region=e.province.label+'-'+e.city.label+'-'+e.area.label
+			},
+			regionchange(){
+				this.show=true
+			},
+			regionpicker1(e){
+				this.deptList.outputPrivate=e.province.label
+				this.deptList.outputCity=e.city.label
+				this.region1=e.province.label+'-'+e.city.label
+			},
+			regionchange1(){
+				this.show1=true
+			},
+			checkedbox(e){
+				this.checked=!this.checked
+			},
+			typeChange(e) {
+				this.typesIndex = e.detail.value
+				if(e.detail.value==0){
+					this.deptList.priceType = '定价采购'
+					this.deptList.procurementPlanTypeKey =2
+				}else{
+					this.deptList.priceType = '期货盘面价+基差'
+					this.deptList.procurementPlanTypeKey =1
+				}
+				this.deptList.procurementPlanType = this.typesType[this.typesIndex];
+			},
+			navToDetailPage() {
+				// if (index == 1) {
+					uni.navigateTo({
+						url: `/pageD/myRelease/Identity_switching?id=`+this.id
+					})
+					},
+			commit() {
+				this.insertProcurementPlanInfo = this.deptList
+				// if (!this.deptList.goodsName) {
+				// 	this.$api.msg('货名1不能为空')
+				// 	return
+				// }
+				if (!this.deptList.title) {
+					this.$api.msg('标题不能为空')
+					return
+				}
+				if (this.deptList.title.length>16||this.deptList.title.length<2) {
+					this.$api.msg('标题输入错误')
+					return
+				}
+				if (!this.deptList.goodsName) {
+					this.$api.msg('货名不能为空')
+					return
+				}
+				if (this.deptList.goodsName.length>6||this.deptList.goodsName.length<1) {
+					this.$api.msg('货名输入错误')
+					return
+				}
+				if (!this.insertProcurementPlanInfo.plannedPurchaseVolume) {
+					this.$api.msg('采购量不能为空')
+					return
+				}
+				if (this.deptList.plannedPurchaseVolume>100000||this.deptList.plannedPurchaseVolume<1) {
+					this.$api.msg('采购量输入错误')
+					return
+				}
+				if (this.deptList.plannedPurchaseVolume.indexOf('.')!=-1) {
+					if(this.deptList.plannedPurchaseVolume.split('.')[1].length>2){
+						this.$api.msg('采购量输入错误')
+						return
+					}
+				}
+				if (!this.insertProcurementPlanInfo.minimumVolume) {
+					this.$api.msg('最小成交量不能为空')
+					return
+				}
+				if (this.insertProcurementPlanInfo.minimumVolume>100000||this.insertProcurementPlanInfo.minimumVolume<1) {
+					this.$api.msg('最小成交量输入错误')
+					return
+				}
+				if (this.insertProcurementPlanInfo.minimumVolume.indexOf('.')!=-1) {
+					if(this.insertProcurementPlanInfo.minimumVolume.split('.')[1].length>2){
+						this.$api.msg('最小成交量输入错误')
+						return
+					}
+				}
+				if (!this.insertProcurementPlanInfo.procurementPlanType) {
+					this.$api.msg('类型不能为空')
+					return
+				}
+				if (!this.insertProcurementPlanInfo.priceType) {
+					this.$api.msg('价格类型不能为空')
+					return
+				}
+				if(this.insertProcurementPlanInfo.procurementPlanType == '现货'){
+					if (!this.insertProcurementPlanInfo.unitPrice) {
+						this.$api.msg('单价不能为空')
+						return
+					}
+					if (this.insertProcurementPlanInfo.unitPrice>100000||this.insertProcurementPlanInfo.unitPrice<1) {
+						this.$api.msg('单价输入错误')
+						return
+					}
+					if (this.insertProcurementPlanInfo.unitPrice.indexOf('.')!=-1) {
+						if(this.insertProcurementPlanInfo.unitPrice.split('.')[1].length>2){
+							this.$api.msg('单价输入错误')
+							return
+						}
+					}
+				}else if(this.insertProcurementPlanInfo.procurementPlanType == '期货'){
+					if (!this.insertProcurementPlanInfo.basisPrice) {
+						this.$api.msg('基差不能为空')
+						return
+					}
+					if (this.insertProcurementPlanInfo.basisPrice>10000||this.insertProcurementPlanInfo.basisPrice<1) {
+						this.$api.msg('基差输入错误')
+						return
+					}
+					if (this.insertProcurementPlanInfo.basisPrice.indexOf('.')!=-1) {
+						if(this.insertProcurementPlanInfo.basisPrice.split('.')[1].length>2){
+							this.$api.msg('基差输入错误')
+							return
+						}
+					}
+				}
+			
+				if (!this.insertProcurementPlanInfo.buyerPhone) {
+					this.$api.msg('买方手机号不能为空')
+					return
+				}
+				if (this.insertProcurementPlanInfo.waterContent&&this.insertProcurementPlanInfo.waterContent<1||
+				this.insertProcurementPlanInfo.waterContent&&this.insertProcurementPlanInfo.waterContent>40) {
+					this.$api.msg('水分输入错误')
+					return
+				}
+				if (this.insertProcurementPlanInfo.waterContent&&this.insertProcurementPlanInfo.waterContent.indexOf('.')!=-1) {
+					if(this.insertProcurementPlanInfo.waterContent.split('.')[1].length>2){
+						this.$api.msg('水分输入错误')
+						return
+					}
+				}
+				if (this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity<500||
+				this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity>1000) {
+					this.$api.msg('容重输入错误')
+					return
+				}
+				if (this.insertProcurementPlanInfo.jiaorenli&&this.insertProcurementPlanInfo.jiaorenli<1||
+				this.insertProcurementPlanInfo.jiaorenli&&this.insertProcurementPlanInfo.jiaorenli>40) {
+					this.$api.msg('热损伤输入错误')
+					return
+				}
+				if (this.insertProcurementPlanInfo.jiaorenli&&this.insertProcurementPlanInfo.jiaorenli.indexOf('.')!=-1) {
+					if(this.insertProcurementPlanInfo.jiaorenli.split('.')[1].length>2){
+						this.$api.msg('热损伤输入错误')
+						return
+					}
+				}
+				if (this.insertProcurementPlanInfo.impurity&&this.insertProcurementPlanInfo.impurity<1||
+				this.insertProcurementPlanInfo.impurity&&this.insertProcurementPlanInfo.impurity>40) {
+					this.$api.msg('杂质输入错误')
+					return
+				}
+				if (this.insertProcurementPlanInfo.impurity&&this.insertProcurementPlanInfo.impurity.indexOf('.')!=-1) {
+					if(this.insertProcurementPlanInfo.impurity.split('.')[1].length>2){
+						this.$api.msg('杂质输入错误')
+						return
+					}
+				}
+				if (this.insertProcurementPlanInfo.mildewGrain&&this.insertProcurementPlanInfo.mildewGrain<1||
+				this.insertProcurementPlanInfo.mildewGrain&&this.insertProcurementPlanInfo.mildewGrain>40) {
+					this.$api.msg('霉变粒输入错误')
+					return
+				}
+				if (this.insertProcurementPlanInfo.mildewGrain&&this.insertProcurementPlanInfo.mildewGrain.indexOf('.')!=-1) {
+					if(this.insertProcurementPlanInfo.mildewGrain.split('.')[1].length>2){
+						this.$api.msg('霉变粒输入错误')
+						return
+					}
+				}
+				if (this.insertProcurementPlanInfo.imperfectGrain&&this.insertProcurementPlanInfo.imperfectGrain<1||
+				this.insertProcurementPlanInfo.imperfectGrain&&this.insertProcurementPlanInfo.imperfectGrain>40) {
+					this.$api.msg('不完整粒输入错误')
+					return
+				}
+				if (this.insertProcurementPlanInfo.imperfectGrain&&this.insertProcurementPlanInfo.imperfectGrain.indexOf('.')!=-1) {
+					if(this.insertProcurementPlanInfo.imperfectGrain.split('.')[1].length>2){
+						this.$api.msg('不完整粒输入错误')
+						return
+					}
+				}
+				if (this.deptList.protein&&this.deptList.protein<1||
+				this.deptList.protein&&this.deptList.protein>80) {
+					this.$api.msg('蛋白输入错误')
+					return
+				}
+				if (this.deptList.protein&&this.deptList.protein.indexOf('.')!=-1) {
+					if(this.deptList.protein.split('.')[1].length>2){
+						this.$api.msg('蛋白输入错误')
+						return
+					}
+				}
+				this.insertProcurementPlanInfo.basisPrice=-this.insertProcurementPlanInfo.basisPrice
+		         this.insertProcurementPlanInfo.commonId = this.userInfo.id
+				 this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
+				 uni.showModal({
+				 	content: '重新发布后交易信息将进入待审核状态,是否确定重新发布?',
+				 	success: (res) => {
+						if(res.confirm) {  
+				this.$api.doRequest('post', '/procurementPlanInfo/api/editProcurementPlan', this
+						.insertProcurementPlanInfo).then(res => {
+							if(res.data.code==200){
+								uni.showToast({
+									title: "发布成功",
+									icon: 'none',
+								})
+								setTimeout(() => {
+									uni.navigateBack({})
+								}, 1000)
+							}else{
+								uni.showToast({
+									title: res.data.message,
+									icon: 'none',
+									duration: 2000
+								})
+							}
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					});
+					}
+					}
+				})
+			},
+			liChange(e) {
+				this.liIndex = e.detail.value
+				this.litypes = this.liType[this.liIndex];
+				this.deptList.grainKey = e.detail.value+1
+				this.deptList.grain = this.liType[this.liIndex]
+			},
+			pinChange(e) {
+				this.pinIndex = e.detail.value
+				this.pintypes = this.pinType[this.pinIndex];
+				this.deptList.gradeKey = e.detail.value+1
+				this.deptList.grade = this.pinType[this.pinIndex]
+			},
+			nianChange(e) {
+				this.nianIndex = e.detail.value
+				this.niantypes = this.nianType[this.nianIndex];
+				this.deptList.outputYear = this.baoType[this.baoIndex]
+			},
+
+			baoChange(e) {
+				this.baoIndex = e.detail.value
+				this.baotypes = this.baoType[this.baoIndex];
+				this.deptList.packingTypeKey = e.detail.value
+				this.deptList.packingType = this.chengType[this.chengIndex];
+			},
+			chengChange(e) {
+				this.chengIndex = e.detail.value
+				this.chengtypes = this.chengType[this.chengIndex];
+				this.deptList.freightPayerKey = e.detail.value+1
+					this.deptList.freightPayer = this.chengType[this.chengIndex];
+			}
+		}
+	}
+</script>
+
+<style>
+	.center {
+		padding: 10px 20px;
+	}
+
+	.c-row {
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-align: center;
+		-webkit-align-items: center;
+		align-items: center;
+		padding: 20rpx 30rpx;
+		position: relative;
+	}
+
+	.con-list {
+		-webkit-box-flex: 1;
+		-webkit-flex: 1;
+		flex: 1;
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-orient: vertical;
+		-webkit-box-direction: normal;
+		-webkit-flex-direction: column;
+		flex-direction: column;
+		color: #303133;
+		line-height: 40rpx;
+		text-align: right;
+		padding-right: 20rpx;
+		font-size: 14px;
+	}
+</style>

+ 107 - 39
pageD/myRelease/buyGrain.vue

@@ -58,6 +58,13 @@
 				<input placeholder="请输入基差" name="input" v-model="deptList.basisPrice"></input>
 			</view>
 		</view>
+		<view class="c-row b-b">
+			<text class="tit">产地</text>
+			<view class="con-list">
+				<view @click='regionchange1'>{{region1}}</view>
+				<u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1" ></u-picker>
+			</view>
+		</view>
 		<view class="c-row b-b">
 			<text class="tit">收货地区</text>
 			<view class="con-list">
@@ -72,7 +79,7 @@
 			</view>
 		</view>
 		<view class="c-row b-b">
-			<button type="default">获取验证码</button>
+			<button @click='getcode' type="default">{{sendText}}</button>
 			<view class="con-list">
 				<input placeholder="请填写6位短信验证码" name="input" v-model="deptList.title1"></input>
 			</view>
@@ -80,49 +87,49 @@
 		<view class="c-row b-b">
 			<checkbox style='transform: scale(0.8);'  :checked="checked" @click='checkedbox'></checkbox>完善更多信息(选填,可由客服人员代为完善)
 		</view>
-		<view v-if='!checked' class="c-row b-b">
+		<view v-if='checked' class="c-row b-b">
 			<text class="tit">水分(%)<= </text>
 					<view class="con-list">
 						<input placeholder="请填写水分占比" name="input" v-model="deptList.waterContent"></input>
 					</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">容重(g/L)<= </text>
 					<view class="con-list">
 						<input placeholder="请填写容重" name="input" v-model="deptList.bulkDensity"></input>
 					</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">热损伤(%)<= </text>
 					<view class="con-list">
 						<input placeholder="请填写热损伤占比" name="input" v-model="deptList.jiaorenli"></input>
 					</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">杂质(%)<= </text>
 					<view class="con-list">
 						<input placeholder="请填写杂质占比" name="input" v-model="deptList.impurity"></input>
 					</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">霉变粒(%)<= </text>
 					<view class="con-list">
 						<input placeholder="请填写霉变粒占比" name="input" v-model="deptList.mildewGrain"></input>
 					</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">不完整粒(%)<= </text>
 					<view class="con-list">
 						<input placeholder="请填写不完整粒占比" name="input" v-model="deptList.imperfectGrain"></input>
 					</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">蛋白(%)<= </text>
 					<view class="con-list">
 						<input placeholder="请填写蛋白占比" name="input" v-model="deptList.protein"></input>
 					</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">粒型 </text>
 			<picker @change="liChange" :value="liIndex" :range="liType" class="con-list" v-model="deptList.grain">
 				<view class="con-list">
@@ -130,7 +137,7 @@
 				</view>
 			</picker>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">品级 </text>
 			<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
 				<view class="con-list">
@@ -138,14 +145,7 @@
 				</view>
 			</picker>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
-			<text class="tit">产地</text>
-			<view class="con-list">
-				<view @click='regionchange1'>{{region1}}</view>
-				<u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1" ></u-picker>
-			</view>
-		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">产出年份</text>
 			<picker @change="nianChange" :value="nianIndex" :range="nianType" class="con-list">
 				<view class="con-list">
@@ -153,7 +153,7 @@
 				</view>
 			</picker>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">包装方式</text>
 			<picker @change="baoChange" :value="baoIndex" :range="baoType" class="con-list">
 				<view class="con-list">
@@ -161,13 +161,13 @@
 				</view>
 			</picker>
 		</view>
-		<view  v-if='!checked&&baoIndex==2||!checked&&baoIndex==3'  class="c-row b-b">
+		<view  v-if='checked&&baoIndex==2||!checked&&baoIndex==3'  class="c-row b-b">
 			<text class="tit">袋装备注</text>
 				<view class="con-list">
 					<input placeholder="请填写袋装备注" name="input" v-model="deptList.baggingNotes"></input>
 				</view>
 		</view>
-		<view  v-if='!checked'  class="c-row b-b">
+		<view  v-if='checked'  class="c-row b-b">
 			<text class="tit">运费承担方</text>
 			<picker @change="chengChange" :value="chengIndex" :range="chengType" class="con-list">
 				<view class="con-list">
@@ -194,10 +194,13 @@
 				deptList: {
 					priceType: "定价采购",
 					procurementPlanType:"现货",
-					grain:"塔粮",
-					grade:"不限(默认)",
+					grain:"不限",
+					grainKey:1,
+					grade:"不限",
+					gradeKey:1,
 					outputYear:"2020",
-					packingType:"不限(默认)",
+					packingType:"不限",
+					packingTypeKey:0,
 					freightPayer:"",
 				},
 				params:{
@@ -212,19 +215,20 @@
 				checked:true,
 				insertProcurementPlanInfo: {},
 				liIndex: 0,
-				liType: ['塔粮', '筛粮', '中粒', '大粒'],
+				liType: ['不限','塔粮', '筛粮', '中粒', '大粒'],
 				pinIndex: 0,
-				pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
+				pinType: ['不限', '一等品', '二等品', '三等品', '等外'],
 				nianIndex: 3,
 				nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
 					'2011'
 				],
+				sendText:'获取验证码',
 				show:false,
 				show1:false,
 				region:'请选择收货地区',
 				region1:'请选择产地',
 				baoIndex: 0,
-				baoType: ['不限(默认)', '散装', '大袋', '小袋'],
+				baoType: ['不限', '散装', '大袋', '小袋'],
 				chengIndex: -1,
 				chengType: ['可议', '买方承担', '卖方承担']
 			}
@@ -252,6 +256,46 @@
 			})
 		},
 		methods: {
+			getcode(){
+				var that = this
+				if(/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.deptList.buyerPhone)){
+					this.$api.doRequest('get','/commonUser/sendVerifyCode',{phone:this.deptList.buyerPhone}).then(res => {
+						if(res.data.code==200){
+							that.sendDisabled = true
+							let sec = 60
+							let interval = setInterval(() => {
+								sec--;
+								that.sendText = sec + 's后重发'
+								if (sec <= 0) {
+									that.sendDisabled = false
+									that.sendText = "获取验证码"
+									clearInterval(interval)
+								}
+							}, 1000)
+						}else{
+							uni.showToast({
+								title: res.data.message,
+								icon:'none',
+								duration: 2000
+							})
+						}
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.data.message,
+							icon:'none',
+							duration: 2000
+						})
+					});
+				}else{
+					uni.showToast({
+						title: '请输入正确的手机号',
+						icon:'none',
+						duration: 2000
+					})
+				}
+				
+			},
 			regionpicker(e){
 				this.deptList.receivePrivate=e.province.label
 				this.deptList.receiveCity=e.city.label
@@ -274,14 +318,14 @@
 			},
 			typeChange(e) {
 				this.typesIndex = e.detail.value
-				this.types = this.typesType[this.typesIndex];
-				this.deptList.procurementPlanType = this.typesType[this.typesIndex];
-				if (this.typesIndex == 0) {
+				if(e.detail.value==0){
 					this.deptList.priceType = '定价采购'
-				} else {
+					this.deptList.procurementPlanTypeKey =2
+				}else{
 					this.deptList.priceType = '期货盘面价+基差'
+					this.deptList.procurementPlanTypeKey =1
 				}
-
+				this.deptList.procurementPlanType = this.typesType[this.typesIndex];
 			},
 			navToDetailPage() {
 				// if (index == 1) {
@@ -364,7 +408,7 @@
 					}
 				}else if(this.insertProcurementPlanInfo.procurementPlanType == '期货'){
 					if (!this.insertProcurementPlanInfo.basisPrice) {
-						this.$api.msg('基差(元/吨)不能为空')
+						this.$api.msg('基差不能为空')
 						return
 					}
 					if (this.insertProcurementPlanInfo.basisPrice>10000||this.insertProcurementPlanInfo.basisPrice<1) {
@@ -443,13 +487,13 @@
 						return
 					}
 				}
-				if (this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity<1||
-				this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity>80) {
+				if (this.deptList.protein&&this.deptList.protein<1||
+				this.deptList.protein&&this.deptList.protein>80) {
 					this.$api.msg('蛋白输入错误')
 					return
 				}
-				if (this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity.indexOf('.')!=-1) {
-					if(this.insertProcurementPlanInfo.bulkDensity.split('.')[1].length>2){
+				if (this.deptList.protein&&this.deptList.protein.indexOf('.')!=-1) {
+					if(this.deptList.protein.split('.')[1].length>2){
 						this.$api.msg('蛋白输入错误')
 						return
 					}
@@ -457,10 +501,27 @@
 				this.insertProcurementPlanInfo.basisPrice=-this.insertProcurementPlanInfo.basisPrice
 		         this.insertProcurementPlanInfo.commonId = this.userInfo.id
 				 this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
+				 uni.showModal({
+				 	content: '确定发布交易信息?',
+				 	success: (res) => {
+						if(res.confirm) {  
 				this.$api.doRequest('post', '/procurementPlanInfo/api/insertProcurementPlanInfo', this
 						.insertProcurementPlanInfo).then(res => {
-						console.log("添加成功")
-						this.procurementPlanInfos = res.data.data
+							if(res.data.code==200){
+								uni.showToast({
+									title: "发布成功",
+									icon: 'none',
+								})
+								setTimeout(() => {
+									uni.navigateBack({})
+								}, 2000)
+							}else{
+								uni.showToast({
+									title: res.data.message,
+									icon: 'none',
+									duration: 2000
+								})
+							}
 					})
 					.catch(res => {
 						uni.showToast({
@@ -469,15 +530,20 @@
 							duration: 2000
 						})
 					});
+					}
+					}
+				})
 			},
 			liChange(e) {
 				this.liIndex = e.detail.value
 				this.litypes = this.liType[this.liIndex];
+				this.deptList.grainKey = e.detail.value+1
 				this.deptList.grain = this.liType[this.liIndex]
 			},
 			pinChange(e) {
 				this.pinIndex = e.detail.value
 				this.pintypes = this.pinType[this.pinIndex];
+				this.deptList.gradeKey = e.detail.value+1
 				this.deptList.grade = this.pinType[this.pinIndex]
 			},
 			nianChange(e) {
@@ -489,11 +555,13 @@
 			baoChange(e) {
 				this.baoIndex = e.detail.value
 				this.baotypes = this.baoType[this.baoIndex];
+				this.deptList.packingTypeKey = e.detail.value
 				this.deptList.packingType = this.chengType[this.chengIndex];
 			},
 			chengChange(e) {
 				this.chengIndex = e.detail.value
 				this.chengtypes = this.chengType[this.chengIndex];
+				this.deptList.freightPayerKey = e.detail.value+1
 					this.deptList.freightPayer = this.chengType[this.chengIndex];
 			}
 		}

+ 9 - 0
pages.json

@@ -450,6 +450,15 @@
 		        "enablePullDownRefresh": false
 		    }
 		    
+		},
+		{
+		    "path" : "pageD/myRelease/buyEdit",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "买粮",
+		        "enablePullDownRefresh": false
+		    }
+		    
 		}
 
 		

+ 11 - 5
pages/release/release.vue

@@ -8,10 +8,13 @@
 				<view class="labels">{{item.unitPrice}}</view>
 				<view class="title">{{item.receivePrivate}}{{item.receiveCity}}{{item.receiveArea}}</view>
 				</view>
-				<view class='cu-tag radius line-pink'>编辑</view>
-				<view class='cu-tag radius line-pink' @click="switch1(item)">显示/隐藏</view>
+				<view @click='edit(item)' v-if='item.status!="待审核"' class='cu-tag radius line-pink'>编辑</view>
+				<view class='cu-tag radius line-pink' @click="switch1(item)">隐藏</view>
+				<view class='cu-tag radius line-pink' @click="switch1(item)">显示</view>
 			    <view class='cu-tag radius line-pink' @click="deleteRelease(item)">删除</view>
-				<view class='cu-tag radius line-pink put'>{{item.status}}</view>
+				<view v-if='item.status=="已驳回"' class='cu-tag radius line-pink put'>未通过</view>
+				<view v-if='item.status=="待审核"' class='cu-tag radius line-pink put'>审核中</view>
+				<view v-if='item.status=="已认证"' class='cu-tag radius line-pink put'>已通过</view>
 			</view>
 		</view>
 		<view class="page-bottom">
@@ -80,8 +83,11 @@
 					})
 				// }
 			},
-			
-			
+			edit(item){
+				uni.navigateTo({
+					url: `/pageD/myRelease/buyEdit?id=${item.id}`
+				})
+			},
 			deleteRelease(item){
 				// if (!this.hasLogin) {
 					uni.showModal({

部分文件因文件數量過多而無法顯示