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

页面修改

parent d7d2ccbb
......@@ -2,7 +2,7 @@
<div class="q-mt-lg">
<div class="form1 section-block">
<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">
<q-input filled v-model="params.Name" label="如何稱呼您" class="col" lazy-rules
:rules="[ val => val && val.length > 0 || '請填寫您的稱呼']" />
......@@ -34,6 +34,7 @@
<script>
export default {
props: ["TCID"],
data() {
return {
params: {
......@@ -42,31 +43,56 @@
EMail: "",
Remarks: "",
RB_Group_Id: 0,
CreateBy: 0,
TCID: 0,
}
};
},
methods: {
onSubmit() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.params.RB_Group_Id = jObj.GroupId;
this.apipost(
"ws_post_SetService", this.params,
res => {
if (res.data.resultCode == 1) {
this.params.Name = '';
this.params.Mobile = '';
this.params.EMail = '';
this.params.Remarks = '';
this.$q.notify({
color: "green-4",
textColor: "white",
icon: "cloud_done",
message: "提交成功"
});
}
},
err => {}
);
if (localStorage.b2bUser) {
var b2bUser = JSON.parse(window.localStorage.getItem('b2bUser'))
if (b2bUser) {
this.params.CreateBy = b2bUser.accountId;
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.params.RB_Group_Id = jObj.GroupId;
this.params.TCID = this.TCID;
this.apipost(
"ws_post_SetService", this.params,
res => {
if (res.data.resultCode == 1) {
this.params.Name = '';
this.params.Mobile = '';
this.params.EMail = '';
this.params.Remarks = '';
this.$q.notify({
color: "green-4",
textColor: "white",
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 @@
<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>
<!--待完善-->
<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-->
<bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1"
......
......@@ -24,7 +24,7 @@
<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>
<!--待完善-->
<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-->
<bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1"
......
......@@ -117,7 +117,7 @@
<!-- 注意事项 -->
<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>
<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