chenrui 4 gadi atpakaļ
vecāks
revīzija
45761ca428

+ 2 - 2
src/views/inventoryManagement/warehouse/storingLocation/list.vue

@@ -53,10 +53,10 @@
 <script>
 import moment from 'moment'
 import { warehouseLocFindAll, warehouseFindAll, warehouseLocDel } from '@/api/warehouse'
-import { STable, VSelect } from '@/components'
+import { STable } from '@/components'
 import storingLocationEditModal from './editModal.vue'
 export default {
-  components: { STable, VSelect, storingLocationEditModal },
+  components: { STable, storingLocationEditModal },
   data () {
     return {
       queryParam: { //  查询条件

+ 1 - 1
src/views/productManagement/productBrand/editModal.vue

@@ -84,7 +84,7 @@ export default {
       _this.$refs.ruleForm.validate(valid => {
         if (valid) {
           const formData = JSON.parse(JSON.stringify(_this.form))
-          formData.id = _this.itemId ? _this.itemId : null
+          formData.id = _this.itemId ? _this.itemId : undefined
           dealerProductBrandSave(formData).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)

+ 2 - 2
src/views/productManagement/productCategory/editModal.vue

@@ -83,8 +83,8 @@ export default {
       _this.$refs.ruleForm.validate(valid => {
         if (valid) {
           const formData = JSON.parse(JSON.stringify(_this.form))
-          formData.id = _this.itemId ? _this.itemId : null
-          formData.psn = _this.nowData && _this.nowData.psn ? _this.nowData.psn : null
+          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)

+ 2 - 2
src/views/productManagement/productInfo/edit.vue

@@ -140,7 +140,7 @@ export default {
     }
   },
   methods: {
-    //  获取供应商信息
+    //  获取产品信息
     getGoodsDetail () {
       dealerProductDetail({ id: this.$route.params.id }).then(res => {
         if (res.status == 200) {
@@ -161,7 +161,7 @@ export default {
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
           const form = JSON.parse(JSON.stringify(_this.form))
-          form.id = _this.$route.params.id ? _this.$route.params.id : null
+          form.id = _this.$route.params.id ? _this.$route.params.id : undefined
           delete form.productType
           dealerProductSave(form).then(res => {
             if (res.status == 200) {