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. 154
      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')

154
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 detailsDataPush(data){
item.workHour = item.noteAndBackFlushDetails[0].workHour console.log(data)
}) },
this.pagingCallback(callback) detailsClear(data){
}) console.log(data)
.catch(err => { },
this.Loading.tableLoading = false //-
blob(res, fileName) {
let blob = new Blob([res], {
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8',
}) })
const href = URL.createObjectURL(blob) //URLblob
const a = document.createElement('a') //a
a.style.display = 'none'
a.href = href //
a.download = fileName //
a.click() //
URL.revokeObjectURL(a.href) //URL
}, },
//Table //
inlineDialog(val) { downloadReport(){
this.firstTabs = 'xq' //
// // todo:
this.Loading.DrawerLoading = true console.log(241)
this.displayDialog.detailsDialog = true; // this.blob(res, menuName + '')
getDetailed(val.id, 'wms/store/product-recycle-note/note-and-back-flush') },
.then(res => { stepsSubmit (val) {
if (res.details) { return new Promise((resolve, reject) => {
// resolve()
this.tableDataDetails = JSON.parse(JSON.stringify(res)) // todo:
let linshiTableDataDetails = JSON.parse(JSON.stringify(this.tableDataDetails)) // postUpdate(this.CreateFormData, this.propsData.id, this.URL).then(res => {
this.totalCountDetails = res.details.length // this.propsData = res
// // resolve();
linshiTableDataDetails.details.splice(this.MaxResultCountDetails,this.totalCountDetails); // }).catch(err => {
this.propsData = linshiTableDataDetails // reject();
} else { // })
this.propsData = res });
},
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 (this.propsData.noteAndBackFlushDetails.length > 0) { //
this.propsData.itemCode = this.propsData.noteAndBackFlushDetails[0].itemCode if(val == 1){
this.propsData.locationCode = this.propsData.noteAndBackFlushDetails[0].locationCode resolve()
this.propsData.qty = this.propsData.noteAndBackFlushDetails[0].qty
this.propsData.rawLocationCode = this.propsData.noteAndBackFlushDetails[0].rawLocationCode
this.propsData.preStartTime = this.propsData.noteAndBackFlushDetails[0].preStartTime
this.propsData.workHour = this.propsData.noteAndBackFlushDetails[0].workHour
} }
this.inlineDialogCallback() });
})
.catch(err => {
this.Loading.DrawerLoading = false
})
}, },
} }
}; };

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