فهرست منبع

供货商 自己 采购,价格和数量都要填了才能确认点确认需要提示:确认提交? 供应商 和 入库日期 那个请选择 需要用灰色字体、花店post请求连接带account参数

jf 5 سال پیش
والد
کامیت
0b14acb282
2فایلهای تغییر یافته به همراه20 افزوده شده و 4 حذف شده
  1. 18 2
      ghsApp/src/pagesPurchase/details.vue
  2. 2 2
      mallApp/src/plugins/luch-request_0.0.7/request.js

+ 18 - 2
ghsApp/src/pagesPurchase/details.vue

@@ -57,7 +57,7 @@
 				<view class="module-com input-line-wrap">
 					<tui-list-cell class="line-cell" :hover="false" :arrow="true" @tap="showCustomer = true">
 						<view class="tui-title ">供应商</view>
-						<text>
+						<text :style="!supplier.name?'color:#cccccc':''">
 <!--							{{ detailsInfo.supplierName || "" }}-->
 							{{ supplier.name || "请选择" }}
 							<!-- 欠款:91658.00  -->
@@ -320,6 +320,22 @@ export default {
 				uni.navigateTo({url:'/common/pageSuccess?title=新增成功'})
 			} catch (error) {}
 		},
+		formSubmitFun(){
+			let self = this;
+			uni.showModal({
+				title: '提示',
+				content: '确认提交订单?',
+				success: function (res) {
+					if (res.confirm) {
+						self.confirmFn();
+						// this.confirmFn();
+
+					} else if (res.cancel) {
+						console.log('用户点击取消');
+					}
+				}
+			});
+		},
 		// 表单验证
 		formSubmit(e) {
 
@@ -340,7 +356,7 @@ export default {
 			let checkRes = form.validation(formData, rules);
 			// 验证通过!
 			if (!checkRes) {
-				this.confirmFn();
+				this.formSubmitFun();
 			} else {
 				this.$msg(checkRes);
 			}

+ 2 - 2
mallApp/src/plugins/luch-request_0.0.7/request.js

@@ -242,8 +242,8 @@ class Request {
 	}
 
 	post(url, data = {}, options = {}, config = {}) {
-		options.url = url
-		options.data = {...data,'account':uni.getStorageSync('account')}
+		options.url = url+'?account='+uni.getStorageSync('account')
+		options.data = data
 		options.method = 'POST'
 		return this.request(options, config)
 	}