Commit 92f5afbb authored by 黄奎's avatar 黄奎

页面修改

parent d7d2ccbb
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="q-mt-lg"> <div class="q-mt-lg">
<div class="form1 section-block"> <div class="form1 section-block">
<h2 class="block-title q-mb-lg">專人服務</h2> <h2 class="block-title q-mb-lg">專人服務</h2>
<q-form @submit="onSubmit" class="q-gutter-md"> <q-form class="q-gutter-md">
<div class="row q-gutter-xl desktop-only q-mb-lg q-pl-md"> <div class="row q-gutter-xl desktop-only q-mb-lg q-pl-md">
<q-input filled v-model="params.Name" label="如何稱呼您" class="col" lazy-rules <q-input filled v-model="params.Name" label="如何稱呼您" class="col" lazy-rules
:rules="[ val => val && val.length > 0 || '請填寫您的稱呼']" /> :rules="[ val => val && val.length > 0 || '請填寫您的稱呼']" />
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<script> <script>
export default { export default {
props: ["TCID"],
data() { data() {
return { return {
params: { params: {
...@@ -42,31 +43,56 @@ ...@@ -42,31 +43,56 @@
EMail: "", EMail: "",
Remarks: "", Remarks: "",
RB_Group_Id: 0, RB_Group_Id: 0,
CreateBy: 0,
TCID: 0,
} }
}; };
}, },
methods: { methods: {
onSubmit() { onSubmit() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo')); if (localStorage.b2bUser) {
this.params.RB_Group_Id = jObj.GroupId; var b2bUser = JSON.parse(window.localStorage.getItem('b2bUser'))
this.apipost( if (b2bUser) {
"ws_post_SetService", this.params, this.params.CreateBy = b2bUser.accountId;
res => { var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
if (res.data.resultCode == 1) { this.params.RB_Group_Id = jObj.GroupId;
this.params.Name = ''; this.params.TCID = this.TCID;
this.params.Mobile = ''; this.apipost(
this.params.EMail = ''; "ws_post_SetService", this.params,
this.params.Remarks = ''; res => {
this.$q.notify({ if (res.data.resultCode == 1) {
color: "green-4", this.params.Name = '';
textColor: "white", this.params.Mobile = '';
icon: "cloud_done", this.params.EMail = '';
message: "提交成功" this.params.Remarks = '';
}); this.$q.notify({
} color: "green-4",
}, textColor: "white",
err => {} icon: "cloud_done",
); message: "提交成功"
});
}
},
err => {}
);
} else {
this.$q.notify({
color: "green-4",
textColor: "white",
icon: "cloud_done",
message: "请登录后再提交需求单"
});
this.CommonJump('/login', {});
}
} else {
this.$q.notify({
color: "green-4",
textColor: "white",
icon: "cloud_done",
message: "请登录后再提交需求单"
});
this.CommonJump('/login', {});
}
} }
} }
}; };
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<paragraph v-if="item.Id=='white_label_other'&&item.plugData.Type==4" :plugData="item.plugData"></paragraph> <paragraph v-if="item.Id=='white_label_other'&&item.plugData.Type==4" :plugData="item.plugData"></paragraph>
<photo v-if="item.Id=='white_label_other'&&item.plugData.Type==5" :plugData="item.plugData"></photo> <photo v-if="item.Id=='white_label_other'&&item.plugData.Type==5" :plugData="item.plugData"></photo>
<!--待完善--> <!--待完善-->
<diyForm v-if="item.Id=='white_label_other'&&item.plugData.Type==6" :plugData="item.plugData"> </diyForm> <diyForm v-if="item.Id=='white_label_other'&&item.plugData.Type==6" :plugData="item.plugData" :TCID="0"> </diyForm>
<!--自訂版型(背景圖)white_label_background_article--> <!--自訂版型(背景圖)white_label_background_article-->
<bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1" <bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1"
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<paragraph v-if="item.Id=='white_label_other'&&item.plugData.Type==4" :plugData="item.plugData"></paragraph> <paragraph v-if="item.Id=='white_label_other'&&item.plugData.Type==4" :plugData="item.plugData"></paragraph>
<photo v-if="item.Id=='white_label_other'&&item.plugData.Type==5" :plugData="item.plugData"></photo> <photo v-if="item.Id=='white_label_other'&&item.plugData.Type==5" :plugData="item.plugData"></photo>
<!--待完善--> <!--待完善-->
<diyForm v-if="item.Id=='white_label_other'&&item.plugData.Type==6" :plugData="item.plugData"> </diyForm> <diyForm v-if="item.Id=='white_label_other'&&item.plugData.Type==6" :plugData="item.plugData" :TCID="0"> </diyForm>
<!--自訂版型(背景圖)white_label_background_article--> <!--自訂版型(背景圖)white_label_background_article-->
<bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1" <bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1"
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<!-- 注意事项 --> <!-- 注意事项 -->
<headStyle5 v-if="item.Id=='Notice'" id="note" ref="note" :dataList="dataList" :key="index+600"></headStyle5> <headStyle5 v-if="item.Id=='Notice'" id="note" ref="note" :dataList="dataList" :key="index+600"></headStyle5>
<!-- 需求单 --> <!-- 需求单 -->
<diyForm v-if="item.Id=='Order'" :key="index+700"></diyForm> <diyForm v-if="item.Id=='Order'" :key="index+700" :TCID="msg.tcid"></diyForm>
</template> </template>
</template> </template>
<div class="quick-banner-block" v-if="isShowNav" :class="{'orange':TripConfig.TripConfig.TripBottonStyle==1 <div class="quick-banner-block" v-if="isShowNav" :class="{'orange':TripConfig.TripConfig.TripBottonStyle==1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment