fix:包装关系查询页面客户要求幅宽精度修改

This commit is contained in:
zhouz
2025-05-20 14:41:31 +08:00
parent c93bda46dd
commit 4da7b42b54

View File

@@ -187,7 +187,8 @@
>
<!--表格渲染-->
<el-table
:data="childrenList">
:data="childrenList"
>
<el-table-column prop="container_name" label="子卷号" show-overflow-tooltip width="210px" />
<el-table-column prop="spec" label="步序" show-overflow-tooltip width="120">
<template slot-scope="scope">
@@ -199,8 +200,8 @@
{{ scope.row.result.toString() }}
</template>
</el-table-column>
<el-table-column prop="param" label="执行参数" show-overflow-tooltip width="150"/>
<el-table-column prop="msg" label="备注" show-overflow-tooltip width="150"/>
<el-table-column prop="param" label="执行参数" show-overflow-tooltip width="150" />
<el-table-column prop="msg" label="备注" show-overflow-tooltip width="150" />
<el-table-column prop="create_time" label="创建时间">
<template slot-scope="scope">
{{ new Date(scope.row.create_time).toLocaleString() }}
@@ -208,17 +209,21 @@
</el-table-column>
<el-table-column label="操作">
<template scope="scope">
<el-button v-if="scope.row.result==false && scope.row.url" type="danger"
class="filter-item"
size="mini" icon="el-icon-position"
@click.native.prevent="syncMes(scope.row)">同步</el-button>
<el-button
v-if="scope.row.result==false && scope.row.url"
type="danger"
class="filter-item"
size="mini"
icon="el-icon-position"
@click.native.prevent="syncMes(scope.row)"
>同步</el-button>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<span slot="footer" class="dialog-footer">
<el-button @click="dtlVisible = false"> </el-button>
</span>
<el-button @click="dtlVisible = false"> </el-button>
</span>
</el-dialog>
<el-dialog
:close-on-click-modal="false"
@@ -489,7 +494,7 @@
:min-width="flexWidth('container_name',crud.data,'子卷号')"
>
<template slot-scope="scope">
<el-link type="warning" @click="toView(scope.row.container_name)">{{ scope.row.container_name }}</el-link>
<el-link type="warning" @click="toView(scope.row.container_name)">{{ scope.row.container_name }}</el-link>
</template>
</el-table-column>
<el-table-column prop="product_name" label="产品编码" :min-width="flexWidth('product_name',crud.data,'产品描述')" />
@@ -500,7 +505,7 @@
/>
<el-table-column sortable prop="sap_pcsn" label="sap批次" :min-width="flexWidth('sap_pcsn',crud.data,'SAP批次')" />
<el-table-column prop="width" label="产品规格(幅宽)" :min-width="flexWidth('width',crud.data,'产品规格(幅宽)')" />
<el-table-column prop="width_standard" :formatter="crud.formatNum3" label="客户要求幅宽" :min-width="flexWidth('width_standard',crud.data,'客户要求幅宽')" />
<el-table-column prop="width_standard" :formatter="crud.formatNum1" label="客户要求幅宽" :min-width="flexWidth('width_standard',crud.data,'客户要求幅宽')" />
<el-table-column prop="thickness" label="产品厚度" :min-width="flexWidth('thickness',crud.data,'产品厚度')" />
<el-table-column
prop="mass_per_unit_area"
@@ -641,9 +646,9 @@ import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import { download } from '@/api/data'
import { downloadFile } from '@/utils'
import crudUserStor from "@/views/wms/basedata/st/userStor/userStor";
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
import crudPastivtquery from '@/views/wms/stat/pastivt/pastivtquery'
import { format } from 'date-fns';
import { format } from 'date-fns'
const defaultForm = {
workorder_id: null,
@@ -791,23 +796,23 @@ export default {
},
toView(data) {
crudPastivtquery.subRecord(data).then(res => {
if (res){
if (res) {
this.dtlVisible = true
this.childrenList = res;
this.childrenList = res
}
})
},
async syncMes(row) {
const url = 'http://10.1.3.36:8081/'+row.url
const url = 'http://10.1.3.36:8081/' + row.url
const response = await fetch(url, {
method: 'POST', // *GET, POST, PUT, DELETE, etc.
headers: {
'Content-Type': 'application/json',
'Content-Type': 'application/json'
// 'Content-Type': 'application/x-www-form-urlencoded',
},
body: row.param // body 数据类型必须与“Content-Type”头匹配
});
const data = await response.json();
})
const data = await response.json()
window.alert(JSON.stringify(data))
},