rev:新增原料需求功能
This commit is contained in:
@@ -34,11 +34,10 @@
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
value-format="yyyy-MM-dd"
|
||||
align="center"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@change="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -118,7 +117,7 @@
|
||||
icon="el-icon-finished"
|
||||
:disabled="crud.selections.length !== 1"
|
||||
size="mini"
|
||||
@click="commit(crud.selections)"
|
||||
@click="crud.toEdit(crud.selections[0])"
|
||||
>
|
||||
确认采购
|
||||
</el-button>
|
||||
@@ -129,7 +128,7 @@
|
||||
icon="el-icon-check"
|
||||
:disabled="crud.selections.length === 0"
|
||||
size="mini"
|
||||
@click="commit(crud.selections)"
|
||||
@click="confirm(crud.selections)"
|
||||
>
|
||||
强制完成
|
||||
</el-button>
|
||||
@@ -163,7 +162,7 @@
|
||||
<el-table-column label="生成方式" align="center" prop="create_mode" :formatter="createModeFormat"/>
|
||||
<el-table-column label="创建人" align="center" prop="create_name" width="150"/>
|
||||
<el-table-column label="创建时间" align="center" prop="create_time" width="150"/>
|
||||
<el-table-column label="提交人" align="center" prop="audit_namne" width="150"/>
|
||||
<el-table-column label="提交人" align="center" prop="audit_name" width="150"/>
|
||||
<el-table-column label="提交时间" align="center" prop="audit_time" width="140px"/>
|
||||
<el-table-column label="采购确认人" align="center" prop="purchase_name" width="150"/>
|
||||
<el-table-column label="采购确认时间" align="center" prop="purchase_time" width="140px"/>
|
||||
@@ -194,7 +193,7 @@ import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import DateRangePicker from '@/components/DateRangePicker/index'
|
||||
import AddDialog from '@/views/wms/pcs/purchaseorder/AddDialog'
|
||||
import AddDialog from '@/views/wms/pcs/purchaseplan/AddDialog'
|
||||
import crudStorattr from '@/views/wms/storage_manage/basedata/basedata'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
@@ -207,7 +206,7 @@ export default {
|
||||
return CRUD({
|
||||
title: '',
|
||||
optShow: {reset: true},
|
||||
idField: 'id',
|
||||
idField: 'id,desc',
|
||||
query: {
|
||||
'status': '1'
|
||||
},
|
||||
@@ -282,8 +281,8 @@ export default {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
},
|
||||
commit(rows) {
|
||||
crudPurchase.commit(rows).then(res => {
|
||||
confirm(rows) {
|
||||
crudPurchase.confirm(rows).then(res => {
|
||||
this.crud.notify('单据确认成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user