|
|
|
@ -123,7 +123,7 @@ |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status==='待出库'" @click="editNotifyMaterialFun(scope.row)">编辑</el-link> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status !== '草稿' && scope.row.status !== '已关闭' && scope.row.status !== '已归档'" @click="closeNotifyModel(scope.row)">关闭</el-link> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status === '草稿' " @click="deleteNotifyConfirm(scope.row)">删除</el-link> |
|
|
|
<!-- <a type="text" size="small" v-if="scope.row.status==='已关闭'" @click="openNotify(scope.row)">开启</a>--> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status === '已关闭' || scope.row.status === '已完成'" @click="openNotify(scope.row)">打开</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -2961,7 +2961,7 @@ |
|
|
|
closeNotifyModel(row){ |
|
|
|
// 先更新当前行数据 |
|
|
|
this.currentRow = JSON.parse(JSON.stringify(row)) |
|
|
|
|
|
|
|
|
|
|
|
this.closeData.site=row.site |
|
|
|
this.closeData.notifyNo=row.notifyNo |
|
|
|
this.closeData.closeRemark='' |
|
|
|
@ -3002,7 +3002,7 @@ |
|
|
|
deleteNotifyConfirm(row){ |
|
|
|
// 先更新当前行数据 |
|
|
|
this.currentRow = JSON.parse(JSON.stringify(row)) |
|
|
|
|
|
|
|
|
|
|
|
this.$confirm('确认删除?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
@ -3029,16 +3029,16 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
openNotify(row){ |
|
|
|
openNotify (row) { |
|
|
|
this.$confirm('确认打开?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let inData={ |
|
|
|
site:row.site, |
|
|
|
notifyNo:row.notifyNo, |
|
|
|
status:'已下达', |
|
|
|
let inData = { |
|
|
|
site: row.site, |
|
|
|
notifyNo: row.notifyNo, |
|
|
|
status: '待出库', |
|
|
|
} |
|
|
|
updateNotifyStatus(inData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -3956,7 +3956,7 @@ |
|
|
|
editNotifyMaterialFun(row){ |
|
|
|
// 先更新当前行数据,确保使用的是点击行的数据 |
|
|
|
this.currentRow = JSON.parse(JSON.stringify(row)) |
|
|
|
|
|
|
|
|
|
|
|
// 先查询该行的材料汇总数据,校验是否有合计已发数量大于零 |
|
|
|
searchSumNotifyMaterialList(row).then(({data}) => { |
|
|
|
if (data && data.code === 0 && data.rows && data.rows.length > 0) { |
|
|
|
|