单据bug修改

prod
anthonywj 2 years ago
parent fb0f1b51be
commit 9993d3a5cb

@ -208,6 +208,23 @@
:selectUnitTitle="selectUnitTitle"></codesPanel>
</el-tab-pane>
</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>
</template>
@ -219,6 +236,7 @@ import {
import {findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
import {parseTime} from "../../utils/coTools";
import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain"
import editCodeDialog from "./DialogEditCode";
import codesPanel from "./PanelCreateOrderCodes"
@ -335,7 +353,7 @@ export default {
};
},
components: {
codesPanel, codeDetailPanel, bizDetailPanel
codesPanel, codeDetailPanel, bizDetailPanel, editCodeDialog
},
methods: {
//
@ -494,6 +512,22 @@ export default {
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) {
addOrderWeb(tQuery).then((response) => {
@ -746,6 +780,10 @@ export default {
});
},
closeCodeDialog() {
this.editOriginCodeVisible = false;
this.refreshCodesPanel();
},
},
filters: {},
mounted() {

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

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

@ -154,20 +154,6 @@
</editCodeDialog>
</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>
</template>
@ -210,8 +196,6 @@ export default {
query: {
code: "",
corpOrderId: "",
page: 1,
limit: 10,
},
codeDetail: null,
codeArray: [],

Loading…
Cancel
Save