|
@@ -19,9 +19,9 @@
|
|
|
</template>
|
|
|
</van-field>
|
|
|
|
|
|
- <van-button class="sureSign" type="info" native-type="submit">合并签收</van-button>
|
|
|
- <van-button style="height: 40px; width: 150px; border-radius: 8px;" type="default"
|
|
|
- @click="back">返回上一级</van-button>
|
|
|
+ <van-button style="float: right;" class="sureSign" type="info" native-type="submit">合并签收</van-button>
|
|
|
+ <!-- <van-button style="height: 40px; width: 150px; border-radius: 8px;" type="default"
|
|
|
+ @click="back">返回上一级</van-button> -->
|
|
|
</van-form>
|
|
|
|
|
|
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
<script>
|
|
|
import SureCombine from './sureCombine.vue'
|
|
|
export default {
|
|
|
- props: ['isSign', 'signList'],
|
|
|
+ props: ['signList'],
|
|
|
components: {
|
|
|
SureCombine
|
|
|
},
|
|
@@ -49,15 +49,12 @@ export default {
|
|
|
this.$refs.checkboxGroup.toggleAll();
|
|
|
this.qwe = !this.qwe
|
|
|
},
|
|
|
- // 返回
|
|
|
- back() {
|
|
|
- this.$emit('isSign', true);
|
|
|
- console.log('sign')
|
|
|
- },
|
|
|
+
|
|
|
// 合并签收
|
|
|
onSubmit(values) {
|
|
|
if (this.checkedGoods.length > 0) {
|
|
|
this.isCombine = false
|
|
|
+ this.$emit("onIsCombine", this.isCombine)
|
|
|
console.log('submit', values);
|
|
|
// let data = this.goods.filter((good) => values.checkboxGroup.includes(good.id))
|
|
|
let data = []
|
|
@@ -79,6 +76,7 @@ export default {
|
|
|
sureCombine(value) {
|
|
|
console.log(value)
|
|
|
this.isCombine = value
|
|
|
+ this.$emit("onIsCombine", this.isCombine)
|
|
|
},
|
|
|
|
|
|
},
|