解决bug
This commit is contained in:
parent
3a095c88e1
commit
7fa4cff778
@ -4,7 +4,12 @@
|
||||
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="处理状态" prop="status">
|
||||
<el-input v-model="form.status" placeholder="" />
|
||||
<!-- <el-input v-model="form.status" placeholder="" /> -->
|
||||
<el-select v-model="form.status" :placeholder="$t('全部')">
|
||||
<el-option :label="$t('未处理')" value="0"></el-option>
|
||||
<el-option :label="$t('处理中')" value="1"></el-option>
|
||||
<el-option :label="$t('处理完毕')" value="2"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
@ -30,6 +35,7 @@
|
||||
<script>
|
||||
import { listEmisWaybillProblemFaq, getEmisWaybillProblemFaq, delEmisWaybillProblemFaq, addEmisWaybillProblemFaq, updateEmisWaybillProblemFaq } from "@/api/emis/emisWaybillProblemFaq";
|
||||
import CommentPanel from '@/views/emis/emisWaybillProblemFaq/commentPanel.vue';
|
||||
import { parseTime } from "@/utils/custom";
|
||||
|
||||
export default {
|
||||
name: "emisWaybillProblemFaqForm",
|
||||
@ -48,7 +54,9 @@ export default {
|
||||
loading: true,
|
||||
|
||||
// 表单参数
|
||||
form: {},
|
||||
form: {
|
||||
// status: "2"
|
||||
},
|
||||
// 表单校验
|
||||
rules: {
|
||||
id: [
|
||||
@ -104,12 +112,13 @@ export default {
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
id: this.id,
|
||||
status: "2",
|
||||
probId: null,
|
||||
billCode: null,
|
||||
title: null,
|
||||
content: null,
|
||||
status: null,
|
||||
// status: null,
|
||||
showFlag: null,
|
||||
replayId: null,
|
||||
delFlag: null,
|
||||
@ -125,12 +134,38 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
debugger;
|
||||
// this.form.id = this.id;this.promInfo
|
||||
this.$refs["form"].validate(async (valid) => {
|
||||
if (valid) {
|
||||
addEmisWaybillProblemFaq(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.$emit("on-changed");
|
||||
});
|
||||
// addEmisWaybillProblemFaq(this.form).then(response => {
|
||||
// this.$modal.msgSuccess("新增成功");
|
||||
// this.$emit("on-changed");
|
||||
// });
|
||||
let reply = {
|
||||
// id: null,
|
||||
probId: this.promInfo.id,//问题件序号
|
||||
billCode: this.promInfo.billCode,
|
||||
title: this.promInfo.problemTitle,
|
||||
content: this.form.content,//具体内容
|
||||
status: this.form.status,//状态
|
||||
replayId: this.$store.getters.empCode,//针对的回复的ID
|
||||
createBy: this.$store.getters.empName,
|
||||
createTime: parseTime(new Date()),
|
||||
createSite: this.$store.getters.ownerSiteName,//创建站点
|
||||
}
|
||||
let response = await addEmisWaybillProblemFaq(reply);
|
||||
console.log(commentList)
|
||||
if(response && response.code == 200){
|
||||
// commentList.getList();
|
||||
// this.reversion = {
|
||||
// status:'',
|
||||
// content:''
|
||||
// }
|
||||
this.$emit("on-changed");
|
||||
}else{
|
||||
this.$message.error(response & response.msg || "未知错误")
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@ -91,6 +91,7 @@
|
||||
plain
|
||||
size="mini"
|
||||
@click="getList"
|
||||
v-hasPermi="['emis:emisWaybillProblemInfo:list']"
|
||||
>查询</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
@ -101,6 +102,17 @@
|
||||
@click="getList"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['emis:emisWaybillProblemInfo:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<div style="display: inline-flex">
|
||||
<div class="color-label ">
|
||||
@ -200,8 +212,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listEmisWaybillProblemInfo } from "@/api/emis/emisWaybillProblemInfo";
|
||||
import { listEmisWaybill } from "@/api/emis/emisWaybill";
|
||||
import { listEmisWaybillProblemInfo, delEmisWaybillProblemInfo } from "@/api/emis/emisWaybillProblemInfo";
|
||||
// import { listEmisWaybill } from "@/api/emis/emisWaybill";
|
||||
|
||||
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
||||
import EmisSiteSimplePicker from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue';
|
||||
@ -641,7 +653,7 @@ export default {
|
||||
handleDelete() {
|
||||
const ids = this.ids
|
||||
this.$modal.confirm('是否确认删除').then(function() {
|
||||
return delEmisTmsScanRecord(ids);
|
||||
return delEmisWaybillProblemInfo(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user