From fe7390c04d05f22230458599788aa5d09ed9c468 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期三, 07 一月 2026 16:07:25 +0800
Subject: [PATCH] 器具处理出库单增加源单报废申请单
---
pages/MJGL/MouldScrapOutBill/MouldScrapOutBill.vue | 43 +++++++++++++++++++++++++++++++++++++------
1 files changed, 37 insertions(+), 6 deletions(-)
diff --git a/pages/MJGL/MouldScrapOutBill/MouldScrapOutBill.vue b/pages/MJGL/MouldScrapOutBill/MouldScrapOutBill.vue
index cee2d24..37289d2 100644
--- a/pages/MJGL/MouldScrapOutBill/MouldScrapOutBill.vue
+++ b/pages/MJGL/MouldScrapOutBill/MouldScrapOutBill.vue
@@ -72,7 +72,7 @@
</picker>
</view>
</view>
- <view class="form-item">
+ <!-- <view class="form-item">
<view class="title">婧愬崟绫诲瀷:</view>
<view class="right" :class="showHMainSourceBillType?'':'disabled'">
<zxz-uni-data-select
@@ -86,7 +86,22 @@
@change="HSourceBillTypeNameChange"
></zxz-uni-data-select>
</view>
- </view>
+ </view> -->
+ <view class="form-item">
+ <view class="title">婧愬崟绫诲瀷:</view>
+ <view class="right" v-show="showHMainSourceBillType">
+ <picker :range="arrayHMainSourceBillType"
+ @change="HMainSourceBillTypeChange">
+ <input name="HMainSourceBillType" disabled v-model="HMainSourceBillType"
+ placeholder="璇烽�夋嫨婧愬崟绫诲瀷" />
+ <view class="picker-overlay"></view>
+ </picker>
+ </view>
+ <view class="righton" v-show="!showHMainSourceBillType">
+ <input name="HMainSourceBillType" disabled v-model="HMainSourceBillType"
+ placeholder="璇烽�夋嫨婧愬崟绫诲瀷" />
+ </view>
+ </view>
<view class="form-item">
<view class="title">婧愬崟鍗曞彿:</view>
<view class="right" v-show="showHSourceBillNo">
@@ -200,12 +215,14 @@
showHStockPlaceName: true,
HMouldList:[],
isEdit: false,
-
+ arrayHMainSourceBillType: ['鍣ㄥ叿鎶ュ簾鐢宠鍗�', '鎵嬪伐褰曞叆'],
+ HMainSourceBillType: '鍣ㄥ叿鎶ュ簾鐢宠鍗�',
+ arrayHMainSourceBillValue: ['3823', '-1'],
showHMainSourceBillType: true,
showHSourceBillNo: true,
//婧愬崟绫诲瀷
- HSourceBillTypeList:[{typeID:"-1",typeName:"鎵嬪伐褰曞叆"}],
+ HSourceBillTypeList:[{typeID:"-1",typeName:"鎵嬪伐褰曞叆"},{typeID:"3823",typeName:"鍣ㄥ叿鎶ュ簾鐢宠鍗�"}],
hform: {
HBarCode: '',
HInterID: '',
@@ -221,7 +238,7 @@
HDeptName: getUserInfo().HDept,
HDeptID: getUserInfo().HDeptID,
//婧愬崟淇℃伅
- HMainSourceBillType: "-1",
+ HMainSourceBillType:uni.getStorageSync('billTypeName_3832') ? uni.getStorageSync('billTypeName_3832'):'鍣ㄥ叿鎶ュ簾鐢宠鍗�',
HSourceBillNo: '', //CGDD000200
HDate: getDateTime.dateTimeStr('y-m-d'),
HMaker: uni.getStorageSync('HUserName'),
@@ -783,6 +800,19 @@
showBillList() {
this.$refs.billList.showPopup()
},
+
+ HMainSourceBillTypeChange(e) {
+ this.HMainSourceBillType = this.arrayHMainSourceBillType[e.detail.value]
+
+ let index = this.arrayHMainSourceBillType.findIndex(e => e == this.HMainSourceBillType)
+ if (index != -1) {
+ this.hform.HMainSourceBillType = this.arrayHMainSourceBillValue[index]
+ // this.getHYDList()
+ }
+ console.log(this.hform.HMainSourceBillType)
+ uni.setStorageSync("billType_3823",this.hform.HMainSourceBillType);
+ uni.setStorageSync("billTypeName_3823",this.HMainSourceBillType);
+ },
HSourceBillTypeNameChange(e) {
const pages = getCurrentPages()
@@ -795,8 +825,9 @@
},
//閫変腑婧愬崟
getHBarCodeData(HBarCode) {
+ console.log("HInterID",this.hform.HInterID,"HBillNo",this.hform.HBillNo,"HBillType",this.hform.HBillType)
uni.request({
- url: this.serverUrl + '/MouldController/Get_SourceBarCode_ProdOut_Json',
+ url: this.serverUrl + '/MouldController/Get_SourceBarCode_ScrapRequest_Json',
data: {
HInterID: this.hform.HInterID,
HBillNo: this.hform.HBillNo,
--
Gitblit v1.9.1