|
|
@@ -129,11 +129,17 @@
|
|
|
|
|
|
<view class="button-area">
|
|
|
<!-- <view :class="[orderInfo.status != 2 && orderInfo.stockLock==0 ? 'active' : '']" @click="lockFn(orderInfo)">锁定</view> -->
|
|
|
+ <view class="active" style="border:1upx solid #FF5722;color:#FF5722;" @tap="draw()">打样</view>
|
|
|
<view :class="[orderInfo.status==0 ? 'active' : '']" @tap="finishFn(orderInfo)">完成</view>
|
|
|
<view :class="[orderInfo.status==1 ? 'active' : '']" @click="printFn(orderInfo)">打印</view>
|
|
|
<view :class="[orderInfo.status==0 ? 'active' : '']" @click="cancelFn(orderInfo)">取消</view>
|
|
|
</view>
|
|
|
|
|
|
+ <!-- 完成制作单弹框 -->
|
|
|
+ <uni-popup ref="createWorkRef" background-color="#fff" type="right">
|
|
|
+ <createWork @cancelCreate="cancelCreate()" @confirmCreate="confirmCreate()"></createWork>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
<!-- 选数量金额 -->
|
|
|
<uni-popup ref="wastageSelectNumRef" background-color="#fff" type="center" :animation="false">
|
|
|
<wastageSelectNum @confirmWastageSelectNum="confirmWastageSelectNum" :customData.sync="customData"
|
|
|
@@ -161,9 +167,10 @@ import {modifyWastage} from '@/api/work-item'
|
|
|
import wastageSelectNum from './wastageSelectNum.vue'
|
|
|
import { mapGetters } from "vuex";
|
|
|
import productMins from "@/mixins/product";
|
|
|
+import createWork from './createWork.vue'
|
|
|
export default {
|
|
|
name: "workInfo",
|
|
|
- components: {wastageSelectNum},
|
|
|
+ components: {wastageSelectNum,createWork},
|
|
|
data() {
|
|
|
return {
|
|
|
orderInfo:[],
|
|
|
@@ -216,6 +223,16 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods:{
|
|
|
+ cancelCreate(){
|
|
|
+ this.$refs.createWorkRef.close()
|
|
|
+ },
|
|
|
+ confirmCreate(){
|
|
|
+ this.$refs.createWorkRef.close()
|
|
|
+ },
|
|
|
+ draw(){
|
|
|
+ this.$util.hitVoice()
|
|
|
+ this.$refs.createWorkRef.open('center')
|
|
|
+ },
|
|
|
previewImage(url){
|
|
|
uni.previewImage({urls:[url]})
|
|
|
},
|
|
|
@@ -449,15 +466,16 @@ export default {
|
|
|
border-radius: 5upx;
|
|
|
text-align: center;
|
|
|
padding: 10upx 0;
|
|
|
- color: #666666;
|
|
|
+ color: #CCCCCC;
|
|
|
+ font-weight:bold;
|
|
|
margin-bottom: 10upx;
|
|
|
- font-size: 10upx;
|
|
|
+ font-size: 12upx;
|
|
|
text-align: center;
|
|
|
}
|
|
|
& .active {
|
|
|
color: #3385FF;
|
|
|
border-color: #3385FF;
|
|
|
- font-size: 10upx;
|
|
|
+ font-size: 12upx;
|
|
|
font-weight:bold;
|
|
|
}
|
|
|
}
|