|
@@ -724,7 +724,13 @@
|
|
</el-form>
|
|
</el-form>
|
|
</el-row>
|
|
</el-row>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button type="primary" @click="editConfirm">确 定</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="editConfirm"
|
|
|
|
+ :disabled="isAdding"
|
|
|
|
+ :loading="isAdding"
|
|
|
|
+ >确 定</el-button
|
|
|
|
+ >
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -800,7 +806,8 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 出库明细 -->
|
|
<!-- 出库明细 -->
|
|
<el-dialog title="出库明细" :visible.sync="outStockShow" width="1200px">
|
|
<el-dialog title="出库明细" :visible.sync="outStockShow" width="1200px">
|
|
- <OutStock ref="outStockRef"></OutStock>
|
|
|
|
|
|
+ <!-- <OutStock ref="outStockRef"></OutStock> -->
|
|
|
|
+ <OutStockDetail ref="OutStockDetailRef"></OutStockDetail>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="outStockShow = false">关 闭</el-button>
|
|
<el-button @click="outStockShow = false">关 闭</el-button>
|
|
<!-- <el-button type="primary" @click="btnComfirm">确 定</el-button> -->
|
|
<!-- <el-button type="primary" @click="btnComfirm">确 定</el-button> -->
|
|
@@ -856,6 +863,7 @@ import outBoundPrint from "@/utils/print/outBoundPrint";
|
|
import oldOutBoundPrint from "@/utils/print/oldOutBoundPrint";
|
|
import oldOutBoundPrint from "@/utils/print/oldOutBoundPrint";
|
|
import { listCustomer } from "@/api/system/customer";
|
|
import { listCustomer } from "@/api/system/customer";
|
|
import OutStock from "@/views/orderMange/components/dialogForm/OutStock.vue";
|
|
import OutStock from "@/views/orderMange/components/dialogForm/OutStock.vue";
|
|
|
|
+import OutStockDetail from "@/views/orderMange/components/dialogForm/OutStockDetail.vue"; //拆分零售订单与普通订单
|
|
import oldOutBound from "@/views/orderMange/components/dialogForm/oldOutBound.vue";
|
|
import oldOutBound from "@/views/orderMange/components/dialogForm/oldOutBound.vue";
|
|
import { numToCapital } from "@/utils/other";
|
|
import { numToCapital } from "@/utils/other";
|
|
|
|
|
|
@@ -870,9 +878,11 @@ export default {
|
|
OutBound,
|
|
OutBound,
|
|
OutStock,
|
|
OutStock,
|
|
oldOutBound,
|
|
oldOutBound,
|
|
|
|
+ OutStockDetail,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ isAdding: false,
|
|
oldInventoryState: 0,
|
|
oldInventoryState: 0,
|
|
totalMoney: "", //总金额 小写
|
|
totalMoney: "", //总金额 小写
|
|
outStockShow: false, //出库详情
|
|
outStockShow: false, //出库详情
|
|
@@ -1917,6 +1927,7 @@ export default {
|
|
// this.$message.warning(tableValidate.msg);
|
|
// this.$message.warning(tableValidate.msg);
|
|
// // return;
|
|
// // return;
|
|
// }
|
|
// }
|
|
|
|
+ this.isAdding = true;
|
|
this.$refs.formDataRef.validate(async (valid) => {
|
|
this.$refs.formDataRef.validate(async (valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
let {
|
|
let {
|
|
@@ -2105,9 +2116,11 @@ export default {
|
|
addProductRes?.code === 200
|
|
addProductRes?.code === 200
|
|
) {
|
|
) {
|
|
this.$message.success("修改成功");
|
|
this.$message.success("修改成功");
|
|
|
|
+ this.isAdding = false;
|
|
this.open = false;
|
|
this.open = false;
|
|
this.getList();
|
|
this.getList();
|
|
} else {
|
|
} else {
|
|
|
|
+ this.isAdding = false;
|
|
this.$message.error("修改失败");
|
|
this.$message.error("修改失败");
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -2127,16 +2140,20 @@ export default {
|
|
productRes.code === 200
|
|
productRes.code === 200
|
|
) {
|
|
) {
|
|
this.$message.success("添加成功");
|
|
this.$message.success("添加成功");
|
|
|
|
+
|
|
this.open = false;
|
|
this.open = false;
|
|
|
|
+ this.isAdding = false;
|
|
this.getList();
|
|
this.getList();
|
|
} else {
|
|
} else {
|
|
this.$message.error("添加失败");
|
|
this.$message.error("添加失败");
|
|
|
|
+ this.isAdding = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// Object.keys(saleValue).map((k) => {
|
|
// Object.keys(saleValue).map((k) => {
|
|
// saleData.commMap[k] = saleValue[k];
|
|
// saleData.commMap[k] = saleValue[k];
|
|
// });
|
|
// });
|
|
} else {
|
|
} else {
|
|
|
|
+ this.isAdding = false;
|
|
this.$message.error("请完善表单数据");
|
|
this.$message.error("请完善表单数据");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -3494,7 +3511,7 @@ export default {
|
|
handleOutDetail(row) {
|
|
handleOutDetail(row) {
|
|
this.outStockShow = true;
|
|
this.outStockShow = true;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.$refs.outStockRef.getOutStockDetail(row, false);
|
|
|
|
|
|
+ this.$refs.OutStockDetailRef.getOutStockDetail(row, false);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 操作列回调
|
|
// 操作列回调
|