修改
This commit is contained in:
@@ -56,8 +56,10 @@
|
||||
<el-table-column show-overflow-tooltip prop="material_spec" label="规格" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="material_model" label="型号" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="plan_qty" :formatter="crud.formatNum3" label="数量" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="assign_qty" :formatter="crud.formatNum3" label="已出数量" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="unassign_qty" :formatter="crud.formatNum3" label="未出数量" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="assign_qty" :formatter="crud.formatNum3" label="已出数量"
|
||||
align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="unassign_qty" :formatter="crud.formatNum3" label="未出数量"
|
||||
align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="单位" align="center"/>
|
||||
</el-table>
|
||||
</el-card>
|
||||
@@ -98,6 +100,16 @@
|
||||
>
|
||||
删除分配
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="disConfirm()"
|
||||
>
|
||||
确认
|
||||
</el-button>
|
||||
</span>
|
||||
</div>
|
||||
<el-card class="box-card" shadow="never" :body-style="{padding:'0'}">
|
||||
@@ -122,7 +134,8 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
|
||||
<StructIvt :dialog-show.sync="structShow" :open-array="ivtParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl"/>
|
||||
<StructIvt :dialog-show.sync="structShow" :open-array="ivtParam" :rowmst="openRow"
|
||||
@StructIvtClosed="queryTableDis"/>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@@ -257,15 +270,12 @@ export default {
|
||||
})
|
||||
},
|
||||
cancelCreate() {
|
||||
if (!this.form.dtl_row) {
|
||||
this.crud.notify('请选择一条入库明细', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
const rows = this.$refs.dis_table.selection
|
||||
if (rows.length === 0) {
|
||||
this.crud.notify('请至少选择一条分配记录', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
}
|
||||
if (this.form.dtl_row.bill_status !== '40') {
|
||||
this.crud.notify('请选择状态为分配完的明细', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
sparePart.cancelCreate(this.form).then(res => {
|
||||
sparePart.cancelCreate({ rows: rows, row: this.form.dtl_row }).then(res => {
|
||||
sparePart.getIODtl({ 'bill_code': this.form.dtl_row.bill_code }).then(res => {
|
||||
this.openParam = res
|
||||
})
|
||||
@@ -280,6 +290,11 @@ export default {
|
||||
this.openParam = res
|
||||
})
|
||||
},
|
||||
queryTableDis() {
|
||||
sparePart.getDisDtl(this.form.dtl_row).then(res => {
|
||||
this.form.tableMater = res
|
||||
})
|
||||
},
|
||||
disConfirm() {
|
||||
debugger
|
||||
let rows = this.$refs.dis_table.selection
|
||||
|
||||
Reference in New Issue
Block a user