|
|
|
|
@ -19,6 +19,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width:300px" v-model="form.cangkubianma"></el-input>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -57,6 +58,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width:300px" v-model="form.cangkumianji"></el-input>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -131,13 +133,12 @@
|
|
|
|
|
save,
|
|
|
|
|
show
|
|
|
|
|
} from "@/api/system/baseForm.js"
|
|
|
|
|
import {
|
|
|
|
|
getparameteritem
|
|
|
|
|
} from "@/api/system/dictionary.js"
|
|
|
|
|
import {
|
|
|
|
|
getparameteritem
|
|
|
|
|
} from "@/api/system/dictionary.js"
|
|
|
|
|
import {
|
|
|
|
|
Message
|
|
|
|
|
} from 'element-ui'
|
|
|
|
|
import { saveStorehouseType } from '@/api/system/storehouseType'
|
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
data() {
|
|
|
|
|
@ -210,21 +211,35 @@
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
submit() {
|
|
|
|
|
const params = {
|
|
|
|
|
name: this.form.cangkumingcheng,
|
|
|
|
|
remark: this.form.cangkujianjie,
|
|
|
|
|
};
|
|
|
|
|
if (this.type === 'editor') {
|
|
|
|
|
params.id = this.id;
|
|
|
|
|
if (this.type === 'add') {
|
|
|
|
|
save({
|
|
|
|
|
table_name: this.tableName,
|
|
|
|
|
...this.form
|
|
|
|
|
}).then(res => {
|
|
|
|
|
Message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '新增成功'
|
|
|
|
|
})
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
this.isShow = false
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
saveStorehouseType(params).then(res => {
|
|
|
|
|
Message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: this.type === 'add' ? '新增成功' : '编辑成功'
|
|
|
|
|
if (this.type === 'editor') {
|
|
|
|
|
save({
|
|
|
|
|
id: this.id,
|
|
|
|
|
table_name: this.tableName,
|
|
|
|
|
...this.form
|
|
|
|
|
}).then(res => {
|
|
|
|
|
Message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '编辑成功'
|
|
|
|
|
})
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
this.isShow = false
|
|
|
|
|
})
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
this.isShow = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|