Browse Source

【nev-pc】质检暂存+form图片预览格式封装

ag_report_nev
安虹睿 12 months ago
parent
commit
ce36bf2ba6
  1. 2
      fe/PC/public/config.js
  2. 1
      fe/PC/src/App.vue
  3. 8
      fe/PC/src/api/wms-api.js
  4. 20
      fe/PC/src/components/currenForm/index.vue
  5. 2
      fe/PC/src/views/inventoryManage/InventoryQuery/safetyStockWarning.vue
  6. 1642
      fe/PC/src/views/rawMaterialManage/quality/InspectRequest_new.vue

2
fe/PC/public/config.js

@ -24,6 +24,8 @@ window.SITE_CONFIG['versionUrl'] = 'http://dev.ccwin-in.com:60070'
window.SITE_CONFIG['companyName'] = '长春一汽富维东阳汽车塑料零部件(安徽)有限公司' window.SITE_CONFIG['companyName'] = '长春一汽富维东阳汽车塑料零部件(安徽)有限公司'
//pad-kitting组包页面刷新时间(毫秒) //pad-kitting组包页面刷新时间(毫秒)
window.SITE_CONFIG['padKittingPackUpdate'] = 180000 window.SITE_CONFIG['padKittingPackUpdate'] = 180000
// 高拍仪获取地址
window.SITE_CONFIG['grabimageURL'] = 'http://192.168.0.150:38088/video=grabimage'
// 接口看板地址 // 接口看板地址
window.SITE_CONFIG['interfaceBoardUrl'] = 'http://dev.ccwin-in.com:60090/' window.SITE_CONFIG['interfaceBoardUrl'] = 'http://dev.ccwin-in.com:60090/'
// 主子表 // 主子表

1
fe/PC/src/App.vue

@ -31,6 +31,7 @@ localStorage.setItem('MOrDFasterUrl_store',window.SITE_CONFIG['MOrDFasterUrl_sto
localStorage.setItem('MOrDFasterUrl_job',window.SITE_CONFIG['MOrDFasterUrl_job']) localStorage.setItem('MOrDFasterUrl_job',window.SITE_CONFIG['MOrDFasterUrl_job'])
localStorage.setItem('MOrDFasterUrl_inventory',window.SITE_CONFIG['MOrDFasterUrl_inventory']) localStorage.setItem('MOrDFasterUrl_inventory',window.SITE_CONFIG['MOrDFasterUrl_inventory'])
localStorage.setItem('pageHasMOrDList',window.SITE_CONFIG['pageHasMOrDList']) localStorage.setItem('pageHasMOrDList',window.SITE_CONFIG['pageHasMOrDList'])
localStorage.setItem('grabimageURL',window.SITE_CONFIG['grabimageURL'])
</script> </script>
<style lang="scss"> <style lang="scss">

8
fe/PC/src/api/wms-api.js

@ -753,6 +753,14 @@ export async function createImportExcelByFE(url,data) {
}) })
} }
// 获取高拍仪
export function getGrabimagePost(data) {
return request({
url: localStorage.getItem('grabimageURL'),
method: 'get',
})
}
// 客户退拆任务-完成 todo // 客户退拆任务-完成 todo
// export async function productionRecycleJobComplete(id) { // export async function productionRecycleJobComplete(id) {
// return request({ // return request({

20
fe/PC/src/components/currenForm/index.vue

@ -417,13 +417,27 @@
> >
</currenUploadPictureCard> </currenUploadPictureCard>
<el-button <el-button
v-if="item.type === 'button'" v-if="item.type === 'button' && !item.hidden"
type="primary" :type="item.buttonType || 'primary'"
size="mini" size="mini"
@click="item.click(item)" @click="item.click(item)"
> >
{{item.buttonText}} {{item.buttonText}}
</el-button> </el-button>
<!-- 图片显示及查看图片 -->
<el-image
style="line-height: 14px;"
v-if="item.type == 'viewImg'"
:style="{width: item.width || '100px', height: item.height || '100px'}"
:src="item.url"
:preview-src-list="item.srcList"
>
<div
slot="error"
style="font-size:12px"
:style="{lineHeight: item.height || '100px'}"
>{{item.errorTip}}</div>
</el-image>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -457,7 +471,7 @@ export default {
currenUpload, currenUpload,
currenUploadList, currenUploadList,
currenUploadPictureCard, currenUploadPictureCard,
filterSelect filterSelect,
}, },
props: { props: {
loading: { loading: {

2
fe/PC/src/views/inventoryManage/InventoryQuery/safetyStockWarning.vue

@ -140,7 +140,7 @@ export default {
} else if (row.safetyStockStatus == 'Green' && columnIndex === _index) { } else if (row.safetyStockStatus == 'Green' && columnIndex === _index) {
return {'background':'#228B22','color':'#fff'} return {'background':'#228B22','color':'#fff'}
} else if (row.safetyStockStatus == 'Yellow' && columnIndex === _index) { } else if (row.safetyStockStatus == 'Yellow' && columnIndex === _index) {
return {'background':'#FFFF000','color':'#fff'} return {'background':'#ff9000','color':'#fff'}
} }
} }
return '' return ''

1642
fe/PC/src/views/rawMaterialManage/quality/InspectRequest_new.vue

File diff suppressed because it is too large
Loading…
Cancel
Save