|
|
@@ -21,6 +21,7 @@
|
|
|
<el-button type="primary" class="bt" icon="edit" @click="addcpgy_onclick" >新增工艺资料</el-button>
|
|
|
<el-button type="primary" class="bt" icon="edit" @click="addyb_onclick" >新增印版资料</el-button>
|
|
|
<el-button type="primary" class="bt" icon="edit" @click="DELonclick" >删除印版资料</el-button>
|
|
|
+<!-- <el-button type="primary" class="bt" icon="edit" @click="mestb_oncilck" >mes同步</el-button>-->
|
|
|
<el-button type="primary" icon="edit" @click="delgd_delclick" :disabled="yjSelection === '' && gySelection === ''" class="bt" title="选择批量删除(印件资料或工艺资料)" >删除</el-button>
|
|
|
<!-- <el-button type="primary" class="bt" icon="Download" @click="cpexportToExcel" disabled>导出产品资料</el-button>-->
|
|
|
<!-- <el-button type="primary" class="bt" icon="Download" @click="gyexportToExcel" disabled>导出工艺流程</el-button>-->
|
|
|
@@ -28,6 +29,19 @@
|
|
|
</el-form>
|
|
|
|
|
|
<!--按钮弹窗部分-->
|
|
|
+ <!--mes同步-->
|
|
|
+ <el-dialog v-model="messtatuslist" title="mes同步" style="width: 300px; top: 20%">
|
|
|
+ <div>
|
|
|
+ <el-form-item label="工单编号:" prop="process" class="mab">
|
|
|
+ <el-input v-model="mesformDataTest['gdbh']" id="process" placeholder="" style="width: 160px;"/>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <br>
|
|
|
+ <div slot="footer" class="dialog-footer" style="text-align: right;">
|
|
|
+ <el-button @click="meshandleCancel">取消</el-button>
|
|
|
+ <el-button type="primary" @click="meshandleConfirm">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<!--状态设置-->
|
|
|
<el-dialog v-model="onstatuslist" title="状态设置" style="width: 300px; top: 20%">
|
|
|
@@ -1579,6 +1593,7 @@ import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
|
|
|
import { ref, reactive, nextTick, } from 'vue'
|
|
|
import {
|
|
|
DataList,
|
|
|
+ ProductDetailData,
|
|
|
editGyName,
|
|
|
editGyNo,
|
|
|
editProduct,
|
|
|
@@ -2541,7 +2556,7 @@ const selectionChange = (selection, type) => {
|
|
|
const delgd_delclick = async () => {
|
|
|
if (yjSelection.value !== '') {
|
|
|
try {
|
|
|
-
|
|
|
+
|
|
|
const res1 = await PrintlDel({UniqId: yjSelection.value})
|
|
|
res1.code === 0 && ElMessage.success('印件资料删除成功')
|
|
|
} catch(err) {
|
|
|
@@ -2550,7 +2565,7 @@ const delgd_delclick = async () => {
|
|
|
}
|
|
|
if (gySelection.value !== ''){
|
|
|
try {
|
|
|
-
|
|
|
+
|
|
|
const res2 = await ProcessDel({UniqId: gySelection.value})
|
|
|
res2.code === 0 && ElMessage.success('工艺资料删除成功')
|
|
|
} catch(err) {
|
|
|
@@ -3370,6 +3385,34 @@ const _getProductYbMaterialDetail = async () => {
|
|
|
}))
|
|
|
}
|
|
|
|
|
|
+//=========mes同步========
|
|
|
+const messtatuslist = ref(false)
|
|
|
+const mesformDataTest = reactive({
|
|
|
+ gdbh:'',
|
|
|
+})
|
|
|
+const mestb_oncilck = async () => {
|
|
|
+ messtatuslist.value = true;
|
|
|
+}
|
|
|
+//确定
|
|
|
+const meshandleConfirm = async () => {
|
|
|
+ // const formattedData = {
|
|
|
+ // productCode: mesformDataTest['gdbh'],
|
|
|
+ // sys_id: _username.value,
|
|
|
+ // }
|
|
|
+ // console.log(formattedData)
|
|
|
+ const ProductDetailData_add = await ProductDetailData({productCode: mesformDataTest['gdbh'],sys_id: _username.value})
|
|
|
+ console.log(ProductDetailData_add)
|
|
|
+ // if (ProductDetailData_add.code === 0) {
|
|
|
+ // ElMessage({type: 'success',message: '更新成功'})
|
|
|
+ // } else {
|
|
|
+ // ElMessage({ type: 'error',message: '更新失败'})
|
|
|
+ // }
|
|
|
+ // messtatuslist.value = false;
|
|
|
+}
|
|
|
+//取消
|
|
|
+const meshandleCancel = async () => {
|
|
|
+ messtatuslist.value = false;
|
|
|
+}
|
|
|
|
|
|
//=========修改工艺资料========
|
|
|
let gyformDataTest = reactive({})
|