Browse Source

【NEV-PC】暂存

ag_report_nev
安虹睿 1 year ago
parent
commit
282a0123a9
  1. 5
      fe/PC/src/components/StepsFormNotView/index.vue
  2. 3
      fe/PC/src/components/StepsFormNotView/style/index.scss
  3. 3
      fe/PC/src/components/currenTable/index.vue
  4. 1
      fe/PC/src/mixins/TableMixins.js
  5. 160
      fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob.vue
  6. 2
      fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseOrderHigher.vue

5
fe/PC/src/components/StepsFormNotView/index.vue

@ -10,7 +10,7 @@
:modal-append-to-body="false" :modal-append-to-body="false"
:show-close="false" :show-close="false"
> >
<div id="stepsForm"> <div id="StepsFormNotView">
<el-steps <el-steps
:active="active" :active="active"
process-status="finish" process-status="finish"
@ -114,9 +114,10 @@
:key="item.label" :key="item.label"
:type="item.type" :type="item.type"
size="medium" size="medium"
@click="successClick(item.click())" @click="item.click()"
>{{ item.label }}</el-button >{{ item.label }}</el-button
> >
<!-- @click="successClick(item.click())" -->
<el-button type="primary" size="medium" @click="close(1)" <el-button type="primary" size="medium" @click="close(1)"
>退出</el-button >退出</el-button
> >

3
fe/PC/src/components/StepsFormNotView/style/index.scss

@ -1,4 +1,4 @@
#stepsForm { #StepsFormNotView {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
@ -38,6 +38,7 @@
::v-deep .el-form { ::v-deep .el-form {
flex: 1; flex: 1;
display: flex; display: flex;
justify-content: center;
height: 100%; height: 100%;
.el-row { .el-row {
display: none; display: none;

3
fe/PC/src/components/currenTable/index.vue

@ -36,7 +36,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 目的更新数据 --> <!-- 目的更新数据 -->
<div style="display:none">{{ TableSize }}</div> <!-- <div style="display:none">{{ TableSize }}</div> -->
<el-form> <el-form>
<el-form-item <el-form-item
v-if="item.type == 'input'" v-if="item.type == 'input'"
@ -428,7 +428,6 @@ export default {
}; };
}, },
TableSize(){ TableSize(){
console.log('computed',this.tableColumnsFilter())
this.$forceUpdate() this.$forceUpdate()
return this.tableColumnsFilter() return this.tableColumnsFilter()
} }

1
fe/PC/src/mixins/TableMixins.js

@ -332,6 +332,7 @@ export const tableMixins = {
}, },
// 点击抽屉,获取明细后全局通用操作 // 点击抽屉,获取明细后全局通用操作
inlineDialogCallback(){ inlineDialogCallback(){
if(this.inlineDialogCallbackUser){this.inlineDialogCallbackUser()}
// 如果业务页面设置showDetailBaseFromFE为空,detailsTableColumns.js别忘了删除配置项 // 如果业务页面设置showDetailBaseFromFE为空,detailsTableColumns.js别忘了删除配置项
if(this.showDetailBaseFromFE && this.showDetailBaseFromFE.length > 0){ if(this.showDetailBaseFromFE && this.showDetailBaseFromFE.length > 0){
this.getItemInfoByItemCodeHandle('detail') this.getItemInfoByItemCodeHandle('detail')

160
fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob.vue

@ -53,9 +53,12 @@
:Options="editOptions" :Options="editOptions"
:detailsTableColumns="AddDetailsTableColumns" :detailsTableColumns="AddDetailsTableColumns"
:childTableData="childTableData" :childTableData="childTableData"
@close="stepsClose(arguments)" @close="stepsCloseHandle(arguments)"
@detailsDataPush="detailsDataPush" @detailsDataPush="detailsDataPush"
@detailsClear="detailsClear" @detailsClear="detailsClear"
:isShowDeleteButton="false"
:addClickButton="false"
:successHandle="successHandle"
></StepsFormNotView> ></StepsFormNotView>
</div> </div>
</template> </template>
@ -66,6 +69,7 @@ import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins" import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { mixins } from "@/mixins/mixins" import { mixins } from "@/mixins/mixins"
import { filterSelectMixins } from '@/mixins/filter-Select'
export default { export default {
name: "customerDismantleJob", name: "customerDismantleJob",
mixins: [ mixins: [
@ -74,6 +78,7 @@ export default {
drawerMixins, drawerMixins,
TableHeaderMixins, TableHeaderMixins,
mixins, mixins,
filterSelectMixins,
], ],
data () { data () {
return { return {
@ -81,6 +86,7 @@ export default {
detailURL: 'wms/store/product-recycle-note/note-and-back-flush', detailURL: 'wms/store/product-recycle-note/note-and-back-flush',
// //
currenButtonData: [ currenButtonData: [
this.defaultAddBtn(),//
// //
this.defaultExportBtn({ this.defaultExportBtn({
url:"wms/store/product-recycle-note/export-note-and-back-flush" url:"wms/store/product-recycle-note/export-note-and-back-flush"
@ -108,7 +114,17 @@ export default {
details:[] details:[]
}, },
CreateForm: [ CreateForm: [
{ type: "inputNumber", label: "数量", prop: "qty",colSpan: 12,min:1 }, { type: "inputNumber", label: "数量", prop: "qty",colSpan: 12,min:1,
validator: (rule, value, callback) => {
//todo
let _qty = Number(this.propsData.InventoryQty)
if(_qty < value){
return callback(new Error(`数量不能大于库存数量${_qty}`))
}else{
callback()
}
}
},
], ],
editRules: { editRules: {
cerateRule: { cerateRule: {
@ -117,11 +133,11 @@ export default {
}, },
AddDetailsTableColumns: [ AddDetailsTableColumns: [
{ label: "物料代码", prop: "partCode",width:"auto" }, { label: "物料代码", prop: "partCode",width:"auto" },
{ label: "数量", prop: 'qty',width:"auto" },//todo: { label: "数量", prop: 'qty',width:"auto" },
{ type: "filterSelect", label: "库位", prop: "locationCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "库位", prop: "locationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Location",this.isFilter("type", "5"))}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/Location",this.isFilter("type", "5"))},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Location', 'InventoryBalance', '库位选择', this.CreateFormData) }, // searchButton: (val) => { this.showSerarchPage(val, 'basedata/Location', 'InventoryBalance', '', this.CreateFormData) },
width:"auto", searchButton:false width:"auto",
}, },
], ],
childTableData:[{ childTableData:[{
@ -129,65 +145,93 @@ export default {
qty:undefined, qty:undefined,
locationCode:undefined locationCode:undefined
}], }],
successHandle:[
{
label:"下载",
click:(()=>{
this.downloadReport()
})
}
]
}; };
}, },
mounted () { mounted () {
this.paging(); this.paging();
}, },
methods: {// methods: {
paging(callback) { //
this.Loading.tableLoading = true; isFilter (val, data) {
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount, let filter = [
getPageList(this.PageListParams, this.URL,true) {
.then(res => { logic: "And",
this.tableData = res.items column: val,
this.totalCount = res.totalCount action: "==",
this.tableData.forEach(item=>{ value: data
item.itemCode = item.noteAndBackFlushDetails[0].itemCode }
item.locationCode = item.noteAndBackFlushDetails[0].locationCode ]
item.qty = item.noteAndBackFlushDetails[0].qty return filter
item.rawLocationCode = item.noteAndBackFlushDetails[0].rawLocationCode
item.preStartTime = item.noteAndBackFlushDetails[0].preStartTime
item.workHour = item.noteAndBackFlushDetails[0].workHour
})
this.pagingCallback(callback)
})
.catch(err => {
this.Loading.tableLoading = false
})
}, },
//Table detailsDataPush(data){
inlineDialog(val) { console.log(data)
this.firstTabs = 'xq' },
// detailsClear(data){
this.Loading.DrawerLoading = true console.log(data)
this.displayDialog.detailsDialog = true; },
getDetailed(val.id, 'wms/store/product-recycle-note/note-and-back-flush') //-
.then(res => { blob(res, fileName) {
if (res.details) { let blob = new Blob([res], {
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8',
this.tableDataDetails = JSON.parse(JSON.stringify(res)) })
let linshiTableDataDetails = JSON.parse(JSON.stringify(this.tableDataDetails)) const href = URL.createObjectURL(blob) //URLblob
this.totalCountDetails = res.details.length const a = document.createElement('a') //a
// a.style.display = 'none'
linshiTableDataDetails.details.splice(this.MaxResultCountDetails,this.totalCountDetails); a.href = href //
this.propsData = linshiTableDataDetails a.download = fileName //
} else { a.click() //
this.propsData = res URL.revokeObjectURL(a.href) //URL
} },
if (this.propsData.noteAndBackFlushDetails.length > 0) { //
this.propsData.itemCode = this.propsData.noteAndBackFlushDetails[0].itemCode downloadReport(){
this.propsData.locationCode = this.propsData.noteAndBackFlushDetails[0].locationCode //
this.propsData.qty = this.propsData.noteAndBackFlushDetails[0].qty // todo:
this.propsData.rawLocationCode = this.propsData.noteAndBackFlushDetails[0].rawLocationCode console.log(241)
this.propsData.preStartTime = this.propsData.noteAndBackFlushDetails[0].preStartTime // this.blob(res, menuName + '')
this.propsData.workHour = this.propsData.noteAndBackFlushDetails[0].workHour },
} stepsSubmit (val) {
this.inlineDialogCallback() return new Promise((resolve, reject) => {
}) resolve()
.catch(err => { // todo:
this.Loading.DrawerLoading = false // postUpdate(this.CreateFormData, this.propsData.id, this.URL).then(res => {
}) // this.propsData = res
// resolve();
// }).catch(err => {
// reject();
// })
});
},
stepsCloseHandle(data){
// todo:
this.displayDialog.detailsDialog = false
this.stepsClose(data)
},
PalletlFunction (val) {
return new Promise((resolve, reject) => {
if(val == 0){
console.log(this.CreateFormData.qty)
// todo:1bom
this.CreateFormData.details = [{
partCode:"CS20231220001D",
qty:2,
locationCode:'WZSX'
}]
// todo:2detailsqtyqty
resolve();
}
//
if(val == 1){
resolve()
}
});
}, },
} }
}; };

2
fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseOrderHigher.vue

@ -66,7 +66,7 @@ import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { mixins } from "@/mixins/mixins" import { mixins } from "@/mixins/mixins"
import { processRequest, getDetailed } from '@/api/wms-api' import { processRequest, getDetailed } from '@/api/wms-api'
export default { export default {
name: "PurchaseOrder", name: "PurchaseOrderHigher",
mixins: [ mixins: [
tableMixins, tableMixins,
LoadingMixins, LoadingMixins,

Loading…
Cancel
Save