|
|
@@ -21,8 +21,12 @@
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>入库日期:</view>
|
|
|
- <view v-if="detailInfo.status==4">{{ detailInfo.entryTime?detailInfo.entryTime.substr(2,14):'' }}</view>
|
|
|
- <view v-else></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>
|
|
|
@@ -249,7 +253,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getPurchaseDetailApi,updateRemark,printAll,printItem,confirmPutIn,cancelPutIn,printBill } from "@/api/purchase";
|
|
|
+import { getPurchaseDetailApi,updateRemark,printAll,printItem,confirmPutIn,cancelPutIn,printBill,modifyEntryTime } from "@/api/purchase";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
@@ -276,7 +280,8 @@ export default {
|
|
|
printType:0,
|
|
|
printLabelShow:false,
|
|
|
printNum:'',
|
|
|
- wcPrintNum:1
|
|
|
+ wcPrintNum:1,
|
|
|
+ entryTime:''
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -285,6 +290,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ updateEntryTime(e){
|
|
|
+ let that = this
|
|
|
+ this.entryTime = e.detail.value
|
|
|
+ that.$util.confirmModal({content:'确认修改?'},() => {
|
|
|
+ modifyEntryTime({id:that.detailInfo.id,date:that.entryTime}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ that.init()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
printBillFn(info){
|
|
|
if(this.wcPrintNum > 1){
|
|
|
let arr = ['请选择','机器1']
|