优化
This commit is contained in:
@@ -166,21 +166,21 @@
|
||||
<el-link type="warning" @click="openBucket(scope.row)">{{ scope.row.storagevehicle_code }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column prop="material_spec" label="物料规格" show-overflow-tooltip />
|
||||
<el-table-column prop="material_model" label="型号" />
|
||||
<el-table-column prop="pcsn" label="批次" show-overflow-tooltip width="150px" />
|
||||
<el-table-column prop="quality_scode" label="品质类型" :formatter="format_quality_scode" />
|
||||
<el-table-column prop="ivt_level" label="库存等级" :formatter="format_ivt_level" />
|
||||
<el-table-column prop="is_active" label="是否可用" :formatter="format_is_active" />
|
||||
<el-table-column prop="bucket_num" :formatter="crud.formatNum0" label="桶数" min-width="100" />
|
||||
<el-table-column prop="bucket_num" label="桶数" min-width="100" />
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150" />
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="120" />
|
||||
<el-table-column prop="material_spec" label="物料规格" min-width="120" />
|
||||
<el-table-column prop="material_model" label="型号" min-width="120" />
|
||||
<el-table-column prop="pcsn" label="批次" min-width="140" />
|
||||
<el-table-column prop="quality_scode" label="品质类型" :formatter="format_quality_scode" min-width="90" />
|
||||
<el-table-column prop="ivt_level" label="库存等级" :formatter="format_ivt_level" min-width="90" />
|
||||
<el-table-column prop="is_active" label="是否可用" :formatter="format_is_active" min-width="90" />
|
||||
<el-table-column prop="ivt_qty" label="库存重量" :formatter="formatQty" min-width="100" />
|
||||
<el-table-column prop="canuse_qty" label="可用重量" :formatter="formatQty" min-width="100" />
|
||||
<el-table-column prop="frozen_qty" label="冻结数" :formatter="formatQty" min-width="100" />
|
||||
<el-table-column prop="warehousing_qty" label="待入数" :formatter="formatQty" min-width="100" />
|
||||
<el-table-column prop="qty_unit_name" label="单位" />
|
||||
<el-table-column prop="instorage_time" label="入库时间" width="135" />
|
||||
<el-table-column prop="qty_unit_name" label="单位" min-width="100" />
|
||||
<el-table-column prop="instorage_time" label="入库时间" minwidth="140" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
@@ -242,9 +242,6 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// crudSectattr.getSect().then(res => {
|
||||
// this.sects = res.content
|
||||
// })
|
||||
crudSectattr.getSect({ 'is_materialstore': '1' }).then(res => {
|
||||
this.sects = res.content
|
||||
})
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
@input="onInput()"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@change="crud.toQuery"
|
||||
@input="onInput()"
|
||||
@change="mytoQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料">
|
||||
@@ -88,7 +88,7 @@ import StructIvt from '@/views/wms/statistics/outStorQuery/StructIvt'
|
||||
import crudRawAssist from '@/api/wms/st/core/inbill/rawassist'
|
||||
import workorder from '@/api/wms/pdm/workorder'
|
||||
|
||||
const start = new Date()
|
||||
|
||||
export default {
|
||||
name: 'ProductInstor',
|
||||
components: { StructIvt, crudOperation, rrOperation, pagination },
|
||||
@@ -105,9 +105,6 @@ export default {
|
||||
del: false,
|
||||
reset: true,
|
||||
download: false
|
||||
},
|
||||
query: {
|
||||
createTime: [start.monthBegin(), new Date()]
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -122,6 +119,7 @@ export default {
|
||||
currentRow: null,
|
||||
storlist: [],
|
||||
sum: 0,
|
||||
query_flag: true,
|
||||
Depts: [],
|
||||
billtypelist: []
|
||||
}
|
||||
@@ -142,11 +140,29 @@ export default {
|
||||
workorder.getDepts().then(res => {
|
||||
this.Depts = res
|
||||
})
|
||||
this.crud.query.createTime = [new Date(new Date().monthBegin()), new Date()]
|
||||
},
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if (this.query_flag) {
|
||||
this.crud.query.begin_time = new Date().monthBegin()
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
}
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
mytoQuery(array1) {
|
||||
if (array1 === null) {
|
||||
this.crud.query.begin_time = ''
|
||||
this.crud.query.end_time = ''
|
||||
} else {
|
||||
this.crud.query.begin_time = array1[0]
|
||||
this.crud.query.end_time = array1[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
async queryMater() {
|
||||
this.structshow = true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user