gjy преди 3 години
родител
ревизия
c7729e8d80

+ 14 - 5
.hbuilderx/launch.json

@@ -2,10 +2,19 @@
   // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
     "version": "0.0",
     "configurations": [{
-            "type": "uniCloud",
-            "default": {
-                "launchtype": "remote"
-            }
-        }
+     	"app-plus" : 
+     	{
+     		"launchtype" : "remote"
+     	},
+     	"default" : 
+     	{
+     		"launchtype" : "remote"
+     	},
+     	"h5" : 
+     	{
+     		"launchtype" : "remote"
+     	},
+     	"type" : "uniCloud"
+     }
     ]
 }

+ 3 - 0
pageA/product/business_buy.vue

@@ -311,6 +311,9 @@
 									if(res.data.code==200){
 										that.$api.doRequest('post','/purchaseOrder/api/submitPurchaseOrder', {id:res.data.data}).then(res1 => {
 											if(res1.data.code==200){
+												uni.navigateTo({
+													url: `/pages/business/business`
+												})
 												uni.showToast({
 													title: '提交成功,等待买方回复',
 													icon: 'none',

+ 8 - 5
pageA/product/business_sale.vue

@@ -55,7 +55,7 @@
 			<view   class="title">销售单价(元/吨)</view>
 			<view class="con-list">
 				<view class="picker">
-					<text>{{purchaseOrder.unitPrice}}</text>
+					<text>{{purchaseOrder.salePrice}}</text>
 				</view>
 				</view>
 		</view>
@@ -140,7 +140,7 @@
 						memo:'',
 						buyer:'',
 						buyerPhone:'',
-						unitPrice:0,
+						salePrice:0,
 						address:'',
 						count:0,
 						province:'',
@@ -180,7 +180,7 @@
 					memo:'',
 					buyer:'',
 					buyerPhone:'',
-					unitPrice:0,
+					salePrice:0,
 					address:'',
 					count:0,
 					id:0,
@@ -222,7 +222,7 @@
 				this.purchaseOrder.buyer = options.buyer
 				this.purchaseOrder.customer = options.customerName
 				this.purchaseOrder.basis = options.basisPrice
-				this.purchaseOrder.unitPrice = options.unitPrice
+				this.purchaseOrder.salePrice = options.salePrice
 				this.purchaseOrder.receiveWarehouse = options.receiveWarehouse
 				this.purchaseOrder.settlementPrice = options.basisPrice
 				this.purchaseOrder.salePlanType = options.salePlanType
@@ -255,7 +255,7 @@
 						url: `/pageA/product/Identity_switching?goodsName=${this.purchaseOrder.goodsName}
 						&receivePrivate=${this.purchaseOrder.receivePrivate}&receiveCity=${this.purchaseOrder.receiveCity}
 						&receiveArea=${this.purchaseOrder.receiveArea}&minimumVolume=${this.purchaseOrder.minimumVolume}
-						&buyer=${this.purchaseOrder.buyer}&basisPrice=${this.purchaseOrder.basis}&unitPrice=${this.purchaseOrder.unitPrice}
+						&buyer=${this.purchaseOrder.buyer}&basisPrice=${this.purchaseOrder.basis}&salePrice=${this.purchaseOrder.salePrice}
 						&receiveWarehouse=${this.purchaseOrder.receiveWarehouse}&salePlanType=${this.purchaseOrder.salePlanType}
 						&salePlanNo=${this.purchaseOrder.salePlan}`
 					})
@@ -323,6 +323,9 @@
 											icon: 'none',
 											duration: 2000
 										})
+										uni.navigateTo({
+											url: `/pages/business/business`
+										})
 										// uni.navigateBack();
 									}else{
 										uni.showToast({

+ 21 - 3
pageB/contract/contract.vue

@@ -228,9 +228,27 @@
 				}
 			},
 			commit(item) {
-				uni.navigateTo({
-					url: `/pageB/contract/enclosures?id=${item.id}`
-				})
+				console.log(item)
+				var list = item.addressUrl.toString().split(',')
+				if(list.length > 0){
+					uni.downloadFile({
+					  url: list[0],
+					  success: function (res) {
+					    var filePath = res.tempFilePath;
+					    uni.openDocument({
+					      filePath: filePath,
+					      success: function (res) {
+							  uni.hideLoading()
+					        console.log('打开文档成功');
+					      }
+					    });
+					  },
+					})
+				}
+				
+				// uni.navigateTo({
+				// 	url: `/pageB/contract/enclosures?addressUrl=${item.addressUrl}`
+				// })
 			},
 			commit1(item) {
 				uni.navigateTo({

+ 37 - 2
pageB/contract/enclosures.vue

@@ -1,12 +1,47 @@
 <template>
 	<view class="center">
-		<view class="">
-			
+		<view class="c-list">
+			<view class="xinxiup">
+				<view class="c-row b-b">
+					<text class="tit">合同编号:</text>
+					<view class="con-list">
+						<text>{{goods.contractNo}}({{goods.goodsName}})</text>
+					</view>
+				</view>
+				<view class="c-row b-b">
+					<text class="tit">买方名称:</text>
+					<view class="con-list">
+						<text>{{goods.contracter}}</text>
+					</view>
+				</view>
+				<view class="c-row">
+					<text class="tit">累计收发:</text>
+					<view class="con-list">
+						<text style="font-size: 18px">{{sendout}}<text class="hair">发</text>{{collect}}<text
+								class="collect">收</text></text>
+						<!-- <text>{{goods.level}}收</text> -->
+					</view>
+				</view>
+			</view>
 		</view>
 	</view>
 </template>
 
 <script>
+	export default {
+			name: "trust",
+			data() {
+				return {
+					list:[]
+				};
+			},
+			onLoad(addressUrl) {
+				if(addressUrl){
+					this.list = addressUrl.toString().split(',')
+					console.log(this.list)
+				}
+			},
+		}
 </script>
 
 <style>

+ 0 - 3
pageD/identity/companyIdentityLook.vue

@@ -150,9 +150,6 @@
 		methods: {
 			getList(ids) {		
 					this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter, 'application/json;charset=UTF-8').then(res => {
-							console.log("成功连接")
-							// this.procurementPlanInfos = res.data.data
-				
 							this.deptList = res.data.data
 					
 							if(this.deptList.businessLicenseAddressUrl != ""){

+ 3 - 3
pageD/myRelease/buyEdit.vue

@@ -201,10 +201,10 @@
 					freightPayerKey:-1,
 					priceType: "定价采购",
 					procurementPlanType:"现货",
-					grain:"不限",
-					grade:"不限",
+					grain:"塔粮",
+					grade:"一等品",
 					outputYear:"2020",
-					packingType:"不限",
+					packingType:"散装",
 					freightPayer:"",
 				},
 				params:{

+ 6 - 32
pageD/myRelease/buyGrain.vue

@@ -10,8 +10,7 @@
 			<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>
+					<input maxlength='16' minlength='2' placeholder="请输入标题,不超过16个字" name="input" v-model="deptList.title"></input>
 				</view>
 			</view>
 			<view class="c-row b-b">
@@ -71,6 +70,8 @@
 					<input placeholder="请输入买方手机号" @input='phoneinput' name="input" v-model="deptList.buyerPhone"></input>
 				</view>
 			</view>
+
+			<!-- <view style='width:100%;position:relative;padding:10px;' class="flex"> -->
 			<!-- <view class="c-row ">
 				<text class="validate">获取验证码</text>
 				<view class="con-list">
@@ -79,6 +80,7 @@
 			</view> -->
 			
 			<view class="c-row b-b">
+
 				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
 					class='getcode'>{{sendText}}</button>
 					<view class="con-list">
@@ -211,9 +213,9 @@
 					priceType: "定价采购",
 					procurementPlanType: "现货",
 					grain: "塔粮",
-					grade: "不限(默认)",
+					grade: "",
 					outputYear: "2020",
-					packingType: "不限(默认)",
+					packingType: "",
 					freightPayer: "",
 				},
 				params: {
@@ -308,33 +310,6 @@
 				}
 				this.deptList.outputYear = e.year
 			},
-			// async amendprice() {
-			// 	var that = this
-			// 	this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
-			// 			phone: this.deptList.buyerPhone,
-			// 			verifyCode: this.verifyCode
-			// 		}).then(res => {
-			// 			if (res.data.code == 200) {	
-			// 			} else {
-			// 				that.verification = false
-			// 				uni.showToast({
-			// 					title: res.data.message,
-			// 					icon: 'none',
-			// 					duration: 2000
-			// 				})
-			// 				return false
-			// 			}
-			// 		})
-			// 		.catch(res => {
-			// 			that.verification = false
-			// 			uni.showToast({
-			// 				title: res.data.message,
-			// 				icon: 'none',
-			// 				duration: 2000
-			// 			})
-			// 			return false
-			// 		});
-			// },
 			getcode() {
 				var that = this
 				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.deptList.buyerPhone)) {
@@ -503,7 +478,6 @@
 						}
 					}
 				}
-				
 				if (!this.region2) {
 					this.$api.msg('收货地区不能为空')
 					return

+ 3 - 3
pageD/myRelease/sellDetails.vue

@@ -179,9 +179,9 @@
 					priceType: "定价采购",
 					procurementPlanType: "现货",
 					grain: "塔粮",
-					grade: "不限(默认)",
+					grade: "一等品",
 					outputYear: "2020",
-					packingType: "不限(默认)",
+					packingType: "散装",
 					freightPayer: "",
 				},
 				params: {
@@ -208,7 +208,7 @@
 				region: '请选择收货地区',
 				region1: '请选择产地',
 				baoIndex: 0,
-				baoType: [ '散装', '大袋', '小袋'],
+				baoType: ['散装', '大袋', '小袋'],
 				chengIndex: -1,
 				chengType: ['可议', '买方承担', '卖方承担']
 			}

+ 2 - 2
pageD/myRelease/sellEdit.vue

@@ -205,9 +205,9 @@
 					priceType: "定价采购",
 					procurementPlanType: "现货",
 					grain: "塔粮",
-					grade: "不限(默认)",
+					grade: "一等品",
 					outputYear: "2020",
-					packingType: "不限(默认)",
+					packingType: "可议",
 					freightPayer: "",
 				},
 				params: {

+ 2 - 2
pageD/myRelease/sellGrain.vue

@@ -209,8 +209,8 @@
 					freightPayerKey: -1,
 					priceType: "定价销售",
 					grain: "塔粮",
-					grade: "不限(默认)",
-					packingType: "不限(默认)",
+					grade: "一等品",
+					packingType: "散装",
 					freightPayer: "",
 				},
 				params: {

+ 1 - 1
pageD/warehousings/ex_warehouse.vue

@@ -227,7 +227,7 @@
 				},
 				pinIndex: 0,
 				pinTypes: '',
-				pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
+				pinType: ['一等品', '二等品', '三等品', '等外'],
 				ruIndex: 0,
 				rutypes: '',
 				ruType: ['销售出库', '移库出库', '暂存出库', '贸易服务出库', '采购出库'],

+ 2 - 2
pageD/warehousings/warehousings.vue

@@ -215,9 +215,9 @@ import upload from '@/components/upload.vue';
 					contractNo: {},
 					carNo: {},
 				},
-				pinIndex: '不限(默认)',
+				//pinIndex: '不限(默认)',
 				pinTypes: '',
-				pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
+				pinType: ['一等品', '二等品', '三等品', '等外'],
 				ruIndex: '采购入库',
 				rutypes: '',
 				warehouse:[],

+ 4 - 1
pages/task/my_task.vue

@@ -59,9 +59,12 @@
 				keyword:""
 			};
 		},
-		onLoad(options) {
+		onShow() {
 			this.getIndexBuyData()
 		},
+		// onLoad(options) {
+		// 	this.getIndexBuyData()
+		// },
 		filters: {
 			formatDate (date) {
 				var date=new Date(date)

+ 40 - 20
pages/user/user.vue

@@ -225,23 +225,9 @@
 				current: 4
 			}
 		},
-		onShow() {
-			uni.showTabBar()
-			this.loadData()
-		},
+		
 		onLoad() {
-			if(this.userInfo.avatarUrl == "" || this.userInfo.avatarUrl == null){
-					this.headUrl = "../../static/img/myimg/YongHu@3x.png"
-			}else if(this.userInfo.avatarUrl != "" || this.userInfo.avatarUrl != null){
-				this.headUrl = this.userInfo.avatarUrl
-			}
-			this.username = this.userInfo.userName
-			if(	this.username == null || this.username == ""){
-				this.username = "请更改昵称"
-			}
-			if(this.userInfo.phone != null || this.userInfo.phone != ""){
-				this.userphone = this.userInfo.phone
-			}
+			
 		},
 		// #ifndef MP
 		onNavigationBarButtonTap(e) {
@@ -266,6 +252,22 @@
 		computed: {
 			...mapState(['hasLogin', 'userInfo'])
 		},
+		onShow() {
+			uni.showTabBar()
+			this.loadData()
+			if(this.userInfo.avatarUrl == "" || this.userInfo.avatarUrl == null){
+					this.headUrl = "../../static/img/myimg/YongHu@3x.png"
+			}else if(this.userInfo.avatarUrl != "" || this.userInfo.avatarUrl != null){
+				this.headUrl = this.userInfo.avatarUrl
+			}
+			this.username = this.userInfo.userName
+			if(	this.username == null || this.username == ""){
+				this.username = "请更改昵称"
+			}
+			if(this.userInfo.phone != null || this.userInfo.phone != ""){
+				this.userphone = this.userInfo.phone
+			}
+		},
 		methods: {
 			zhibo() {
 				uni.navigateTo({
@@ -354,10 +356,28 @@
 
 					return;
 				}
-				if (item.url) {
-					uni.navigateTo({
-						url: item.url + `?companyId=${that.companyId}`
+				if (!this.hasLogin) {
+					uni.showModal({
+						title: '登录提示',
+						content: '您尚未登录,是否立即登录?',
+						showCancel: true,
+						confirmText: '登录',
+						success: (e) => {
+							if (e.confirm) {
+								uni.navigateTo({
+									url: '/pages/public/login'
+								})
+							}
+						},
+						fail: () => {},
+						complete: () => {}
 					})
+				}else {
+					if (item.url) {
+						uni.navigateTo({
+							url: item.url + `?companyId=${that.companyId}`
+						})
+					}
 				}
 			},
 			toLogin() {
@@ -682,7 +702,7 @@
 		
 	   background-color: #F5F6FA;
 	/* 	border-radius: 20px; */
-		margin-top: 60px;
+		margin-top: 60upx;
 
 		.arc {
 			position: absolute;