Browse Source

报废申请

wms3.0_pda
lijuncheng 12 months ago
parent
commit
f0cb753b3f
  1. 4
      api/request2.js
  2. 1
      mycomponents/scan/winScanPackAndLocation.vue
  3. 7
      pages/package/record/mergePackageRecord.vue
  4. 7
      pages/package/record/overPackageRecord.vue
  5. 5
      pages/package/record/splitPackageRecord.vue
  6. 7
      pages/pallet/record/unBindPalletRecord.vue
  7. 3
      pages/productDismantle/coms/requestInfoPopup.vue
  8. 6
      pages/productDismantle/job/productDismantleDetail.vue
  9. 7
      pages/productPutaway/job/productPutawayDetail.vue
  10. 1
      pages/putaway/job/putawayDetail.vue
  11. 20
      pages/scrap/record/scrapRecord.vue
  12. 58
      pages/scrap/request/scrapRequestCreate.vue
  13. 1
      pages/unPlanned/record/issueRecord.vue
  14. 1
      pages/unPlanned/record/receiptRecord.vue
  15. 1
      static/config.json

4
api/request2.js

@ -2687,8 +2687,8 @@ export function getScrapRequestDetail(id) {
*/ */
export function scrapRequestCreate(params) { export function scrapRequestCreate(params) {
return request({ return request({
url: baseApi + "/wms/scrap-job-main/create", url: baseApi + "/wms/scrap-request-main/create",
method: "put", method: "post",
data: params, data: params,
}); });
} }

1
mycomponents/scan/winScanPackAndLocation.vue

@ -139,6 +139,7 @@
this.$refs.popup.open('bottom'); this.$refs.popup.open('bottom');
this.fromInventoryStatuses = jobContent.outInventoryStatuses this.fromInventoryStatuses = jobContent.outInventoryStatuses
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //; // this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //; //
debugger
this.fromLocationTypeArray = getDirectoryItemArray(jobContent.fromLocationTypes); // this.fromLocationTypeArray = getDirectoryItemArray(jobContent.fromLocationTypes); //
}, },

7
pages/package/record/mergePackageRecord.vue

@ -44,10 +44,13 @@
<script> <script>
import { import {
goHome, goHome
} from '@/common/basic.js';
import {
getInventoryStatusDesc, getInventoryStatusDesc,
getDirectoryItemArray getDirectoryItemArray
} from '@/common/basic.js'; } from '@/common/directory.js';
import { import {
getBusinessType, getBusinessType,

7
pages/package/record/overPackageRecord.vue

@ -41,10 +41,13 @@
<script> <script>
import { import {
goHome, goHome
} from '@/common/basic.js';
import {
getInventoryStatusDesc, getInventoryStatusDesc,
getDirectoryItemArray getDirectoryItemArray
} from '@/common/basic.js'; } from '@/common/directory.js';
import { import {
getBusinessType, getBusinessType,

5
pages/package/record/splitPackageRecord.vue

@ -41,9 +41,12 @@
<script> <script>
import { import {
goHome, goHome,
} from '@/common/basic.js';
import {
getInventoryStatusDesc, getInventoryStatusDesc,
getDirectoryItemArray getDirectoryItemArray
} from '@/common/basic.js'; } from '@/common/directory.js';
import { import {
getBusinessType, getBusinessType,

7
pages/pallet/record/unBindPalletRecord.vue

@ -47,10 +47,13 @@
getContainerDetailByNumber getContainerDetailByNumber
} from '@/api/request.js'; } from '@/api/request.js';
import { import {
goHome, goHome
getDirectoryItemArray
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getDirectoryItemArray
} from '@/common/directory.js';
import { import {
getBusinessType, getBusinessType,
createItemInfo, createItemInfo,

3
pages/productDismantle/coms/requestInfoPopup.vue

@ -45,10 +45,11 @@
<script> <script>
import { import {
dateFormat, dateFormat,
getDirectoryItemArray,
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
getDirectoryItemArray,
getInventoryStatusDesc, getInventoryStatusDesc,
getLocationTypeNameList getLocationTypeNameList
} from '@/common/directory.js'; } from '@/common/directory.js';

6
pages/productDismantle/job/productDismantleDetail.vue

@ -64,8 +64,12 @@
getCurrDateTime, getCurrDateTime,
navigateBack, navigateBack,
getPackingNumberAndBatch, getPackingNumberAndBatch,
getInventoryStatusName,
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getInventoryStatusName
} from '@/common/directory.js';
import { import {
getLocationTypeArray getLocationTypeArray
} from '@/common/array.js'; } from '@/common/array.js';

7
pages/productPutaway/job/productPutawayDetail.vue

@ -64,8 +64,13 @@
getCurrDateTime, getCurrDateTime,
navigateBack, navigateBack,
getPackingNumberAndBatch, getPackingNumberAndBatch,
getInventoryStatusName,
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getInventoryStatusName,
getInventoryStatusDesc,
getDirectoryItemArray
} from '@/common/directory.js';
import { import {
getLocationTypeArray getLocationTypeArray
} from '@/common/array.js'; } from '@/common/array.js';

1
pages/putaway/job/putawayDetail.vue

@ -183,7 +183,6 @@
} else { } else {
if (res.data.subList.length > 0) { if (res.data.subList.length > 0) {
that.jobContent = res.data; that.jobContent = res.data;
that.jobContent.outInventoryStatuses='INSP'
that.subList = res.data.subList; that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList) that.detailSource = getDataSource(that.subList)

20
pages/scrap/record/scrapRecord.vue

@ -50,7 +50,6 @@
<script> <script>
import { import {
scrapRequestSubmit,
scrapRecordSubmit scrapRecordSubmit
} from '@/api/request2.js'; } from '@/api/request2.js';
@ -116,12 +115,9 @@
businessType: {}, businessType: {},
reasonList: [], reasonList: [],
reason: "", reason: "",
fromType:""
}; };
}, },
onLoad(option) { onLoad(option) {
this.fromType = option.fromType
if(this.fromType=="requestType"){ updateTitle("报废申请") }else { updateTitle("报废记录") }
this.reasonList = getScarpReasonList(); this.reasonList = getScarpReasonList();
var typeCode = "Scrap" var typeCode = "Scrap"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
@ -264,21 +260,6 @@
}); });
if(this.fromType=="requestType"){
var params = this.setRequestParams();
console.log("提交" + JSON.stringify(params))
// scrapRequestSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
}else {
// scrapRecordSubmit(params).then(res => { // scrapRecordSubmit(params).then(res => {
// uni.hideLoading() // uni.hideLoading()
// if (res.data) { // if (res.data) {
@ -290,7 +271,6 @@
// uni.hideLoading() // uni.hideLoading()
// this.showErrorMessage(error) // this.showErrorMessage(error)
// }) // })
}
}, },

58
pages/scrap/request/scrapRequestCreate.vue

@ -5,8 +5,8 @@
</view> </view>
<view class="page-wraper" v-if="detailSource.length>0"> <view class="page-wraper" v-if="detailSource.length>0">
<view class="flex u-col-center" style="width: 100%;background-color:#fff;"> <view class="flex u-col-center" style="width: 100%;background-color:#fff;">
<view class="" style="margin-left: 20rpx; font-size: 30rpx;flex-shrink: 0;">报废原因</view> <view class="" style="margin-left: 20rpx; font-size: 30rpx;flex-shrink: 0;">报废原因</view>
<view style="width: 100%"> <view style="width: 100%">
<uni-data-picker style="background-color:#fff;margin-right: 20rpx;" class='uni-data-picker' <uni-data-picker style="background-color:#fff;margin-right: 20rpx;" class='uni-data-picker'
placeholder="请选择报废原因" popup-title="报废原因" :localdata="reasonList" @change="reasonChange"> placeholder="请选择报废原因" popup-title="报废原因" :localdata="reasonList" @change="reasonChange">
</uni-data-picker> </uni-data-picker>
@ -54,7 +54,9 @@
import { import {
goHome, goHome,
updateTitle updateTitle,
getCurrDateOneMonthsTimes,
navigateBack
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
@ -126,7 +128,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message ); this.$refs.comMessage.showBreakMessage(res.message);
} }
}); });
@ -235,11 +237,11 @@
commit() { commit() {
if(this.reasonText==""){ if (this.reasonText == "") {
this.showMessage("请先选择报废原因") this.showMessage("请先选择报废原因")
return; return;
} }
if(this.detailSource.length==0){ if (this.detailSource.length == 0) {
this.showErrorMessage("请先扫描数据") this.showErrorMessage("请先扫描数据")
return; return;
} }
@ -249,42 +251,37 @@
mask: true mask: true
}); });
var params = this.setRequestParams(); var params = this.setRequestParams();
console.log("提交" + JSON.stringify(params)) console.log("提交" + JSON.stringify(params))
// scrapRequestCreate(params).then(res => { scrapRequestCreate(params).then(res => {
// uni.hideLoading() uni.hideLoading()
// if (res.data) { if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, ) this.showCommitSuccessMessage("提交成功<br>生成报废出库申请<br>" + res.data, )
// } else { } else {
// this.showErrorMessage("[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
// } }
// }).catch(error => { }).catch(error => {
// uni.hideLoading() uni.hideLoading()
// this.showErrorMessage(error) this.showErrorMessage(error)
// }) })
}, },
setRequestParams(){ setRequestParams() {
var subList = [] var subList = []
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
detail.fromLocationCode = detail.locationCode
subList.push(detail) subList.push(detail)
} }
}) })
}) })
this.dataContent.subList = subList this.dataContent.subList = subList
this.dataContent.businessType = "PurchasePutaway" this.dataContent.status = 1;
this.dataContent.departmentCode= "研发部门"; this.dataContent.fromWarehouseCode = "W1";
this.dataContent.status= 1 ; this.dataContent.dueTime = getCurrDateOneMonthsTimes();
this.dataContent.autoCommit = "FALSE";
this.dataContent.autoAgree = "FALSE";
this.dataContent.autoExecute = "FALSE";
this.dataContent.directCreateRecord = "FALSE";
return this.dataContent; return this.dataContent;
}, },
@ -324,8 +321,7 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.fromLocationCode = ''; navigateBack(1)
}) })
}, },

1
pages/unPlanned/record/issueRecord.vue

@ -51,7 +51,6 @@
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
import { import {
unPlannedIssueRequestSubmit,
unPlannedIssueRecordSubmit unPlannedIssueRecordSubmit
} from '@/api/request2.js'; } from '@/api/request2.js';

1
pages/unPlanned/record/receiptRecord.vue

@ -52,7 +52,6 @@
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import { import {
unPlannedReceiptRequestbSubmit,
unPlannedReceiptRecordbSubmit unPlannedReceiptRecordbSubmit
} from '@/api/request2.js'; } from '@/api/request2.js';

1
static/config.json

@ -26,6 +26,7 @@
"local": "http://localhost:12080", "local": "http://localhost:12080",
"desc": "api请求地址" "desc": "api请求地址"
}, },
"tenantId": { "tenantId": {
"name": "tenantId", "name": "tenantId",
"value": "1", "value": "1",

Loading…
Cancel
Save