|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { STable } from '@/components'
|
|
|
-// import { dealerProductTypeSave } from '@/api/dealerProductType'
|
|
|
+import { costTypeSave } from '@/api/costType'
|
|
|
export default {
|
|
|
name: 'ExpenseTypeEditModal',
|
|
|
components: { STable },
|
|
@@ -85,13 +85,13 @@ export default {
|
|
|
const formData = JSON.parse(JSON.stringify(_this.form))
|
|
|
formData.id = _this.itemId ? _this.itemId : undefined
|
|
|
formData.psn = _this.nowData && _this.nowData.psn ? _this.nowData.psn : undefined
|
|
|
- // dealerProductTypeSave(formData).then(res => {
|
|
|
- // if (res.status == 200) {
|
|
|
- // _this.$message.success(res.message)
|
|
|
- // _this.$emit('ok')
|
|
|
- // _this.isShow = false
|
|
|
- // }
|
|
|
- // })
|
|
|
+ costTypeSave(formData).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ _this.$emit('ok')
|
|
|
+ _this.isShow = false
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
return false
|
|
|
}
|