Browse Source

Merge remote-tracking branch 'origin/master'

java8
qiezi 1 year ago
parent
commit
f358fa42c4
  1. 36
      src/views/modules/eam/eamProjectInfo.vue
  2. 7
      src/views/modules/part/partCostInformation.vue

36
src/views/modules/eam/eamProjectInfo.vue

@ -1618,6 +1618,42 @@ import {searchBusinessInfo7} from "../../../api/factory/site";
fixed: '', fixed: '',
columnWidth: 100, columnWidth: 100,
}, },
{
userId: this.$store.state.user.name,
functionId: 401003,
serialNumber: '401003Table2CustomerNo',
tableId: "401003Table2",
tableName: "项目信息表",
columnProp: "customerNo",
headerAlign: "center",
align: "left",
columnLabel: "客户编码",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 401003,
serialNumber: '401003Table2CustomerDesc',
tableId: "401003Table2",
tableName: "项目信息表",
columnProp: "customerDesc",
headerAlign: "center",
align: "left",
columnLabel: "客户名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 401003, functionId: 401003,

7
src/views/modules/part/partCostInformation.vue

@ -175,7 +175,7 @@
</el-row> </el-row>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveUploadFile">保存</el-button>
<el-button type="primary" :disabled="isLoading" @click="saveUploadFile">{{ isLoading ? '保存中...' : '保存'}}</el-button>
<el-button type="primary" @click="closeUploadDialog">关闭</el-button> <el-button type="primary" @click="closeUploadDialog">关闭</el-button>
</span> </span>
</el-dialog> </el-dialog>
@ -210,6 +210,7 @@ export default {
// //
titleCon: '文件导入', titleCon: '文件导入',
visible: false, visible: false,
isLoading: false,
fileList: [], fileList: [],
// //
searchData: { searchData: {
@ -1049,6 +1050,7 @@ export default {
// //
saveUploadFile () { saveUploadFile () {
this.isLoading = true
// //
if (null == this.fileList || 0 === this.fileList.length) { if (null == this.fileList || 0 === this.fileList.length) {
this.$message.error("请先上传文件!") this.$message.error("请先上传文件!")
@ -1061,10 +1063,13 @@ export default {
savePartCostComponentByExcel(formData).then(({data}) => { savePartCostComponentByExcel(formData).then(({data}) => {
if (data.code === 0) { if (data.code === 0) {
this.$message.success(data.msg) this.$message.success(data.msg)
this.getDataList()
// //
this.closeUploadDialog() this.closeUploadDialog()
this.isLoading = false
} else { } else {
this.$message.warning(data.msg) this.$message.warning(data.msg)
this.isLoading = false
} }
}) })
}, },

Loading…
Cancel
Save