Browse Source

fis未知总成页面问题修复

branch_ccpg_220107
yu.wu 3 years ago
parent
commit
099dffa7f3
  1. 6
      vue/src/views/pg-fis/basedate/m100Online/index.vue
  2. 4
      vue/src/views/pg-fis/basedate/r100Online/index.vue
  3. 50
      vue/src/views/pg-fis/basedate/unknownAssembly/index.vue
  4. 9
      vue/src/views/pg-fis/basedate/weldingAssembly/index.vue

6
vue/src/views/pg-fis/basedate/m100Online/index.vue

@ -434,8 +434,8 @@ export default {
], ],
}, },
billState:[ billState:[
{id:0,name:"已匹配"}, {id:2,name:"已匹配"},
{id:1,name:"已导出"} {id:3,name:"已导出"}
], ],
valueSelect: "", valueSelect: "",
customerInfos: [], customerInfos: [],
@ -748,7 +748,7 @@ export default {
/** 格式化字段 */ /** 格式化字段 */
fieldFormatter(row, column) { fieldFormatter(row, column) {
if (column.property === "billStatus") { if (column.property === "billStatus") {
return { 0: "未生效", 2: "已生效", 3: "已发布" }[row[column.property]]; return { 1: "未匹配", 2: "已匹配", 3: "已发布" }[row[column.property]];
} }
if (column.property == "onlineTime" || column.property == "receiveTime") { if (column.property == "onlineTime" || column.property == "receiveTime") {
var date = row[column.property]; var date = row[column.property];

4
vue/src/views/pg-fis/basedate/r100Online/index.vue

@ -325,8 +325,8 @@ export default {
], ],
}, },
billState:[ billState:[
{id:0,name:"已匹配"}, {id:2,name:"已匹配"},
{id:1,name:"已导出"} {id:3,name:"已导出"}
], ],
valueSelect: "", valueSelect: "",
customerInfos: [], customerInfos: [],

50
vue/src/views/pg-fis/basedate/unknownAssembly/index.vue

@ -98,6 +98,7 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
:loading="buttonLoading"
@click="handleUpdate()" @click="handleUpdate()"
>重新解析(批量操作) >重新解析(批量操作)
</el-button> </el-button>
@ -159,6 +160,7 @@
size="mini" size="mini"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
:loading="button2Loading"
@click="handleUpdateAll()" @click="handleUpdateAll()"
>重新解析(执行全部) >重新解析(执行全部)
</el-button> </el-button>
@ -361,7 +363,7 @@
</el-row> </el-row>
<div slot="footer" class="dialog-footer" align="right" style="width:950px"> <div slot="footer" class="dialog-footer" align="right" style="width:950px">
<el-button v-loading="formLoading" type="primary" @click="save">确认</el-button> <el-button :loading="formLoading" type="primary" @click="save">确认</el-button>
</div> </div>
</div> </div>
@ -389,7 +391,7 @@
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button v-loading="formLoading" type="primary" @click="saveNum()">确认</el-button> <el-button :loading="formLoading" type="primary" @click="saveNum()">确认</el-button>
<el-button type="text" @click="dialogNumVisible = false">取消</el-button> <el-button type="text" @click="dialogNumVisible = false">取消</el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -501,6 +503,8 @@ export default {
numTitle: "", numTitle: "",
isEdit: false, isEdit: false,
formLoading: false, formLoading: false,
buttonLoading:false,
button2Loading:false,
//dialogFormVisible: false, //dialogFormVisible: false,
tableHeight: document.documentElement.clientHeight - 220, tableHeight: document.documentElement.clientHeight - 220,
//columns: [ //columns: [
@ -640,6 +644,7 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.button2Loading = true;
this.$axios this.$axios
.posts("/api/newjit/unknown-assembly/to-parse", params) .posts("/api/newjit/unknown-assembly/to-parse", params)
.then((response) => { .then((response) => {
@ -650,26 +655,35 @@ export default {
type: "success", type: "success",
duration: 2000, duration: 2000,
}); });
this.button2Loading = false;
this.getList(); this.getList();
} else { } else {
this.button2Loading = false;
this.$message({ this.$message({
type: "warning", type: "warning",
message: response.message, message: response.message,
}); });
} }
})
.catch(() => {
this.button2Loading = false;
this.$message({
type: "warning",
message: response.message,
});
}); });
}) })
.catch(() => {});
}, },
/** 重新计算总成 */ /** 重新计算总成 */
handleUpdate(row) { handleUpdate(row) {
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "必须选择一行", message: "至少选择一行",
type: "warning", type: "warning",
}); });
return; return;
} else { } else {
this.buttonLoading = true;
// //
var params = { var params = {
isSelectAll: false, isSelectAll: false,
@ -696,13 +710,22 @@ export default {
type: "success", type: "success",
duration: 2000, duration: 2000,
}); });
this.buttonLoading = false;
this.getList(); this.getList();
} else { } else {
this.buttonLoading = false;
this.$message({ this.$message({
type: "warning", type: "warning",
message: response.message, message: response.message,
}); });
} }
})
.catch(() => {
this.buttonLoading = false;
this.$message({
type: "warning",
message: response.message,
});
}); });
} }
}, },
@ -918,6 +941,7 @@ export default {
}); });
return; return;
} }
this.formLoading = true;
var lastSubmit = { var lastSubmit = {
billId:this.listUnknownAssemblyQuery.billId, billId:this.listUnknownAssemblyQuery.billId,
@ -970,9 +994,17 @@ export default {
) )
.then((response) => { .then((response) => {
if(response.status === true){ if(response.status === true){
this.dialogFormVisible = false;
this.leftRowTemp = [];
this.rightRowTemp = [];
this.tempAssCfgList = [];
this.tempdetails = [];
this.erpAssemblyCfgList =[];
this.asTemp = [];
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "数据导入成功!", message: "添加总成成功!",
type: "success", type: "success",
duration: 2000, duration: 2000,
}); });
@ -981,14 +1013,6 @@ export default {
.catch(() => { .catch(() => {
//this.listLoading = false; //this.listLoading = false;
}); });
this.leftRowTemp = [];
this.rightRowTemp = [];
this.tempAssCfgList = [];
this.tempdetails = [];
this.erpAssemblyCfgList =[];
this.asTemp = [];
this.dialogFormVisible = false;
// } // }
// else{ // else{
// alert("") // alert("")

9
vue/src/views/pg-fis/basedate/weldingAssembly/index.vue

@ -677,9 +677,6 @@ export default {
/** 格式化字段 */ /** 格式化字段 */
fieldFormatter(row, column) { fieldFormatter(row, column) {
if (column.property === "billStatus") {
return { 0: "未生效", 2: "已生效", 3: "已发布" }[row[column.property]];
}
if (column.property == "onlineTime" || column.property == "receiveTime") { if (column.property == "onlineTime" || column.property == "receiveTime") {
var date = row[column.property]; var date = row[column.property];
if (date == undefined) { if (date == undefined) {
@ -687,7 +684,11 @@ export default {
} }
return moment(date).format("YYYY-MM-DD HH:mm:ss"); return moment(date).format("YYYY-MM-DD HH:mm:ss");
} }
return row[column.property] ;//|| "--"m1000 if(column.property == "r100BillStatus" || column.property == "m100BillStatus")
{
return { 1: "未匹配", 2: "已匹配", 3: "已发布" }[row[column.property]];
}
return row[column.property] || "--";//|| "--"m1000
}, },
roleFilter(type) { roleFilter(type) {
return projectTypeKeyValue[type]; return projectTypeKeyValue[type];

Loading…
Cancel
Save