|
|
|
|
@ -22,6 +22,22 @@ |
|
|
|
|
<el-radio label="close">盲盘</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="盘点状态"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="enterForm.invType" |
|
|
|
|
placeholder="请选择盘点状态" |
|
|
|
|
clearable |
|
|
|
|
style="width: 240px" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in dict.type.inv_status" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="货位"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="enterForm.locationCode" |
|
|
|
|
@ -30,6 +46,29 @@ |
|
|
|
|
></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="生产计划日期"> |
|
|
|
|
<!-- <el-date-picker |
|
|
|
|
v-model="value1" |
|
|
|
|
style="width: 240px" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
type="daterange" |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
></el-date-picker> --> |
|
|
|
|
<el-date-picker |
|
|
|
|
style="width: 280px" |
|
|
|
|
v-model="value1" |
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
type="datetimerange" |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
:default-time="['00:00:00', '00:00:00']" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@ -124,14 +163,16 @@ |
|
|
|
|
import { tableConfig } from './config.js' |
|
|
|
|
import { list, cancel, entrySave } from '@/api/libraryManage/inventory' |
|
|
|
|
import { Debounce, getDictLabel } from '@/utils/index' |
|
|
|
|
import moment from 'moment' |
|
|
|
|
export default { |
|
|
|
|
name: '', |
|
|
|
|
dicts: ['goods_storage_conditions', 'goods_classify', 'goods_unit', 'inv_type_dict'], |
|
|
|
|
dicts: ['goods_storage_conditions', 'goods_classify', 'goods_unit', 'inv_type_dict', 'inv_status'], |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
enterForm: { |
|
|
|
|
invOrderNo: '' |
|
|
|
|
invOrderNo: '', |
|
|
|
|
// invWay: 'open' |
|
|
|
|
invStatus: 'init' |
|
|
|
|
}, |
|
|
|
|
selectData: [], |
|
|
|
|
tableForm: { tableData: [] }, |
|
|
|
|
@ -142,13 +183,13 @@ export default { |
|
|
|
|
page: 1, // 当前页 |
|
|
|
|
size: 10, // 页面大小 |
|
|
|
|
total: 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value1: [moment().locale('zh-cn').format('yyyy-MM-DD 00:00:00'), moment().locale('zh-cn').add(1, 'days').format('yyyy-MM-DD 00:00:00')] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() {}, |
|
|
|
|
async created() { |
|
|
|
|
this.queryTable() |
|
|
|
|
|
|
|
|
|
this.tableConfig = await this.getTableHeaderCom('busin_inventory_add', tableConfig.call(this), 'configEntry') |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
@ -156,6 +197,13 @@ export default { |
|
|
|
|
queryTable() { |
|
|
|
|
// if (!this.enterForm.invOrderNo) return this.$message("单据编号必填!"); |
|
|
|
|
this.loading = true |
|
|
|
|
if (this.value1 !== null && this.value1 !== 'null' && this.value1 !== undefined) { |
|
|
|
|
this.enterForm.execTime = this.value1[0] |
|
|
|
|
this.enterForm.endTime = this.value1[1] |
|
|
|
|
} else { |
|
|
|
|
this.enterForm.execTime = null |
|
|
|
|
this.enterForm.endTime = null |
|
|
|
|
} |
|
|
|
|
list({ |
|
|
|
|
// invWay: 'open', |
|
|
|
|
...this.enterForm |
|
|
|
|
@ -177,7 +225,9 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 重置 |
|
|
|
|
resetQuery() { |
|
|
|
|
this.value1 = [moment().locale('zh-cn').format('yyyy-MM-DD'), moment().locale('zh-cn').format('yyyy-MM-DD')] |
|
|
|
|
this.enterForm = {} |
|
|
|
|
this.queryTable() |
|
|
|
|
}, |
|
|
|
|
onCalc3(row, prop) { |
|
|
|
|
if (row.storageClassify === '0') { |
|
|
|
|
|