diff --git a/src/views/wastematerials/ProcessWasteMaterialsList.vue b/src/views/wastematerials/ProcessWasteMaterialsList.vue
index d1a1a61..ce914a1 100644
--- a/src/views/wastematerials/ProcessWasteMaterialsList.vue
+++ b/src/views/wastematerials/ProcessWasteMaterialsList.vue
@@ -1,6 +1,6 @@
@@ -100,18 +90,20 @@
-
-
+
- 查看详情
+ 详情
-
+
+
+
+
-
+
+
-
@@ -121,21 +113,29 @@
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
- import ProcessWasteMaterialsModal from './modules/ProcessWasteMaterialsModal'
+ import ProcessWasteMaterialsModal from '@views/wastematerials/modules/ProcessWasteMaterialsModal'
+ import JDate from '@/components/jeecg/JDate.vue'
+ import { httpAction, getAction } from '@/api/manage'
import JSuperQuery from '@/components/jeecg/JSuperQuery.vue'
- import ProcessWaste from '@views/wastematerials/modules/ProcessWaste'
+ import ProcessWasteMaterialsLists from '@views/wastematerials/ProcessWasteMaterialsLists'
export default {
name: 'ProcessWasteMaterialsList',
mixins:[JeecgListMixin, mixinDevice],
components: {
+ ProcessWasteMaterialsLists,
+ JDate,
ProcessWasteMaterialsModal,
JSuperQuery,
- ProcessWaste,
},
data () {
return {
- item: false,
+ // //帐外库存位置储存信息
+ // libraryNamesMessage: [],
+ // //供应商信息
+ // supplierMessage: [],
+ // //物料信息
+ // materialMessage: [],
description: '账外物资库管理页面',
// 表头
columns: [
@@ -167,7 +167,7 @@
{
title:'计量单位',
align:"center",
- dataIndex: 'unitMeasurement'
+ dataIndex: 'materialsUnit'
},
{
title:'现有数量',
@@ -177,27 +177,7 @@
{
title:'消耗数量',
align:"center",
- dataIndex: 'consumeNumber'
- },
- {
- title:'物料描述',
- align:"center",
- dataIndex: 'materialDescription1'
- },
- {
- title:'计量单位',
- align:"center",
- dataIndex: 'unitMeasurement1'
- },
- {
- title:'现有数量',
- align:"center",
- dataIndex: 'existingNumber1'
- },
- {
- title:'消耗数量',
- align:"center",
- dataIndex: 'consumeNumber1'
+ dataIndex: 'usageQuantity'
},
{
title: '查看详情',
@@ -215,9 +195,14 @@
exportXlsUrl: "/wastematerials/processWasteMaterials/exportXls",
importExcelUrl: "wastematerials/processWasteMaterials/importExcel",
+ queryLibraryName: "/libraryassociation/processLibraryAssociation/list",
+ queryListmaterials: "/wastematerials/processWasteMaterials/materialGroup"
+
},
dictOptions:{},
superFieldList:[],
+ libraryNames:[],
+ Listmaterials:[]
}
},
created() {
@@ -229,32 +214,50 @@
},
},
methods: {
- handleDetails(){
- this.item = true;
+ handleDetail(record){
+ this.$router.push({name:'src-views-wastematerials-ProcessWasteMaterialsLists',params:{material: record.material}})
},
initDictConfig(){
},
getSuperFieldList(){
- let fieldList=[];
- fieldList.push({type:'string',value:'supplier',text:'供应商',dictCode:''})
- fieldList.push({type:'string',value:'supplierDescription',text:'供应商描述',dictCode:''})
- fieldList.push({type:'string',value:'materialGroup',text:'物料组',dictCode:''})
- fieldList.push({type:'string',value:'material',text:'物料',dictCode:''})
- fieldList.push({type:'string',value:'materialDescription',text:'物料描述',dictCode:''})
- fieldList.push({type:'string',value:'materialStorageId',text:'库存位置',dictCode:''})
- fieldList.push({type:'string',value:'freightSpace',text:'库存仓位',dictCode:''})
- fieldList.push({type:'string',value:'unitMeasurement',text:'计量单位',dictCode:''})
- fieldList.push({type:'int',value:'existingNumber',text:'现有数量',dictCode:''})
- fieldList.push({type:'string',value:'consumeNumber',text:'消耗数量',dictCode:''})
- fieldList.push({type:'int',value:'number',text:'数量',dictCode:''})
- fieldList.push({type:'BigDecimal',value:'price',text:'单价',dictCode:''})
- fieldList.push({type:'BigDecimal',value:'money',text:'金额',dictCode:''})
- fieldList.push({type:'date',value:'productionDate',text:'生产日期'})
- fieldList.push({type:'date',value:'expirationDate',text:'保质期'})
- fieldList.push({type:'string',value:'inboundTime',text:'入库时间',dictCode:''})
- fieldList.push({type:'string',value:'warehousePeople',text:'入库人',dictCode:''})
- fieldList.push({type:'string',value:'accountingAttributes',text:'核算属性',dictCode:''})
- this.superFieldList = fieldList
+ // let fieldList=[];
+ // fieldList.push({type:'string',value:'supplier',text:'供应商',dictCode:''})
+ // fieldList.push({type:'string',value:'supplierDescription',text:'供应商描述',dictCode:''})
+ // fieldList.push({type:'string',value:'materialGroup',text:'物料组',dictCode:''})
+ // fieldList.push({type:'string',value:'material',text:'物料',dictCode:''})
+ // fieldList.push({type:'string',value:'materialDescription',text:'物料描述',dictCode:''})
+ // fieldList.push({type:'string',value:'materialStorageId',text:'库存位置',dictCode:''})
+ // fieldList.push({type:'string',value:'freightSpace',text:'库存仓位',dictCode:''})
+ // fieldList.push({type:'string',value:'materialsUnit',text:'计量单位',dictCode:''})
+ // fieldList.push({type:'int',value:'number',text:'数量',dictCode:''})
+ // fieldList.push({type:'BigDecimal',value:'price',text:'单价',dictCode:''})
+ // fieldList.push({type:'BigDecimal',value:'money',text:'金额',dictCode:''})
+ // fieldList.push({type:'date',value:'productionDate',text:'生产日期'})
+ // fieldList.push({type:'String',value:'expirationDate',text:'保质期'})
+ // fieldList.push({type:'Date',value:'inboundTime',text:'入库时间',dictCode:''})
+ // fieldList.push({type:'string',value:'warehousePeople',text:'入库人',dictCode:''})
+ // fieldList.push({type:'string',value:'accountingAttributes',text:'核算属性',dictCode:''})
+ // fieldList.push({type:'string',value:'libraryNames',text:'库存位置',dictCode:''})
+ // this.superFieldList = fieldList
+ let item ={
+ state : 0,
+ sort : 0
+ }
+ getAction(this.url.queryLibraryName,item).then((res)=>{
+ if(res.success){
+ this.libraryNames = res.result.records;
+ console.log("222222")
+ console.log(res.result.records);
+ }
+ });
+ getAction(this.url.queryListmaterials).then((res)=>{
+ if(res.success){
+ this.Listmaterials = res.result;
+ console.log("1111111")
+ console.log(res.result);
+ console.log("22222-22")
+ }
+ });
}
}
}
diff --git a/src/views/wastematerials/ProcessWasteMaterialsLists.vue b/src/views/wastematerials/ProcessWasteMaterialsLists.vue
new file mode 100644
index 0000000..4543880
--- /dev/null
+++ b/src/views/wastematerials/ProcessWasteMaterialsLists.vue
@@ -0,0 +1,352 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
查询
+
重置{{material}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/wastematerials/modules/ProcessWasteMaterialsForm.vue b/src/views/wastematerials/modules/ProcessWasteMaterialsForm.vue
index 8481775..b7628eb 100644
--- a/src/views/wastematerials/modules/ProcessWasteMaterialsForm.vue
+++ b/src/views/wastematerials/modules/ProcessWasteMaterialsForm.vue
@@ -3,91 +3,82 @@
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
提 交
+
@@ -98,13 +89,11 @@
import pick from 'lodash.pick'
import { validateDuplicateValue } from '@/utils/util'
import JFormContainer from '@/components/jeecg/JFormContainer'
- import JDate from '@/components/jeecg/JDate'
export default {
name: 'ProcessWasteMaterialsForm',
components: {
JFormContainer,
- JDate,
},
props: {
//流程表单data
@@ -180,7 +169,7 @@
this.model = Object.assign({}, record);
this.visible = true;
this.$nextTick(() => {
- this.form.setFieldsValue(pick(this.model,'supplier','supplierDescription','materialGroup','material','materialDescription','materialStorageId','freightSpace','unitMeasurement','existingNumber','consumeNumber','number','price','money','productionDate','expirationDate','inboundTime','warehousePeople','accountingAttributes'))
+ this.form.setFieldsValue(pick(this.model,'supplier','supplierDescription','materialGroup','material','materialDescription','materialStorageId','freightSpace','unit','number','price','money','productionDate','expirationDate','inboundTime','warehousePeople','accountingAttributes'))
})
},
//渲染流程表单数据
@@ -226,7 +215,7 @@
})
},
popupCallback(row){
- this.form.setFieldsValue(pick(row,'supplier','supplierDescription','materialGroup','material','materialDescription','materialStorageId','freightSpace','unitMeasurement','existingNumber','consumeNumber','number','price','money','productionDate','expirationDate','inboundTime','warehousePeople','accountingAttributes'))
+ this.form.setFieldsValue(pick(row,'supplier','supplierDescription','materialGroup','material','materialDescription','materialStorageId','freightSpace','unit','number','price','money','productionDate','expirationDate','inboundTime','warehousePeople','accountingAttributes'))
},
}
}