From 7c07d012eb7b01f9d20642b3258af80f8599aae1 Mon Sep 17 00:00:00 2001 From: fanfan Date: Sun, 24 Mar 2024 19:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B4=A7=E8=AE=B0=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/news3/ManualEntry.vue | 23 +++++++++++ pages/news3/seasoningCondimentsRecord.vue | 50 ++++++++++++++++++++--- pages/news3/setOutRecords.vue | 2 +- 3 files changed, 69 insertions(+), 6 deletions(-) diff --git a/pages/news3/ManualEntry.vue b/pages/news3/ManualEntry.vue index 851beaa..eaddbfd 100644 --- a/pages/news3/ManualEntry.vue +++ b/pages/news3/ManualEntry.vue @@ -49,6 +49,9 @@ + + @@ -87,6 +90,8 @@ + 提交 @@ -100,6 +105,15 @@ export default { data() { return { + show:false, + params: { + year: true, + month: true, + day: true, + hour: true, + minute: true, + second: true + }, city: null, send_name: null, express_name: null, @@ -123,6 +137,7 @@ city_id: '', region_id: '', order_id: '', + transfer_date:'', }, content: '', modeList: [{ @@ -153,6 +168,11 @@ this.getExpressAll() }, methods: { + confirm(e) { + this.form.transfer_date = e.year + "-" + e.month + '-' + e.day + " " + e.hour + ":" + e.minute + ':' + + e + .second + }, // 智能识别 onIntelligence() { if (!this.content) { @@ -225,6 +245,9 @@ if (!that.form.send_phone) { return that.$toast('请输入发货手机号') } + if (!that.form.transfer_date) { + return that.$toast('请选择调货时间') + } if (!that.express_name) { return that.$toast('请选择物流公司') } diff --git a/pages/news3/seasoningCondimentsRecord.vue b/pages/news3/seasoningCondimentsRecord.vue index 3763902..cf1a328 100644 --- a/pages/news3/seasoningCondimentsRecord.vue +++ b/pages/news3/seasoningCondimentsRecord.vue @@ -13,6 +13,9 @@ + + @@ -58,6 +61,8 @@ + 保存 @@ -70,6 +75,15 @@ export default { data() { return { + show: false, + params: { + year: true, + month: true, + day: true, + hour: true, + minute: true, + second: true + }, send_name: '', express_name: '', form: {}, @@ -93,8 +107,8 @@ onLoad(o) { this.form = JSON.parse(o.item) this.send_name = this.modeList[this.form.send_type].text; - this.transferList = this.form.transfer_image_ids? this.form.transfer_image_ids:[]; - this.chatList = this.form.chat_image_ids?this.form.chat_image_ids:[]; + this.transferList = this.form.transfer_image_ids ? this.form.transfer_image_ids : []; + this.chatList = this.form.chat_image_ids ? this.form.chat_image_ids : []; this.type = o.type if (this.form.transfer_image_ids) { let list = this.form.transfer_image_ids @@ -110,6 +124,9 @@ }); this.chatList = list } + if (this.form.transfer_date) { + this.captureTime(this.form.transfer_date) + } }, onReady() { this.action = (Config.get('apiUrl') + 'upload/image').replace("index.php?s=/", "") @@ -121,6 +138,27 @@ this.getExpressAll() }, methods: { + captureTime(fullTime) { + var timeArr = fullTime.replace(" ", ":").replace(/\:/g, "-").split("-"); + var nian = timeArr[0]; + var yue = timeArr[1]; + var ri = timeArr[2]; + var shi = timeArr[3]; + var fen = timeArr[4]; + var miao = timeArr[5]; + this.params.year = nian; + this.params.month = yue + this.params.day = ri + this.params.hour = shi + this.params.minute = fen + this.params.second = miao + }, + confirm(e) { + this.form.transfer_date = e.year + "-" + e.month + '-' + e.day + " " + e.hour + ":" + e.minute + ':' + + e + .second + console.log(this.form.transfer_date) + }, handleInput(e) { if (this.validatePhoneNumber(event.target.value)) { this.form.send_phone = event.target.value @@ -139,7 +177,6 @@ }, // 提交信息 async onSubmit() { - console.log(this.transferList) const that = this; // 转账记录 let trList = [] @@ -155,7 +192,6 @@ atList.push(item.file_id) }); this.form.chat_image_id = atList.join(','); - console.log(that.form) if (!that.send_name) { return that.$toast('请选择发货模式') } @@ -171,6 +207,9 @@ if (!that.express_name) { return that.$toast('请选择物流公司') } + if (!that.form.transfer_date) { + return that.$toast('请选择调货时间') + } if (!that.form.express_no) { return that.$toast('请输入物流单号') } @@ -187,7 +226,8 @@ express_id: that.form.express_id, chat_image_id: that.form.chat_image_id, transfer_image_id: that.form.transfer_image_id, - order_id: that.form.order_id + order_id: that.form.order_id, + transfer_date: that.form.transfer_date } let { status, diff --git a/pages/news3/setOutRecords.vue b/pages/news3/setOutRecords.vue index 8099d4d..6f27ed1 100644 --- a/pages/news3/setOutRecords.vue +++ b/pages/news3/setOutRecords.vue @@ -196,7 +196,7 @@ data } = await newFunApi.shopOrderList({ // dataType: 'all', - dataType: 'complete', + dataType: 'receipt', page: this.pageNum, searchValue: this.searchText, payMethod: '',