|
|
@@ -122,7 +122,7 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['iscs:propvalue:edit']"
|
|
|
- >编辑
|
|
|
+ >修改
|
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
|
@@ -202,14 +202,13 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
|
|
|
import Template from '@/views/print/printtemplate/list.vue'
|
|
|
|
|
|
-
|
|
|
export default {
|
|
|
name: 'Team',
|
|
|
components: {
|
|
|
Template,
|
|
|
Treeselect
|
|
|
},
|
|
|
- dicts: ['material_status','file_type'],
|
|
|
+ dicts: ['material_status', 'file_type'],
|
|
|
data() {
|
|
|
return {
|
|
|
//自动生成编码
|
|
|
@@ -239,13 +238,13 @@ export default {
|
|
|
queryParams: {
|
|
|
current: 1,
|
|
|
size: 10,
|
|
|
- propertyName:'',
|
|
|
- valueName:'',
|
|
|
- propertyId:null
|
|
|
+ propertyName: '',
|
|
|
+ valueName: '',
|
|
|
+ propertyId: null
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {
|
|
|
- propertyId:''
|
|
|
+ propertyId: ''
|
|
|
},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
@@ -255,8 +254,7 @@ export default {
|
|
|
materialsTypeId: [
|
|
|
{ required: true, message: '物资类型不能为空', trigger: 'blur' }
|
|
|
]
|
|
|
- },
|
|
|
-
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
},
|
|
|
@@ -266,14 +264,14 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- goBack(){
|
|
|
+ goBack() {
|
|
|
this.$router.push('/material/standard')
|
|
|
},
|
|
|
/** 查询物资信息列表 */
|
|
|
getList() {
|
|
|
this.loading = true
|
|
|
- this.queryParams.propertyId=this.$route.query.propertyId
|
|
|
- this.queryParams.propertyName=this.$route.query.propertyName
|
|
|
+ this.queryParams.propertyId = this.$route.query.propertyId
|
|
|
+ this.queryParams.propertyName = this.$route.query.propertyName
|
|
|
PropertyValuePage(this.queryParams).then((response) => {
|
|
|
console.log(response, '获取物资说明 ')
|
|
|
this.PropertyValueList = response.data.records
|
|
|
@@ -290,7 +288,7 @@ export default {
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
- propertyName:''
|
|
|
+ propertyName: ''
|
|
|
}
|
|
|
this.resetForm('form')
|
|
|
this.autoGenFlag = false
|
|
|
@@ -307,7 +305,7 @@ export default {
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.recordId)
|
|
|
- this.single = selection.length!==1
|
|
|
+ this.single = selection.length !== 1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
|
|
|
@@ -315,7 +313,7 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset()
|
|
|
this.open = true
|
|
|
- this.form.propertyId=this.$route.query.propertyId
|
|
|
+ this.form.propertyId = this.$route.query.propertyId
|
|
|
this.title = '新增物资规格'
|
|
|
this.optType = 'add'
|
|
|
},
|
|
|
@@ -324,10 +322,10 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
this.reset()
|
|
|
selectPropertyValueById(row.recordId).then((response) => {
|
|
|
- console.log(response,'编辑')
|
|
|
+ console.log(response, '修改')
|
|
|
this.form = response.data
|
|
|
this.open = true
|
|
|
- this.title = '编辑物资规格'
|
|
|
+ this.title = '修改物资规格'
|
|
|
this.optType = 'edit'
|
|
|
})
|
|
|
},
|