|
|
@ -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==='待出库'" @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 !== '草稿' && 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> |
|
|
<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> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -3029,16 +3029,16 @@ |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
openNotify(row){ |
|
|
|
|
|
|
|
|
openNotify (row) { |
|
|
this.$confirm('确认打开?', '提示', { |
|
|
this.$confirm('确认打开?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
let inData={ |
|
|
|
|
|
site:row.site, |
|
|
|
|
|
notifyNo:row.notifyNo, |
|
|
|
|
|
status:'已下达', |
|
|
|
|
|
|
|
|
let inData = { |
|
|
|
|
|
site: row.site, |
|
|
|
|
|
notifyNo: row.notifyNo, |
|
|
|
|
|
status: '待出库', |
|
|
} |
|
|
} |
|
|
updateNotifyStatus(inData).then(({data}) => { |
|
|
updateNotifyStatus(inData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
|