|
|
|
@ -362,6 +362,24 @@
|
|
|
|
|
>
|
|
|
|
|
</dialog-create-order-select>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 绑定供应商-->
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="selectUnitTitle"
|
|
|
|
|
:visible.sync="dialogTableVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
v-if="dialogTableVisible"
|
|
|
|
|
width="80%"
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
|
<DialogSelectUnit
|
|
|
|
|
:codeId="codeFormData"
|
|
|
|
|
v-on:selectSupUnit="selectSupUnit"
|
|
|
|
|
></DialogSelectUnit>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -387,6 +405,7 @@ import bizDetailPanel from "./PanelCreateOrderBizDetail";
|
|
|
|
|
import A from "../../plugins/KeyScaner";
|
|
|
|
|
import {findByInvUser} from "@/api/basic/busType";
|
|
|
|
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
|
|
|
|
import DialogSelectUnit from "./DialogSelectUnit";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "ioCreateOrder",
|
|
|
|
@ -437,6 +456,7 @@ export default {
|
|
|
|
|
produceDate: null,
|
|
|
|
|
expireDate: null,
|
|
|
|
|
serialNo: null,
|
|
|
|
|
relId: null,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
curInvOptions: [],
|
|
|
|
@ -447,7 +467,6 @@ export default {
|
|
|
|
|
curPreInInvOptions: [], //预验收仓库
|
|
|
|
|
curPreInSpaceOptions: [], //预验收货位
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
curAction: {
|
|
|
|
|
corpType: 0,
|
|
|
|
|
genUnit: false,
|
|
|
|
@ -516,6 +535,7 @@ export default {
|
|
|
|
|
bizDetailPanel,
|
|
|
|
|
editCodeDialog,
|
|
|
|
|
DialogCreateOrderSelect,
|
|
|
|
|
DialogSelectUnit
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//获取用户仓库列表
|
|
|
|
@ -819,9 +839,11 @@ export default {
|
|
|
|
|
} else if (response.code == 503) {
|
|
|
|
|
this.curRow = response.data;
|
|
|
|
|
this.orderFormData.billNo = this.curRow.orderId;
|
|
|
|
|
this.codeFormData.relId = this.curRow.relId,
|
|
|
|
|
this.refreshCodesPanel();
|
|
|
|
|
this.selectUnitTitle = response.message;
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
this.dialogTableVisible = true;
|
|
|
|
|
} else if (response.code == 504) {
|
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
@ -1061,22 +1083,9 @@ export default {
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
},
|
|
|
|
|
selectSupUnit(row) {
|
|
|
|
|
let query = {
|
|
|
|
|
id: this.curRow.id,
|
|
|
|
|
supId: row.erpId,
|
|
|
|
|
};
|
|
|
|
|
updateCodeBindSup(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("绑定成功");
|
|
|
|
|
this.orderFormData.id = this.curRow.orderId;
|
|
|
|
|
this.getCodeList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
|
this.orderFormData.selectSupId = row.erpId;
|
|
|
|
|
this.addCode();
|
|
|
|
|
},
|
|
|
|
|
closeCodeDialog() {
|
|
|
|
|
this.editOriginCodeVisible = false;
|
|
|
|
|