Browse Source

2024-06-03 更新

master
fengyuan_yang 2 years ago
parent
commit
2887cb2f16
  1. 6
      src/api/sampleManagement/technicalSpecificationList.js
  2. 28
      src/views/modules/sampleManagement/technicalSpecificationList.vue

6
src/api/sampleManagement/technicalSpecificationList.js

@ -107,3 +107,9 @@ export const deleteBMprintFlexoColor= data => createAPI(`/technicalSpecification
export const searchBMprintIndigoColor= data => createAPI(`/technicalSpecification/searchBMprintIndigoColor`,'post',data)
export const saveBMprintIndigoColor= data => createAPI(`/technicalSpecification/saveBMprintIndigoColor`,'post',data)
export const deleteBMprintIndigoColor= data => createAPI(`/technicalSpecification/deleteBMprintIndigoColor`,'post',data)
/**
* 下达
* @param data
* @returns {*}
*/
export const issueChange= data => createAPI(`/technicalSpecification/issueChange`,'post',data)

28
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -65,6 +65,7 @@
<a type="text" size="small" @click="jumpDetail(scope.row)">详情</a>
<a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</a>
<a type="text" size="small" @click="deleteData(scope.row)">删除</a>
<a type="text" size="small" v-if="scope.row.status === 'cg'" @click="issueModal(scope.row)">下达</a>
</template>
</el-table-column>
</el-table>
@ -316,6 +317,7 @@
technicalSpecificationListSearch,
deleteTechnicalSpecificationList,
upBMRevNo,
issueChange, //
} from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist'
import AddOrUpdate from './com_technical-add-or-update'
@ -714,6 +716,32 @@
})
},
methods: {
//
issueModal (row) {
this.$confirm(`是否确认下达?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let tempData = {
site: row.site,
userName: this.$store.state.user.name,
codeNo: row.codeNo,
menuId: this.$route.meta.menuId
}
issueChange(tempData).then(({data}) => {
if (data && data.code === 0) {
this.search()
this.$message({message: '操作成功', type: 'success'})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
})
},
//
sizeChangeHandle (val) {
this.pageSize = val

Loading…
Cancel
Save