解决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-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="处理状态" prop="status">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
@ -30,6 +35,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listEmisWaybillProblemFaq, getEmisWaybillProblemFaq, delEmisWaybillProblemFaq, addEmisWaybillProblemFaq, updateEmisWaybillProblemFaq } from "@/api/emis/emisWaybillProblemFaq";
|
import { listEmisWaybillProblemFaq, getEmisWaybillProblemFaq, delEmisWaybillProblemFaq, addEmisWaybillProblemFaq, updateEmisWaybillProblemFaq } from "@/api/emis/emisWaybillProblemFaq";
|
||||||
import CommentPanel from '@/views/emis/emisWaybillProblemFaq/commentPanel.vue';
|
import CommentPanel from '@/views/emis/emisWaybillProblemFaq/commentPanel.vue';
|
||||||
|
import { parseTime } from "@/utils/custom";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "emisWaybillProblemFaqForm",
|
name: "emisWaybillProblemFaqForm",
|
||||||
@ -48,7 +54,9 @@ export default {
|
|||||||
loading: true,
|
loading: true,
|
||||||
|
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {
|
||||||
|
// status: "2"
|
||||||
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
id: [
|
id: [
|
||||||
@ -104,12 +112,13 @@ export default {
|
|||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {
|
this.form = {
|
||||||
id: null,
|
id: this.id,
|
||||||
|
status: "2",
|
||||||
probId: null,
|
probId: null,
|
||||||
billCode: null,
|
billCode: null,
|
||||||
title: null,
|
title: null,
|
||||||
content: null,
|
content: null,
|
||||||
status: null,
|
// status: null,
|
||||||
showFlag: null,
|
showFlag: null,
|
||||||
replayId: null,
|
replayId: null,
|
||||||
delFlag: null,
|
delFlag: null,
|
||||||
@ -125,12 +134,38 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
debugger;
|
||||||
|
// this.form.id = this.id;this.promInfo
|
||||||
|
this.$refs["form"].validate(async (valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
addEmisWaybillProblemFaq(this.form).then(response => {
|
// addEmisWaybillProblemFaq(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
// 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");
|
this.$emit("on-changed");
|
||||||
});
|
}else{
|
||||||
|
this.$message.error(response & response.msg || "未知错误")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -91,6 +91,7 @@
|
|||||||
plain
|
plain
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="getList"
|
@click="getList"
|
||||||
|
v-hasPermi="['emis:emisWaybillProblemInfo:list']"
|
||||||
>查询</el-button>
|
>查询</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@ -101,6 +102,17 @@
|
|||||||
@click="getList"
|
@click="getList"
|
||||||
>导出</el-button>
|
>导出</el-button>
|
||||||
</el-col>
|
</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">
|
<el-col :span="1.5">
|
||||||
<div style="display: inline-flex">
|
<div style="display: inline-flex">
|
||||||
<div class="color-label ">
|
<div class="color-label ">
|
||||||
@ -200,8 +212,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listEmisWaybillProblemInfo } from "@/api/emis/emisWaybillProblemInfo";
|
import { listEmisWaybillProblemInfo, delEmisWaybillProblemInfo } from "@/api/emis/emisWaybillProblemInfo";
|
||||||
import { listEmisWaybill } from "@/api/emis/emisWaybill";
|
// import { listEmisWaybill } from "@/api/emis/emisWaybill";
|
||||||
|
|
||||||
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
||||||
import EmisSiteSimplePicker from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue';
|
import EmisSiteSimplePicker from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue';
|
||||||
@ -641,7 +653,7 @@ export default {
|
|||||||
handleDelete() {
|
handleDelete() {
|
||||||
const ids = this.ids
|
const ids = this.ids
|
||||||
this.$modal.confirm('是否确认删除').then(function() {
|
this.$modal.confirm('是否确认删除').then(function() {
|
||||||
return delEmisTmsScanRecord(ids);
|
return delEmisWaybillProblemInfo(ids);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user