|
@@ -104,9 +104,10 @@
|
|
|
|
|
|
<!-- 状态 -->
|
|
|
<!-- slot-scope="text, record" -->
|
|
|
- <span slot="stateSlot">
|
|
|
+ <span slot="stateSlot" slot-scope="text, record">
|
|
|
<!-- v-if="record.isRelease == '0'" -->
|
|
|
- <a-tag color="#f50">保存</a-tag>
|
|
|
+ <a-tag color="orange" v-if="record.status == '0' || record.status == null">未提交</a-tag>
|
|
|
+ <a-tag color="green" v-if="record.status == '1'">已提交</a-tag>
|
|
|
<!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
|
|
|
</span>
|
|
|
|
|
@@ -128,10 +129,10 @@
|
|
|
<span slot="operationSlot" slot-scope="text, record">
|
|
|
<a @click="accessoryUpload(record)" style="color:green;">附件上传</a>
|
|
|
<a-divider type="vertical" />
|
|
|
-
|
|
|
+ <!-- 未提交 -->
|
|
|
<a-dropdown>
|
|
|
<a class="ant-dropdown-link">更多<a-icon type="down"/></a>
|
|
|
- <a-menu slot="overlay">
|
|
|
+ <a-menu slot="overlay" v-if="record.status == '0' || record.status == null">
|
|
|
<a-menu-item><a @click="submit(record)">提交</a></a-menu-item>
|
|
|
<a-menu-item><a @click="details(record)">详情</a></a-menu-item>
|
|
|
<a-menu-item><a @click="edit(record)">编辑</a></a-menu-item>
|
|
@@ -141,6 +142,24 @@
|
|
|
</a-popconfirm>
|
|
|
</a-menu-item>
|
|
|
</a-menu>
|
|
|
+
|
|
|
+ <!-- 已提交 -->
|
|
|
+ <a-menu slot="overlay" v-if="record.status == '1'">
|
|
|
+ <a-menu-item>
|
|
|
+ <a @click="details(record)">详情</a>
|
|
|
+ </a-menu-item>
|
|
|
+
|
|
|
+ <a-menu-item>
|
|
|
+ <a-popconfirm title="确定取消提交吗?" ok-text="是" cancel-text="否" @confirm="cancelSubmit(record)">
|
|
|
+ <a href="javascript:void(0);" style="color:red;">取消提交</a>
|
|
|
+ </a-popconfirm>
|
|
|
+ </a-menu-item>
|
|
|
+ <!-- <a-menu-item>
|
|
|
+ <a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push(record)">
|
|
|
+ <a href="javascript:void(0);" style="color:green;">推送</a>
|
|
|
+ </a-popconfirm>
|
|
|
+ </a-menu-item> -->
|
|
|
+ </a-menu>
|
|
|
</a-dropdown>
|
|
|
</span>
|
|
|
</a-table>
|
|
@@ -163,7 +182,7 @@ import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import clothesAddDrawer from '@views/packing-list/packinglist-clothes/clothesAddDrawer.vue'
|
|
|
import detailsClothesDrawer from '@views/packing-list/packinglist-clothes/detailsClothesDrawer.vue'
|
|
|
import editClothesDrawer from '@views/packing-list/packinglist-clothes/editClothesDrawer.vue'
|
|
|
-import { spltList,deleteSpltList,spltListId} from '@api/document/packing-list/packinglist-clothes'
|
|
|
+import { spltList,deleteSpltList,spltListId,SubmitList,cancelSubmitList} from '@api/document/packing-list/packinglist-clothes'
|
|
|
|
|
|
|
|
|
export default {
|
|
@@ -452,7 +471,28 @@ export default {
|
|
|
// 操作 附件上传
|
|
|
accessoryUpload() {},
|
|
|
// 操作 提交
|
|
|
- submit() {},
|
|
|
+ submit(record) {
|
|
|
+ SubmitList({id:record.id}).then(res =>{
|
|
|
+ if (res.success) {
|
|
|
+ record.status=1;
|
|
|
+ this.$message.success('提交成功');
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ //操作 取消提交
|
|
|
+ cancelSubmit(record){
|
|
|
+ cancelSubmitList({id:record.id}).then(res =>{
|
|
|
+ if (res.success) {
|
|
|
+ record.status=0;
|
|
|
+ this.$message.success('取消提交成功');
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 操作 详情
|
|
|
details(record) {
|
|
|
spltListId({id:record.id}).then(res => {
|