|
@@ -1121,7 +1121,6 @@
|
|
|
import setapi from '@/api/oilsupplier/oilclassorgset'
|
|
import setapi from '@/api/oilsupplier/oilclassorgset'
|
|
|
import goodsApi from '@/api/oilsupplier/goodsaptitude'
|
|
import goodsApi from '@/api/oilsupplier/goodsaptitude'
|
|
|
|
|
|
|
|
-
|
|
|
|
|
// v-viewer
|
|
// v-viewer
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
import Viewer from 'v-viewer'
|
|
import Viewer from 'v-viewer'
|
|
@@ -2094,7 +2093,7 @@
|
|
|
})
|
|
})
|
|
|
}, 1000)
|
|
}, 1000)
|
|
|
},
|
|
},
|
|
|
- checkExpand (data,node,node2) {
|
|
|
|
|
|
|
+ checkExpand (data, node, node2) {
|
|
|
if (data.Code.length === 6) {
|
|
if (data.Code.length === 6) {
|
|
|
// node.disabled = false
|
|
// node.disabled = false
|
|
|
data.disabled = false
|
|
data.disabled = false
|
|
@@ -2212,6 +2211,9 @@
|
|
|
this.AuditdialogShow = true
|
|
this.AuditdialogShow = true
|
|
|
},
|
|
},
|
|
|
comSubmitToSeparateUnitClick () {
|
|
comSubmitToSeparateUnitClick () {
|
|
|
|
|
+ // 企业用户自行提交增项申请
|
|
|
|
|
+ // 提交前自动保存【增项信息】模块内容
|
|
|
|
|
+ this.saveEntity('auto')
|
|
|
this.dialogComSubmitToSeparateUnitVisible = true
|
|
this.dialogComSubmitToSeparateUnitVisible = true
|
|
|
},
|
|
},
|
|
|
// 根据分类Id获取Code
|
|
// 根据分类Id获取Code
|
|
@@ -2916,14 +2918,14 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 保存增项信息
|
|
// 保存增项信息
|
|
|
- saveEntity () {
|
|
|
|
|
|
|
+ saveEntity (val) {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (_this.editFlag == '1' && _this.Id !== '') {
|
|
if (_this.editFlag == '1' && _this.Id !== '') {
|
|
|
- _this.updateData()
|
|
|
|
|
|
|
+ _this.updateData(val)
|
|
|
} else {
|
|
} else {
|
|
|
- _this.addAppend()
|
|
|
|
|
|
|
+ _this.addAppend(val)
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
return false
|
|
return false
|
|
@@ -2932,21 +2934,25 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 更新增项信息
|
|
// 更新增项信息
|
|
|
- updateData () {
|
|
|
|
|
|
|
+ updateData (val) {
|
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
let _this = this
|
|
let _this = this
|
|
|
api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
|
|
api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.getEntityById()
|
|
this.getEntityById()
|
|
|
- this.$message({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (val !== 'auto') { // 直接点击提交按钮时自动保存
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
- this.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (val !== 'auto') {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
@@ -2998,7 +3004,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 添加增项信息
|
|
// 添加增项信息
|
|
|
- addAppend () {
|
|
|
|
|
|
|
+ addAppend (val) {
|
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.formData.AppendType = '01'
|
|
_this.formData.AppendType = '01'
|
|
@@ -3009,15 +3015,19 @@
|
|
|
this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
|
|
this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
|
|
|
this.Id = res.data.info
|
|
this.Id = res.data.info
|
|
|
this.getEntityById()
|
|
this.getEntityById()
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (val !== 'auto') {
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (val !== 'auto') {
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
@@ -3119,7 +3129,7 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
let name = _this.searchText
|
|
let name = _this.searchText
|
|
|
let params = {
|
|
let params = {
|
|
|
- level : _this.Grade
|
|
|
|
|
|
|
+ level: _this.Grade
|
|
|
}
|
|
}
|
|
|
goodsApi.goodsParentlist(params, name, this.$axios).then(res => {
|
|
goodsApi.goodsParentlist(params, name, this.$axios).then(res => {
|
|
|
_this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
|
|
_this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
|
|
@@ -3473,7 +3483,7 @@
|
|
|
this.InOptions = res.data.items['InOptions']
|
|
this.InOptions = res.data.items['InOptions']
|
|
|
this.UnitRelationOptions = this.dictData['UnitRelation']
|
|
this.UnitRelationOptions = this.dictData['UnitRelation']
|
|
|
if (this.supplierData.SpecTypeCode == '') {
|
|
if (this.supplierData.SpecTypeCode == '') {
|
|
|
- this.supplierData.SpecTypeCode = "1"
|
|
|
|
|
|
|
+ this.supplierData.SpecTypeCode = '1'
|
|
|
}
|
|
}
|
|
|
this.CompanyTypeOptions = this.dictData['CompanyType']
|
|
this.CompanyTypeOptions = this.dictData['CompanyType']
|
|
|
this.OperTypeOptions = this.dictData['OperType']
|
|
this.OperTypeOptions = this.dictData['OperType']
|