Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into intex

intex_online20241111
zhang_li 4 weeks ago
parent
commit
15a32e1539
  1. 1
      src/pages/inventoryMove/coms/comMoveRecord.vue
  2. 1
      src/pages/issue/record/directIssueByBatch.vue
  3. 1
      src/pages/putaway/record/putawayRecord.vue
  4. 1
      src/pages/scrap/record/scrapRecord.vue
  5. 1
      src/pages/unPlanned/record/issueRecord.vue
  6. 1
      src/pages/unPlanned/record/receiptRecord.vue
  7. 45
      src/pages/unPlanned/record/receiptRecordByBatch.vue

1
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -11,6 +11,7 @@
<view class=""> <view class="">
<com-move-record-card :dataContent="item" :index="index" @removeData="removeData" <com-move-record-card :dataContent="item" :index="index" @removeData="removeData"
:isShowStatus="isShowStatus" @updateData="updateData" @removePack='removePack' :isShowStatus="isShowStatus" @updateData="updateData" @removePack='removePack'
:allowEditQty="true"
:allowEditStatus="allowEditStatus"> :allowEditStatus="allowEditStatus">
</com-move-record-card> </com-move-record-card>
</view> </view>

1
src/pages/issue/record/directIssueByBatch.vue

@ -12,6 +12,7 @@
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" <record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent"
:isShowFromLocation="true" @removeItem="removeItem(index,item)" :isShowFromLocation="true" @removeItem="removeItem(index,item)"
:isShowToLocation="false" :isShowParentToLocation="false" @updateData="updateData" :isShowToLocation="false" :isShowParentToLocation="false" @updateData="updateData"
:allowModifyQty="true"
@removePack="removePack"> @removePack="removePack">
</record-com-detail-card> </record-com-detail-card>

1
src/pages/putaway/record/putawayRecord.vue

@ -18,6 +18,7 @@
<record-com-detail-card-batch :dataContent="item" :index="index" :settingParam="dataContent" <record-com-detail-card-batch :dataContent="item" :index="index" :settingParam="dataContent"
:isShowFromLocation="false" @removeItem="removeItem(index,item)" :isShowFromLocation="false" @removeItem="removeItem(index,item)"
:isShowModifedLocation="true" :isShowModifedLocation="true"
:allowModifyQty="true"
@updateData="updateData" @updateData="updateData"
@editLocation="showScanToLocation" @editLocation="showScanToLocation"
@removePack="removePack" @removePack="removePack"

1
src/pages/scrap/record/scrapRecord.vue

@ -21,6 +21,7 @@
<record-com-detail-card-batch :dataContent="item" :index="index" :isShowFromLocation="true" <record-com-detail-card-batch :dataContent="item" :index="index" :isShowFromLocation="true"
:isShowParentToLocation="false" @removeItem="removeItem(index,item)" :isShowParentToLocation="false" @removeItem="removeItem(index,item)"
:isShowToLocation="false" @updateData="updateData" @removePack="removePack" :isShowToLocation="false" @updateData="updateData" @removePack="removePack"
:allowModifyQty="true"
v-if="managementType == 'BY_BATCH'||managementType =='BY_QUANTITY' "> v-if="managementType == 'BY_BATCH'||managementType =='BY_QUANTITY' ">
</record-com-detail-card-batch> </record-com-detail-card-batch>
<record-com-detail-card v-else :dataContent="item" :index="index" <record-com-detail-card v-else :dataContent="item" :index="index"

1
src/pages/unPlanned/record/issueRecord.vue

@ -15,6 +15,7 @@
:isShowParentToLocation="false" :isShowParentToLocation="false"
@removeItem="removeItem(index,item)" :isShowToLocation="false" @updateData="updateData" @removeItem="removeItem(index,item)" :isShowToLocation="false" @updateData="updateData"
@removePack="removePack" @removePack="removePack"
:allowModifyQty="true"
v-if="managementType == 'BY_BATCH'||managementType =='BY_QUANTITY' "> v-if="managementType == 'BY_BATCH'||managementType =='BY_QUANTITY' ">
</record-com-detail-card-batch> </record-com-detail-card-batch>
<record-com-detail-card v-else :dataContent="item" :index="index" <record-com-detail-card v-else :dataContent="item" :index="index"

1
src/pages/unPlanned/record/receiptRecord.vue

@ -18,6 +18,7 @@
:dataContent="item" @removeItem="removeItem(index,item)" :dataContent="item" @removeItem="removeItem(index,item)"
@updateData="updateData" @updateData="updateData"
:queryBalance="false" :queryBalance="false"
:allowModifyQty="true"
:isShowLocation="false" @removePack="removePack"> :isShowLocation="false" @removePack="removePack">
</com-receipt-record> </com-receipt-record>
</view> </view>

45
src/pages/unPlanned/record/receiptRecordByBatch.vue

@ -18,6 +18,7 @@
:dataContent="item" @removeItem="removeItem(index,item)" :dataContent="item" @removeItem="removeItem(index,item)"
@updateData="updateData" @updateData="updateData"
:queryBalance="false" :queryBalance="false"
:allowModifyQty="true"
:isShowLocation="false" @removePack="removePack"> :isShowLocation="false" @removePack="removePack">
</com-receipt-record> </com-receipt-record>
</view> </view>
@ -109,7 +110,6 @@
dataContent: {}, dataContent: {},
managementList: [], managementList: [],
toLocationAreaTypeList:[], toLocationAreaTypeList:[],
managementType:import.meta.env.VITE_MANAGE_MODEL
} }
}, },
@ -137,50 +137,7 @@
this.toLocationCode = code; this.toLocationCode = code;
}, },
getScanResult(result) { getScanResult(result) {
var managementTypeParams =this.managementType
if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
this.setDataBatch(result) this.setDataBatch(result)
} else {
this.setData(result)
}
},
setData(result){
let label = result.label;
let pack = result.package;
var item = this.detailSource.find(res => {
if (res.itemCode == label.itemCode) {
return res
}
})
if (item == undefined) {
var itemp = this.createItemInfo(label, pack);
let newDetail = this.createDetailInfo(label, pack);
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
this.getfocus()
} else {
var detail = item.subList.find(r => {
if (r.packingNumber == pack.number &&
r.batch == pack.batch) {
return r;
}
})
if (detail == undefined) {
let newDetail = this.createDetailInfo(label, pack);
item.subList.push(newDetail);
this.getfocus()
} else {
if (detail.scaned) {
this.showErrorMessage("箱码[" + pack.number + "]批次[" + pack.batch + "]已经扫描")
}
}
}
this.calcHandleQty();
}, },
setDataBatch(result){ setDataBatch(result){

Loading…
Cancel
Save