|
|
@@ -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);
|
|
|
}
|