|
|
@@ -33,7 +33,7 @@
|
|
|
<el-input size="mini" v-model="searchForm.Name" style="width:100%" placeholder="请输入" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-dropdown split-button type="primary" size="mini" @click="handleSearch" @command="searchCommand">
|
|
|
+ <el-dropdown split-button type="primary" size="mini" @click="handleSearch($event)" @command="searchCommand">
|
|
|
查询
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item command="search">高级查询</el-dropdown-item>
|
|
|
@@ -171,7 +171,7 @@
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="mini" @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="handleSearch($event)">查 询</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="设置审批部门" :close-on-click-modal="false" :visible.sync="deptsetVisible">
|
|
|
@@ -718,12 +718,18 @@
|
|
|
F39: '',
|
|
|
F40: '',
|
|
|
Remark: ''
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
// 查询条件初始值备份
|
|
|
Object.assign(this.searchFormReset, this.searchForm)
|
|
|
+ if (process.client) {
|
|
|
+ let techAptitudeSearchParams = window.localStorage.getItem('techAptitudeSearchParams')
|
|
|
+ if (techAptitudeSearchParams !== '' && techAptitudeSearchParams !== null) {
|
|
|
+ this.searchForm = JSON.parse(techAptitudeSearchParams)
|
|
|
+ }
|
|
|
+ }
|
|
|
this.initTableHeader()
|
|
|
// 查询列表
|
|
|
this.initDatas()
|
|
|
@@ -916,7 +922,7 @@
|
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
- message: res.data.message + " 即将生成对比列表"
|
|
|
+ message: res.data.message + ' 即将生成对比列表'
|
|
|
})
|
|
|
this.importloading = false
|
|
|
this.initImportDatas()
|
|
|
@@ -933,7 +939,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- initTableHeader() {
|
|
|
+ initTableHeader () {
|
|
|
setapi.initTsTableHeader(this.$axios).then(res => {
|
|
|
this.dynamicTableColumns = res.data.items
|
|
|
})
|
|
|
@@ -1003,19 +1009,19 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- Name1Change(val) {
|
|
|
+ Name1Change (val) {
|
|
|
this.formData.Code2 = this.formData.Code2.replace(/^(\w{0})\w{2}(.*)$/, '$1' + val + '$2')
|
|
|
this.formData.Code3 = this.formData.Code3.replace(/^(\w{0})\w{2}(.*)$/, '$1' + val + '$2')
|
|
|
this.formData.Code4 = this.formData.Code4.replace(/^(\w{0})\w{2}(.*)$/, '$1' + val + '$2')
|
|
|
},
|
|
|
- Name2Change(val) {
|
|
|
+ Name2Change (val) {
|
|
|
this.formData.Code3 = this.formData.Code3.replace(/^(\w{0})\w{4}(.*)$/, '$1' + val + '$2')
|
|
|
this.formData.Code4 = this.formData.Code4.replace(/^(\w{0})\w{4}(.*)$/, '$1' + val + '$2')
|
|
|
},
|
|
|
- Name3Change(val) {
|
|
|
+ Name3Change (val) {
|
|
|
this.formData.Code4 = this.formData.Code4.replace(/^(\w{0})\w{6}(.*)$/, '$1' + val + '$2')
|
|
|
},
|
|
|
- saveApprovalDept() {
|
|
|
+ saveApprovalDept () {
|
|
|
let organizeids = []
|
|
|
let organize = this.$refs.operationOriganizeTree.getCheckedNodes()
|
|
|
organize.forEach(row => {
|
|
|
@@ -1040,7 +1046,7 @@
|
|
|
console.log(err)
|
|
|
})
|
|
|
},
|
|
|
- deptSet(val) {
|
|
|
+ deptSet (val) {
|
|
|
let stcode = this.setForm.SupplierTypeCode
|
|
|
this.deptsetVisible = true
|
|
|
this.selecteclassid = val.Id
|
|
|
@@ -1059,7 +1065,7 @@
|
|
|
console.log(err)
|
|
|
})
|
|
|
},
|
|
|
- MoreCmdClick(cmd) {
|
|
|
+ MoreCmdClick (cmd) {
|
|
|
if (cmd.Command === 'Set') {
|
|
|
this.deptSet(cmd.row)
|
|
|
} else if (cmd.Command === 'Delete') {
|
|
|
@@ -1068,13 +1074,19 @@
|
|
|
this.CodeNameEdit(cmd.row)
|
|
|
}
|
|
|
},
|
|
|
- GetCommand(cmdType, row) {
|
|
|
+ GetCommand (cmdType, row) {
|
|
|
let cmd = {}
|
|
|
cmd.Command = cmdType
|
|
|
cmd.row = row
|
|
|
return cmd
|
|
|
},
|
|
|
- initDatas() {
|
|
|
+ initDatas (event) {
|
|
|
+ if (event != null) {
|
|
|
+ this.currentPage = 1
|
|
|
+ if (process.client) {
|
|
|
+ window.localStorage.setItem('techAptitudeSearchParams', JSON.stringify(this.searchForm)) // 物资类查询参数
|
|
|
+ }
|
|
|
+ }
|
|
|
this.loading1 = true
|
|
|
// 分页及列表条件
|
|
|
let params = {
|
|
|
@@ -1103,7 +1115,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- CodeNameEdit(val) {
|
|
|
+ CodeNameEdit (val) {
|
|
|
this.myclassid = val.ClassId
|
|
|
this.$axios.get('technologyserviceclass/getcodename/' + val.Code, {})
|
|
|
.then(res => {
|
|
|
@@ -1115,30 +1127,29 @@
|
|
|
console.log(err)
|
|
|
})
|
|
|
},
|
|
|
- codeedit() {
|
|
|
+ codeedit () {
|
|
|
this.loading3 = true
|
|
|
api.updateCodeEntity(this.myclassid, this.formData, this.$axios).then(res => {
|
|
|
this.loading3 = false
|
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
this.codeeditshow = false
|
|
|
- this.initDatas();
|
|
|
+ this.initDatas()
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
-
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
+ })
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
this.AuditStepOptions = res.data.items['AuditStep']
|
|
|
// this.dictOptions.customerList = res.data.items['customerList']
|
|
|
@@ -1148,7 +1159,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- searchCommand(command) {
|
|
|
+ searchCommand (command) {
|
|
|
if (command === 'search') {
|
|
|
this.dialogVisible = true
|
|
|
} else if (command === 'clear') {
|
|
|
@@ -1156,7 +1167,7 @@
|
|
|
}
|
|
|
},
|
|
|
// 列表排序功能
|
|
|
- orderby(column) {
|
|
|
+ orderby (column) {
|
|
|
if (column.order === 'ascending') {
|
|
|
this.Column.Order = 'asc'
|
|
|
} else if (column.order === 'descending') {
|
|
|
@@ -1165,16 +1176,19 @@
|
|
|
this.Column.Prop = column.prop
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- clearSearch() {
|
|
|
+ clearSearch () {
|
|
|
+ if (process.client) {
|
|
|
+ window.localStorage.setItem('techAptitudeSearchParams', '')
|
|
|
+ }
|
|
|
Object.assign(this.searchForm, this.searchFormReset)
|
|
|
// this.searchForm = this.searchFormReset;
|
|
|
this.CreateOn = ''
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- handleSearch() {
|
|
|
+ handleSearch (event) {
|
|
|
this.currentPage = 1
|
|
|
this.dialogVisible = false
|
|
|
- this.initDatas()
|
|
|
+ this.initDatas(event)
|
|
|
},
|
|
|
handleCurrentChange(value) {
|
|
|
this.currentPage = value
|