验收,

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
});
}

File diff suppressed because it is too large Load Diff

@ -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