单据bug修改

prod
anthonywj 2 years ago
parent fb0f1b51be
commit 9993d3a5cb

@ -208,6 +208,23 @@
:selectUnitTitle="selectUnitTitle"></codesPanel> :selectUnitTitle="selectUnitTitle"></codesPanel>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog
:title="editTitle"
:visible.sync="editOriginCodeVisible"
append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editOriginCodeVisible">
<editCodeDialog
:closeCodeDialog="closeCodeDialog"
:repeatAddCode="repeatAddCode"
:codeDetail="codeFormData"
editTye="1">
</editCodeDialog>
</el-dialog>
</div> </div>
</template> </template>
@ -219,6 +236,7 @@ import {
import {findByFrom, findInvByUser} from "../../api/system/invSubWarehouse"; import {findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
import {parseTime} from "../../utils/coTools"; import {parseTime} from "../../utils/coTools";
import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain" import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain"
import editCodeDialog from "./DialogEditCode";
import codesPanel from "./PanelCreateOrderCodes" import codesPanel from "./PanelCreateOrderCodes"
@ -335,7 +353,7 @@ export default {
}; };
}, },
components: { components: {
codesPanel, codeDetailPanel, bizDetailPanel codesPanel, codeDetailPanel, bizDetailPanel, editCodeDialog
}, },
methods: { methods: {
// //
@ -494,6 +512,22 @@ export default {
this.$refs.inputRef.select(); this.$refs.inputRef.select();
}, },
repeatAddCode(editData) {
let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData)));
tQuery.code = this.codeFormData.code;
tQuery.orderType = this.viewType;
tQuery.batchNo = editData.batchNo;
tQuery.produceDate = editData.produceDate;
tQuery.expireDate = editData.expireDate;
tQuery.serialNo = editData.serialNo;
this.closeCodeDialog();
this.addCodeSubmit(tQuery);
},
// //
addCodeSubmit(tQuery) { addCodeSubmit(tQuery) {
addOrderWeb(tQuery).then((response) => { addOrderWeb(tQuery).then((response) => {
@ -746,6 +780,10 @@ export default {
}); });
}, },
closeCodeDialog() {
this.editOriginCodeVisible = false;
this.refreshCodesPanel();
},
}, },
filters: {}, filters: {},
mounted() { mounted() {

@ -271,8 +271,6 @@ export default {
orderId: null, orderId: null,
code: "", code: "",
corpOrderId: "", corpOrderId: "",
page: 1,
limit: 10,
}, },
detailList: [], detailList: [],
total: 0, total: 0,
@ -381,6 +379,8 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("保存成功!"); this.$message.success("保存成功!");
this.selectedIndex = null; this.selectedIndex = null;
this.refreshPanel();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }

@ -51,8 +51,6 @@ export default {
orderId: null, orderId: null,
code: "", code: "",
corpOrderId: "", corpOrderId: "",
page: 1,
limit: 10,
}, },
detailList: [], detailList: [],
total: 0, total: 0,

@ -154,20 +154,6 @@
</editCodeDialog> </editCodeDialog>
</el-dialog> </el-dialog>
<el-dialog
:title="editTitle"
:visible.sync="editOriginCodeVisible"
append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editOriginCodeVisible">
<editCodeDialog
:closeCodeDialog="closeCodeDialog"
:repeatAddCode="repeatAddCode"
:codeDetail="idQuery"
editTye="1">
</editCodeDialog>
</el-dialog>
</div> </div>
</template> </template>
@ -210,8 +196,6 @@ export default {
query: { query: {
code: "", code: "",
corpOrderId: "", corpOrderId: "",
page: 1,
limit: 10,
}, },
codeDetail: null, codeDetail: null,
codeArray: [], codeArray: [],

Loading…
Cancel
Save