rev:wql替换

This commit is contained in:
2025-06-16 15:59:02 +08:00
parent 9fd59b3609
commit 68da12a72a
32 changed files with 429 additions and 1869 deletions

View File

@@ -151,7 +151,9 @@
</el-col>
<el-col :span="12">
<el-form-item label="产品编码" prop="product_name">
<el-input v-model="form.product_name" style="width: 250px;" />
<el-input v-model="form.product_name" disabled class="input-with-select">
<el-button slot="append" icon="el-icon-search" @click="queryMater()" />
</el-input>
</el-form-item>
</el-col>
</el-row>
@@ -159,7 +161,7 @@
<el-row>
<el-col :span="12">
<el-form-item label="产品名称" prop="description">
<el-input v-model="form.description" style="width: 250px;" />
<el-input v-model="form.description" disabled style="width: 250px;" />
</el-form-item>
</el-col>
<el-col :span="12">
@@ -264,12 +266,14 @@
<pagination />
</div>
<Dialog :dialog-show.sync="dialogShow" :open-param="openParam" />
<MaterDialog :dialog-show.sync="materShow" :mater-opt-code.sync="materType" @setMaterValue="setMaterValue" />
</div>
</template>
<script>
import crudRawfoilworkorder from '@/views/wms/pdm/order/rawfoilworkorder/rawfoilworkorder'
import Dialog from '@/views/wms/pdm/order/rawfoilworkorder/Dialog'
import MaterDialog from '@/views/wms/pub/MaterDialog'
import CRUD, { crud, form, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
@@ -306,7 +310,7 @@ const defaultForm = {
export default {
name: 'Rawfoilworkorder',
dicts: ['product_area', 'product_status', 'IS_OR_NOT'],
components: { pagination, crudOperation, rrOperation, udOperation, Dialog },
components: { pagination, crudOperation, rrOperation, udOperation, Dialog, MaterDialog },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
@@ -330,6 +334,7 @@ export default {
openParam: null,
permission: {},
resourceList: [],
materShow: false,
rules: {
container_name: [
{ required: true, message: '母卷号不能为空', trigger: 'blur' }
@@ -371,6 +376,9 @@ export default {
hand() {
this.crud.toQuery()
},
async queryMater() {
this.materShow = true
},
formatStatusName(row) {
return this.dict.label.product_status[row.status]
},
@@ -391,6 +399,10 @@ export default {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
})
},
setMaterValue(row) {
this.form.product_name = row.material_code
this.form.description = row.material_name
},
weigh() {
const _selectData = this.$refs.table.selection
this.openParam = _selectData[0]

View File

@@ -626,11 +626,11 @@
<el-table-column v-if="false" prop="workorder_id" label="分切计划标识" />
<el-table-column prop="status" label="状态" :formatter="formatStatusName" />
<el-table-column prop="order_type" label="订单类型" :formatter="formatTypeName" />
<el-table-column prop="mfg_order_name" label="订单号" min-width="200">
<template slot-scope="scope">
<el-link type="primary" @click="toView2(scope.$index, scope.row)">{{ scope.row.mfg_order_name }}</el-link>
</template>
</el-table-column>
<el-table-column prop="mfg_order_name" label="订单号" min-width="200" />
<!-- <template slot-scope="scope">-->
<!-- <el-link type="primary" @click="toView2(scope.$index, scope.row)">{{ scope.row.mfg_order_name }}</el-link>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="container_name" label="子卷号" min-width="140" show-overflow-tooltip />
<el-table-column prop="parent_container_name" label="母卷号" min-width="120" show-overflow-tooltip />
<el-table-column prop="ware_house" label="来源位置" :formatter="formatHouseName" width="120px" />