验收,

prod
anthonywj 2 years ago
parent 9924c9951e
commit e0ac888248

@ -37,8 +37,8 @@ export function deleteCodesTempById(query) {
export function submitOrderWeb(query) {
return axios({
url: "/warehouse/inout/submitOrderWeb",
method: "get",
params: query
method: "post",
data: query
});
}

@ -35,7 +35,8 @@
</el-col>
<el-col :span="6">
<el-form-item label="产品通用名:">
<el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入产品通用名" clearable="true"></el-input>
<el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入产品通用名"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
@ -67,7 +68,8 @@
</el-col>
<el-col :span="6">
<el-form-item label="第三方产品编码:">
<el-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码" clearable="true"></el-input>
<el-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
@ -96,7 +98,8 @@
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" key="1" @selection-change="handleSelectionChange" style="width: 100%" border highlight-current-row>
<el-table v-loading="loading" :data="list" key="1" @selection-change="handleSelectionChange" style="width: 100%"
border highlight-current-row>
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="供应商" prop="companyName" show-overflow-tooltip></el-table-column>
@ -221,7 +224,7 @@ export default {
isLock: null,
isAdavence: null,
},
detailQuery:null,
detailQuery: null,
defaultSys: null,
isImport: false,
isImportUdi: false,
@ -278,7 +281,7 @@ export default {
addType: 1,
};
this.total = 0;
this.list=[];
this.list = [];
},
search() {
this.filterQuery.page = 1;
@ -288,10 +291,10 @@ export default {
this.showSearch = !this.showSearch;
},
getList() {
if (this.$isBlank(this.filterQuery.unitFk)) {
this.$message.error("请先选择供应商!");
return;
}
// if (this.$isBlank(this.filterQuery.unitFk)) {
// this.$message.error("");
// return;
// }
this.loading = true;
filterCompanyProductRelevance(this.filterQuery)
.then((response) => {

@ -140,8 +140,8 @@
<el-button
type="text"
size="small"
@click.native.stop="checkOrder(scope.row.id)"
>验单据
@click.native.stop="reviewOrder(scope.row)"
>单据
</el-button
>
</template>
@ -444,6 +444,22 @@
</el-tab-pane>
</el-tabs>
<el-dialog
title="单据验收"
:visible.sync="acceptOrderVisible"
width="80%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="acceptOrderVisible"
>
<accept-order
:closeDialog="closeAcceptDialog"
:orderQuery="acceptQuery"
v-on:childByValue="parentByFn"
></accept-order>
</el-dialog>
</div>
</template>
@ -459,6 +475,7 @@ import {selectSysParamByKey} from "@/api/param/systemParamConfig";
import {getBizDetailList} from "@/api/inout/orderDetailBiz";
import {getCodeDetailList} from "@/api/inout/orderDetailCode";
import {getResultDetailList} from "@/api/inout/orderDetailResult";
import AcceptOrder from "@/views/inout/IoReviewOrder";
const formJson = {
site_id: "",
@ -468,7 +485,7 @@ const formJson = {
};
export default {
name: "IoUnCheckedOrder",
name: "IoCheckSuccessOrder",
data() {
return {
showSearch: true,
@ -581,9 +598,11 @@ export default {
resultTotal: 0,
resultDetailLoading: false,
resultDetailList: [],
acceptQuery: null,
acceptOrderVisible: false,
};
},
components: {},
components: {AcceptOrder},
methods: {
onReset() {
this.$router.push({
@ -841,6 +860,22 @@ export default {
editResultDialog(row) {
},
//
closeAcceptDialog() {
this.acceptOrderVisible = false;
},
//
reviewOrder(row) {
this.acceptQuery = row;
this.acceptOrderVisible = true;
},
parentByFn: function (childValue) {
this.getList();
},
},
filters: {
statusFilterType(status) {

@ -394,6 +394,26 @@ export default {
});
},
initBusType() {
let query = {
code: this.orderFormData.invCode,
};
findByInvUser(query)
.then((response) => {
this.busTypeOptions = response.data || [];
this.curAction = this.getActionItem(this.orderFormData.action);
if (this.curAction.checkEnable && this.curAction.checkWebNew) {
this.bizShow = true;
} else
this.bizShow = false;
})
.catch(() => {
});
},
//
findMethod(query) {
this.fromOptions = [];
@ -686,7 +706,6 @@ export default {
},
getInputFocus(event) {
event.currentTarget.select();
},
@ -766,7 +785,7 @@ export default {
this.refreshCodesPanel();
//
this.findInvListByUser();
this.getBusTypeByInv();
this.initBusType();
this.findMethod(this.orderFormData.fromCorp);
this.findFromInvList();
} else {

@ -288,7 +288,7 @@ export default {
type: 'warning'
}).then(() => {
let query = {
stockOrderId: this.orderQuery.billNo,
orderId: this.orderQuery.billNo,
};
updateStatus(query)
.then((response) => {

Loading…
Cancel
Save