|
@@ -27,16 +27,23 @@ export default {
|
|
|
open(prop){
|
|
|
console.log(prop);
|
|
|
|
|
|
- this.$confirm('是否继续进行行关闭操作?', '提示', {
|
|
|
+ this.$prompt('请输入关闭原因', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(async() => {
|
|
|
+ inputPattern: /\s*\S+?/,
|
|
|
+ inputErrorMessage: '关闭原因不能为空'
|
|
|
+ }).then( async({ value }) => {
|
|
|
|
|
|
try {
|
|
|
- let documentIds = this.selectData.map(item => item.id);
|
|
|
+
|
|
|
+ let params = {
|
|
|
+ documentIds: this.selectData.map(item => item.id),
|
|
|
+ baskCause: value,
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(params,'params');
|
|
|
|
|
|
- let { code, msg } = await ROWClOSE(documentIds);
|
|
|
+ let { code, msg } = await ROWClOSE(params);
|
|
|
|
|
|
if (code === 200) {
|
|
|
this.$emit("success");
|