|
|
@@ -24,17 +24,11 @@
|
|
|
<view class="order-info_box">
|
|
|
<view>入库日期:</view>
|
|
|
<view>
|
|
|
- <picker mode="date" :value="entryTime" @change="updateEntryTime" style="width:500upx;">
|
|
|
- <view v-if="detailInfo.status==4">{{ detailInfo.entryTime?detailInfo.entryTime.substr(2,14):'' }}</view>
|
|
|
- <view v-else>待入库</view>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="order-info_box">
|
|
|
- <view>订单编码:</view>
|
|
|
- <view>{{ detailInfo.orderSn }}</view>
|
|
|
+ <text v-if="detailInfo.status==4">{{ detailInfo.entryTime?detailInfo.entryTime.substr(2,14):'' }}</text>
|
|
|
+ <text v-else>待入库</text>
|
|
|
+ </view>
|
|
|
<view class="price">
|
|
|
- <button @click="copy(detailInfo.orderSn)" class="admin-button-com default" > 复制 </button>
|
|
|
+ <button @click="openPicker" class="admin-button-com default" >修改</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
@@ -45,6 +39,13 @@
|
|
|
<view>录入人员:</view>
|
|
|
<view>{{ detailInfo.adminName }}</view>
|
|
|
</view>
|
|
|
+ <view class="order-info_box">
|
|
|
+ <view>订单编码:</view>
|
|
|
+ <view>{{ detailInfo.orderSn }}</view>
|
|
|
+ <view class="price">
|
|
|
+ <button @click="copy(detailInfo.orderSn)" class="admin-button-com default" > 复制 </button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="order-info_box">
|
|
|
<view>核销编码:</view>
|
|
|
<view>{{ detailInfo.checkCode }}</view>
|
|
|
@@ -291,6 +292,8 @@
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
|
|
|
+ <mx-date-picker :show="showPicker" format="yyyy-mm-dd" type="date" :value="defaultPickerDate" :show-tips="true" @confirm="confirmPicker" @cancel="showPicker = false" />
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -302,11 +305,13 @@ import { print } from '@/api/product';
|
|
|
import { getPrint } from "@/api/shop";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { IMGHOST } from '@/config'
|
|
|
+import MxDatePicker from '@/components/mx-datepicker/mx-datepicker.vue';
|
|
|
export default {
|
|
|
name: "info",
|
|
|
components: {
|
|
|
TuiListCell,
|
|
|
- ModalModule
|
|
|
+ ModalModule,
|
|
|
+ MxDatePicker
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["getLoginInfo"]),
|
|
|
@@ -315,6 +320,8 @@ export default {
|
|
|
mixins: [productMins],
|
|
|
data() {
|
|
|
return {
|
|
|
+ defaultPickerDate:'',
|
|
|
+ showPicker: false,
|
|
|
selectJobType: "order_change",
|
|
|
autoLoad: false,
|
|
|
stepActive: 0,
|
|
|
@@ -358,8 +365,6 @@ export default {
|
|
|
},
|
|
|
onUnload(){
|
|
|
clearInterval(this.T)
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
console.log("pagesPurchase/info?orderSn="+this.detailInfo.orderSn+'&salt='+this.detailInfo.salt)
|
|
|
@@ -371,6 +376,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ openPicker(){
|
|
|
+ this.showPicker = true
|
|
|
+ },
|
|
|
+ confirmPicker(e) {
|
|
|
+ let that = this
|
|
|
+ let currentDate = e.value
|
|
|
+ that.$util.confirmModal({content:'确认修改?'},() => {
|
|
|
+ that.showPicker = false
|
|
|
+ modifyEntryTime({id:that.detailInfo.id,date:currentDate}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ that.initCgData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
changeView(){
|
|
|
if(this.showSeat == 0){
|
|
|
if(this.detailInfo.status == 4){
|