rev:sap同步销售单
This commit is contained in:
@@ -169,8 +169,7 @@
|
||||
<el-table-column prop="confirm_time" label="审核时间" align="center" />
|
||||
</el-table>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="dialogVisible = false">确定</el-button>
|
||||
<el-button type="primary" @click="dialogVisible = false">关 闭</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
@@ -257,7 +256,7 @@ export default {
|
||||
open() {
|
||||
this.getworkprocedure()
|
||||
this.getMaterialClass()
|
||||
crudProduceshiftorder.reportQuery({ workorder_id: this.form.workorder_id }).then(res => {
|
||||
crudProduceshiftorder.reportQuery3({ workorder_id: this.form.workorder_id }).then(res => {
|
||||
this.tableData = res.content
|
||||
})
|
||||
},
|
||||
@@ -276,7 +275,7 @@ export default {
|
||||
'material_id': this.form.material_id
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.form.class_name = res.content[0].class_name
|
||||
this.$set(this.form,'class_name',res.content[0].class_name)
|
||||
})
|
||||
},
|
||||
getworkprocedure() {
|
||||
|
||||
@@ -104,6 +104,7 @@ export function getReportWork(data) {
|
||||
}
|
||||
|
||||
export function reportQuery(data) {
|
||||
console.log(data)
|
||||
return request({
|
||||
url: '/api/produceWorkorder/reportQuery2',
|
||||
method: 'get',
|
||||
@@ -111,6 +112,15 @@ export function reportQuery(data) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function reportQuery3(data) {
|
||||
return request({
|
||||
url: '/api/produceWorkorder/reportQuery3',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function excelImport(data) {
|
||||
return request({
|
||||
url: 'api/produceWorkorder/excelImport',
|
||||
@@ -142,4 +152,4 @@ export function reportApprove(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, addRows, edit, del, submits, reportApprove, unSubmits, getTable, openStart, saveReport, finish, getReportWork, forceFinish, reportQuery, excelImport, getNotWorkDeviceByWorkproceduceId, replaceDevice }
|
||||
export default { add, addRows, edit, del, submits, reportApprove, unSubmits, getTable, openStart, saveReport, finish, getReportWork, forceFinish, reportQuery, reportQuery3, excelImport, getNotWorkDeviceByWorkproceduceId, replaceDevice }
|
||||
|
||||
@@ -44,7 +44,18 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<crudOperation v-show="false" :permission="permission" />
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
@click="setEmpty(crud.selections)"
|
||||
>
|
||||
设置空位
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
</div>
|
||||
<!--表格渲染-->
|
||||
<el-dialog
|
||||
@@ -214,6 +225,18 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setEmpty(rows) {
|
||||
var structIds = []
|
||||
console.log(rows)
|
||||
rows.forEach((item) => {
|
||||
structIds.push(item.workorder_id)
|
||||
})
|
||||
alert(structIds)
|
||||
// crudProduceshiftorder.submits(orders).then(res => {
|
||||
// this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
// this.crud.toQuery()
|
||||
// })
|
||||
}, // 取消下发
|
||||
setMaterValue(row) {
|
||||
this.materialForm.material_id = row.material_id
|
||||
this.materialForm.material_code = row.material_code
|
||||
|
||||
Reference in New Issue
Block a user