| | |
| | | // ç¨æ·ç¹å»ç¡®å® |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | delta: 1 |
| | | }); |
| | | }, 500); |
| | | } else { |
| | |
| | | // ç¨æ·ç¹å»ç¡®å® |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | delta:1 |
| | | }); |
| | | }, 500); |
| | | } else { |
| | |
| | | // ç¨æ·ç¹å»ç¡®å® |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | delta: 1 |
| | | }); |
| | | }, 500); |
| | | } else { |
| | |
| | | if (materielInfo == null) throw new Exception($"æªæ¾å°è¯åç¼ç ã{item.goods_no}ãçä¿¡æ¯"); |
| | | if (!Enum.IsDefined(typeof(MaterielSourceTypeEnum), materielInfo.MaterielSourceType)) |
| | | throw new Exception($"请设置è¯åç¼å·ã{item.goods_no}ãç屿§åç±»"); |
| | | if (materielInfo.BoxQty < 1) throw new Exception($"请设置è¯åç¼å·ã{item.goods_no}ãçç®±è§æ°é"); |
| | | #endregion |
| | | #region 大件 |
| | | if (materielInfo.MaterielSourceType == MaterielSourceTypeEnum.PurchasePart)//å¦æç©ææ¯å¤§ä»¶ |
| | |
| | | #endregion |
| | | else |
| | | { |
| | | if (materielInfo.BoxQty < 1) throw new Exception($"请设置è¯åç¼å·ã{item.goods_no}ãçç®±è§æ°é"); |
| | | if (materielInfo.MinQty < 1) throw new Exception($"请设置è¯åç¼å·ã{item.goods_no}ãçç«åºæä½åºåæ°"); |
| | | Dt_CabinOrderDetail orderDetail = null; |
| | | var ys = item.order_qty % materielInfo.BoxQty; //ä¸è½æ´é¤ç®±è§çæ£ä»¶æ° |
| | |
| | | ERPStockQuantity = 0, |
| | | Status = false, |
| | | ProductionDate = detail.finishDate.ToString("yyyy-MM-dd"), |
| | | ValidityPeriod = inventoryInfo.ValidityPeriod, |
| | | ValidityPeriod = inventoryInfo.ValidityPeriod.ObjToDate(), |
| | | Remark = "èªå¨å建" |
| | | }; |
| | | BaseDal.Db.Insertable(inventory_Batch).ExecuteCommand(); |
| | |
| | | Bt.onClick = function () { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | const allIds = rows.map(item => item.id); |
| | | if(rows.length>1) return this.$error("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | // const allIds = rows.map(item => item.id); |
| | | const id=rows[0].id |
| | | |
| | | // è¿éæ·»å ä½ çä¸å¡é»è¾ |
| | | this.http.post("api/YourApi", allIds).then((x) => { |
| | | this.http.post(`/api/CabinOrder/FinishInOrder?key${id}`).then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('æä½æå'); |
| | | this.refresh(); |
| | |
| | | |
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç |
| | | import gridBody from './extend/outOrderDetail.vue' |
| | | import http from '../../api/http'; |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | |
| | | Bt.onClick = function () { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | const allIds = rows.map(item => item.id); |
| | | if (rows.length>1)return this.$error("åªè½éæ©ä¸æ¡æ°æ®") |
| | | const id=rows[0].id; |
| | | //const allIds = rows.map(item => item.id); |
| | | |
| | | // è¿éæ·»å ä½ çä¸å¡é»è¾ |
| | | this.http.post("api/YourApi", allIds).then((x) => { |
| | | this.http.post(`/api/DeliveryOrder/FinishOutOrder?key=${id}`).then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('æä½æå'); |
| | | this.refresh(); |
| | |
| | | messageList.push(data); |
| | | ElNotification({ |
| | | title: data.title, |
| | | message: h("i", { style: "color: teal" }, data.message), |
| | | message: h("i", { style: "color: red" }, data.message), |
| | | position: "bottom-right", |
| | | }); |
| | | }; |