Browse Source

【NEV-PC】暂存

ag_report_nev
安虹睿 1 year ago
parent
commit
6f7b3a8b69
  1. 8
      fe/PC/src/api/wms-api.js
  2. 36
      fe/PC/src/filters/status.js
  3. 64
      fe/PC/src/router/index.js
  4. 1
      fe/PC/src/utils/detailsTableColumns/index.js
  5. 65
      fe/PC/src/utils/tableColumns/index.js
  6. 60
      fe/PC/src/utils/tabsDesTions/index.js
  7. 211
      fe/PC/src/views/basicData/ItemsManage/ItemContainer.vue
  8. 7
      fe/PC/src/views/basicData/ItemsManage/Utensil.vue
  9. 5
      fe/PC/src/views/basicData/WarehouseManage/ItemStoreRelation.vue
  10. 163
      fe/PC/src/views/basicData/priceManage/PurchasePriceSheet.vue
  11. 163
      fe/PC/src/views/basicData/priceManage/SalePriceSheet.vue
  12. 163
      fe/PC/src/views/basicData/priceManage/StdCostPriceSheet.vue
  13. 381
      fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob-old.vue
  14. 80
      fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseOrderHigher.vue

8
fe/PC/src/api/wms-api.js

@ -666,6 +666,14 @@ export async function productRecycleNoteExport(data) {
})
}
// 采购订单-关闭订单行
export async function purchaseOrderCloseDetailld(id,detailld) {
return request({
url: baseURL + `wms/store/purchase-order/${id}/detail/close/${detailld}`,
method: 'post',
})
}
// 客户退拆任务-完成 todo
// export async function productionRecycleJobComplete(id) {
// return request({

36
fe/PC/src/filters/status.js

@ -614,6 +614,30 @@ export function taskType(index, prop) {
label: "盘点任务",
value: 9
},
11: {
label: "JIS发货",
value: 11
},
12: {
label: "计划外出库",
value: 12
},
13: {
label: "计划外入库",
value: 13
},
14: {
label: "退料",
value: 14
},
15: {
label: "转移",
value: 15
},
16: {
label: "器具转移",
value: 16
},
}
return Enum(type, index, prop)
}
@ -1202,9 +1226,7 @@ export function truncType(index, prop) {
}
return Enum(type, index, prop)
}
/**
* @returns {Array} '包装类型'
*/
// 包装类型
export function qtyUomType(index, prop) {
let type = {
EA: {
@ -2469,12 +2491,12 @@ export function positionCodeType(index, prop) {
// 器具类型
export function utensilType(index, prop) {
let type = {
1: {
value: 1,
"InLogistics": {
value: "InLogistics",
label: "内物流"
},
2: {
value: 2,
"OutLogistics": {
value: "OutLogistics",
label: "外物流"
},
}

64
fe/PC/src/router/index.js

@ -414,6 +414,70 @@ export const constantRoutes = [
}
}]
},
{
path: '/',
component: Layout,
redirect: '/gridlayout',
hidden: true,
children: [{
path: 'StdCostPriceSheet',
component: () => import('@/views/basicData/priceManage/StdCostPriceSheet.vue'),
name: 'StdCostPriceSheet',
meta: {
keepAlive : true,
title: '标准成本价格单',
icon: '成品发运任务',
}
}]
},
{
path: '/',
component: Layout,
redirect: '/gridlayout',
hidden: true,
children: [{
path: 'PurchasePriceSheet',
component: () => import('@/views/basicData/priceManage/PurchasePriceSheet.vue'),
name: 'PurchasePriceSheet',
meta: {
keepAlive : true,
title: '采购价格单',
icon: '成品发运任务',
}
}]
},
{
path: '/',
component: Layout,
redirect: '/gridlayout',
hidden: true,
children: [{
path: 'SalePriceSheet',
component: () => import('@/views/basicData/priceManage/SalePriceSheet.vue'),
name: 'SalePriceSheet',
meta: {
keepAlive : true,
title: '销售价格单',
icon: '成品发运任务',
}
}]
},
{
path: '/',
component: Layout,
redirect: '/gridlayout',
hidden: true,
children: [{
path: 'ItemContainer',
component: () => import('@/views/basicData/ItemsManage/ItemContainer.vue'),
name: 'ItemContainer',
meta: {
keepAlive : true,
title: '收容数标包',
icon: '成品发运任务',
}
}]
},
]
/**

1
fe/PC/src/utils/detailsTableColumns/index.js

@ -125,6 +125,7 @@ export const PurchaseOrderHigher = [
{ label: "已收货数量", prop: "receivedQty" },
{ label: "已退货数量", prop: "returnedQty" },
{ label: "已上架数量", prop: "putAwayQty" },
{ label: "订单行状态", prop: "lineStatus",type:'filter',filters:"openToClose" },
// -----------------------------------------------------------------------
{ label: "筹措员代码", prop: 'planUserCode' },
{ label: "要求到货时间", prop: "planArriveDate", type: "dateTime" },

65
fe/PC/src/utils/tableColumns/index.js

@ -120,6 +120,20 @@ export const ItemPack = [
// fixed: "right"
// },
]
// 收容数标包
export const ItemContainer = [
{
label: "收容代码",
prop: "containerCode",
fixed: "left",
type: "name"
},
{ label: "物料代码", prop: "itemCode" },
{ label: '收容数量', prop: "qty" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: 'remark', colSpan: 12 },
]
// 物品质检标准信息
export const AQL = [
{
@ -994,6 +1008,53 @@ export const documentBasic = [
// fixed: "right"
// },
]
// 标准成本价格单
export const StdCostPriceSheet = [
{
label: "物品代码",
fixed: "left",
type: "name",
prop: "itemCode",
width:"200px"
},
{ label: "标准成本价格", prop: "stdCostPrice" },
{ label: "价格单描述", prop: "description" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: "remark" },
]
// 采购价格单
export const PurchasePriceSheet = [
{
label: "物品代码",
fixed: "left",
type: "name",
prop: "itemCode",
width:"200px"
},
{ label: "供应商编号", prop: "supplierCode" },
{ label: "采购价格", prop: "purchasePrice" },
{ label: "价格单描述", prop: "description" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: "remark" },
]
// 销售价格单
export const SalePriceSheet = [
{
label: "物品代码",
fixed: "left",
type: "name",
prop: "itemCode",
width:"200px"
},
{ label: "客户代码", prop: "customerCode" },
{ label: "销售价格", prop: "salePrice" },
{ label: "价格单描述", prop: "description" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: "remark" },
]
// 原料管理
@ -4075,8 +4136,8 @@ export const Utensil = [
type: "name"
},
// { label: _Names.stdPackQty, prop: "stdQty",isNumber:true },
{ label: "器具类型", prop: 'containerType',type:"filter",filters:"utensilType" },
{ label: "器具规格", prop: "specificationsType",type: "filter", filters: "getDict" , dictType:"ContainerSpecificationsType"},
{ label: "器具类型", prop: 'type',type:"filter",filters:"utensilType" },
{ label: "器具规格", prop: "model",type: "filter", filters: "getDict" , dictType:"ContainerSpecificationsType"},
{ label: _Public.creationTime, prop: "creationTime", type: "dateTime" },
{ label: '创建人', prop: "creator" },
{ label: _Public.lastModificationTime, prop: "lastModificationTime", type: "dateTime" },

60
fe/PC/src/utils/tabsDesTions/index.js

@ -92,6 +92,15 @@ export const ItemPack = [
// ************** 确认隐藏 ************************
]
// 收容数标包
export const ItemContainer = [
{ label: "收容代码", prop: 'containerCode' },
{ label: "物料代码", prop: "itemCode" },
{ label: '收容数量', prop: "qty" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: 'remark', colSpan: 12 },
]
// 物品质检标准信息 20230328
export const AQL = [
{ label: "物品代码", prop: "itemCode" },
@ -748,6 +757,53 @@ export const documentBasic = [
// { label: "ID", prop: 'id' },
// ************** 确认隐藏 ************************
]
// 标准成本价格单
export const StdCostPriceSheet = [
{
label: "物品代码",
fixed: "left",
type: "name",
prop: "itemCode",
width:"200px"
},
{ label: "标准成本价格", prop: "stdCostPrice" },
{ label: "价格单描述", prop: "description" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: "remark" },
]
// 采购价格单
export const PurchasePriceSheet = [
{
label: "物品代码",
fixed: "left",
type: "name",
prop: "itemCode",
width:"200px"
},
{ label: "供应商编号", prop: "supplierCode" },
{ label: "采购价格", prop: "purchasePrice" },
{ label: "价格单描述", prop: "description" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: "remark" },
]
// 销售价格单
export const SalePriceSheet = [
{
label: "物品代码",
fixed: "left",
type: "name",
prop: "itemCode",
width:"200px"
},
{ label: "客户代码", prop: "customerCode" },
{ label: "销售价格", prop: "salePrice" },
{ label: "价格单描述", prop: "description" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "备注", prop: "remark" },
]
// 原料管理
// 供应商发货通知 20230404
@ -2948,8 +3004,8 @@ export const PositionCode = [
export const Utensil = [
{ label: '器具代码',prop: "code",},
// { label: _Names.stdPackQty, prop: "stdQty" },
{ label: "器具类型", prop: 'containerType',type:"filter",filters:"utensilType" },
{ label: "器具规格", prop: "specificationsType",type: "filter", filters: "getDict" , dictType:"ContainerSpecificationsType"},
{ label: "器具类型", prop: 'type',type:"filter",filters:"utensilType" },
{ label: "器具规格", prop: "model",type: "filter", filters: "getDict" , dictType:"ContainerSpecificationsType"},
{ label: _Public.creationTime, prop: "creationTime", type: "dateTime" },
{ label: '创建人', prop: "creator" },
{ label: _Public.lastModificationTime, prop: "lastModificationTime", type: "dateTime" },

211
fe/PC/src/views/basicData/ItemsManage/ItemContainer.vue

@ -0,0 +1,211 @@
<template>
<div class="page-box" v-loading="Loading.appMainLoading">
<tablePagination
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="tableColumns"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
@buttonOperationClick="buttonOperationClick"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
>
</tablePagination>
<!-- 新增与编辑 -->
<newAndEdiDialog
:loading="Loading.newAndEdiLoading"
:active="active"
:pageStatus="pageStatus"
:formReveal="formReveal"
:formTitle="formTitle"
:displayDialog="editDialog"
:FormData="formReveal ? CreateFormData : editFormData"
:Form="formReveal ? CreateForm : editForm"
:Options="editOptions"
:Handle="editHandle"
:Rules="formReveal ? editRules.cerateRule : editRules.editRule"
@FormSubmit="FormSubmit"
@close="FormClose"
@goBack="goBack"
></newAndEdiDialog>
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用-->
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 -->
<importFile
:loading="Loading.importLoading"
:show="displayDialog.importDialog"
:URL="URL"
:disabledMethod={method1:false,method2:false,method3:false}
:disabledIsAllowPartImport={isAllowPartImport1:false,isAllowPartImport2:false}
isAllowPartImportValue="1"
@importClick="postImportMergeClick(arguments)"
@postImportDown="importDown"
></importFile>
<curren-Drawer
:title="tableColumns"
:tableColumns="tableColumns"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:dropdownData="dropdownData"
:propsData="propsData"
:tabsDesTions="tabsDesTions"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
></curren-Drawer>
<!-- 搜索按钮窗体组件 -->
<searchPage
ref="searchTable"
:tableLoading="Loading.autoTableLoading"
:advancedFilter="advancedFilter()"
:filterPageListParams="filterPageListParams"
:formTitle="searchTitle"
:displayDialog="displayDialog.AddNewDialog"
:searchTableData="searchData"
:searchTableColumns="searchColumns"
:searchTotalCount="searchTotalCount"
:supplierItemPage="searchPageListParams"
@handleSelectionChange="prepareFormData"
@SizeChange="searchAlterResultCount($event, searchPageListParams)"
@CurrentChange="searchAlertoldSkipCount($event, searchPageListParams)"
@tableButtonClick="searchSubmit(arguments)"
></searchPage>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "ItemContainer",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
computed: {
editDialog: {
get: function () {
return this.displayDialog.newDialog || this.displayDialog.editDialog;
},
},
},
data () {
const validateQty = (rule, value, callback) => {
if (value <= 0) {
callback(new Error('最小值为1'))
} else {
callback()
}
}
return {
URL: 'basedata/item-container',
//
currenButtonData: [
this.defaultAddBtn(),//
this.defaultImportBtn(),//
this.defaultExportBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
//
CreateFormData: {
remark: null,
containerCode: null,
qty: null,
itemCode: null,
},
//
editFormData: {
containerCode:'',
itemCode:'',
remark: null,
qty: null,
concurrencyStamp: null,
},
editOptions: {},
CreateForm: [
{ type: "input", label: "收容代码", prop: 'containerCode', colSpan: 12, validType:'numberLetter' },
{ type: "filterSelect", label: "物品代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Item-Basic",this.isFilterItemCode())},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物品选择', this.CreateFormData,this.isFilterItemCode()) }, colSpan: 12 },
{ type: "inputNumber", label: "收容数量", prop: "qty", colSpan: 12, min:1 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editForm: [
{ disabled:true, type: "input", label: "收容代码", prop: 'containerCode', colSpan: 12, validType:'numberLetter' },
{ type: "input", label: "物品代码", prop: "itemCode", disabled:true, colSpan: 12 },
{ type: "inputNumber", label: "收容数量", prop: "qty", colSpan: 12, min:1 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editRules: {
cerateRule: {
containerCode: [{ required: true, trigger: "blur", message: "不可为空" }],
itemCode: [{ required: true, trigger: "change", message: "不可为空" }],
qty: [
{ required: true, trigger: "blur", message: "不可为空且最小值为1" },
{ required: true, trigger: 'blur', validator: validateQty }
],
},
editRule: {
containerCode: [{ required: true, trigger: "blur", message: "不可为空" }],
itemCode: [{ required: true, trigger: "change", message: "不可为空" }],
qty: [
{ required: true, trigger: "blur", message: "不可为空且最小值为1" },
{ required: true, trigger: 'blur', validator: validateQty }
],
}
},
};
},
mounted () {
this.paging();
},
methods:{
//
isFilterItemCode () {
let filter = [
{
logic: "Or",
column: "type",
action: "==",
value: "10C04"
},
{
logic: "Or",
column: "type",
action: "==",
value: "10C01"
}
]
return filter
},
}
};
</script>
<style lang="scss" scoped>
@import "../../../styles/basicData.scss";
</style>

7
fe/PC/src/views/basicData/ItemsManage/Utensil.vue

@ -162,7 +162,6 @@ export default {
{ type: "select",options: "utensilType", label: "器具类型", prop: "type", colSpan: 12 },
{ type: "input", label: "备注", prop: "remark", colSpan: 12 },
],
//todo:+
editRules: {
cerateRule: {
codeSuffix: [{ required: true, trigger: "blur", message: "不可为空" }],
@ -202,7 +201,6 @@ export default {
// this.$listAssign(this.editFormData, this.propsData)
this.displayDialog.editDialog = true
// todo:-code
this.editFormData.prefixType = "Q"
this.editFormData.codeSuffix = (this.editFormData.prefixType == 'Q') ? (this.editFormData.code && this.editFormData.code.length > 0 ? this.editFormData.code.slice(1) : null) : this.editFormData.code
// this.editFormData.prefixType = this.editFormData.code && this.editFormData.code.length > 0 ? this.editFormData.code.slice(0,1) : "Q"
@ -213,12 +211,11 @@ export default {
}
},
FormSubmitHandle(val){
// todo:codeType + code
if(this.formReveal){
this.CreateFormData.code = this.CreateFormData.prefixType + this.CreateFormData.codeSuffix
this.CreateFormData.code = this.CreateFormData.codeSuffix
this.CreateFormData.creator = store.getters.name.userName
}else{
this.editFormData.code = this.editFormData.prefixType + this.editFormData.codeSuffix
this.editFormData.code = this.editFormData.codeSuffix
this.editFormData.creator = store.getters.name.userName
}
this.$nextTick(()=>{

5
fe/PC/src/views/basicData/WarehouseManage/ItemStoreRelation.vue

@ -223,8 +223,11 @@ export default {
editRules: {
cerateRule: {
itemCode: [{ required: true, trigger: "change", message: "不可为空" },],
storeValue: [{ required: true, trigger: "change", message: "不可为空" },],
},
editRule: {}
editRule: {
storeValue: [{ required: true, trigger: "change", message: "不可为空" },],
}
},
};
},

163
fe/PC/src/views/basicData/priceManage/PurchasePriceSheet.vue

@ -0,0 +1,163 @@
<template>
<div class="page-box" v-loading="Loading.appMainLoading">
<tablePagination
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="tableColumns"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
@buttonOperationClick="buttonOperationClick"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
>
</tablePagination>
<!-- 新增与编辑 -->
<newAndEdiDialog
:loading="Loading.newAndEdiLoading"
:active="active"
:pageStatus="pageStatus"
:formReveal="formReveal"
:formTitle="formTitle"
:displayDialog="editDialog"
:FormData="formReveal ? CreateFormData : editFormData"
:Form="formReveal ? CreateForm : editForm"
:Options="editOptions"
:Handle="editHandle"
:Rules="formReveal ? editRules.cerateRule : editRules.editRule"
@FormSubmit="FormSubmit"
@close="FormClose"
@goBack="goBack"
></newAndEdiDialog>
<!-- 搜索按钮窗体组件 -->
<searchPage
ref="searchTable"
:tableLoading="Loading.autoTableLoading"
:advancedFilter="advancedFilter()"
:filterPageListParams="filterPageListParams"
:formTitle="searchTitle"
:displayDialog="displayDialog.AddNewDialog"
:searchTableData="searchData"
:searchTableColumns="searchColumns"
:searchTotalCount="searchTotalCount"
:supplierItemPage="searchPageListParams"
@handleSelectionChange="prepareFormData"
@SizeChange="searchAlterResultCount($event, searchPageListParams)"
@CurrentChange="searchAlertoldSkipCount($event, searchPageListParams)"
@tableButtonClick="searchSubmit(arguments)"
></searchPage>
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用-->
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 -->
<importFile
:loading="Loading.importLoading"
:show="displayDialog.importDialog"
:URL="URL"
:disabledMethod = {method1:false,method2:false,method3:false}
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false}
isAllowPartImportValue="1"
@importClick="postImportMergeClick(arguments)"
@postImportDown="importDown"
></importFile>
<!--抽屉-->
<curren-Drawer
:title="tableColumns"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:dropdownData="dropdownData"
:propsData="propsData"
:tabsDesTions="tabsDesTions"
:tableLoading="tableLoading"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
:firstTabs="firstTabs"
></curren-Drawer>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "PurchasePriceSheet",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
computed: {
editDialog: {
get: function () {
return this.displayDialog.newDialog || this.displayDialog.editDialog;
},
},
},
data () {
return {
URL: 'basedata/purchase-price-sheet',
tableLoading:false,
//
currenButtonData: [
// this.defaultAddBtn(),//
// this.defaultImportBtn(),//
this.defaultExportBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
//
CreateFormData: {
code: null,
},
//
editFormData: {
code: null,
},
editOptions: {},
CreateForm: [
{ type: "input", label: "物品代码", prop: 'code', colSpan: 12, validType:'numberLetter' },
],
editForm: [
{ type: "input", label: "物品代码", prop: 'code', disabled: true, colSpan: 12, validType:'numberLetter' },
],
editRules: {
cerateRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }],
},
editRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }],
}
},
};
},
mounted () {
this.paging();
},
};
</script>
<style lang="scss" scoped>
@import "../../../styles/basicData.scss";
</style>

163
fe/PC/src/views/basicData/priceManage/SalePriceSheet.vue

@ -0,0 +1,163 @@
<template>
<div class="page-box" v-loading="Loading.appMainLoading">
<tablePagination
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="tableColumns"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
@buttonOperationClick="buttonOperationClick"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
>
</tablePagination>
<!-- 新增与编辑 -->
<newAndEdiDialog
:loading="Loading.newAndEdiLoading"
:active="active"
:pageStatus="pageStatus"
:formReveal="formReveal"
:formTitle="formTitle"
:displayDialog="editDialog"
:FormData="formReveal ? CreateFormData : editFormData"
:Form="formReveal ? CreateForm : editForm"
:Options="editOptions"
:Handle="editHandle"
:Rules="formReveal ? editRules.cerateRule : editRules.editRule"
@FormSubmit="FormSubmit"
@close="FormClose"
@goBack="goBack"
></newAndEdiDialog>
<!-- 搜索按钮窗体组件 -->
<searchPage
ref="searchTable"
:tableLoading="Loading.autoTableLoading"
:advancedFilter="advancedFilter()"
:filterPageListParams="filterPageListParams"
:formTitle="searchTitle"
:displayDialog="displayDialog.AddNewDialog"
:searchTableData="searchData"
:searchTableColumns="searchColumns"
:searchTotalCount="searchTotalCount"
:supplierItemPage="searchPageListParams"
@handleSelectionChange="prepareFormData"
@SizeChange="searchAlterResultCount($event, searchPageListParams)"
@CurrentChange="searchAlertoldSkipCount($event, searchPageListParams)"
@tableButtonClick="searchSubmit(arguments)"
></searchPage>
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用-->
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 -->
<importFile
:loading="Loading.importLoading"
:show="displayDialog.importDialog"
:URL="URL"
:disabledMethod = {method1:false,method2:false,method3:false}
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false}
isAllowPartImportValue="1"
@importClick="postImportMergeClick(arguments)"
@postImportDown="importDown"
></importFile>
<!--抽屉-->
<curren-Drawer
:title="tableColumns"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:dropdownData="dropdownData"
:propsData="propsData"
:tabsDesTions="tabsDesTions"
:tableLoading="tableLoading"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
:firstTabs="firstTabs"
></curren-Drawer>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "SalePriceSheet",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
computed: {
editDialog: {
get: function () {
return this.displayDialog.newDialog || this.displayDialog.editDialog;
},
},
},
data () {
return {
URL: 'basedata/sale-price-sheet',
tableLoading:false,
//
currenButtonData: [
// this.defaultAddBtn(),//
// this.defaultImportBtn(),//
this.defaultExportBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
//
CreateFormData: {
code: null,
},
//
editFormData: {
code: null,
},
editOptions: {},
CreateForm: [
{ type: "input", label: "物品代码", prop: 'code', colSpan: 12, validType:'numberLetter' },
],
editForm: [
{ type: "input", label: "物品代码", prop: 'code', disabled: true, colSpan: 12, validType:'numberLetter' },
],
editRules: {
cerateRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }],
},
editRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }],
}
},
};
},
mounted () {
this.paging();
},
};
</script>
<style lang="scss" scoped>
@import "../../../styles/basicData.scss";
</style>

163
fe/PC/src/views/basicData/priceManage/StdCostPriceSheet.vue

@ -0,0 +1,163 @@
<template>
<div class="page-box" v-loading="Loading.appMainLoading">
<tablePagination
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="tableColumns"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
@buttonOperationClick="buttonOperationClick"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
>
</tablePagination>
<!-- 新增与编辑 -->
<newAndEdiDialog
:loading="Loading.newAndEdiLoading"
:active="active"
:pageStatus="pageStatus"
:formReveal="formReveal"
:formTitle="formTitle"
:displayDialog="editDialog"
:FormData="formReveal ? CreateFormData : editFormData"
:Form="formReveal ? CreateForm : editForm"
:Options="editOptions"
:Handle="editHandle"
:Rules="formReveal ? editRules.cerateRule : editRules.editRule"
@FormSubmit="FormSubmit"
@close="FormClose"
@goBack="goBack"
></newAndEdiDialog>
<!-- 搜索按钮窗体组件 -->
<searchPage
ref="searchTable"
:tableLoading="Loading.autoTableLoading"
:advancedFilter="advancedFilter()"
:filterPageListParams="filterPageListParams"
:formTitle="searchTitle"
:displayDialog="displayDialog.AddNewDialog"
:searchTableData="searchData"
:searchTableColumns="searchColumns"
:searchTotalCount="searchTotalCount"
:supplierItemPage="searchPageListParams"
@handleSelectionChange="prepareFormData"
@SizeChange="searchAlterResultCount($event, searchPageListParams)"
@CurrentChange="searchAlertoldSkipCount($event, searchPageListParams)"
@tableButtonClick="searchSubmit(arguments)"
></searchPage>
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用-->
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 -->
<importFile
:loading="Loading.importLoading"
:show="displayDialog.importDialog"
:URL="URL"
:disabledMethod = {method1:false,method2:false,method3:false}
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false}
isAllowPartImportValue="1"
@importClick="postImportMergeClick(arguments)"
@postImportDown="importDown"
></importFile>
<!--抽屉-->
<curren-Drawer
:title="tableColumns"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:dropdownData="dropdownData"
:propsData="propsData"
:tabsDesTions="tabsDesTions"
:tableLoading="tableLoading"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
:firstTabs="firstTabs"
></curren-Drawer>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "StdCostPriceSheet",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
computed: {
editDialog: {
get: function () {
return this.displayDialog.newDialog || this.displayDialog.editDialog;
},
},
},
data () {
return {
URL: 'basedata/stdcostpricesheet',
tableLoading:false,
//
currenButtonData: [
// this.defaultAddBtn(),//
// this.defaultImportBtn(),//
this.defaultExportBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
//
CreateFormData: {
code: null,
},
//
editFormData: {
code: null,
},
editOptions: {},
CreateForm: [
{ type: "input", label: "物品代码", prop: 'code', colSpan: 12, validType:'numberLetter' },
],
editForm: [
{ type: "input", label: "物品代码", prop: 'code', disabled: true, colSpan: 12, validType:'numberLetter' },
],
editRules: {
cerateRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }],
},
editRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }],
}
},
};
},
mounted () {
this.paging();
},
};
</script>
<style lang="scss" scoped>
@import "../../../styles/basicData.scss";
</style>

381
fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob-old.vue

@ -0,0 +1,381 @@
<template>
<div class="page-box" v-loading="Loading.appMainLoading">
<tablePagination
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="tableColumns"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
>
</tablePagination>
<curren-Drawer
:title="tableColumns"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:propsData="propsData"
:Butttondata="DrawerButtonData"
:tabsDesTions="tabsDesTions"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbuttonHandle"
@handleCommand="drawerHandle"
@close-value="closeValue"
:tableColumns="detailsTableColumns"
:totalCount="totalCountDetails"
:MaxResultCount="MaxResultCountDetails"
@alterResultCountDetails="alterResultCountDetails"
@alertoldSkipCountDetails="alertoldSkipCountDetails"
:dropdownTabsData="[]"
:firstTabs="firstTabs"
></curren-Drawer>
<!--编辑-->
<StepsFormNotView
:formTitle="formTitle"
:displayDialog="displayDialog"
:CreateFormData="CreateFormData"
:CreateForm="CreateForm"
:Rules="editRules.cerateRule"
:Options="editOptions"
:detailsTableColumns="AddDetailsTableColumns"
:childTableData="childTableData"
@close="stepsCloseHandle(arguments)"
@detailsDataPush="detailsDataPush"
@detailsClear="detailsClear"
:isShowDeleteButton="false"
:addClickButton="false"
:successHandle="successHandle"
></StepsFormNotView>
</div>
</template>
<script>
import {
getDetailed,
getPageList,
getBomByComponentTree,
productRecycleNoteExport,
productionRecycleJobHandle,
// productionRecycleJobComplete
} from "@/api/wms-api";
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { mixins } from "@/mixins/mixins"
import { filterSelectMixins } from '@/mixins/filter-Select'
import store from '@/store'
export default {
name: "customerDismantleJob",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
],
computed: {
hideButton: function () {
return function (val) {
let data = true
val.forEach(key => {
if (this.propsData.jobStatus == key) {
data = false
}
})
return data
}
},
},
data () {
return {
URL: 'wms/store/production-recycle-job',
//
currenButtonData: [
// this.defaultAddBtn(),//
//
this.defaultExportBtn(),
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
DrawerButtonData: [
{
type: 'warning',
label: '执行',
name: "handle",
// ++
hide: () => { return this.hideButton([1,2,4]) },
size: 'mini'
},
// {
// type: 'success',
// label: '',
// name: "complete",
// // todo:
// hide: () => { return this.hideButton([1]) },
// size: 'mini'
// },
],
//
CreateFormData: {
qty:null,
details:[]
},
CreateForm: [
{ type: "inputNumber", label: "数量", prop: "qty",colSpan: 12,min:1},
],
editRules: {
cerateRule: {
qty: [
{ required: true, trigger: "blur", message: "不可为空" },
{
type: "number",
trigger: ["blur"],
validator: (rule, value, callback) => {
//
let _InventoryQty = Number(this.propsData.details[0].qty) - Number(this.propsData.details[0].executedQty)
if(_InventoryQty < value){
return callback(new Error(`数量不能大于未完成数量${_InventoryQty}`))
}else{
callback()
}
}
}
],
},
},
AddDetailsTableColumns: [
{ label: "子物料代码", prop: "partCode",width:"auto" },
{ label: "数量", prop: 'qty',width:"auto" },
{ type: "filterSelect", label: "目标库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Location",this.isFilter("type", "5"))},
// searchButton: (val) => { this.showSerarchPage(val, 'basedata/Location', 'InventoryBalance', '', this.CreateFormData) },
width:"auto",
},
],
childTableData:[{
partCode:undefined,
qty:undefined,
rawLocationCode:undefined,
rawLocationArea:undefined,
rawLocationErpCode:undefined,
rawLocationGroup:undefined,
warehouseCode:undefined,
}],
successHandle:[
{
label:"下载报告",
click:(()=>{
this.downloadReport()
})
}
],
bomList:null,
submitRes:null,//
};
},
mounted () {
this.paging();
},
methods: {
drawerbuttonHandle(val){
//
if (val == "handle") {
this.formTitle = this.$route.meta.title + "执行";
this.CreateFormData = JSON.parse(JSON.stringify(this.propsData));
//
let _qty = Number(this.propsData.details[0].qty) - Number(this.propsData.details[0].executedQty)
this.$set(this.CreateFormData, "qty", _qty)
this.childTableData = [{
partCode:undefined,
qty:undefined,
rawLocationCode:undefined,
rawLocationArea:undefined,
rawLocationErpCode:undefined,
rawLocationGroup:undefined,
warehouseCode:undefined,
}]
this.theEvent = "edit"
this.displayDialog.newDialog = true
}
//
// else if(val == "complete"){
// // todo:,wsm-apiproductionRecycleJobComplete
// this.Loading.appMainLoading = true
// productionRecycleJobComplete(this.propsData.id).then(res => {
// this.Loading.appMainLoading = false
// this.paging()
// this.displayDialog.detailsDialog = false
// }).catch(err => {
// this.Loading.appMainLoading = false
// })
// }
else{
this.drawerbutton(val)
}
},
//
isFilter (val, data) {
let filter = [
{
logic: "And",
column: val,
action: "==",
value: data
}
]
return filter
},
detailsDataPush(data){
if(data[1].prop == "rawLocationCode"){
this.CreateFormData.details[data[3].$index].rawLocationArea = data[0].areaCode
this.CreateFormData.details[data[3].$index].rawLocationErpCode = data[0].erpLocationCode
this.CreateFormData.details[data[3].$index].rawLocationGroup = data[0].locationGroupCode
this.CreateFormData.details[data[3].$index].warehouseCode = data[0].warehouseCode
}
},
detailsClear(data){
console.log(data)
},
//
downloadReport(){
//
let _data = {
maxResultCount: 20,
skipCount: 0,
sorting: "",
route: "wms/store/product-recycle-note/export-product-recycle",
function: "客户退拆记录",//
condition: {
filters: [
{
logic: "And",
column: "number",
action: "==",
value: this.submitRes.remark
}
]
}
}
this.Loading.appMainLoading = true
productRecycleNoteExport(_data)
.then(res=>{
this.Loading.appMainLoading = false
this.blob(res,'客户退拆记录报告')//
})
.catch(err=>{
this.Loading.appMainLoading = false
})
},
stepsSubmit (val) {
//
return new Promise((resolve, reject) => {
let _tableList = this.CreateFormData.details
let _empty = 0
_tableList.forEach(item=>{
if(!item.rawLocationCode || item.rawLocationCode.length <= 0){
_empty ++
}
})
if(_empty > 0){
this.$errorMsg("目标库位不可为空")
return
}
let _jobInfo = this.propsData
let _itemInfo = this.propsData.details[0]
let _data = JSON.parse(JSON.stringify(_jobInfo))
_data.details[0].materialDetails = [],//
_data.details[0].qty = Number(this.CreateFormData.qty)
this.bomList.forEach((item,index)=>{
let _item = {
itemCode: item.component,
qty: _tableList[index].qty,
locationCode: _tableList[index].rawLocationCode,
locationArea: _tableList[index].rawLocationArea,
locationGroup: _tableList[index].rawLocationGroup,
locationErpCode: _tableList[index].rawLocationErpCode,
warehouseCode: _tableList[index].warehouseCode,
}
_data.details[0].materialDetails.push(_item)
})
this.Loading.appMainLoading = true
this.submitRes = null
productionRecycleJobHandle(_jobInfo.id,_data).then(res => {
this.Loading.appMainLoading = false
this.submitRes = res
resolve();
}).catch(err => {
this.Loading.appMainLoading = false
reject();
})
});
},
stepsCloseHandle(data){
//
this.displayDialog.detailsDialog = false
this.stepsClose(data)
},
PalletlFunction (val) {
return new Promise((resolve, reject) => {
if(val == 0){
console.log(this.CreateFormData.qty)
this.Loading.appMainLoading = true
// bom
let _itemInfo = this.propsData.details[0]
getBomByComponentTree(_itemInfo.itemCode)
.then(res=>{
this.bomList = res
this.Loading.appMainLoading = false
if(res.length > 0){
this.CreateFormData.details = []
res.forEach(item=>{
let _item={
partCode:item.component,
// detailsqtyqty
qty:Number(item.componentQty)*this.CreateFormData.qty,
rawLocationCode:_itemInfo.rawLocationCode,
rawLocationArea:_itemInfo.rawLocationArea,
rawLocationGroup:_itemInfo.rawLocationGroup,
rawLocationErpCode:_itemInfo.rawLocationErpCode,
warehouseCode:_itemInfo.warehouseCode,
}
this.CreateFormData.details.push(_item)
})
resolve();
}else{
this.$errorMsg(`并未找到${_itemInfo.itemCode}对应的bom数据`)
reject()
}
})
.catch(err=>{
this.Loading.appMainLoading = false
reject()
})
}
//
if(val == 1){
resolve()
}
});
},
}
};
</script>
<style lang="scss" scoped>
@import "../../../styles/basicData.scss";
</style>

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

@ -55,7 +55,27 @@
:MaxResultCount="MaxResultCountDetails"
@alterResultCountDetails="alterResultCountDetails"
@alertoldSkipCountDetails="alertoldSkipCountDetails"
></curren-Drawer>
>
<template>
<el-table-column
fixed="right"
label="操作"
align="center"
width="120"
>
<template slot-scope="scope">
<span style="color:#999" v-if="scope.row.lineStatus == 0">订单行已关闭</span>
<span style="color:#999" v-if="Number(scope.row.putAwayQty) > 0 && scope.row.lineStatus == 1">已上架</span>
<el-button
v-if="Number(scope.row.putAwayQty) <= 0 && scope.row.lineStatus == 1"
type="danger"
@click="closePoline(scope)"
size="small"
>关闭订单行</el-button>
</template>
</el-table-column>
</template>
</curren-Drawer>
</div>
</template>
<script>
@ -64,7 +84,7 @@ import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { mixins } from "@/mixins/mixins"
import { processRequest, getDetailed } from '@/api/wms-api'
import { processRequest, getDetailed,purchaseOrderCloseDetailld } from '@/api/wms-api'
export default {
name: "PurchaseOrderHigher",
mixins: [
@ -75,27 +95,11 @@ export default {
mixins
],
computed: {
hideButton: function () {
return function (val) {
let data = true
// todo:
if(this.propsData.confirmed == val){data = false}
return data
}
},
},
data () {
return {
URL: 'wms/store/purchase-order',
DrawerButtonData: [
{
type: 'danger',
icon: 'el-icon-delete-solid',
label: '关闭订单行',
hide: false,
name: "close",
size: 'mini'
},
// {
// type: 'danger',
// icon: 'el-icon-delete-solid',
@ -119,25 +123,31 @@ export default {
this.paging();
},
methods: {
//
closePoline(scope){
this.$confirm('您确定要关闭该订单行吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.Loading.appMainLoading = true
purchaseOrderCloseDetailld(this.propsData.id, scope.row.id).then(res => {
this.$successMsg('关闭成功')
getDetailed(this.propsData.id, this.URL).then(res => {
this.propsData = res
})
this.paging()
this.Loading.appMainLoading = false
}).catch(err => {
console.log(err)
this.Loading.appMainLoading = false
})
}).catch(() => {
});
},
//
drawerbutton (val) {
//
if (val == 'close') {
let that = this
that.Loading.appMainLoading = true
// todo:
// processRequest(that.propsData.id, that.URL + '/cancel/').then(res => {
// that.$successMsg('')
// getDetailed(that.propsData.id, that.URL).then(res => {
// that.propsData = res
// })
// that.paging()
// that.Loading.appMainLoading = false
// }).catch(err => {
// console.log(err)
// that.Loading.appMainLoading = false
// })
}
//
// if (val == 'delete') {
// let that = this

Loading…
Cancel
Save