Преглед изворни кода

开单新增弹窗-确认开单

jf пре 5 година
родитељ
комит
f092dbfe8e
1 измењених фајлова са 13 додато и 3 уклоњено
  1. 13 3
      ghsApp/src/admin/billing/affirm.vue

+ 13 - 3
ghsApp/src/admin/billing/affirm.vue

@@ -79,9 +79,7 @@
 					¥ <text class="large">{{ allPrice+Number(form.sendCost)  }}</text>
 				</text>
 			</view>
-			<button class="admin-button-com blue middle" @click="formSubmit">
-				开单
-			</button>
+			<button class="admin-button-com blue middle" @click="affirmFormSubmit">开单</button>
 		</view>
 		<!-- 选择客户 -->
 		<AppCustomerSel :show.sync="showCustomer" @change="changeCustomerFn" />
@@ -209,6 +207,18 @@ export default {
 				});
 			});
 		},
+		affirmFormSubmit(){
+			let self = this;
+			uni.showModal({
+				title: '提示',
+				content: '确认开单?',
+				success: function (res) {
+					if (res.confirm) {
+						self.formSubmit();
+					}
+				}
+			});
+		},
 		// 表单验证
 		async formSubmit(e) {
 			try {