From 0f3d914dc416e95ee4085250412f1af2aa7499e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Wed, 14 Dec 2022 17:30:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=B6=E9=97=B4=E6=A0=BC?= =?UTF-8?q?=E5=BC=8FYYYY-mm-dd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/date.js | 9 + src/views/business/DialogcChangeNewOrder.vue | 14 +- src/views/business/stockOrder.vue | 14 +- src/views/business/stockOrderEdit.vue | 14 +- src/views/inout/IOCheckErrorOrder.vue | 14 +- src/views/inout/IOCheckWaitOrder.vue | 11 +- src/views/inout/stockOrderChange.vue | 14 +- .../purchase/purPlanOrderSelectProduct.vue | 447 ++++++++++++++++++ src/views/thrsys/ThrOrdedrReceiveAdd.vue | 14 +- src/views/thrsys/ThrOrdedrReceiveSearch.vue | 14 +- 10 files changed, 549 insertions(+), 16 deletions(-) create mode 100644 src/views/purchase/purPlanOrderSelectProduct.vue diff --git a/src/utils/date.js b/src/utils/date.js index f863cb9..a2e6d88 100644 --- a/src/utils/date.js +++ b/src/utils/date.js @@ -22,3 +22,12 @@ export function formatDate (date, fmt) { function padLeftZero (str) { return ('00' + str).substr(str.length); }; + +export function convertDate(date) { + if(date!=null && date!=undefined && date.length>5){ + var time="20"+date.substring(0,2)+"-"+date.substring(2,4)+"-"+date.substring(4,6); + return time; + }else{ + return date; + } +}; diff --git a/src/views/business/DialogcChangeNewOrder.vue b/src/views/business/DialogcChangeNewOrder.vue index 5e50d36..ebe0af2 100644 --- a/src/views/business/DialogcChangeNewOrder.vue +++ b/src/views/business/DialogcChangeNewOrder.vue @@ -158,8 +158,16 @@ - - + + + + + + @@ -188,6 +196,7 @@ import {parseTime} from "@/filtres"; import {getLocalJoinByUser} from "@/api/basic/busLocalType"; import {stockOrderChange, stockOrderDetail} from "@/api/inout/stockOrder"; import {filterSubByInv} from "@/api/basic/invSubWarehouse"; +import {convertDate} from "@/utils/date" export default { name: "DialogcChangeNewOrder", @@ -203,6 +212,7 @@ export default { }, data() { return { + convertDateFun:convertDate, formData: { corpOrderId: "", code: "", diff --git a/src/views/business/stockOrder.vue b/src/views/business/stockOrder.vue index 5ff30cf..b9372ac 100644 --- a/src/views/business/stockOrder.vue +++ b/src/views/business/stockOrder.vue @@ -167,8 +167,16 @@ - - + + + + + + @@ -370,11 +378,13 @@ import store from "../../store"; import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse"; +import {convertDate} from "@/utils/date" export default { name: "stockOrder", data() { return { + convertDateFun:convertDate, query: { billType: null, corpName: null, diff --git a/src/views/business/stockOrderEdit.vue b/src/views/business/stockOrderEdit.vue index 2ec00f3..4ce5a57 100644 --- a/src/views/business/stockOrderEdit.vue +++ b/src/views/business/stockOrderEdit.vue @@ -154,8 +154,16 @@ - - + + + + + + @@ -489,11 +497,13 @@ import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} import {selectSysParamByKey} from "@/api/param/systemParamConfig"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse"; +import {convertDate} from "@/utils/date" export default { name: "stockOrderEditor", data() { return { + convertDateFun:convertDate, query: { billType: null, corpName: null, diff --git a/src/views/inout/IOCheckErrorOrder.vue b/src/views/inout/IOCheckErrorOrder.vue index 3512578..69c2e8a 100644 --- a/src/views/inout/IOCheckErrorOrder.vue +++ b/src/views/inout/IOCheckErrorOrder.vue @@ -289,13 +289,21 @@ prop="productDate" width="100" :show-overflow-tooltip="true" - > + > + + + > + + + > + + > + > + + + > + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 确定 + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + {{ item }} + + + + + + +
+ + + + + diff --git a/src/views/thrsys/ThrOrdedrReceiveAdd.vue b/src/views/thrsys/ThrOrdedrReceiveAdd.vue index 972a6b2..ba30aa2 100644 --- a/src/views/thrsys/ThrOrdedrReceiveAdd.vue +++ b/src/views/thrsys/ThrOrdedrReceiveAdd.vue @@ -104,8 +104,16 @@ - - + + + + + + @@ -142,10 +150,12 @@ import { } from "../../api/inout/erpOrder"; import thrOrderNew from "./thrOrderNew"; import {getReceiveOrder} from "@/api/inout/receiveOrder"; +import {convertDate} from "@/utils/date" export default { data() { return { + convertDateFun:convertDate, filterQuery: { billAction: null, billNo: "", diff --git a/src/views/thrsys/ThrOrdedrReceiveSearch.vue b/src/views/thrsys/ThrOrdedrReceiveSearch.vue index f881439..7176366 100644 --- a/src/views/thrsys/ThrOrdedrReceiveSearch.vue +++ b/src/views/thrsys/ThrOrdedrReceiveSearch.vue @@ -88,8 +88,16 @@ - - + + + + + + @@ -109,10 +117,12 @@ import { getCloudErp, } from "../../api/inout/erpOrder"; import {getReceiveOrder} from "@/api/inout/receiveOrder"; +import {convertDate} from "@/utils/date" export default { data() { return { + convertDateFun:convertDate, filterQuery: { billAction: null, billNo: "",