fix:包装关系查询页面客户要求幅宽精度修改
This commit is contained in:
@@ -187,7 +187,8 @@
|
|||||||
>
|
>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table
|
<el-table
|
||||||
:data="childrenList">
|
:data="childrenList"
|
||||||
|
>
|
||||||
<el-table-column prop="container_name" label="子卷号" show-overflow-tooltip width="210px" />
|
<el-table-column prop="container_name" label="子卷号" show-overflow-tooltip width="210px" />
|
||||||
<el-table-column prop="spec" label="步序" show-overflow-tooltip width="120">
|
<el-table-column prop="spec" label="步序" show-overflow-tooltip width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -199,8 +200,8 @@
|
|||||||
{{ scope.row.result.toString() }}
|
{{ scope.row.result.toString() }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="param" 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="msg" label="备注" show-overflow-tooltip width="150" />
|
||||||
<el-table-column prop="create_time" label="创建时间">
|
<el-table-column prop="create_time" label="创建时间">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ new Date(scope.row.create_time).toLocaleString() }}
|
{{ new Date(scope.row.create_time).toLocaleString() }}
|
||||||
@@ -208,17 +209,21 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作">
|
<el-table-column label="操作">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-button v-if="scope.row.result==false && scope.row.url" type="danger"
|
<el-button
|
||||||
class="filter-item"
|
v-if="scope.row.result==false && scope.row.url"
|
||||||
size="mini" icon="el-icon-position"
|
type="danger"
|
||||||
@click.native.prevent="syncMes(scope.row)">同步</el-button>
|
class="filter-item"
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-position"
|
||||||
|
@click.native.prevent="syncMes(scope.row)"
|
||||||
|
>同步</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dtlVisible = false">取 消</el-button>
|
<el-button @click="dtlVisible = false">取 消</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
@@ -489,7 +494,7 @@
|
|||||||
:min-width="flexWidth('container_name',crud.data,'子卷号')"
|
:min-width="flexWidth('container_name',crud.data,'子卷号')"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="product_name" label="产品编码" :min-width="flexWidth('product_name',crud.data,'产品描述')" />
|
<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 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" 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="thickness" label="产品厚度" :min-width="flexWidth('thickness',crud.data,'产品厚度')" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="mass_per_unit_area"
|
prop="mass_per_unit_area"
|
||||||
@@ -641,9 +646,9 @@ import udOperation from '@crud/UD.operation'
|
|||||||
import pagination from '@crud/Pagination'
|
import pagination from '@crud/Pagination'
|
||||||
import { download } from '@/api/data'
|
import { download } from '@/api/data'
|
||||||
import { downloadFile } from '@/utils'
|
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 crudPastivtquery from '@/views/wms/stat/pastivt/pastivtquery'
|
||||||
import { format } from 'date-fns';
|
import { format } from 'date-fns'
|
||||||
|
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
workorder_id: null,
|
workorder_id: null,
|
||||||
@@ -791,23 +796,23 @@ export default {
|
|||||||
},
|
},
|
||||||
toView(data) {
|
toView(data) {
|
||||||
crudPastivtquery.subRecord(data).then(res => {
|
crudPastivtquery.subRecord(data).then(res => {
|
||||||
if (res){
|
if (res) {
|
||||||
this.dtlVisible = true
|
this.dtlVisible = true
|
||||||
this.childrenList = res;
|
this.childrenList = res
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async syncMes(row) {
|
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, {
|
const response = await fetch(url, {
|
||||||
method: 'POST', // *GET, POST, PUT, DELETE, etc.
|
method: 'POST', // *GET, POST, PUT, DELETE, etc.
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json'
|
||||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
},
|
||||||
body: row.param // body 数据类型必须与“Content-Type”头匹配
|
body: row.param // body 数据类型必须与“Content-Type”头匹配
|
||||||
});
|
})
|
||||||
const data = await response.json();
|
const data = await response.json()
|
||||||
window.alert(JSON.stringify(data))
|
window.alert(JSON.stringify(data))
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user