|
@@ -54,7 +54,8 @@ import {
|
|
|
listImport1,
|
|
|
listImport2,
|
|
|
getTypeList,
|
|
|
- getCategoryList
|
|
|
+ getCategoryList,
|
|
|
+ partsBaseList
|
|
|
} from '@/api/auxiliaryFittings/attachmentProfile'
|
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
@@ -94,10 +95,12 @@ export default {
|
|
|
selfWorkerAmount: '',
|
|
|
outWebsitAmount: '',
|
|
|
outWorkerAmount: '',
|
|
|
- remark: ''
|
|
|
+ remark: '',
|
|
|
+ partType: ''
|
|
|
},
|
|
|
partsUnitList: [],
|
|
|
brandList: [],
|
|
|
+ baseList: [],
|
|
|
categoryList: [],
|
|
|
formType: 'add',
|
|
|
formVisible: false
|
|
@@ -315,6 +318,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ isShow: this.formData.normType == 'M' ? true : false,
|
|
|
+ md: 6,
|
|
|
+ name: 'el-select',
|
|
|
+ options: this.baseList,
|
|
|
+ attributes: { placeholder: '请选择单位', filterable: true, clearable: true },
|
|
|
+ formItemAttributes: {
|
|
|
+ label: '配件类型',
|
|
|
+ prop: 'partType',
|
|
|
+ rules: [...required]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
md: 24,
|
|
|
isShow: this.formData.normType == 'M' ? true : false,
|
|
|
name: 'el-checkbox-add',
|
|
@@ -632,6 +647,7 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
// 列表请求函数
|
|
|
getList(p, cb) {
|
|
@@ -646,6 +662,15 @@ export default {
|
|
|
console.log(error)
|
|
|
}
|
|
|
},
|
|
|
+ getpartsBaseList() {
|
|
|
+ partsBaseList({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: []
|
|
|
+ }).then(res => {
|
|
|
+ this.baseList = res.data.records.map(item => ({ value: item.value, label: item.value }))
|
|
|
+ })
|
|
|
+ },
|
|
|
getTypeList(value, type) {
|
|
|
getTypeList({
|
|
|
pageNum: 1,
|
|
@@ -728,6 +753,7 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.formType = type
|
|
|
this.formVisible = true
|
|
|
+ this.getpartsBaseList()
|
|
|
this.getTypeList('PARTS_UNIT', 'partsUnitList')
|
|
|
this.getTypeList('BRAND', 'brandList')
|
|
|
this.getCategoryList()
|
|
@@ -757,7 +783,6 @@ export default {
|
|
|
if (this.recordSelected.length == 0) {
|
|
|
return this.$message.warning('请至少勾选一条数据!')
|
|
|
}
|
|
|
- console.log(this.recordSelected)
|
|
|
this.$confirm(`请确认是否${stateEnum == 'OFF' ? '下架' : '上架'}该配件, 是否继续?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|