pages.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/product/report/index.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/product/report/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/sys/home/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
pages.json
@@ -792,16 +792,16 @@ "navigationBarBackgroundColor": "#3281FF" } }, // 取消报工 { "path": "pages/product/cancelReport/index", "style": { "navigationStyle": "custom", "navigationBarTitleText": "", // "navigationBarBackgroundColor": "#3281FF" "enablePullDownRefresh": false } }, // // 取消报工 // { // "path": "pages/product/cancelReport/index", // "style": { // "navigationStyle": "custom", // "navigationBarTitleText": "", // // "navigationBarBackgroundColor": "#3281FF" // "enablePullDownRefresh": false // } // }, // 接收(铜杆) { "path": "pages/product/receive/index", pages/product/report/index.scss
@@ -1,3 +1,83 @@ .packing-registration-param { padding: 40rpx 30rpx 10rpx 30rpx; height: 350px; overflow: hidden; .packing-registration-param-title { display: flex; flex-direction: row; align-items: center; margin-bottom: 30rpx; .title-label { margin-left: 14rpx; font-size: 34rpx; font-weight: bold; color: #283e65; } } .packing-registration-param-view { height: 177rpx; background-color: #fff; border-radius: 10rpx; padding: 0rpx 23rpx; margin-bottom: 30rpx; .packing-registration-param-item { height: 90rpx; border: 1px solid #adc8e4; line-height: 90rpx; display: flex; justify-content: space-between; border: none; .packing-registration-param-item-left { .item-one { word-break: break-all; font-size: 30rpx; color: #666666; } } .packing-registration-param-item-right { display: flex; justify-content: space-between; .item-one { font-size: 30rpx; color: #060505; margin-right: 6rpx; word-break: break-all; } .item-two { font-size: 15rpx; color: #a6b4cc; margin-right: 6rpx; } .item-three { font-size: 30rpx; color: #214ded; margin-right: 6rpx; } } } .param-extra { border-bottom: 1px solid #ededed; } } } .popup-content { width: 720rpx; height: 400rpx; background-color: #fff; border-radius: 8px; z-index: 10; /* 确保内容在蒙版之上 */ } .page { box-sizing: border-box; padding: 30rpx; pages/product/report/index.vue
@@ -101,6 +101,7 @@ v-for="(item, index) in InventoryReceiptList" :key="index" :index="index" @click="cancelReport(item)" > <view class="content-header"> <view class="content-header-title">{{ index + 1 }}</view> @@ -150,6 +151,54 @@ :operationTaskList="this.form" @update="handleUpdate" /> <u-modal width="720rpx" v-model="showModal" title="" :show-cancel-button="true" :show-confirm-button="true" @confirm="confirmModle" @cancel="cancelModle" > <view class="popup-content"> <view class="packing-registration-param"> <view class="packing-registration-param-view"> <view class="packing-registration-param-item param-extra"> <view class="packing-registration-param-item-left"> <text class="item-one">批号</text> </view> <view class="packing-registration-param-item-right"> <text class="item-one">{{ detailedList.outBatchNo }}</text> </view> </view> <view class="packing-registration-param-item param-extra"> <view class="packing-registration-param-item-left"> <text class="item-one">零件号</text> </view> <view class="packing-registration-param-item-right"> <text class="item-one">{{ detailedList.partNo }}</text> </view> </view> <view class="packing-registration-param-item param-extra"> <view class="packing-registration-param-item-left"> <text class="item-one">零件描述</text> </view> <view class="packing-registration-param-item-right"> <span class="item-one">{{ detailedList.partName }}</span> </view> </view> <view class="packing-registration-param-item param-extra"> <view class="packing-registration-param-item-left"> <text class="item-one">取消接收数量</text> </view> <view class="packing-registration-param-item-right"> <span class="item-one">{{ detailedList.netWeight }}</span> </view> </view> </view> </view> </view> </u-modal> <scan></scan> </div> </template> @@ -244,6 +293,8 @@ operationTaskId: "", subdisabled: false, codeInfoId: "", detailedList: {}, showModal: false, }; }, // 点击提交按钮的事件处理函数 @@ -260,7 +311,7 @@ id: this.form.id, }) .then((res) => { res.data.name = this.form.name res.data.name = this.form.name; this.$refs.saveForm.open(res); uni.hideLoading(); }); @@ -297,6 +348,40 @@ }, }, methods: { // 点击确认后获取取消报工记录 confirmModle() { console.log("点击确认后获取取消报工记录"); // 处理确认逻辑 this.$u.api.cancelReporting .cancelDTAOfWorkApplication({ outBatchNo: this.detailedList.outBatchNo, }) .then((res) => { console.log("res", res); this.showModal = false; this.getHandelList(); this.$u.toast("取消报工成功"); }); }, cancelModle() { this.showModal = false; // 关闭弹窗 }, // 取消报工 cancelReport(item) { let that = this; uni.showModal({ title: "提示", content: "是否确认取消批次" + item.outBatchNo + "的报工", success: function (res) { if (res.confirm) { that.detailedList = item; that.showModal = true; } else if (res.cancel) { return; } }, }); }, getHandelList() { this.$u.api.workReporting .getProductMainV1({ pages/sys/home/index.vue
@@ -32,11 +32,11 @@ url: '/pages/product/report/index', icon: 'one' }, { name: '取消报工', url: '/pages/product/cancelReport/index', icon: 'two' }, // { // name: '取消报工', // url: '/pages/product/cancelReport/index', // icon: 'two' // }, { name: '接收(铜杆)', url: '/pages/product/receive/index',