|
@@ -805,7 +805,11 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 出库明细 -->
|
|
|
- <el-dialog title="出库明细" :visible.sync="outStockShow" width="1200px">
|
|
|
+ <el-dialog
|
|
|
+ :title="stockTitle"
|
|
|
+ :visible.sync="outStockShow"
|
|
|
+ width="1200px"
|
|
|
+ >
|
|
|
<!-- <OutStock ref="outStockRef"></OutStock> -->
|
|
|
<OutStockDetail ref="OutStockDetailRef"></OutStockDetail>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -882,6 +886,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ stockTitle: "", //出库弹窗标题
|
|
|
isAdding: false,
|
|
|
oldInventoryState: 0,
|
|
|
totalMoney: "", //总金额 小写
|
|
@@ -1697,7 +1702,7 @@ export default {
|
|
|
btnType: "myEdit",
|
|
|
btnIcon: "",
|
|
|
btnShowCondition:
|
|
|
- '[{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"3"},{"fieldName":"sale_order.status","mark":"3","refValue":"4"},{"fieldName":"sale_order.status","mark":"3","refValue":"5"},{"fieldName":"sale_order.status","mark":"3","refValue":"6"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"9"},{"fieldName":"sale_order.status","mark":"3","refValue":"100"},{"fieldName":"sale_order.status","mark":"3","refValue":"101"}]',
|
|
|
+ '[{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"3"},{"fieldName":"sale_order.status","mark":"3","refValue":"4"},{"fieldName":"sale_order.status","mark":"3","refValue":"5"},{"fieldName":"sale_order.status","mark":"3","refValue":"6"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"9"},{"fieldName":"sale_order.status","mark":"3","refValue":"100"},{"fieldName":"sale_order.status","mark":"3","refValue":"101"},{"fieldName":"sale_order.status","mark":"3","refValue":"11"}]',
|
|
|
btnHasPermi: "huaxian:xsglddgl:INSERT",
|
|
|
children: [],
|
|
|
},
|
|
@@ -1707,7 +1712,17 @@ export default {
|
|
|
btnIcon: "",
|
|
|
// btnShowCondition: "[]",
|
|
|
btnShowCondition:
|
|
|
- '[{"fieldName":"sale_order.status","mark":"3","refValue":"1"},{"fieldName":"sale_order.status","mark":"3","refValue":"7"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"}]',
|
|
|
+ '[{"fieldName":"sale_order.status","mark":"3","refValue":"1"},{"fieldName":"sale_order.status","mark":"3","refValue":"7"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"11"}]',
|
|
|
+ btnHasPermi: "huaxian:xsglddgl:INSERT",
|
|
|
+ children: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ btnName: "重新登账",
|
|
|
+ btnType: "ReAccount",
|
|
|
+ btnIcon: "",
|
|
|
+ // btnShowCondition: "[]",
|
|
|
+ btnShowCondition:
|
|
|
+ '[{"fieldName":"sale_order.status","mark":"6","refValue":"11"}]',
|
|
|
btnHasPermi: "huaxian:xsglddgl:INSERT",
|
|
|
children: [],
|
|
|
},
|
|
@@ -1717,7 +1732,7 @@ export default {
|
|
|
btnIcon: "",
|
|
|
// btnShowCondition: "[]",
|
|
|
btnShowCondition:
|
|
|
- '[{"fieldName":"sale_order.status","mark":"3","refValue":"1"},{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"7"}]',
|
|
|
+ '[{"fieldName":"sale_order.status","mark":"3","refValue":"1"},{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"7"},{"fieldName":"sale_order.status","mark":"3","refValue":"11"}]',
|
|
|
btnHasPermi: "huaxian:xsglddgl:INSERT",
|
|
|
children: [],
|
|
|
},
|
|
@@ -1727,7 +1742,7 @@ export default {
|
|
|
btnIcon: "",
|
|
|
// btnShowCondition: "[]",
|
|
|
btnShowCondition:
|
|
|
- '[{"fieldName":"sale_order.status","mark":"3","refValue":"1"},{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"7"}]',
|
|
|
+ '[{"fieldName":"sale_order.status","mark":"3","refValue":"1"},{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"7"},{"fieldName":"sale_order.status","mark":"3","refValue":"11"}]',
|
|
|
// ,{"fieldName":"sale_order.status","mark":"3","refValue":"3"} 3待生产
|
|
|
btnHasPermi: "huaxian:xsglddgl:INSERT",
|
|
|
children: [],
|
|
@@ -1745,7 +1760,7 @@ export default {
|
|
|
btnType: "myDelete",
|
|
|
btnIcon: "",
|
|
|
btnShowCondition:
|
|
|
- '[{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"3"},{"fieldName":"sale_order.status","mark":"3","refValue":"4"},{"fieldName":"sale_order.status","mark":"3","refValue":"5"},{"fieldName":"sale_order.status","mark":"3","refValue":"6"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"9"}]',
|
|
|
+ '[{"fieldName":"sale_order.status","mark":"3","refValue":"2"},{"fieldName":"sale_order.status","mark":"3","refValue":"3"},{"fieldName":"sale_order.status","mark":"3","refValue":"4"},{"fieldName":"sale_order.status","mark":"3","refValue":"5"},{"fieldName":"sale_order.status","mark":"3","refValue":"6"},{"fieldName":"sale_order.status","mark":"3","refValue":"8"},{"fieldName":"sale_order.status","mark":"3","refValue":"9"},{"fieldName":"sale_order.status","mark":"3","refValue":"11"}]',
|
|
|
children: [],
|
|
|
btnHasPermi: "huaxian:xsglddgl:INSERT",
|
|
|
},
|
|
@@ -1754,7 +1769,7 @@ export default {
|
|
|
btnType: "myComplate",
|
|
|
btnIcon: "",
|
|
|
btnShowCondition:
|
|
|
- '[{"fieldName":"sale_order.status","mark":"6","refValue":"9"}]',
|
|
|
+ '[{"fieldName":"sale_order.status","mark":"6","refValue":"9"},{"fieldName":"sale_order.status","mark":"3","refValue":"11"}]',
|
|
|
children: [],
|
|
|
btnHasPermi: "huaxian:xsglddgl:INSERT",
|
|
|
}
|
|
@@ -3509,11 +3524,20 @@ export default {
|
|
|
},
|
|
|
// 出库明细回调
|
|
|
handleOutDetail(row) {
|
|
|
+ this.stockTitle = "出库明细";
|
|
|
this.outStockShow = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.OutStockDetailRef.getOutStockDetail(row, false);
|
|
|
});
|
|
|
},
|
|
|
+ // 重新登账回调
|
|
|
+ handleReAccount(row) {
|
|
|
+ this.stockTitle = "重新登账";
|
|
|
+ this.outStockShow = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.OutStockDetailRef.getOutStockDetail(row, false, true);
|
|
|
+ });
|
|
|
+ },
|
|
|
// 操作列回调
|
|
|
excuteHandler(btnData, row) {
|
|
|
let { btnType, btnParams, btnFormType } = btnData;
|
|
@@ -3550,6 +3574,9 @@ export default {
|
|
|
case "OutDetail":
|
|
|
this.handleOutDetail(row);
|
|
|
break;
|
|
|
+ case "ReAccount": //重新登账
|
|
|
+ this.handleReAccount(row);
|
|
|
+ break;
|
|
|
|
|
|
case "myDetail":
|
|
|
this.handleDetail(row);
|