产品入库
This commit is contained in:
parent
44f3afea28
commit
7fd7319978
@ -42,3 +42,11 @@ export function delProductrecpt(recptId) {
|
|||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//执行入库
|
||||||
|
export function execute(recptId) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/wm/productrecpt/' + recptId,
|
||||||
|
method: 'put'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -211,7 +211,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listProductrecpt, getProductrecpt, delProductrecpt, addProductrecpt, updateProductrecpt } from "@/api/mes/wm/productrecpt";
|
import { listProductrecpt, getProductrecpt, delProductrecpt, addProductrecpt, updateProductrecpt ,execute} from "@/api/mes/wm/productrecpt";
|
||||||
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
||||||
import Productrecptline from "./line.vue"
|
import Productrecptline from "./line.vue"
|
||||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||||
@ -394,6 +394,16 @@ export default {
|
|||||||
this.title = "修改产品入库单";
|
this.title = "修改产品入库单";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//执行入库
|
||||||
|
handleExecute(row){
|
||||||
|
const recptIds = row.recptId || this.ids;
|
||||||
|
this.$modal.confirm('确认执行入库?').then(function() {
|
||||||
|
return execute(recptIds)//执行入库
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("入库成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
|
Loading…
Reference in New Issue
Block a user