Merge remote-tracking branch 'origin/otherChange' into zhairh

# Conflicts:
#	src/views/inventory/InvProducts.vue
zhairh
x_z 3 years ago
commit 4f5cafbea7

@ -41,7 +41,7 @@
<span>{{ enableMap[scope.row.supplementAll] }}</span> <span>{{ enableMap[scope.row.supplementAll] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="intro"></el-table-column> <el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="操作" width="100" fixed="right"> <el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -167,7 +167,7 @@ export default {
onAddSubmit() { onAddSubmit() {
debugger
if (this.$isBlank(this.inputQuery.originAction)) { if (this.$isBlank(this.inputQuery.originAction)) {
this.$message.error("原单据类型不能为空!"); this.$message.error("原单据类型不能为空!");
return; return;

@ -187,14 +187,14 @@ export default {
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.orderIdFk = this.idQuery.orderIdFk; this.query.orderIdFk = this.idQuery.orderIdFk;
let query = { // let query = {
orderIdFk: this.idQuery.orderIdFk, // orderIdFk: this.idQuery.orderIdFk,
code:this.query.code // code:this.query.code,
} // }
/* this.query.batchNo = this.idQuery.batchNo; /* this.query.batchNo = this.idQuery.batchNo;
this.query.supId = this.idQuery.supId; this.query.supId = this.idQuery.supId;
this.query.invStorageCode = this.idQuery.invStorageCode;*/ this.query.invStorageCode = this.idQuery.invStorageCode;*/
filterDetailProducts(query) // filterDetailProducts(this.query) //
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.codeArry = response.data.list || []; this.codeArry = response.data.list || [];

@ -679,8 +679,9 @@ export default {
} }
if (store.getters.customerId == 110) { if (store.getters.customerId == 110) {
this.newSpDistributionVisible = true; this.newSpDistributionVisible = true;
} else } else{
this.newDistributionVisible = true; this.newDistributionVisible = true;
}
}, },
closeDialog(type) { closeDialog(type) {
this.newDistributionVisible = false; this.newDistributionVisible = false;

@ -73,7 +73,7 @@
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="billType"> <el-form-item prop="billType">
<el-select v-model="formData.billType" placeholder="请选择业务类型" <el-select v-model="formData.billType" placeholder="请选择业务类型"
:disabled="codeArray.length>0" :disabled="codeArray.length>0" @change="actionChange"
clearable> clearable>
<el-option <el-option
v-for="item in busTypes" v-for="item in busTypes"
@ -275,6 +275,7 @@
width="85%" width="85%"
v-if="selectInvProductVisible" v-if="selectInvProductVisible"
:append-to-body='true' :append-to-body='true'
:invQueryData="invQueryData"
> >
<dialogInvProduct <dialogInvProduct
:closeDialog="closeDialogC2" :closeDialog="closeDialogC2"
@ -367,6 +368,7 @@ export default {
formVisible: false, formVisible: false,
deleteLoading: false, deleteLoading: false,
orderNo: null, orderNo: null,
invQueryData:[],
statusMap: { statusMap: {
101: "未处理", 101: "未处理",
@ -512,6 +514,12 @@ export default {
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}) })
},
actionChange(val) {
this.formData.billType=val
}, },
submit(formName) { submit(formName) {
if (this.total < 1) { if (this.total < 1) {
@ -543,8 +551,9 @@ export default {
}, },
selectProductFunction(event) { selectProductFunction(event) {
if (event != null) if (event != null) {
event.target.select(); event.target.select();
}
if (this.$isBlank(event)) { if (this.$isBlank(event)) {
if (this.$isBlank(this.formData.billType)) { if (this.$isBlank(this.formData.billType)) {
this.$message.error("单据类型不能为空!") this.$message.error("单据类型不能为空!")
@ -569,6 +578,7 @@ export default {
if (this.orderEditor) { if (this.orderEditor) {
this.thisData.orderId = this.formData.id this.thisData.orderId = this.formData.id
} }
this.invQueryData.corpId = this.formData.corpId; this.invQueryData.corpId = this.formData.corpId;
this.selectProductVisible = true; this.selectProductVisible = true;
return; return;
@ -995,6 +1005,7 @@ export default {
this.formData = { this.formData = {
billdate: "", billdate: "",
corpName: store.getters.companyName, corpName: store.getters.companyName,
corpId:store.getters.customerId,
customerId: store.getters.customerId, customerId: store.getters.customerId,
billType: "", billType: "",
type: "2", type: "2",

Loading…
Cancel
Save