|
@@ -1156,7 +1156,7 @@ export default {
|
|
|
this.getList();
|
|
|
this.selectMethods();
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
@@ -2226,17 +2226,27 @@ export default {
|
|
|
}
|
|
|
break;
|
|
|
case "生成出库单":
|
|
|
- let listd = {
|
|
|
- fId: this.detailForm.fId,
|
|
|
- fBilltype: "CK",
|
|
|
- };
|
|
|
- copyNew(listd).then((res) => {
|
|
|
+ console.log(this.detailForm, 111)
|
|
|
+ if (this.detailForm.fBillstatus == 6) {
|
|
|
+ let listd = {
|
|
|
+ fId: this.detailForm.fId,
|
|
|
+ fBilltype: "CK",
|
|
|
+ };
|
|
|
+ copyNew(listd).then((res) => {
|
|
|
+ this.$message({
|
|
|
+ message: "生成成功",
|
|
|
+ type: "success",
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
- message: "生成成功",
|
|
|
- type: "success",
|
|
|
- showClose: true,
|
|
|
+ message: '请先进行入库确认',
|
|
|
+ type: 'warning'
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
break;
|
|
|
case "撤销入库":
|
|
|
let data = {
|