Commit 5e1205ce authored by 沈翠玲's avatar 沈翠玲

临时提交

parent d02bf4b2
...@@ -2965,5 +2965,6 @@ ...@@ -2965,5 +2965,6 @@
"开始": "เริ่ม", "开始": "เริ่ม",
"标签模板": "เทมเพลตแท็ก", "标签模板": "เทมเพลตแท็ก",
"请选择标签模板": "โปรดเลือกแม่แบบฉลาก", "请选择标签模板": "โปรดเลือกแม่แบบฉลาก",
"没有配置标签模版": "ไม่มีการกำหนดค่าลายฉลุฉลาก" "没有配置标签模版": "ไม่มีการกำหนดค่าลายฉลุฉลาก",
"是否允许超报": "是否允许超报"
} }
\ No newline at end of file
...@@ -2965,5 +2965,6 @@ ...@@ -2965,5 +2965,6 @@
"开始": "开始", "开始": "开始",
"标签模板": "标签模板", "标签模板": "标签模板",
"请选择标签模板": "请选择标签模板", "请选择标签模板": "请选择标签模板",
"没有配置标签模版": "没有配置标签模版" "没有配置标签模版": "没有配置标签模版",
"是否允许超报": "是否允许超报"
} }
...@@ -183,18 +183,11 @@ ...@@ -183,18 +183,11 @@
<el-radio label="1">是</el-radio> <el-radio label="1">是</el-radio>
<el-radio label="0">否</el-radio> <el-radio label="0">否</el-radio>
</el-radio-group> --> </el-radio-group> -->
<el-radio-group v-model="form.isSerialReport" disabled v-if="optType=='view'"> <el-radio-group v-model.number="form.isSerialReport" :disabled="optType=='view'" >
<el-radio <el-radio
v-for="dict in dict.type.sys_yes_non" v-for="dict in dict.type.sys_yes_non"
:key="dict.value" :key="dict.value"
:label="dict.value" :label="Number(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
<el-radio-group v-model="form.isSerialReport" v-else>
<el-radio
v-for="dict in dict.type.sys_yes_non"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio> >{{dict.label}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
...@@ -269,7 +262,7 @@ export default { ...@@ -269,7 +262,7 @@ export default {
title: "", title: "",
form: { form: {
isPackage: '0', isPackage: '0',
isSerialReport: '0', isSerialReport: 0,
isExistTool: '0' isExistTool: '0'
}, },
// 是否显示弹出层 // 是否显示弹出层
...@@ -333,7 +326,7 @@ export default { ...@@ -333,7 +326,7 @@ export default {
updateTime: null updateTime: null
}; };
this.$set(this.form, 'isPackage', '0') this.$set(this.form, 'isPackage', '0')
this.$set(this.form, 'isSerialReport', '0') this.$set(this.form, 'isSerialReport', 0)
this.$set(this.form, 'isExistTool', '0') this.$set(this.form, 'isExistTool', '0')
this.autoGenFlag = false; this.autoGenFlag = false;
// this.resetForm("form"); // this.resetForm("form");
......
...@@ -688,7 +688,6 @@ export default { ...@@ -688,7 +688,6 @@ export default {
searchRow(row, idx) { searchRow(row, idx) {
this.form = Object.assign(this.form, row); this.form = Object.assign(this.form, row);
this.currentRowIdx = idx; this.currentRowIdx = idx;
this.optType = "detail";
this.showFlag = true; this.showFlag = true;
}, },
/**查看质检 */ /**查看质检 */
......
...@@ -32,11 +32,14 @@ ...@@ -32,11 +32,14 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<i class="el-icon-document"></i> <i class="el-icon-document"></i>
{{scope.row.fileOriginalName}} {{scope.row.fileOriginalName || scope.row.originalFilename}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" :label="$t('大小')" prop="fileSize" > <el-table-column align="left" :label="$t('大小')" prop="fileSize" >
<template slot-scope="scope">
{{scope.row.fileSize || scope.row.size}}
</template>
</el-table-column> </el-table-column>
<el-table-column align="center" :label="$t('common.option')" > <el-table-column align="center" :label="$t('common.option')" >
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -60,6 +63,10 @@ export default { ...@@ -60,6 +63,10 @@ export default {
process: { process: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
},
orgination: {
type: Boolean,
default: false
} }
}, },
data() { data() {
...@@ -75,12 +82,17 @@ export default { ...@@ -75,12 +82,17 @@ export default {
} }
}, },
watch: { watch: {
process(val) { process: {
if (val && val.drawingList && val.drawingList.length > 0) { handler(val) {
this.drawingList = val.drawingList console.log('sad0', val)
} else { if (val && val.drawingList && val.drawingList.length > 0) {
this.drawingList = [] this.drawingList = val.drawingList
} } else {
this.drawingList = []
}
},
immediate: true,
deep: true
} }
}, },
created (){ created (){
...@@ -147,6 +159,13 @@ export default { ...@@ -147,6 +159,13 @@ export default {
this.drawingList.splice(index, 1) this.drawingList.splice(index, 1)
}, },
handleUploadSuccess(res, file, fileList) { handleUploadSuccess(res, file, fileList) {
if (res.code == 200) {
// this.$message.success("文件上传成功");
} else {
this.$message.error(this.$t("文件上传失败"));
}
this.$refs.upload.clearFiles();
this.loading = false
if (fileList.every(item => item.status == 'success')) { if (fileList.every(item => item.status == 'success')) {
fileList.map((item, index) => { fileList.map((item, index) => {
/** 这时只需要push进带有response的数据就好 */ /** 这时只需要push进带有response的数据就好 */
...@@ -156,7 +175,11 @@ export default { ...@@ -156,7 +175,11 @@ export default {
name: item.response.data.originalFilename, name: item.response.data.originalFilename,
url: item.response.data.filePath url: item.response.data.filePath
}) })
this.drawingList.push({filePath: item.response.data.filePath, fileOriginalName: item.response.data.originalFilename, fileSize: item.response.data.size}) if (this.orgination) {
this.drawingList.push(item.response.data)
} else {
this.drawingList.push({filePath: item.response.data.filePath, fileOriginalName: item.response.data.originalFilename, fileSize: item.response.data.size})
}
} }
if(index === fileList.length - 1) { if(index === fileList.length - 1) {
console.log('清除') console.log('清除')
...@@ -165,14 +188,9 @@ export default { ...@@ -165,14 +188,9 @@ export default {
}) })
} }
// console.log('resresres', res, fileList) // console.log('resresres', res, fileList)
this.loading = false
// // 如果上传成功 // // 如果上传成功
// if (res.code == 200) {
// this.$message.success("文件上传成功");
// } else {
// this.$message.error("文件上传失败");
// }
// this.$refs.upload.clearFiles();
}, },
handleUploadError() { handleUploadError() {
this.loading = false this.loading = false
......
...@@ -6,11 +6,17 @@ ...@@ -6,11 +6,17 @@
<template slot="buttons" v-if="mode == 'apply'"> <template slot="buttons" v-if="mode == 'apply'">
<el-button size="mini" @click="resetForm">{{ $t('common.reset') }}</el-button> <el-button size="mini" @click="resetForm">{{ $t('common.reset') }}</el-button>
<el-button size="mini" type="primary" @click="saveForm">{{ $t('common.submit') }}</el-button> <el-button size="mini" type="primary" @click="saveForm">{{ $t('common.submit') }}</el-button>
<el-button size="mini" type="primary" @click="$refs.uploadTuzhiRef.showOpen = true">{{ $t('图纸上传') }}</el-button>
</template> </template>
<!-- 修改 按钮显示 --> <!-- 修改 按钮显示 -->
<template slot="buttons" v-if="mode == 'edit'"> <template slot="buttons" v-if="mode == 'edit'">
<el-button size="mini" type="primary" @click="saveForm">{{ $t('common.submit') }}</el-button> <el-button size="mini" type="primary" @click="saveForm">{{ $t('common.submit') }}</el-button>
<el-button size="mini" type="primary" @click="$refs.uploadTuzhiRef.showOpen = true">{{ $t('图纸上传') }}</el-button>
</template>
<template slot="buttons" v-if="mode == 'info'">
<el-button size="mini" type="primary" @click="$refs.uploadTuzhiRef.showOpen = true">{{ $t('查看文件') }}</el-button>
</template> </template>
</PageTitle> </PageTitle>
...@@ -99,6 +105,23 @@ ...@@ -99,6 +105,23 @@
></el-input-number> ></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :lg="6" :md="8" :sm="12" :xs="12">
<el-form-item :label="$t('是否允许超报')" prop="surpassState">
<el-select
v-model="form.surpassState"
clearable
>
<el-option
:label="$t('是')"
:value="true"
/>
<el-option
:label="$t('否')"
:value="false"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :lg="6" :md="8" :sm="12" :xs="12"> <el-col :lg="6" :md="8" :sm="12" :xs="12">
<el-form-item :label="$t('common.remark')" prop="remark"> <el-form-item :label="$t('common.remark')" prop="remark">
<el-input <el-input
...@@ -122,6 +145,7 @@ ...@@ -122,6 +145,7 @@
</el-tabs> </el-tabs>
</PageWrapper> </PageWrapper>
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"> </ItemSelect> <ItemSelect ref="itemSelect" @onSelected="onItemSelected"> </ItemSelect>
<uploadTuzhi ref="uploadTuzhiRef" :process="form" :orgination="true" @updateItem="updateItemUpload" />
</div> </div>
</template> </template>
...@@ -135,6 +159,7 @@ import ItemSelect from "@/components/itemSelect/single.vue"; ...@@ -135,6 +159,7 @@ import ItemSelect from "@/components/itemSelect/single.vue";
import RoutesProcessSelect from "@/components/routesProcessSelect/index.vue"; import RoutesProcessSelect from "@/components/routesProcessSelect/index.vue";
import { listRouteprocess } from "@/api/mes/pro/routeprocess"; import { listRouteprocess } from "@/api/mes/pro/routeprocess";
import tabPlugins from "@/plugins/tab"; import tabPlugins from "@/plugins/tab";
import uploadTuzhi from "./components/uploadTuzhi.vue";
import { import {
addProductionSolution, addProductionSolution,
// getPrototypeRequest, // getPrototypeRequest,
...@@ -145,6 +170,7 @@ import { ...@@ -145,6 +170,7 @@ import {
export default { export default {
components: { components: {
uploadTuzhi,
ProogingBom, ProogingBom,
ProogingProcess, ProogingProcess,
ItemSelect, ItemSelect,
...@@ -166,6 +192,7 @@ export default { ...@@ -166,6 +192,7 @@ export default {
productionSolutionCode: "", productionSolutionCode: "",
productionSolutionName: "", productionSolutionName: "",
productionSolutionType: "", productionSolutionType: "",
surpassState: false,
itemId: "", itemId: "",
itemName: "", itemName: "",
routeId: "", routeId: "",
...@@ -192,6 +219,7 @@ export default { ...@@ -192,6 +219,7 @@ export default {
itemCode: "", itemCode: "",
updateBy: "", updateBy: "",
updateTime: "", updateTime: "",
drawingList: []
}, },
rules: { rules: {
productionSolutionName: [ productionSolutionName: [
...@@ -238,6 +266,9 @@ export default { ...@@ -238,6 +266,9 @@ export default {
this.form.productionSolutionCode = response; this.form.productionSolutionCode = response;
}); });
}, },
updateItemUpload(items) {
this.form.drawingList = items;
},
//物料选择弹出框 //物料选择弹出框
onItemSelected(obj) { onItemSelected(obj) {
if (obj != undefined && obj != null) { if (obj != undefined && obj != null) {
...@@ -259,6 +290,9 @@ export default { ...@@ -259,6 +290,9 @@ export default {
getProductionSolution(id) getProductionSolution(id)
.then(({ data }) => { .then(({ data }) => {
Object.assign(this.form, data); Object.assign(this.form, data);
this.$set(this.form, 'drawingList', JSON.parse(data.filePath))
console.log('this.form', this.form)
console.log('this.form.drawingList', this.form.drawingList)
this.bomList = data.bomHead.bomItemList; this.bomList = data.bomHead.bomItemList;
// 设置组件数据 // 设置组件数据
this.$refs["ProogingBomRef"].form2 = data.bomHead; this.$refs["ProogingBomRef"].form2 = data.bomHead;
...@@ -289,11 +323,13 @@ export default { ...@@ -289,11 +323,13 @@ export default {
const processList = this.$refs.ProogingProcessRef.getComData(); const processList = this.$refs.ProogingProcessRef.getComData();
if (typeof processList === 'boolean') return if (typeof processList === 'boolean') return
const params = { const params = {
...this.form, ...JSON.parse(JSON.stringify(this.form)),
bomHead, bomHead,
processList, processList,
specificationSheet: {} specificationSheet: {}
}; };
params['filePath'] = JSON.stringify(params.drawingList)
delete params.drawingList
this.$refs.form.validate( valid => { this.$refs.form.validate( valid => {
if (valid) { if (valid) {
this.loading = true; this.loading = true;
......
...@@ -195,6 +195,11 @@ ...@@ -195,6 +195,11 @@
align="center" align="center"
prop="itemDesc" prop="itemDesc"
/> />
<el-table-column
:label="$t('标签模板')"
align="center"
prop="templateName"
/>
<el-table-column <el-table-column
:label="$t('创建日期')" :label="$t('创建日期')"
align="center" align="center"
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('产品编码')" align="center" prop="productCode"/> <el-table-column :label="$t('产品编码')" align="center" prop="productCode"/>
<el-table-column :label="$t('产品名称')" align="center" prop="productName"/> <el-table-column :label="$t('产品名称')" align="center" prop="productName"/>
<el-table-column :label="$t('预交日期')" align="center" prop="requestDate"/>
<el-table-column :label="$t('未排数量')" align="center" prop="disQuantity"/> <el-table-column :label="$t('未排数量')" align="center" prop="disQuantity"/>
<el-table-column :label="$t('本次数量')" align="center" prop="scheduleQuantity"> <el-table-column :label="$t('本次数量')" align="center" prop="scheduleQuantity">
<template slot-scope="scope"> <template slot-scope="scope">
......
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
<span>{{ parseTime(scope.row.abnormalTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.abnormalTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('备注')" align="center" prop="remarks" />
<el-table-column :label="$t('单据状态')" align="center" prop="abnormalStatus"> <el-table-column :label="$t('单据状态')" align="center" prop="abnormalStatus">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.qc_submit_status" :value="scope.row.abnormalStatus"/> <dict-tag :options="dict.type.qc_submit_status" :value="scope.row.abnormalStatus"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment