|
@@ -26,7 +26,7 @@
|
|
|
<a-form-model-item label="采购数量" prop="warehouseSnList">
|
|
|
<a-input-number
|
|
|
id="shelfMonitoringList-maxUnsalableDays"
|
|
|
- v-model="formItemLayout.wrapperCol"
|
|
|
+ v-model="formItemLayout.warehouseSnList"
|
|
|
:precision="0"
|
|
|
:min="0"
|
|
|
:max="999999"
|
|
@@ -89,28 +89,31 @@ export default {
|
|
|
// 保存
|
|
|
handleSave () {
|
|
|
const _this = this
|
|
|
+ _this.$emit('close')
|
|
|
+ _this.$router.push({ name: 'shoppingCarList', params: { type: 'pageBtn' } })
|
|
|
this.$refs.ruleForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- const form = JSON.parse(JSON.stringify(_this.form))
|
|
|
- if (form.checkType == 'ALL') {
|
|
|
- delete form.warehouseFlag
|
|
|
- }
|
|
|
- if (form.warehouseSnList) {
|
|
|
- form.warehouseSnList = form.warehouseSnList.join(',')
|
|
|
- }
|
|
|
- _this.spinning = true
|
|
|
- checkWarehouseSave(form).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- _this.$message.success(res.message)
|
|
|
- setTimeout(() => {
|
|
|
- _this.isShow = false
|
|
|
- _this.$emit('ok', res.data)
|
|
|
- _this.spinning = false
|
|
|
- }, 1000)
|
|
|
- } else {
|
|
|
- _this.spinning = false
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
+ // const form = JSON.parse(JSON.stringify(_this.form))
|
|
|
+ // if (form.checkType == 'ALL') {
|
|
|
+ // delete form.warehouseFlag
|
|
|
+ // }
|
|
|
+ // if (form.warehouseSnList) {
|
|
|
+ // form.warehouseSnList = form.warehouseSnList.join(',')
|
|
|
+ // }
|
|
|
+ // _this.spinning = true
|
|
|
+ // checkWarehouseSave(form).then(res => {
|
|
|
+ // if (res.status == 200) {
|
|
|
+ // _this.$message.success(res.message)
|
|
|
+ // setTimeout(() => {
|
|
|
+ // _this.isShow = false
|
|
|
+ // _this.$emit('ok', res.data)
|
|
|
+ // _this.spinning = false
|
|
|
+ // }, 1000)
|
|
|
+ // } else {
|
|
|
+ // _this.spinning = false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
} else {
|
|
|
console.log('error submit!!')
|
|
|
return false
|