llj
4 天以前 fe7390c04d05f22230458599788aa5d09ed9c468
器具处理出库单增加源单报废申请单
1个文件已修改
43 ■■■■ 已修改文件
pages/MJGL/MouldScrapOutBill/MouldScrapOutBill.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,