|
@@ -64,8 +64,7 @@
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { VSelect } from '@/components'
|
|
import { VSelect } from '@/components'
|
|
import custList from '@/views/common/custList.vue'
|
|
import custList from '@/views/common/custList.vue'
|
|
-// , updateShelfPriceShow
|
|
|
|
-import { shelfSave } from '@/api/shelf'
|
|
|
|
|
|
+import { shelfSave, updateShelfPriceShow } from '@/api/shelf'
|
|
export default {
|
|
export default {
|
|
name: 'ShelfSetBasicInfoModal',
|
|
name: 'ShelfSetBasicInfoModal',
|
|
components: { VSelect, custList },
|
|
components: { VSelect, custList },
|
|
@@ -97,13 +96,13 @@ export default {
|
|
},
|
|
},
|
|
form: {
|
|
form: {
|
|
customerSn: undefined,
|
|
customerSn: undefined,
|
|
- shelfName: ''
|
|
|
|
- // showPrice: undefined
|
|
|
|
|
|
+ shelfName: '',
|
|
|
|
+ showPrice: undefined
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
shelfName: [{ required: true, message: '请输入货架名称', trigger: 'change' }],
|
|
shelfName: [{ required: true, message: '请输入货架名称', trigger: 'change' }],
|
|
- customerSn: [{ required: true, message: '请选择关联客户', trigger: 'change' }]
|
|
|
|
- // showPrice: [{ required: true, message: '请选择价格显示', trigger: 'change' }]
|
|
|
|
|
|
+ customerSn: [{ required: true, message: '请选择关联客户', trigger: 'change' }],
|
|
|
|
+ showPrice: [{ required: true, message: '请选择价格显示', trigger: 'change' }]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -129,21 +128,21 @@ export default {
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
}, 100)
|
|
}, 100)
|
|
// 更新价格显示
|
|
// 更新价格显示
|
|
- // updateShelfPriceShow({
|
|
|
|
- // shelfSn: form.shelfSn,
|
|
|
|
- // paramValue: form.showPrice
|
|
|
|
- // }).then(ret => {
|
|
|
|
- // if (ret.status == 200) {
|
|
|
|
- // _this.$message.success(ret.message)
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // _this.isShow = false
|
|
|
|
- // _this.$emit('ok', res.data)
|
|
|
|
- // _this.spinning = false
|
|
|
|
- // }, 100)
|
|
|
|
- // } else {
|
|
|
|
- // _this.spinning = false
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
|
|
+ updateShelfPriceShow({
|
|
|
|
+ shelfSn: form.shelfSn,
|
|
|
|
+ paramValue: form.showPrice
|
|
|
|
+ }).then(ret => {
|
|
|
|
+ if (ret.status == 200) {
|
|
|
|
+ _this.$message.success(ret.message)
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ _this.isShow = false
|
|
|
|
+ _this.$emit('ok', res.data)
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ }, 100)
|
|
|
|
+ } else {
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
}
|
|
}
|