|
@@ -4,42 +4,66 @@
|
|
|
<block slot="backText">返回</block>
|
|
<block slot="backText">返回</block>
|
|
|
<block slot="content">客户满意度调查</block>
|
|
<block slot="content">客户满意度调查</block>
|
|
|
</cu-custom>
|
|
</cu-custom>
|
|
|
- <!-- <view class="cu-form-group margin-top">
|
|
|
|
|
- <view class="title">调查时间:</view>
|
|
|
|
|
- <my-date style="padding: 0px;" v-model="pingJiaShiJian" placeholder="请选择" fields="day" label=""></my-date>
|
|
|
|
|
- </view> -->
|
|
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">客户单位:</view>
|
|
<view class="title">客户单位:</view>
|
|
|
- <app-select placeholder="请选择调查部门" v-model="buMenId" :dict="kehuXinXinList" space
|
|
|
|
|
- style="position: relative;right: 60rpx;" @change="onChange"></app-select>
|
|
|
|
|
|
|
+ <input placeholder="请输入客户单位" v-model="buMenName" name="input" :disabled="true"></input>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
- <view class="title">评价人联系电话:</view>
|
|
|
|
|
- <input placeholder="请输入评价人联系电话" v-model="lianxidianhua" name="input"></input>
|
|
|
|
|
- <!-- <app-select placeholder="请选择调查部门" v-model="buMenId" :dict="kehuXinXinList" space
|
|
|
|
|
- style="position: relative;right: 30rpx;"></app-select> -->
|
|
|
|
|
|
|
+ <view class="title">客户联系方式:</view>
|
|
|
|
|
+ <input placeholder="请输入客户联系方式" v-model="lianxidianhua" name="input"></input>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
+ v-if="lianxidianhua != ''" @click="lianxidianhua = ''"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="cu-form-group">
|
|
|
|
|
+ <view class="title">服务项目:</view>
|
|
|
|
|
+ <input placeholder="请输入服务项目" v-model="fuWuXiangMu" name="input"></input>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
+ v-if="fuWuXiangMu != ''" @click="fuWuXiangMu = ''"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="cu-form-group">
|
|
|
|
|
+ <view class="title">服务类型:</view>
|
|
|
|
|
+ <!-- <input placeholder="请输入服务类型" v-model="fuWuLeiXing" name="input"></input>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
+ v-if="fuWuLeiXing != ''" @click="fuWuLeiXing = ''"></u-icon> -->
|
|
|
|
|
+ <u-radio-group v-model="fuWuLeiXing">
|
|
|
|
|
+ <u-radio v-for="(it, index) in fuWuLeiXingList" :key="index" :name="it.name">
|
|
|
|
|
+ {{it.name}}
|
|
|
|
|
+ </u-radio>
|
|
|
|
|
+ </u-radio-group>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="cu-form-group">
|
|
|
|
|
+ <view class="title">客户联系人:</view>
|
|
|
|
|
+ <input placeholder="请输入客户联系人" v-model="keHuLianXiRen" name="input"></input>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
+ v-if="keHuLianXiRen != ''" @click="keHuLianXiRen = ''"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="cu-form-group">
|
|
|
|
|
+ <view class="title">客户联系邮箱:</view>
|
|
|
|
|
+ <input placeholder="请输入客户联系邮箱" v-model="keHuLianXiYouXian" name="input"></input>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
+ v-if="keHuLianXiYouXian != ''" @click="keHuLianXiYouXian = ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <uni-section title="对公司人员的工作态度是否满意?" type="line" padding>
|
|
|
|
|
- <uni-rate size="18" :value="5" v-model="wenTiYiDaAn" />
|
|
|
|
|
|
|
+ <uni-section title="服务态度" type="line" padding>
|
|
|
|
|
+ <uni-rate size="18" :value="5" :max="6" v-model="wenTiYiDaAn" />
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
- <uni-section title="工作及时性是否满意?" type="line" padding>
|
|
|
|
|
- <uni-rate size="18" :value="5" v-model="wenTiErDaAn" />
|
|
|
|
|
|
|
+ <uni-section title="检测服务能力" type="line" padding>
|
|
|
|
|
+ <uni-rate size="18" :value="5" :max="6" v-model="wenTiErDaAn" />
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
- <uni-section title="对出具的检测报告结果表达是否满意?" type="line" padding>
|
|
|
|
|
- <uni-rate size="18" :value="5" v-model="wenTiSanDaAn" />
|
|
|
|
|
|
|
+ <uni-section title="检测报告及时性" type="line" padding>
|
|
|
|
|
+ <uni-rate size="18" :value="5" :max="6" v-model="wenTiSanDaAn" />
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
- <uni-section title="当您对检测结果有疑异时,检验中心给出的解释或者后续的处理方式是否让您满意?" type="line" padding>
|
|
|
|
|
- <uni-rate size="18" :value="5" v-model="wenTiSiDaAn" />
|
|
|
|
|
|
|
+ <uni-section title="报告差错率" type="line" padding>
|
|
|
|
|
+ <uni-rate size="18" :value="5" :max="6" v-model="wenTiSiDaAn" />
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
- <uni-section title="对检验部门的管理是否满意?" type="line" padding>
|
|
|
|
|
- <uni-rate size="18" :value="5" v-model="wenTiWuDaAn" />
|
|
|
|
|
|
|
+ <uni-section title="投诉应答处理" type="line" padding>
|
|
|
|
|
+ <uni-rate size="18" :value="5" :max="6" v-model="wenTiWuDaAn" />
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
<uni-section title="客户意见和建议" type="line" padding>
|
|
<uni-section title="客户意见和建议" type="line" padding>
|
|
|
<textarea maxlength="-1" v-model="qingNinTianXie" placeholder="意见和建议"></textarea>
|
|
<textarea maxlength="-1" v-model="qingNinTianXie" placeholder="意见和建议"></textarea>
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
<view class="padding flex flex-direction">
|
|
<view class="padding flex flex-direction">
|
|
|
- <button class="cu-btn bg-blue lg" @click="onSubmit">提交</button>
|
|
|
|
|
|
|
+ <button class="cu-btn bg-blue lg bg-mingjian" @click="onSubmit">提交</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -70,32 +94,34 @@
|
|
|
wenTiWuDaAn: '',
|
|
wenTiWuDaAn: '',
|
|
|
qingNinTianXie: '',
|
|
qingNinTianXie: '',
|
|
|
kehuXinXinList: [],
|
|
kehuXinXinList: [],
|
|
|
- lianxidianhua: ''
|
|
|
|
|
|
|
+ lianxidianhua: '',
|
|
|
|
|
+ fuWuLeiXing: '',
|
|
|
|
|
+ keHuLianXiYouXian: '',
|
|
|
|
|
+ fuWuXiangMu: '',
|
|
|
|
|
+ keHuLianXiRen: '',
|
|
|
|
|
+ mobile: '',
|
|
|
|
|
+ buMenName: '',
|
|
|
|
|
+ fuWuLeiXingList: [{
|
|
|
|
|
+ name: "检验检测"
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: "科研服务"
|
|
|
|
|
+ }]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
this.getKehu()
|
|
this.getKehu()
|
|
|
- let that = this
|
|
|
|
|
- // this.$http.post("/ibps/business/v3/common/queryBuMenList", "466555896126767104").then(res => {
|
|
|
|
|
- // if (res.data.state == 200 && res.data.data) {
|
|
|
|
|
- // this.buMenList = []
|
|
|
|
|
- // for (let ind in res.data.data) {
|
|
|
|
|
- // this.buMenList.push({
|
|
|
|
|
- // value: res.data.data[ind].id,
|
|
|
|
|
- // text: res.data.data[ind].buMenMingChengs
|
|
|
|
|
- // })
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getKehu() {
|
|
getKehu() {
|
|
|
|
|
+ let info = uni.getStorageSync(USER_INFO);
|
|
|
|
|
+ if (info) {
|
|
|
|
|
+ this.mobile = info.employee.mobile
|
|
|
|
|
+ }
|
|
|
let sql =
|
|
let sql =
|
|
|
- `{"sql":"select tk.ke_hu_ming_cheng_,ty.lian_xi_ren_ from t_khxx tk,t_yxkh ty where tk.ke_hu_ming_cheng_ = ty.id_ ORDER BY tk.create_time_ desc"}`
|
|
|
|
|
|
|
+ `select tk.id_,tk.ke_hu_ming_cheng_,ty.lian_xi_ren_,ty.ke_hu_dian_hua_ from t_khxx tk,t_yxkh ty where tk.ke_hu_ming_cheng_ = ty.id_ and ty.ke_hu_dian_hua_='${this.mobile}' ORDER BY tk.create_time_ desc`
|
|
|
|
|
|
|
|
|
|
+ let requestData = this.$sig(sql)
|
|
|
|
|
|
|
|
- let md5 = this.sig(sql) //加密, 获取md5密文
|
|
|
|
|
- let requestData = sql.slice(0, 1) + '"sig":"' + md5 + '",' + sql.slice(1) //结果拼接
|
|
|
|
|
this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
if (res.data.state == 200) {
|
|
|
const data = res.data.variables.data
|
|
const data = res.data.variables.data
|
|
@@ -104,6 +130,18 @@
|
|
|
this.$set(item, 'text', item.lian_xi_ren_)
|
|
this.$set(item, 'text', item.lian_xi_ren_)
|
|
|
})
|
|
})
|
|
|
this.kehuXinXinList = data
|
|
this.kehuXinXinList = data
|
|
|
|
|
+ this.buMenId = data[0].id_ || ''
|
|
|
|
|
+ this.buMenName = data[0].lian_xi_ren_
|
|
|
|
|
+ this.lianxidianhua = data[0].ke_hu_dian_hua_ || ''
|
|
|
|
|
+ this.keHuLianXiRen = data[0].lian_xi_ren_ || ''
|
|
|
|
|
+
|
|
|
|
|
+ if (data.length == 0) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '该账户暂时不能填写满意度调查,如果需要填写请联系本公司',
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ duration: 2000
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -111,6 +149,15 @@
|
|
|
onSubmit() {
|
|
onSubmit() {
|
|
|
let info = uni.getStorageSync(USER_INFO);
|
|
let info = uni.getStorageSync(USER_INFO);
|
|
|
let useId = info.user.id
|
|
let useId = info.user.id
|
|
|
|
|
+ let detpId = info.org.id
|
|
|
|
|
+
|
|
|
|
|
+ if (this.buMenName == '') {
|
|
|
|
|
+ return uni.showToast({
|
|
|
|
|
+ title: '该账户暂时不能填写满意度调查,如果需要填写请联系本公司',
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ duration: 2000
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
var nowDate = new Date((new Date).getTime() + 8 * 60 * 60 * 1000)
|
|
var nowDate = new Date((new Date).getTime() + 8 * 60 * 60 * 1000)
|
|
|
var time = nowDate.toJSON().split('T').join(' ').substr(0, 10);
|
|
var time = nowDate.toJSON().split('T').join(' ').substr(0, 10);
|
|
@@ -130,21 +177,35 @@
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
let paraValue = {
|
|
let paraValue = {
|
|
|
- "nianFen": time.substring(0, 4),
|
|
|
|
|
- "keHu": this.buMenId,
|
|
|
|
|
- "lianXiDianHua": this.lianxidianhua,
|
|
|
|
|
- "pingFen1": this.wenTiYiDaAn,
|
|
|
|
|
- "pingFen2": this.wenTiErDaAn,
|
|
|
|
|
- "pingFen3": this.wenTiSanDaAn,
|
|
|
|
|
- "pingFen4": this.wenTiSiDaAn,
|
|
|
|
|
- "pingFen5": this.wenTiWuDaAn,
|
|
|
|
|
- "yiJianHeJianYi": this.qingNinTianXie,
|
|
|
|
|
- "tianXieRen": useId,
|
|
|
|
|
- "tianXieShiJian": time,
|
|
|
|
|
- "shiFouGuoShen": "已编制",
|
|
|
|
|
|
|
+ nianFen: time.substring(0, 4),
|
|
|
|
|
+ keHu: this.buMenId,
|
|
|
|
|
+ lianXiDianHua: this.lianxidianhua,
|
|
|
|
|
+ keHuLianXiRen: this.keHuLianXiRen,
|
|
|
|
|
+ keHuLianXiYouXian: this.keHuLianXiYouXian,
|
|
|
|
|
+ fuWuXiangMu: this.fuWuXiangMu,
|
|
|
|
|
+ fuWuLeiXing: this.fuWuLeiXing,
|
|
|
|
|
+ pingFen1: this.wenTiYiDaAn == '' ? 0 : this.wenTiYiDaAn == 6 ? 10 : this.wenTiYiDaAn == 5 ? 9 :
|
|
|
|
|
+ this.wenTiYiDaAn == 4 ? 7 : this.wenTiYiDaAn == 3 ? 5 : this.wenTiYiDaAn == 2 ? 2 : this
|
|
|
|
|
+ .wenTiYiDaAn == 1 ? 0 : 0,
|
|
|
|
|
+ pingFen2: this.wenTiErDaAn == '' ? 0 : this.wenTiErDaAn == 6 ? 10 : this.wenTiErDaAn == 5 ? 9 :
|
|
|
|
|
+ this.wenTiErDaAn == 4 ? 7 : this.wenTiErDaAn == 3 ? 5 : this.wenTiErDaAn == 2 ? 2 : this
|
|
|
|
|
+ .wenTiErDaAn == 1 ? 0 : 0,
|
|
|
|
|
+ pingFen3: this.wenTiSanDaAn == '' ? 0 : this.wenTiSanDaAn == 6 ? 10 : this.wenTiSanDaAn == 5 ? 9 :
|
|
|
|
|
+ this.wenTiSanDaAn == 4 ? 7 : this.wenTiSanDaAn == 3 ? 5 : this.wenTiSanDaAn == 2 ? 2 : this
|
|
|
|
|
+ .wenTiSanDaAn == 1 ? 0 : 0,
|
|
|
|
|
+ pingFen4: this.wenTiSiDaAn == '' ? 0 : this.wenTiSiDaAn == 6 ? 10 : this.wenTiSiDaAn == 5 ? 9 :
|
|
|
|
|
+ this.wenTiSiDaAn == 4 ? 7 : this.wenTiSiDaAn == 3 ? 5 : this.wenTiSiDaAn == 2 ? 2 : this
|
|
|
|
|
+ .wenTiSiDaAn == 1 ? 0 : 0,
|
|
|
|
|
+ pingFen5: this.wenTiWuDaAn == '' ? 0 : this.wenTiWuDaAn == 6 ? 10 : this.wenTiWuDaAn == 5 ? 9 :
|
|
|
|
|
+ this.wenTiWuDaAn == 4 ? 7 : this.wenTiWuDaAn == 3 ? 5 : this.wenTiWuDaAn == 2 ? 2 : this
|
|
|
|
|
+ .wenTiWuDaAn == 1 ? 0 : 0,
|
|
|
|
|
+ yiJianHeJianYi: this.qingNinTianXie,
|
|
|
|
|
+ bianZhiRen: useId,
|
|
|
|
|
+ bianZhiShiJian: time,
|
|
|
|
|
+ bianZhiBuMen: detpId,
|
|
|
|
|
+ shiFouGuoShen: "已编制",
|
|
|
}
|
|
}
|
|
|
para.parameters[2].value = JSON.stringify(paraValue);
|
|
para.parameters[2].value = JSON.stringify(paraValue);
|
|
|
- console.log()
|
|
|
|
|
let that = this;
|
|
let that = this;
|
|
|
this.$http.post("ibps/business/v3/bpm/instance/start", para).then(res => {
|
|
this.$http.post("ibps/business/v3/bpm/instance/start", para).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
if (res.data.state == 200) {
|
|
@@ -157,24 +218,6 @@
|
|
|
let msg = ((err.response || {}).data || {}).message || err.data.message || "请求出现错误,请稍后再试"
|
|
let msg = ((err.response || {}).data || {}).message || err.data.message || "请求出现错误,请稍后再试"
|
|
|
this.$tip.error(msg);
|
|
this.$tip.error(msg);
|
|
|
});
|
|
});
|
|
|
- // this.$http.post("ibps/business/v3/sh/manyidu/add", para).then(res => {
|
|
|
|
|
- // if (res.data.state == 200) {
|
|
|
|
|
- // this.$tip.success("提交成功!")
|
|
|
|
|
- // this.$Router.replace({
|
|
|
|
|
- // name: 'index'
|
|
|
|
|
- // })
|
|
|
|
|
- // } else if (res.data.state == 400) {
|
|
|
|
|
- // this.$tip.success("用户未登录!")
|
|
|
|
|
- // this.$Router.replace({
|
|
|
|
|
- // name: 'login'
|
|
|
|
|
- // })
|
|
|
|
|
- // } else {
|
|
|
|
|
- // this.$tip.error("请求错误: " + res.data.message)
|
|
|
|
|
- // }
|
|
|
|
|
- // }).catch((err) => {
|
|
|
|
|
- // let msg = ((err.response || {}).data || {}).message || err.data.message || "请求出现错误,请稍后再试"
|
|
|
|
|
- // this.$tip.error(msg);
|
|
|
|
|
- // });
|
|
|
|
|
},
|
|
},
|
|
|
onChange(e) {
|
|
onChange(e) {
|
|
|
console.log(e)
|
|
console.log(e)
|