|
|
@@ -1141,14 +1141,21 @@ export default {
|
|
|
spinner: "el-icon-loading",
|
|
|
background: "rgba(255,255,255,0.7)"
|
|
|
});
|
|
|
- confirmInventory(this.form)
|
|
|
- .then(res => {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.refresh(this.form.id);
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
+ submitInventory({
|
|
|
+ bsType: "PD",
|
|
|
+ ...this.form
|
|
|
+ }).then(res => {
|
|
|
+ confirmInventory(this.form)
|
|
|
+ .then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.refresh(this.form.id);
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ }).catch(()=>{
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
});
|
|
|
},
|
|
|
//修改提交触发
|